# \#jump

**URL:** https://discourse.julialang.org/tag/jump/28.md?page=1

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

**Page:** 2

---

## [Seeking low rank solution for two PSD matrices via \`SDPLR.jl\` in \`JuMP\`](https://discourse.julialang.org/t/seeking-low-rank-solution-for-two-psd-matrices-via-sdplr-jl-in-jump/135823)

<div class="topic-metadata">

**Author:** [@Shuvomoy\_Das\_Gupta](https://discourse.julialang.org/u/Shuvomoy_Das_Gupta)\
**Replies:** 9\
**Last updated:** [February 26, 2026, 2:24pm UTC](https://discourse.julialang.org/t/seeking-low-rank-solution-for-two-psd-matrices-via-sdplr-jl-in-jump/135823 "2026-02-26T14:24:46Z")

</div>

I am trying the SDPLR.jl solver in JuMP for finding low-rank solutions to SDPs and it is working quite nicely when the underlying semidefinite optimization problem has only one PSD variable X. How do I apply SDPLR.jl in J…

---

## [Get varRefs of whole container](https://discourse.julialang.org/t/get-varrefs-of-whole-container/135726)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 4\
**Last updated:** [February 19, 2026, 7:44pm UTC](https://discourse.julialang.org/t/get-varrefs-of-whole-container/135726 "2026-02-19T19:44:16Z")

</div>

Is there a way to get the variable refs of the whole container? julia\> @variable(model, u\[1:2\]) 2-element Vector{VariableRef}: u\[1\] u\[2\] julia\> variable\_by\_name(model, "u\[2\]") u\[2\] How do I get all u as Vector{Varia…

---

## [Why does \`JuMP.set\_objective\_coefficient(m, x, c::Float64)\` have allocations?](https://discourse.julialang.org/t/why-does-jump-set-objective-coefficient-m-x-c-float64-have-allocations/135717)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 7\
**Last updated:** [February 18, 2026, 1:31pm UTC](https://discourse.julialang.org/t/why-does-jump-set-objective-coefficient-m-x-c-float64-have-allocations/135717 "2026-02-18T13:31:43Z")

</div>

I’m very curious here. Where can this API lead to allocations so that it has even more allocations that @objective (in number of allocations, though not in total memory size) when I want to reset the objective function? …

---

## [(JuMP) Best way to implement sequential convex (or quadratic) programming](https://discourse.julialang.org/t/jump-best-way-to-implement-sequential-convex-or-quadratic-programming/135669)

<div class="topic-metadata">

**Author:** [@jackyarndley](https://discourse.julialang.org/u/jackyarndley)\
**Replies:** 4\
**Last updated:** [February 17, 2026, 2:43am UTC](https://discourse.julialang.org/t/jump-best-way-to-implement-sequential-convex-or-quadratic-programming/135669 "2026-02-17T02:43:39Z")

</div>

Hi all, I work with sequential convex programming (SCP) for trajectory optimization, which is where a nonlinear programming problem is approximated by a sequence of convex linearizations. The structure of the problem do…

---

## [Problems with complex values in optimization objective (JuMP)](https://discourse.julialang.org/t/problems-with-complex-values-in-optimization-objective-jump/135504)

<div class="topic-metadata">

**Author:** [@dnldlg](https://discourse.julialang.org/u/dnldlg)\
**Replies:** 5\
**Last updated:** [February 9, 2026, 12:35am UTC](https://discourse.julialang.org/t/problems-with-complex-values-in-optimization-objective-jump/135504 "2026-02-09T00:35:33Z")

</div>

When using complex valued numbers in the objective function, get an error that I struggle to understand. This minimal example illustrates it very well. Let’s say we want to find parameters of a parametrised unitay matrix…

---

## [Is there a reason to use \`@expression\`? I think it's redundant](https://discourse.julialang.org/t/is-there-a-reason-to-use-expression-i-think-its-redundant/131829)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 14\
**Last updated:** [February 8, 2026, 1:04am UTC](https://discourse.julialang.org/t/is-there-a-reason-to-use-expression-i-think-its-redundant/131829 "2026-02-08T01:04:58Z")

</div>

Sometimes I build incorrect expressions obliviously, but JuMP won’t throw an ERROR. Is this good? import JuMP, Gurobi model1 = JuMP.Model(Gurobi.Optimizer); JuMP.@variable(model1, x1 \>= 1); JuMP.@objective(model1, Min, …

---

## [\[ANN\] AustralianElectricityMarkets.jl: Simulate the Australian electricity market](https://discourse.julialang.org/t/ann-australianelectricitymarkets-jl-simulate-the-australian-electricity-market/135383)

<div class="topic-metadata">

**Author:** [@captainoblivious](https://discourse.julialang.org/u/captainoblivious)\
**Replies:** 1\
**Last updated:** [February 1, 2026, 3:16pm UTC](https://discourse.julialang.org/t/ann-australianelectricitymarkets-jl-simulate-the-australian-electricity-market/135383 "2026-02-01T15:16:54Z")

</div>

Announcing AustralianElectricityMarkets.jl I am excited to announce the release of AustralianElectricityMarkets.jl, a Julia package designed to bridge the Julia energy modelling ecosystem with data from the Australian En…

---

## [Debugging Container of Constraints in JuMP](https://discourse.julialang.org/t/debugging-container-of-constraints-in-jump/122509)

<div class="topic-metadata">

**Author:** [@lamont](https://discourse.julialang.org/u/lamont)\
**Replies:** 9\
**Last updated:** [January 28, 2026, 7:56am UTC](https://discourse.julialang.org/t/debugging-container-of-constraints-in-jump/122509 "2026-01-28T07:56:50Z")

</div>

I’m trying to debug a container of constraints built using the vectorized linear algebra syntax and trying to go in through the MOI interface to check the constraint value based on the start\_value of the variables. I’ve…

---

## [How to create a standalone \`JuMP.Containers.SparseAxisArray{Float64, n, Tuple{Int, ...}}\`?](https://discourse.julialang.org/t/how-to-create-a-standalone-jump-containers-sparseaxisarray-float64-n-tuple-int/135253)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 2\
**Last updated:** [January 26, 2026, 12:02am UTC](https://discourse.julialang.org/t/how-to-create-a-standalone-jump-containers-sparseaxisarray-float64-n-tuple-int/135253 "2026-01-26T00:02:02Z")

</div>

I’m interested in the X per se, as a container of a set of Float64 numbers (not depending on some JuMP variable x built beforehand). julia\> import JuMP, Gurobi julia\> model = JuMP.direct\_model(Gurobi.Optimizer()); jul…

---

## [To what extent can JuMP's macro identify input expression and generate optimized backend codes?](https://discourse.julialang.org/t/to-what-extent-can-jumps-macro-identify-input-expression-and-generate-optimized-backend-codes/134983)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 12\
**Last updated:** [January 13, 2026, 6:24am UTC](https://discourse.julialang.org/t/to-what-extent-can-jumps-macro-identify-input-expression-and-generate-optimized-backend-codes/134983 "2026-01-13T06:24:05Z")

</div>

JuMP’s macros are like magic black boxes to me. I’ve learned that one should generally make use of @variable, @constraints and @objective when constructing a model from scratch. But I have some small but nontrivial quest…

---

## [Specifying objective coefficient when creating a JuMP variable](https://discourse.julialang.org/t/specifying-objective-coefficient-when-creating-a-jump-variable/134923)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 5\
**Last updated:** [January 12, 2026, 3:36am UTC](https://discourse.julialang.org/t/specifying-objective-coefficient-when-creating-a-jump-variable/134923 "2026-01-12T03:36:47Z")

</div>

What about adding a kwarg option obj in JuMP.@variable so that we can specify objective coefficients? just like the existing lower\_bound? julia\> import JuMP julia\> model = JuMP.Model(); julia\> JuMP.set\_objective\_sense…

---

## [Creating efficient MOI wrapper for different cones and ordering them by types](https://discourse.julialang.org/t/creating-efficient-moi-wrapper-for-different-cones-and-ordering-them-by-types/130031)

<div class="topic-metadata">

**Author:** [@yuwenchen95](https://discourse.julialang.org/u/yuwenchen95)\
**Replies:** 4\
**Last updated:** [January 5, 2026, 4:19pm UTC](https://discourse.julialang.org/t/creating-efficient-moi-wrapper-for-different-cones-and-ordering-them-by-types/130031 "2026-01-05T16:19:12Z")

</div>

I’m considering to create a MOI wrapper for CuClarabel, where users can input different types of cones in arbitrary order while the MOI wrapper is able to order them in a predefined order and then pass it to CuClarabel. …

---

## [A tight formulation of a specific kind of convex PWL curve](https://discourse.julialang.org/t/a-tight-formulation-of-a-specific-kind-of-convex-pwl-curve/134822)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 3\
**Last updated:** [January 5, 2026, 3:56am UTC](https://discourse.julialang.org/t/a-tight-formulation-of-a-specific-kind-of-convex-pwl-curve/134822 "2026-01-05T03:56:25Z")

</div>

I’ve read some piecewise linear (PWL)-related stuff from JuMP’s doc. It appears that I haven’t seen the particular formulation below, which I think is worth mentioning. It’s from the generation cost curve of generators …

---

## [Problem with concurrent calls to HiGHS solver (via JuMP) on Windows](https://discourse.julialang.org/t/problem-with-concurrent-calls-to-highs-solver-via-jump-on-windows/134631)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 2\
**Last updated:** [December 18, 2025, 9:16pm UTC](https://discourse.julialang.org/t/problem-with-concurrent-calls-to-highs-solver-via-jump-on-windows/134631 "2025-12-18T21:16:43Z")

</div>

Hi, I wanted to report some crashes observed when solving concurrently (multi-thread) different LP problems via JuMP with HiGHS solver: EXCEPTION\_ACCESS\_VIOLATION dans HighsTaskExecutor… No crashes observed on Linu…

---

## [Retrieve current solution when termination\_status is TIME\_LIMIT](https://discourse.julialang.org/t/retrieve-current-solution-when-termination-status-is-time-limit/134464)

<div class="topic-metadata">

**Author:** [@marilena](https://discourse.julialang.org/u/marilena)\
**Replies:** 7\
**Last updated:** [December 12, 2025, 10:02am UTC](https://discourse.julialang.org/t/retrieve-current-solution-when-termination-status-is-time-limit/134464 "2025-12-12T10:02:56Z")

</div>

Hello to the community! I am using Julia v1.9.3 , with packages JuMP v1.23.2 and Gurobi v1.3.1. I am solving an LP using Barrier, and I specify a time limit. gurobi\_env = Gurobi.Env() Solver = optimizer\_with\_attributes…

---

## [Is ParametricOptInterface needed to define and use parameters in JuMP?](https://discourse.julialang.org/t/is-parametricoptinterface-needed-to-define-and-use-parameters-in-jump/134498)

<div class="topic-metadata">

**Author:** [@zdenek\_hurak](https://discourse.julialang.org/u/zdenek_hurak)\
**Replies:** 4\
**Last updated:** [December 11, 2025, 11:12pm UTC](https://discourse.julialang.org/t/is-parametricoptinterface-needed-to-define-and-use-parameters-in-jump/134498 "2025-12-11T23:12:58Z")

</div>

I feel puzzled when it comes to the role of ParametricOptInterface.jl (POI). I think I understand its general mission (in fact the motivating tutorial example Rolling horizon problems · JuMP directed me to it). But it ap…

---

## [Modeling min() in JuMP at scale: SOS1 stops converging, Big-M is numerically unstable](https://discourse.julialang.org/t/modeling-min-in-jump-at-scale-sos1-stops-converging-big-m-is-numerically-unstable/134251)

<div class="topic-metadata">

**Author:** [@Bhanuprakash\_Bahoju](https://discourse.julialang.org/u/Bhanuprakash_Bahoju)\
**Replies:** 11\
**Last updated:** [December 2, 2025, 11:13am UTC](https://discourse.julialang.org/t/modeling-min-in-jump-at-scale-sos1-stops-converging-big-m-is-numerically-unstable/134251 "2025-12-02T11:13:52Z")

</div>

I’m implementing a formula engine in JuMP where users can define expressions like: z = min(x, y) and I translate these automatically into JuMP constraints. I have tried two formulations: 1. SOS1 formulation function…

---

## [Lagrange multipliers of a \`VectorNonlinearOracle\` after solve](https://discourse.julialang.org/t/lagrange-multipliers-of-a-vectornonlinearoracle-after-solve/134236)

<div class="topic-metadata">

**Author:** [@franckgaga](https://discourse.julialang.org/u/franckgaga)\
**Replies:** 1\
**Last updated:** [November 30, 2025, 7:39pm UTC](https://discourse.julialang.org/t/lagrange-multipliers-of-a-vectornonlinearoracle-after-solve/134236 "2025-11-30T19:39:32Z")

</div>

I have a nonlinear optimization problem that relies on MOI.VectorNonlinearOracle for the constraints. I would like to compute the Hessian of the Langrangian at the optimum after solving, or, in other words, fetching the r…

---

## [DiffOpt / JuMP: zero gradient for variable fixed by equality constraint](https://discourse.julialang.org/t/diffopt-jump-zero-gradient-for-variable-fixed-by-equality-constraint/134041)

<div class="topic-metadata">

**Author:** [@yeomoon](https://discourse.julialang.org/u/yeomoon)\
**Replies:** 12\
**Last updated:** [November 28, 2025, 5:36am UTC](https://discourse.julialang.org/t/diffopt-jump-zero-gradient-for-variable-fixed-by-equality-constraint/134041 "2025-11-28T05:36:03Z")

</div>

Hi all, I’m trying to train a neural network that is followed by a differentiable optimization layer in Julia. Conceptually it’s: Flux NN → Economic Dispatch layer (ED layer) → Loss The ED layer is implemented as a …

---

## [HiGHS instance and model when used in a shared library](https://discourse.julialang.org/t/highs-instance-and-model-when-used-in-a-shared-library/133823)

<div class="topic-metadata">

**Author:** [@asprionj](https://discourse.julialang.org/u/asprionj)\
**Replies:** 7\
**Last updated:** [November 24, 2025, 9:29am UTC](https://discourse.julialang.org/t/highs-instance-and-model-when-used-in-a-shared-library/133823 "2025-11-24T09:29:26Z")

</div>

I use JuMP.jl with HiGHS.jl to solve an optimisation problem, then generate a shared library for this using JuliaC.jl. The shared library is used within a larger software. It is loaded once (at startup), and then always …

---

## [Efficient way to implement multi-index nonlinear constraints in ExaModels? (PCE-expanded AC power flow)](https://discourse.julialang.org/t/efficient-way-to-implement-multi-index-nonlinear-constraints-in-examodels-pce-expanded-ac-power-flow/133934)

<div class="topic-metadata">

**Author:** [@yanlingogo](https://discourse.julialang.org/u/yanlingogo)\
**Replies:** 4\
**Last updated:** [November 24, 2025, 4:24am UTC](https://discourse.julialang.org/t/efficient-way-to-implement-multi-index-nonlinear-constraints-in-examodels-pce-expanded-ac-power-flow/133934 "2025-11-24T04:24:44Z")

</div>

Hi all, I’m implementing a PCE-expanded AC power flow model. In JuMP, one of my nonlinear constraints looks like: @constraint(opf, pfP\[i=1:n\_bus, k=1:K\], p\[i,k\] \* T2\_diag\[k\] == sum( (G\[i,j\]\*(E\[i…

---

## [Banded Jacobian of the constraints](https://discourse.julialang.org/t/banded-jacobian-of-the-constraints/133766)

<div class="topic-metadata">

**Author:** [@Ceserik](https://discourse.julialang.org/u/Ceserik)\
**Replies:** 4\
**Last updated:** [November 10, 2025, 6:22am UTC](https://discourse.julialang.org/t/banded-jacobian-of-the-constraints/133766 "2025-11-10T06:22:04Z")

</div>

Hello, I am using JuMP for solving optimal control of a car on a track. I am trying to reformulate my problem, to improve the sparsity pattern of jacobian of constraints and Hessian of Lagrangian. I have managed to get …

---

## [Help refining an MINLP and selecting an optimiser to make solving faster / possible](https://discourse.julialang.org/t/help-refining-an-minlp-and-selecting-an-optimiser-to-make-solving-faster-possible/133758)

<div class="topic-metadata">

**Author:** [@HarrisonWilde](https://discourse.julialang.org/u/HarrisonWilde)\
**Replies:** 4\
**Last updated:** [November 10, 2025, 12:00am UTC](https://discourse.julialang.org/t/help-refining-an-minlp-and-selecting-an-optimiser-to-make-solving-faster-possible/133758 "2025-11-10T00:00:06Z")

</div>

I am building a problem that involves making choices on which of two levers (or both) to intervene on products in a portfolio to alter their characteristics in order to attain a target average “score” value derived from …

---

## [Trouble using ParametricOptInterface when a parameter appears inside a min() expression in JuMP](https://discourse.julialang.org/t/trouble-using-parametricoptinterface-when-a-parameter-appears-inside-a-min-expression-in-jump/133661)

<div class="topic-metadata">

**Author:** [@leo.ch.97](https://discourse.julialang.org/u/leo.ch.97)\
**Replies:** 2\
**Last updated:** [November 4, 2025, 7:03pm UTC](https://discourse.julialang.org/t/trouble-using-parametricoptinterface-when-a-parameter-appears-inside-a-min-expression-in-jump/133661 "2025-11-04T19:03:27Z")

</div>

Hi everyone! I’m trying to extend a large (mixed-integer) linear model to handle Parameters, using the ParametricOptInterface.jl package. However, I’m running into an issue when a parameter is used inside a min() funct…

---

## [Julia crashes without reporting anything when I optimize a vector of models in parallel](https://discourse.julialang.org/t/julia-crashes-without-reporting-anything-when-i-optimize-a-vector-of-models-in-parallel/131801)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 22\
**Last updated:** [October 25, 2025, 1:55am UTC](https://discourse.julialang.org/t/julia-crashes-without-reporting-anything-when-i-optimize-a-vector-of-models-in-parallel/131801 "2025-10-25T01:55:47Z")

</div>

My setting is julia\> Threads.nthreads() 4 I can’t figure out what is happening here. The behavior is julia\> parallel\_CG!(B, θ, β, μ, ν) ┌ Info: before entering @threads │ sub\_j\_vec = │ 4-element Vector{Int64}: │ …

---

## [HiGHS solver \>100x slower than Gurobi with bilinear big-m relaxation](https://discourse.julialang.org/t/highs-solver-100x-slower-than-gurobi-with-bilinear-big-m-relaxation/114905)

<div class="topic-metadata">

**Author:** [@this\_josh](https://discourse.julialang.org/u/this_josh)\
**Replies:** 3\
**Last updated:** [October 22, 2025, 6:24pm UTC](https://discourse.julialang.org/t/highs-solver-100x-slower-than-gurobi-with-bilinear-big-m-relaxation/114905 "2025-10-22T18:24:08Z")

</div>

I’m not sure where to put this as it’s not specifically an issue, and I’m not sure who would improve it. For my research I need to solve a bilinear model and I’d like to use an open-source solver ideally. ▶ Rough exampl…

---

## [JuMP reports an error when attempting to sum the empty DenseAxisArray as the objective function](https://discourse.julialang.org/t/jump-reports-an-error-when-attempting-to-sum-the-empty-denseaxisarray-as-the-objective-function/133332)

<div class="topic-metadata">

**Author:** [@karei](https://discourse.julialang.org/u/karei)\
**Replies:** 7\
**Last updated:** [October 22, 2025, 1:15am UTC](https://discourse.julialang.org/t/jump-reports-an-error-when-attempting-to-sum-the-empty-denseaxisarray-as-the-objective-function/133332 "2025-10-22T01:15:57Z")

</div>

Minimal Reproducible Example using JuMP set = Symbol\[\] m = Model() @variable(m, x\[i in set\]) @objective(m, Min, sum(x; init=0)) In this case, optimization is not impossible; rather, an unexpected error occurs when the …

---

## [How can I stop a Gurobi solve in JuMP in real time (like Ctrl+C) and still keep the solution?](https://discourse.julialang.org/t/how-can-i-stop-a-gurobi-solve-in-jump-in-real-time-like-ctrl-c-and-still-keep-the-solution/132841)

<div class="topic-metadata">

**Author:** [@amit\_97](https://discourse.julialang.org/u/amit_97)\
**Replies:** 11\
**Last updated:** [October 20, 2025, 1:47am UTC](https://discourse.julialang.org/t/how-can-i-stop-a-gurobi-solve-in-jump-in-real-time-like-ctrl-c-and-still-keep-the-solution/132841 "2025-10-20T01:47:50Z")

</div>

I am using JuMP with Gurobi.jl to solve a MIP. In Julia, pressing Ctrl+C usually kills the entire Julia process instead of just stopping Gurobi. My goal is: Stop the optimization at any arbitrary time (not using MIPG…

---

## [Coloring in JuMP with start values](https://discourse.julialang.org/t/coloring-in-jump-with-start-values/133106)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 7\
**Last updated:** [October 14, 2025, 12:47am UTC](https://discourse.julialang.org/t/coloring-in-jump-with-start-values/133106 "2025-10-14T00:47:59Z")

</div>

Hi there, I am tinkering with an optimal coloring algorithm for sparse autodiff. Here is the most basic constraint programming formulation I could find for partial distance-2 column coloring. Problem statement: color a…

---

## [JuMP : how to read a lp problem from file (lp FORMAT) with variables names?](https://discourse.julialang.org/t/jump-how-to-read-a-lp-problem-from-file-lp-format-with-variables-names/133008)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 2\
**Last updated:** [October 9, 2025, 7:17pm UTC](https://discourse.julialang.org/t/jump-how-to-read-a-lp-problem-from-file-lp-format-with-variables-names/133008 "2025-10-09T19:17:49Z")

</div>

Hi, I read a linear problem: my\_model = JuMP.read\_from\_file("toto.lp") but it seems that the variable names used in the file are lost and I wonder how to display the solution: A JuMP Model ├ solver: none ├ objective\_…

[Previous page](https://discourse.julialang.org/tag/jump/28.md?match_all_tags=true&tags%5B%5D=jump)

[Next page](https://discourse.julialang.org/tag/jump/28.md?match_all_tags=true&page=2&tags%5B%5D=jump)
