# Latest

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

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

**Page:** 190

---

## [About JuMP.is\_solved\_and\_feasible](https://discourse.julialang.org/t/about-jump-is-solved-and-feasible/126868)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 27\
**Last updated:** [April 6, 2025, 1:48am UTC](https://discourse.julialang.org/t/about-jump-is-solved-and-feasible/126868 "2025-04-06T01:48:09Z")

</div>

According to my experience in global optimization, I only encounter these situations so far. # ✅ The foremost indispensable querying functions are \`JuMP.value\` and \`JuMP.objective\_bound\` # Theoretically, \`JuMP.objectiv…

---

## [Is there a tool to detect data races in Julia?](https://discourse.julialang.org/t/is-there-a-tool-to-detect-data-races-in-julia/127750)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 2\
**Last updated:** [April 5, 2025, 10:56pm UTC](https://discourse.julialang.org/t/is-there-a-tool-to-detect-data-races-in-julia/127750 "2025-04-05T22:56:33Z")

</div>

Hi, The question is in the title. I am struggling with a pretty nasty race condition (that I cannot locate) involving concurrent jump computations (having a copy of the model for each tasks). Some tool like https://cl…

---

## [Usage of OrdinaryDiffEqLinear.jl for non-autonomous problems](https://discourse.julialang.org/t/usage-of-ordinarydiffeqlinear-jl-for-non-autonomous-problems/127662)

<div class="topic-metadata">

**Author:** [@ultimatile](https://discourse.julialang.org/u/ultimatile)\
**Replies:** 5\
**Last updated:** [April 5, 2025, 9:34pm UTC](https://discourse.julialang.org/t/usage-of-ordinarydiffeqlinear-jl-for-non-autonomous-problems/127662 "2025-04-05T21:34:16Z")

</div>

I’m trying to use OrdinaryDiffEqLinear.jl 's the state-independent Magnus solvers to solve non-autonomous Linear ODEs. To confirm the usage, I’m trying to solve \\dot{\\boldsymbol{u}}(t)=\\begin{pmatrix}0&-\\alpha t\\\\\\alp…

---

## [How do I color the plotting plan above/under a line in different colors?](https://discourse.julialang.org/t/how-do-i-color-the-plotting-plan-above-under-a-line-in-different-colors/127751)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 1\
**Last updated:** [April 5, 2025, 9:08pm UTC](https://discourse.julialang.org/t/how-do-i-color-the-plotting-plan-above-under-a-line-in-different-colors/127751 "2025-04-05T21:08:06Z")

</div>

Say that I have defined a line: using Plots x\_vals = 1:10 y\_vals = sqrt.(x\_vals) plot(x\_vals, y\_vals) Is there a way that I can color the plot plane, so that the area below the line have one color and the are below …

---

## [Can I build an expression on dual variables and then query with JuMP.dual?](https://discourse.julialang.org/t/can-i-build-an-expression-on-dual-variables-and-then-query-with-jump-dual/127734)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 3\
**Last updated:** [April 5, 2025, 8:53pm UTC](https://discourse.julialang.org/t/can-i-build-an-expression-on-dual-variables-and-then-query-with-jump-dual/127734 "2025-04-05T20:53:14Z")

</div>

Consider this simple example import JuMP, Gurobi model = JuMP.Model(Gurobi.Optimizer) JuMP.@variable(model, x\[1:3\]) JuMP.@constraint(model, c1, x .\<= 2) JuMP.@constraint(model, c2, x .\>= -2) JuMP.@objective(model, Min, …

---

## [Automatic Differentiation of quantum master equation using Zygote](https://discourse.julialang.org/t/automatic-differentiation-of-quantum-master-equation-using-zygote/127715)

<div class="topic-metadata">

**Author:** [@albertomercurio](https://discourse.julialang.org/u/albertomercurio)\
**Replies:** 14\
**Last updated:** [April 5, 2025, 7:14pm UTC](https://discourse.julialang.org/t/automatic-differentiation-of-quantum-master-equation-using-zygote/127715 "2025-04-05T19:14:43Z")

</div>

Hello, I need to differentiate a quantum master equation over a parameter, using QuantumToolbox.jl. Under the hood it is simply an Ordinary Differential Equation involving SciMLOperators. I’m able to differentiate the …

---

## [Custom Optimisers and Projections in Flux/Zygote: Is There a Canonical Way?](https://discourse.julialang.org/t/custom-optimisers-and-projections-in-flux-zygote-is-there-a-canonical-way/127749)

<div class="topic-metadata">

**Author:** [@anscoil](https://discourse.julialang.org/u/anscoil)\
**Replies:** 1\
**Last updated:** [April 5, 2025, 6:42pm UTC](https://discourse.julialang.org/t/custom-optimisers-and-projections-in-flux-zygote-is-there-a-canonical-way/127749 "2025-04-05T18:42:59Z")

</div>

Hi everyone, After spending quite some time solving inverse problems in optics with custom tools and manual algorithmic differentiation, I’ve recently been exploring more canonical approaches using modern ML frameworks. …

---

## [Drawing points in a map with GMT](https://discourse.julialang.org/t/drawing-points-in-a-map-with-gmt/127744)

<div class="topic-metadata">

**Author:** [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Replies:** 5\
**Last updated:** [April 5, 2025, 4:53pm UTC](https://discourse.julialang.org/t/drawing-points-in-a-map-with-gmt/127744 "2025-04-05T16:53:38Z")

</div>

Dear all, I have the code below where I plot south america with GMT: using GMT # Desenhe o mapa coast(region=(-90, -30, -60, 15), proj=:Mercator, xaxis=(annot=10,ticks=5), yaxis=(annot=10,ticks=5), area=:10, land=:brow…

---

## [Continuing pipe operator in Query.jl standalone query operators](https://discourse.julialang.org/t/continuing-pipe-operator-in-query-jl-standalone-query-operators/127745)

<div class="topic-metadata">

**Author:** [@bertlhf](https://discourse.julialang.org/u/bertlhf)\
**Replies:** 0\
**Last updated:** [April 5, 2025, 3:51pm UTC](https://discourse.julialang.org/t/continuing-pipe-operator-in-query-jl-standalone-query-operators/127745 "2025-04-05T15:51:36Z")

</div>

In Query.jl I can easily continue the pipe in a LINQ style query via parenthesis in the @query macro, for instance like this: df = DataFrame(name=\["John", "Sally", "Kirk"\], age=\[23., 42., 59.\], children=\[3,5,2\]) @pipe …

---

## [Makie record\_states and export\_static results in NO interactivity](https://discourse.julialang.org/t/makie-record-states-and-export-static-results-in-no-interactivity/127712)

<div class="topic-metadata">

**Author:** [@bjarthur](https://discourse.julialang.org/u/bjarthur)\
**Replies:** 2\
**Last updated:** [April 5, 2025, 1:57pm UTC](https://discourse.julialang.org/t/makie-record-states-and-export-static-results-in-no-interactivity/127712 "2025-04-05T13:57:41Z")

</div>

i’m trying to save an interactive Makie plot to share with a colleague who doesn’t use julia, but i can’t even get this example in the docs to work. specifically, at the REPL i enter: julia\> using Bonito, WGLMakie jul…

---

## [Simulating the Spherical p=2 Spin Model with DifferentialEquations.jl](https://discourse.julialang.org/t/simulating-the-spherical-p-2-spin-model-with-differentialequations-jl/127640)

<div class="topic-metadata">

**Author:** [@mtarabolo](https://discourse.julialang.org/u/mtarabolo)\
**Replies:** 1\
**Last updated:** [April 5, 2025, 1:04pm UTC](https://discourse.julialang.org/t/simulating-the-spherical-p-2-spin-model-with-differentialequations-jl/127640 "2025-04-05T13:04:11Z")

</div>

Issue: Correctly Implementing the Spherical Constraint I am working on simulating the spherical p=2 spin model using the DifferentialEquations.jl package in Julia. The model consists of N coupled stochastic differential …

---

## [Saving and loading ODEProblems created by ModelingToolkit](https://discourse.julialang.org/t/saving-and-loading-odeproblems-created-by-modelingtoolkit/127629)

<div class="topic-metadata">

**Author:** [@Bill\_Holmes](https://discourse.julialang.org/u/Bill_Holmes)\
**Replies:** 2\
**Last updated:** [April 5, 2025, 1:03pm UTC](https://discourse.julialang.org/t/saving-and-loading-odeproblems-created-by-modelingtoolkit/127629 "2025-04-05T13:03:25Z")

</div>

Hello all. I have question about the saving and loading ODEProblems created from Modeling Toolkit (MTK) models. Specifically, when I create and MTK model, build an ODE problem from that, save the ODE problem using JLD2, …

---

## [Efficiently Read JSON and Create DataFrame](https://discourse.julialang.org/t/efficiently-read-json-and-create-dataframe/41087)

<div class="topic-metadata">

**Author:** [@Dominic\_Pazzula](https://discourse.julialang.org/u/Dominic_Pazzula)\
**Replies:** 23\
**Last updated:** [April 3, 2025, 6:00am UTC](https://discourse.julialang.org/t/efficiently-read-json-and-create-dataframe/41087 "2025-04-03T06:00:28Z")

</div>

I am taking in a simulation from another process written in existing software. It outputs a JSON package of a few tables (stored as array of objects). I am running an optimization in JuMP based on the simulation. The …

---

## [Setting aspect ratio in Plots with PGFPlotsX](https://discourse.julialang.org/t/setting-aspect-ratio-in-plots-with-pgfplotsx/103424)

<div class="topic-metadata">

**Author:** [@wujinq](https://discourse.julialang.org/u/wujinq)\
**Replies:** 1\
**Last updated:** [April 5, 2025, 10:25am UTC](https://discourse.julialang.org/t/setting-aspect-ratio-in-plots-with-pgfplotsx/103424 "2025-04-05T10:25:49Z")

</div>

What I want is to set the aspect ratio to 1 when plotting with Plots.jl and PGFPlotsX backend. My plotting script looks like this: ε\_min = -1.5 ε\_max = 1 kpt\_labels = \[L"-\\mathrm{Y}", L"\\Gamma", L"\\mathrm{Y}"\] kpt\_pos …

---

## [Including a julia binary or library into a mobile app via LynxJS or NativeScript?](https://discourse.julialang.org/t/including-a-julia-binary-or-library-into-a-mobile-app-via-lynxjs-or-nativescript/127729)

<div class="topic-metadata">

**Author:** [@\_admin](https://discourse.julialang.org/u/_admin)\
**Replies:** 2\
**Last updated:** [April 5, 2025, 7:04am UTC](https://discourse.julialang.org/t/including-a-julia-binary-or-library-into-a-mobile-app-via-lynxjs-or-nativescript/127729 "2025-04-05T07:04:11Z")

</div>

Hi together, this is a fantastic community, but I wish there was an IRC chat or something more like a chat. Is it possible to create a mobile application in whatever framework and include a binary or a library compiled…

---

## [A note on how to identify redundant constraints using JuMP](https://discourse.julialang.org/t/a-note-on-how-to-identify-redundant-constraints-using-jump/127504)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 8\
**Last updated:** [April 5, 2025, 4:30am UTC](https://discourse.julialang.org/t/a-note-on-how-to-identify-redundant-constraints-using-jump/127504 "2025-04-05T04:30:15Z")

</div>

(In this topic, whenever I write ==, this really means the Julia’s ==) I use this primal LP model to demonstrate CodeBlock1: import JuMP, Gurobi; GRB\_ENV = Gurobi.Env() primal = JuMP.Model(() -\> Gurobi.Optimizer(GRB\_E…

---

## [Resolving segfault error when attempting to sequentially add constraints to a JuMP model](https://discourse.julialang.org/t/resolving-segfault-error-when-attempting-to-sequentially-add-constraints-to-a-jump-model/127693)

<div class="topic-metadata">

**Author:** [@jcclug](https://discourse.julialang.org/u/jcclug)\
**Replies:** 4\
**Last updated:** [April 4, 2025, 11:25pm UTC](https://discourse.julialang.org/t/resolving-segfault-error-when-attempting-to-sequentially-add-constraints-to-a-jump-model/127693 "2025-04-04T23:25:30Z")

</div>

I am attempting to resolve a segfault error, which seems to be stemming from a line of code that tries to add to an empty dictionary new constraints iteratively in a while loop. I am wondering what the best way would be …

---

## [About the low quality of Base.hash()](https://discourse.julialang.org/t/about-the-low-quality-of-base-hash/127707)

<div class="topic-metadata">

**Author:** [@noteas](https://discourse.julialang.org/u/noteas)\
**Replies:** 8\
**Last updated:** [April 4, 2025, 10:04pm UTC](https://discourse.julialang.org/t/about-the-low-quality-of-base-hash/127707 "2025-04-04T22:04:49Z")

</div>

I was implementing a 1d noise function where hashes of Ints were needed, when I found Base.hash() is of surprisingly low quality. I wonder whether this should be an issue or not. Consider the following example: using P…

---

## [Sensitivity of an SDE with non-diagonal noise](https://discourse.julialang.org/t/sensitivity-of-an-sde-with-non-diagonal-noise/127714)

<div class="topic-metadata">

**Author:** [@stochasticguy](https://discourse.julialang.org/u/stochasticguy)\
**Replies:** 2\
**Last updated:** [April 4, 2025, 9:17pm UTC](https://discourse.julialang.org/t/sensitivity-of-an-sde-with-non-diagonal-noise/127714 "2025-04-04T21:17:10Z")

</div>

Hi everyone, I’m simulating an SDE with non-diagonal noise and I’m trying to compute the gradient (using ForwardDiff) of a loss function that uses the SDE solution. When I try to compute the gradient the following error…

---

## [Automatic Differentiation for existing AMG libraries](https://discourse.julialang.org/t/automatic-differentiation-for-existing-amg-libraries/127722)

<div class="topic-metadata">

**Author:** [@CiREus](https://discourse.julialang.org/u/CiREus)\
**Replies:** 3\
**Last updated:** [April 4, 2025, 7:23pm UTC](https://discourse.julialang.org/t/automatic-differentiation-for-existing-amg-libraries/127722 "2025-04-04T19:23:26Z")

</div>

Hi all, I recently joined Julia for my MSc thesis and was having some doubts about the Automatic Differentiation tools (Enzyme, Zygote, JuliaDiff, etc.). In short, I wanted to use existing linear algebra libraries cont…

---

## [Installing packages and Julia outside of home folder? (minimal user space)](https://discourse.julialang.org/t/installing-packages-and-julia-outside-of-home-folder-minimal-user-space/127685)

<div class="topic-metadata">

**Author:** [@Balinus](https://discourse.julialang.org/u/Balinus)\
**Replies:** 5\
**Last updated:** [April 4, 2025, 6:16pm UTC](https://discourse.julialang.org/t/installing-packages-and-julia-outside-of-home-folder-minimal-user-space/127685 "2025-04-04T18:16:05Z")

</div>

Hello! I am about to work on a HPC with very limited home user space (about 5GB). From experience, I know that my julia projects can quickly add lots of packages, etc into the user’s .julia folder. Is there a documented…

---

## [Bringing (a bit) more guidance for #offtopic?](https://discourse.julialang.org/t/bringing-a-bit-more-guidance-for-offtopic/118470)

<div class="topic-metadata">

**Author:** [@mbauman](https://discourse.julialang.org/u/mbauman)\
**Replies:** 61\
**Last updated:** [April 4, 2025, 4:25pm UTC](https://discourse.julialang.org/t/bringing-a-bit-more-guidance-for-offtopic/118470 "2025-04-04T16:25:03Z")

</div>

We don’t really have much general guidance around what makes for a good topic around here, but many categories have fairly robust “about” sections that describe what makes for a good post. One notable exception is Offto…

---

## [Solver agnostic way to control warm starting](https://discourse.julialang.org/t/solver-agnostic-way-to-control-warm-starting/118737)

<div class="topic-metadata">

**Author:** [@sstroemer](https://discourse.julialang.org/u/sstroemer)\
**Replies:** 5\
**Last updated:** [April 4, 2025, 3:47pm UTC](https://discourse.julialang.org/t/solver-agnostic-way-to-control-warm-starting/118737 "2025-04-04T15:47:55Z")

</div>

Is there a way to control/prevent how a LP solver may use information from a previous solve to warm start? I know, e.g., for Gurobi there is LPWarmStart, but I struggle to prevent that for example when using HiGHS. What…

---

## [Poor openBLAS performance for large matrix multiply?](https://discourse.julialang.org/t/poor-openblas-performance-for-large-matrix-multiply/119354)

<div class="topic-metadata">

**Author:** [@gluon-free](https://discourse.julialang.org/u/gluon-free)\
**Replies:** 17\
**Last updated:** [April 4, 2025, 11:03am UTC](https://discourse.julialang.org/t/poor-openblas-performance-for-large-matrix-multiply/119354 "2025-04-04T11:03:02Z")

</div>

I am new to Julia and not an experienced programmer. Playing with things and trying simple benchmarks for my new Ryzen 9950x. This one rises a question: using MKL using CUDA, LinearAlgebra, Pkg, BenchmarkTools let N = …

---

## [Generator sometimes works, sometimes not](https://discourse.julialang.org/t/generator-sometimes-works-sometimes-not/127701)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 3\
**Last updated:** [April 4, 2025, 3:08pm UTC](https://discourse.julialang.org/t/generator-sometimes-works-sometimes-not/127701 "2025-04-04T15:08:10Z")

</div>

It’s about Generator Expressions. I used to only know about sum(i for i in 1:I). But today I happened to discover that we can also write minimum(i for i in 1:I). I’m thus intrigued: Do all function who takes an Vect…

---

## [Reading from either stdout or stderr of spawned process](https://discourse.julialang.org/t/reading-from-either-stdout-or-stderr-of-spawned-process/127690)

<div class="topic-metadata">

**Author:** [@circonflexe](https://discourse.julialang.org/u/circonflexe)\
**Replies:** 3\
**Last updated:** [April 4, 2025, 11:24am UTC](https://discourse.julialang.org/t/reading-from-either-stdout-or-stderr-of-spawned-process/127690 "2025-04-04T11:24:57Z")

</div>

My code runs an external process (in this case, Pari/GP) which might produce output on either its stdout or stderr file descriptors. I communicate with the process in the following way: pin, pout = Pipe(), Pipe() proces…

---

## [Quirks when benchmarking allocations of StaticArrays in anonymous functions](https://discourse.julialang.org/t/quirks-when-benchmarking-allocations-of-staticarrays-in-anonymous-functions/127695)

<div class="topic-metadata">

**Author:** [@mxhbl](https://discourse.julialang.org/u/mxhbl)\
**Replies:** 2\
**Last updated:** [April 4, 2025, 9:48am UTC](https://discourse.julialang.org/t/quirks-when-benchmarking-allocations-of-staticarrays-in-anonymous-functions/127695 "2025-04-04T09:48:50Z")

</div>

While benchmarking allocations I stumbled upon some strange behavior that I cannot explain. I reduced it to the following example. using StaticArrays, BenchmarkTools vec = \[1, 2, 3\] svec = SA\[1, 2, 3\] fnamed(x) = 0 fan…

---

## [Locally solved status with Gurobi](https://discourse.julialang.org/t/locally-solved-status-with-gurobi/111539)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 3\
**Last updated:** [April 4, 2025, 4:46am UTC](https://discourse.julialang.org/t/locally-solved-status-with-gurobi/111539 "2025-04-04T04:46:51Z")

</div>

I am solving some LPs using Gurobi and the interior point method and without crossover. I notice that it returns the solution to be suboptimal and terminates with status LOCALLY\_SOLVED, which, according to documentation,…

---

## [How do I break out of an infinite loop in REPL in 1.12?](https://discourse.julialang.org/t/how-do-i-break-out-of-an-infinite-loop-in-repl-in-1-12/127691)

<div class="topic-metadata">

**Author:** [@R.T.A.M](https://discourse.julialang.org/u/R.T.A.M)\
**Replies:** 4\
**Last updated:** [April 4, 2025, 2:14am UTC](https://discourse.julialang.org/t/how-do-i-break-out-of-an-infinite-loop-in-repl-in-1-12/127691 "2025-04-04T02:14:39Z")

</div>

While testing the new 1.12 features I tried the following in a REPL: f(x) = while x end f(true) The infinite loop works, so is there a way to break out of it in the REPL using CTRL+ D? Now that there are interactive a…

---

## [How to stop a cell in VS Code](https://discourse.julialang.org/t/how-to-stop-a-cell-in-vs-code/80010)

<div class="topic-metadata">

**Author:** [@chadagreene](https://discourse.julialang.org/u/chadagreene)\
**Replies:** 22\
**Last updated:** [April 4, 2025, 1:48am UTC](https://discourse.julialang.org/t/how-to-stop-a-cell-in-vs-code/80010 "2025-04-04T01:48:57Z")

</div>

How do I stop a cell that’s running in VS Code? The Stop button does nothing at all, nor does Ctrl+C. Since I took this screenshot, the cell chugged along for another 10 minutes until I finally gave up and had to restart…

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

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