# Latest

**URL:** https://discourse.julialang.org/latest.md?page=190

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 191

---

## [The inappropriateness of applying RLT to solve the DBP in ARO who lacks RCR](https://discourse.julialang.org/t/the-inappropriateness-of-applying-rlt-to-solve-the-dbp-in-aro-who-lacks-rcr/127203)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 3\
**Last updated:** [April 4, 2025, 12:37am UTC](https://discourse.julialang.org/t/the-inappropriateness-of-applying-rlt-to-solve-the-dbp-in-aro-who-lacks-rcr/127203 "2025-04-04T00:37:54Z")

</div>

Adaptive robust optimization (ARO) is typically NP-hard. It’s known that in the RHS uncertainty setting, the subproblem constitutes a disjointed bilinear programming (DBP). A naive way to solve DBP is employing Gurobi’…

---

## [HDR and ColorTypes](https://discourse.julialang.org/t/hdr-and-colortypes/127648)

<div class="topic-metadata">

**Author:** [@rmfritz](https://discourse.julialang.org/u/rmfritz)\
**Replies:** 3\
**Last updated:** [April 4, 2025, 12:13am UTC](https://discourse.julialang.org/t/hdr-and-colortypes/127648 "2025-04-04T00:13:49Z")

</div>

I’ve been working with HDR data, the Radiance RGBE and XYZE types, and I’ve looked a little at LogLuv and OpenEXR, and I’ve run into a problem: the AbstractRGB ColorType doesn’t accommodate the RGB values that Radiance R…

---

## [Including Gradient Term in Optimization.jl](https://discourse.julialang.org/t/including-gradient-term-in-optimization-jl/126965)

<div class="topic-metadata">

**Author:** [@fdekerme](https://discourse.julialang.org/u/fdekerme)\
**Replies:** 4\
**Last updated:** [April 3, 2025, 9:39pm UTC](https://discourse.julialang.org/t/including-gradient-term-in-optimization-jl/126965 "2025-04-03T21:39:40Z")

</div>

Hi everyone :grinning:, I’m trying to solve an optimization problem using Optimization.jl, but I’m struggling with incorporating a gradient term \\nabla in the process. My cost function to minimize is: \\text{Cost} \\lef…

---

## [\[ANN\] ACS.jl a package to download US Census American Community Survey files](https://discourse.julialang.org/t/ann-acs-jl-a-package-to-download-us-census-american-community-survey-files/127581)

<div class="topic-metadata">

**Author:** [@technocrat](https://discourse.julialang.org/u/technocrat)\
**Replies:** 6\
**Last updated:** [April 3, 2025, 9:14pm UTC](https://discourse.julialang.org/t/ann-acs-jl-a-package-to-download-us-census-american-community-survey-files/127581 "2025-04-03T21:14:34Z")

</div>

Based on Kyle Walker’s tidycensus package for the R programming language, this contains functions to get specified variables from the one-, three-, and five-year surveys. A free Census API key is required. Repo and docu…

---

## [Julia v1.12.0-beta1 is now available](https://discourse.julialang.org/t/julia-v1-12-0-beta1-is-now-available/127686)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 0\
**Last updated:** [April 3, 2025, 9:08pm UTC](https://discourse.julialang.org/t/julia-v1-12-0-beta1-is-now-available/127686 "2025-04-03T21:08:32Z")

</div>

Julia version 1.12.0-beta1, the first beta pre-release in the upcoming 1.12 series of releases, is now available. Check out the NEWS.md file to see what will be new in 1.12. Binaries are available via JuliaUp and in the …

---

## [How to identify clusters of values in a dataframe (or grouped dataframe)](https://discourse.julialang.org/t/how-to-identify-clusters-of-values-in-a-dataframe-or-grouped-dataframe/127557)

<div class="topic-metadata">

**Author:** [@rj3838](https://discourse.julialang.org/u/rj3838)\
**Replies:** 2\
**Last updated:** [April 3, 2025, 8:31pm UTC](https://discourse.julialang.org/t/how-to-identify-clusters-of-values-in-a-dataframe-or-grouped-dataframe/127557 "2025-04-03T20:31:52Z")

</div>

I am trying to identify clusters of values within a dataframe (it’s actually grouped but I’m handling it in sections). The data is of road defects so the actual data is large, I know that isn’t relevant for this but it g…

---

## [Creating a new package with the same environment as an existing package](https://discourse.julialang.org/t/creating-a-new-package-with-the-same-environment-as-an-existing-package/127684)

<div class="topic-metadata">

**Author:** [@curious](https://discourse.julialang.org/u/curious)\
**Replies:** 0\
**Last updated:** [April 3, 2025, 7:21pm UTC](https://discourse.julialang.org/t/creating-a-new-package-with-the-same-environment-as-an-existing-package/127684 "2025-04-03T19:21:38Z")

</div>

Hello, I want to create a new package that has exactly the same environment as an existing package. I would appreciate some help with how to do this. I have read Working with Julia projects | Julia programming notes and…

---

## [Reinit! doesn't work on MTK integrators](https://discourse.julialang.org/t/reinit-doesnt-work-on-mtk-integrators/127577)

<div class="topic-metadata">

**Author:** [@Bart\_van\_de\_Lint](https://discourse.julialang.org/u/Bart_van_de_Lint)\
**Replies:** 3\
**Last updated:** [April 3, 2025, 7:07pm UTC](https://discourse.julialang.org/t/reinit-doesnt-work-on-mtk-integrators/127577 "2025-04-03T19:07:47Z")

</div>

It seems like reinit! doesn’t work for ModelingToolkit systems. Is this true, what is the workaround and why don’t I get an error or warning? Trying to run this mwe shows that the integrator state is unchanged after rein…

---

## [Incremental testing](https://discourse.julialang.org/t/incremental-testing/127680)

<div class="topic-metadata">

**Author:** [@langestefan](https://discourse.julialang.org/u/langestefan)\
**Replies:** 4\
**Last updated:** [April 3, 2025, 6:12pm UTC](https://discourse.julialang.org/t/incremental-testing/127680 "2025-04-03T18:12:15Z")

</div>

Hi, I was reading the page on unit testing and I found that the suggested method \] test was rather slow due to pre-compilation, making it unusable for me during development. There is a much faster way to incrementally …

---

## [Understanding dependancy issues and CompatHelper](https://discourse.julialang.org/t/understanding-dependancy-issues-and-compathelper/127676)

<div class="topic-metadata">

**Author:** [@franckgaga](https://discourse.julialang.org/u/franckgaga)\
**Replies:** 5\
**Last updated:** [April 3, 2025, 6:10pm UTC](https://discourse.julialang.org/t/understanding-dependancy-issues-and-compathelper/127676 "2025-04-03T18:10:14Z")

</div>

First congratz on all contributors for the ForwardDiff.jl v1.0 release! I have a package that depends on ForwardDiff, both directly and indirectly. I received the automatic PR of CompatHelper. The tests failed in the PR…

---

## [Event handling with differential equation](https://discourse.julialang.org/t/event-handling-with-differential-equation/127677)

<div class="topic-metadata">

**Author:** [@Mishal](https://discourse.julialang.org/u/Mishal)\
**Replies:** 1\
**Last updated:** [April 3, 2025, 5:16pm UTC](https://discourse.julialang.org/t/event-handling-with-differential-equation/127677 "2025-04-03T17:16:44Z")

</div>

Hi Guys Please refer to the below code, I have included the entire code. However the “statespace” function has a bunch of if statements which alter the differential equation based on certain criteria. Is it possible to…

---

## [Deleting and inspecting elements while iterating over object](https://discourse.julialang.org/t/deleting-and-inspecting-elements-while-iterating-over-object/127630)

<div class="topic-metadata">

**Author:** [@mateuszwilinski](https://discourse.julialang.org/u/mateuszwilinski)\
**Replies:** 5\
**Last updated:** [April 3, 2025, 4:34pm UTC](https://discourse.julialang.org/t/deleting-and-inspecting-elements-while-iterating-over-object/127630 "2025-04-03T16:34:56Z")

</div>

I know that deleting elements and iterating over an object at the same time is against good programming practices (regardless, whether we use Julia or other language). I learnt my lesson the hard way. Regardless, I am re…

---

## [Silent type promotion when creating range using \`a🅱c\`](https://discourse.julialang.org/t/silent-type-promotion-when-creating-range-using-ac/127671)

<div class="topic-metadata">

**Author:** [@marcsgil](https://discourse.julialang.org/u/marcsgil)\
**Replies:** 2\
**Last updated:** [April 3, 2025, 2:41pm UTC](https://discourse.julialang.org/t/silent-type-promotion-when-creating-range-using-ac/127671 "2025-04-03T14:41:09Z")

</div>

I was meddling with ranges and found the following strange behaviour: suppose I want to create a range starting at 0, with step of 1 and length 10. If I want to work with Float32s, I’d type something like r1 = 0.0f0:1.0…

---

## [Install Python dependencies for PyCall.jl](https://discourse.julialang.org/t/install-python-dependencies-for-pycall-jl/127546)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 1\
**Last updated:** [April 3, 2025, 1:53pm UTC](https://discourse.julialang.org/t/install-python-dependencies-for-pycall-jl/127546 "2025-04-03T13:53:40Z")

</div>

I have an in-house package which, for legacy reasons, uses PyCall.jl instead of PythonCall.jl. My package includes a deps/build.jl which installs Python dependencies with e.g. Conda.add("somepackage"). However, PyCall.jl…

---

## [Failure to detect repeated names with splatted keyword args](https://discourse.julialang.org/t/failure-to-detect-repeated-names-with-splatted-keyword-args/127675)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 1\
**Last updated:** [April 3, 2025, 1:42pm UTC](https://discourse.julialang.org/t/failure-to-detect-repeated-names-with-splatted-keyword-args/127675 "2025-04-03T13:42:25Z")

</div>

Consider the following: julia\> kwargs = Dict(:a =\> 0) Dict{Symbol, Int64} with 1 entry: :a =\> 0 julia\> f(; a=1) = a f (generic function with 1 method) julia\> f(; a=2, kwargs...) 0 julia\> f(; a=2, a=0) ERROR: syntax…

---

## [Relation between type parameter](https://discourse.julialang.org/t/relation-between-type-parameter/127664)

<div class="topic-metadata">

**Author:** [@FerreolS](https://discourse.julialang.org/u/FerreolS)\
**Replies:** 7\
**Last updated:** [April 3, 2025, 1:37pm UTC](https://discourse.julialang.org/t/relation-between-type-parameter/127664 "2025-04-03T13:37:54Z")

</div>

Hi, I was wondering if there was a mean to enforce some kind of relation between parameter types. Here is an example: I can define the structure: struct mystruct{N,M} A::Array{Float64,N} B…

---

## [Discrete callback is triggered twice each time](https://discourse.julialang.org/t/discrete-callback-is-triggered-twice-each-time/127059)

<div class="topic-metadata">

**Author:** [@amynang](https://discourse.julialang.org/u/amynang)\
**Replies:** 15\
**Last updated:** [April 3, 2025, 1:26pm UTC](https://discourse.julialang.org/t/discrete-callback-is-triggered-twice-each-time/127059 "2025-04-03T13:26:35Z")

</div>

I am working on a Lotka-Volterra type competition system. I am trying to specify a rule such that at pre-specified time-points the (one) species with the lowest abundance at that time-step is eliminated. I am using a dis…

---

## [Change of type results in totally different error](https://discourse.julialang.org/t/change-of-type-results-in-totally-different-error/127663)

<div class="topic-metadata">

**Author:** [@adfdfdfk](https://discourse.julialang.org/u/adfdfdfk)\
**Replies:** 8\
**Last updated:** [April 3, 2025, 1:04pm UTC](https://discourse.julialang.org/t/change-of-type-results-in-totally-different-error/127663 "2025-04-03T13:04:26Z")

</div>

Hello im new to the julia, start just a 2weeks ago im trying to write down mle fitting code with given reference code At first , usually LoadError: TypeError: in typeassert, expected Vector{Any}, got a value of type Ve…

---

## [Science under attack!](https://discourse.julialang.org/t/science-under-attack/127578)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 9\
**Last updated:** [April 2, 2025, 6:34pm UTC](https://discourse.julialang.org/t/science-under-attack/127578 "2025-04-02T18:34:34Z")

</div>

See more in this letter from members of NAS, NAE, and NAM.

---

## [Julia VSCode crashes during debugging](https://discourse.julialang.org/t/julia-vscode-crashes-during-debugging/127381)

<div class="topic-metadata">

**Author:** [@leonie25](https://discourse.julialang.org/u/leonie25)\
**Replies:** 2\
**Last updated:** [April 3, 2025, 11:50am UTC](https://discourse.julialang.org/t/julia-vscode-crashes-during-debugging/127381 "2025-04-03T11:50:27Z")

</div>

The same code runs fine in vs code directly, if debug often gets stuck and prints an error message after aborting: \[39186\] signal 15: Terminated: 15 in expression starting at /Users/xz/.vscode/extensions/julialang.langu…

---

## [Getting MutableNamedTuple keys from an empty array](https://discourse.julialang.org/t/getting-mutablenamedtuple-keys-from-an-empty-array/127387)

<div class="topic-metadata">

**Author:** [@s\_amap](https://discourse.julialang.org/u/s_amap)\
**Replies:** 18\
**Last updated:** [April 3, 2025, 8:58am UTC](https://discourse.julialang.org/t/getting-mutablenamedtuple-keys-from-an-empty-array/127387 "2025-04-03T08:58:29Z")

</div>

Hmm, I have an empty Vector of MutableNamedTuples with a specific signature, ie if the array has a single element, then I can recover the keys of the underlying NamedTuple by inspecting the element. But what if the arr…

---

## [Track function on profiler to CUDA documentation](https://discourse.julialang.org/t/track-function-on-profiler-to-cuda-documentation/127654)

<div class="topic-metadata">

**Author:** [@victor\_vhrn](https://discourse.julialang.org/u/victor_vhrn)\
**Replies:** 1\
**Last updated:** [April 3, 2025, 6:38am UTC](https://discourse.julialang.org/t/track-function-on-profiler-to-cuda-documentation/127654 "2025-04-03T06:38:11Z")

</div>

Below, I have a profile report for a experiment I’m trying. The most expensive device function is cusparse::csrmv\_v3\_transpose\_kernel, so I tried to google the function name to read more but couldn’t find it. From CUDA.v…

---

## [How to label multiple histograms in AlgebraOfGraphics](https://discourse.julialang.org/t/how-to-label-multiple-histograms-in-algebraofgraphics/127429)

<div class="topic-metadata">

**Author:** [@Abhro](https://discourse.julialang.org/u/Abhro)\
**Replies:** 5\
**Last updated:** [April 3, 2025, 6:35am UTC](https://discourse.julialang.org/t/how-to-label-multiple-histograms-in-algebraofgraphics/127429 "2025-04-03T06:35:47Z")

</div>

I have a dataset where each column is a list of occurrences. I would like to plot three columns as three histograms within one figure, but I cannot wrap my head around the AlgebraOfGraphics idioms. Within Makie.jl, I wo…

---

## [Anonymous Functions and Overwriting Arguments](https://discourse.julialang.org/t/anonymous-functions-and-overwriting-arguments/127586)

<div class="topic-metadata">

**Author:** [@phK3](https://discourse.julialang.org/u/phK3)\
**Replies:** 7\
**Last updated:** [April 3, 2025, 4:41am UTC](https://discourse.julialang.org/t/anonymous-functions-and-overwriting-arguments/127586 "2025-04-03T04:41:38Z")

</div>

I’ve stumbled upon the following (in my mind) weird behavior: If you define a named function that returns a function f1 based on a parameter a, the returned function stays the same, even if a gets assigned another value…

---

## [Why \`sprand\` does not accept a Distribution arg?](https://discourse.julialang.org/t/why-sprand-does-not-accept-a-distribution-arg/127255)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 10\
**Last updated:** [April 3, 2025, 4:02am UTC](https://discourse.julialang.org/t/why-sprand-does-not-accept-a-distribution-arg/127255 "2025-04-03T04:02:18Z")

</div>

Hi there, I wonder why this cannot work out (What is the available method currently then?). julia\> import SparseArrays.sprand as sprand julia\> import Distributions.Uniform as UD julia\> sprand(5, 6, .7) 5×6 SparseArra…

---

## [Relocating a Julia sysimage](https://discourse.julialang.org/t/relocating-a-julia-sysimage/127646)

<div class="topic-metadata">

**Author:** [@Deduction42](https://discourse.julialang.org/u/Deduction42)\
**Replies:** 1\
**Last updated:** [April 3, 2025, 3:18am UTC](https://discourse.julialang.org/t/relocating-a-julia-sysimage/127646 "2025-04-03T03:18:10Z")

</div>

I’m trying to build a sysimage and relocate it to another machine (actually another Docker image) without re-installing all the packages I precompiled (the precompiled packages take precidence anyway when using the sysim…

---

## [Can we improve JuMP.set\_objective\_coefficient?](https://discourse.julialang.org/t/can-we-improve-jump-set-objective-coefficient/127652)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 5\
**Last updated:** [April 3, 2025, 1:52am UTC](https://discourse.julialang.org/t/can-we-improve-jump-set-objective-coefficient/127652 "2025-04-03T01:52:16Z")

</div>

I find JuMP.set\_objective\_coefficient somewhat favorable, because it is a functional API, and is flexible. e.g., I can use it to write a (pseudo-) Benders’ decomposition algorithm import JuMP, Gurobi; GRB\_ENV = Gurobi.E…

---

## [Detecting pitchfork bifurcations from side branch](https://discourse.julialang.org/t/detecting-pitchfork-bifurcations-from-side-branch/127558)

<div class="topic-metadata">

**Author:** [@danielwe](https://discourse.julialang.org/u/danielwe)\
**Replies:** 4\
**Last updated:** [April 2, 2025, 8:37pm UTC](https://discourse.julialang.org/t/detecting-pitchfork-bifurcations-from-side-branch/127558 "2025-04-02T20:37:52Z")

</div>

@rveltz Is BifurcationKit.jl capable of detecting a pitchfork bifurcation when the continuation approaches along a side branch? I always use detect\_bifurcation=3 as you suggested on slack, and have spent more time than I…

---

## [How to add volt/var curve to PowerModels.jl](https://discourse.julialang.org/t/how-to-add-volt-var-curve-to-powermodels-jl/127611)

<div class="topic-metadata">

**Author:** [@Glon](https://discourse.julialang.org/u/Glon)\
**Replies:** 1\
**Last updated:** [April 2, 2025, 7:40pm UTC](https://discourse.julialang.org/t/how-to-add-volt-var-curve-to-powermodels-jl/127611 "2025-04-02T19:40:06Z")

</div>

Hello, How can I add the volt/var curve as a non-linear expression to powermodels.jl?

---

## [Error with Ipopt.jl and ipopt.out file](https://discourse.julialang.org/t/error-with-ipopt-jl-and-ipopt-out-file/127596)

<div class="topic-metadata">

**Author:** [@nico](https://discourse.julialang.org/u/nico)\
**Replies:** 3\
**Last updated:** [April 2, 2025, 7:16pm UTC](https://discourse.julialang.org/t/error-with-ipopt-jl-and-ipopt-out-file/127596 "2025-04-02T19:16:29Z")

</div>

Hi, I have a simple test code, that used to work and now gives an error. When I run the code the first time, Ipopt manages to solve the toy problem and print the output to a .txt file. The second time I run the code, …

[Previous page](https://discourse.julialang.org/latest.md?page=189)

[Next page](https://discourse.julialang.org/latest.md?page=191)
