# \#gurobi

**URL:** https://discourse.julialang.org/tag/gurobi/781.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

---

## [CI integration failed with Gurobi.jl in environment](https://discourse.julialang.org/t/ci-integration-failed-with-gurobi-jl-in-environment/126236)

<div class="topic-metadata">

**Author:** [@Betristor](https://discourse.julialang.org/u/Betristor)\
**Replies:** 13\
**Last updated:** [August 7, 2025, 8:40am UTC](https://discourse.julialang.org/t/ci-integration-failed-with-gurobi-jl-in-environment/126236 "2025-08-07T08:40:01Z")

</div>

I have a Julia package in development which has Gurobi.jl in environment as an available solver. Somehow, the github CI integration is against the Gurobi.jl pre-compilation since no license could be found on github actio…

---

## [How do I set up Gurobi solver for JuMP with Web License Service (WLS) license?](https://discourse.julialang.org/t/how-do-i-set-up-gurobi-solver-for-jump-with-web-license-service-wls-license/131409)

<div class="topic-metadata">

**Author:** [@leonie25](https://discourse.julialang.org/u/leonie25)\
**Replies:** 6\
**Last updated:** [August 7, 2025, 2:20am UTC](https://discourse.julialang.org/t/how-do-i-set-up-gurobi-solver-for-jump-with-web-license-service-wls-license/131409 "2025-08-07T02:20:22Z")

</div>

How do I set up Gurobi solver for JuMP with Web License Service (WLS) license?

---

## [Julia crashed when using Gurobi](https://discourse.julialang.org/t/julia-crashed-when-using-gurobi/131402)

<div class="topic-metadata">

**Author:** [@Z\_M](https://discourse.julialang.org/u/Z_M)\
**Replies:** 3\
**Last updated:** [August 6, 2025, 11:45pm UTC](https://discourse.julialang.org/t/julia-crashed-when-using-gurobi/131402 "2025-08-06T23:45:12Z")

</div>

I used JuMP and use Gurobi. But julia crashed, and the log is as follows: Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks. Exception: EXCEPT…

---

## [Gurobi fails to properly report an ERROR, when NonConvex is 0](https://discourse.julialang.org/t/gurobi-fails-to-properly-report-an-error-when-nonconvex-is-0/130932)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 5\
**Last updated:** [July 27, 2025, 3:15am UTC](https://discourse.julialang.org/t/gurobi-fails-to-properly-report-an-error-when-nonconvex-is-0/130932 "2025-07-27T03:15:45Z")

</div>

I discover this behavior of Gurobi, which I think is not exactly expected. According to Gurobi’s doc, if NonConvex is set to 0, then Gurobi should ERROR when a nonconvex quadratic constraint is present. julia\> import J…

---

## [Excessive memory usage when adding millions of variables to a JuMP Model](https://discourse.julialang.org/t/excessive-memory-usage-when-adding-millions-of-variables-to-a-jump-model/130163)

<div class="topic-metadata">

**Author:** [@Walter](https://discourse.julialang.org/u/Walter)\
**Replies:** 12\
**Last updated:** [July 12, 2025, 3:28pm UTC](https://discourse.julialang.org/t/excessive-memory-usage-when-adding-millions-of-variables-to-a-jump-model/130163 "2025-07-12T15:28:52Z")

</div>

Hi, I’m solving a large MIP using JuMP + Gurobi. My approach dynamically adds variables to the model (similar to column generation). In some cases, up to 10 000 000 variables are added within a single step. During this …

---

## [Memory corruption error in Julia: "Incorrect checksum for freed object" when running a JuMP/Gurobi model](https://discourse.julialang.org/t/memory-corruption-error-in-julia-incorrect-checksum-for-freed-object-when-running-a-jump-gurobi-model/130522)

<div class="topic-metadata">

**Author:** [@leonie25](https://discourse.julialang.org/u/leonie25)\
**Replies:** 5\
**Last updated:** [July 7, 2025, 5:15am UTC](https://discourse.julialang.org/t/memory-corruption-error-in-julia-incorrect-checksum-for-freed-object-when-running-a-jump-gurobi-model/130522 "2025-07-07T05:15:04Z")

</div>

I am encountering a memory corruption error when running my optimization model using JuMP with the Gurobi solver in Julia. The error message is as follows: julia(30498,0x2012a5f00) malloc: Incorrect checksum for freed o…

---

## [Gurobi gets stuck after "Loaded MIP start from previous solve"](https://discourse.julialang.org/t/gurobi-gets-stuck-after-loaded-mip-start-from-previous-solve/130406)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 13\
**Last updated:** [July 6, 2025, 5:34am UTC](https://discourse.julialang.org/t/gurobi-gets-stuck-after-loaded-mip-start-from-previous-solve/130406 "2025-07-06T05:34:33Z")

</div>

I’m writing the Benders’ decomposition for an MIP and encountering a very weird behavior of Gurobi. There is an MIP that I need to modify its obj and repeatedly re-solve (Gurobi can (according to its Logging) Loaded MIP…

---

## [Gurobi reports OPTIMAL on a QP having a huge MaxVio](https://discourse.julialang.org/t/gurobi-reports-optimal-on-a-qp-having-a-huge-maxvio/129645)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 8\
**Last updated:** [July 4, 2025, 1:08am UTC](https://discourse.julialang.org/t/gurobi-reports-optimal-on-a-qp-having-a-huge-maxvio/129645 "2025-07-04T01:08:16Z")

</div>

julia\> JuMP.unset\_silent(outer) Set parameter OutputFlag to value 1 julia\> JuMP.optimize!(outer) Gurobi Optimizer version 12.0.2 build v12.0.2rc0 (win64 - Windows 11.0 (26100.2)) CPU model: 11th Gen Intel(R) Core(TM) i…

---

## [Gurobi's Root relaxation objective in MIP Logging is Not a natural LP relaxation one](https://discourse.julialang.org/t/gurobis-root-relaxation-objective-in-mip-logging-is-not-a-natural-lp-relaxation-one/130337)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 3\
**Last updated:** [June 30, 2025, 10:57pm UTC](https://discourse.julialang.org/t/gurobis-root-relaxation-objective-in-mip-logging-is-not-a-natural-lp-relaxation-one/130337 "2025-06-30T22:57:11Z")

</div>

I’m not sure whether this is reasonable, but it is somewhat misleading. Compare the 2 lines where I draw 3 orange balls. julia\> import JuMP, Gurobi; GRB\_ENV = Gurobi.Env(); Set parameter Username Set parameter LicenseI…

---

## [Gurobi's trial solution is numerically weird on a primitive CTPLN model](https://discourse.julialang.org/t/gurobis-trial-solution-is-numerically-weird-on-a-primitive-ctpln-model/130294)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 1\
**Last updated:** [June 29, 2025, 11:11pm UTC](https://discourse.julialang.org/t/gurobis-trial-solution-is-numerically-weird-on-a-primitive-ctpln-model/130294 "2025-06-29T23:11:27Z")

</div>

Although this might not necessarily be deemed a bug, it’s certainly a bit weird. Why? julia\> import JuMP, Gurobi; GRB\_ENV = Gurobi.Env(); Set parameter Username Set parameter LicenseID to value 2663413 Academic license …

---

## [A toy example triggering Gurobi's Warning: Model contains variables with very large bounds participating in product terms](https://discourse.julialang.org/t/a-toy-example-triggering-gurobis-warning-model-contains-variables-with-very-large-bounds-participating-in-product-terms/127295)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 13\
**Last updated:** [June 11, 2025, 7:32pm UTC](https://discourse.julialang.org/t/a-toy-example-triggering-gurobis-warning-model-contains-variables-with-very-large-bounds-participating-in-product-terms/127295 "2025-06-11T19:32:30Z")

</div>

It’s common to find Gurobi logging the following Warning in QCP Warning: Model contains variables with very large bounds participating in product terms. Presolve was not able to compute smaller bounds for these variabl…

---

## [Gurobi compute IIS in Julia](https://discourse.julialang.org/t/gurobi-compute-iis-in-julia/129391)

<div class="topic-metadata">

**Author:** [@cby](https://discourse.julialang.org/u/cby)\
**Replies:** 1\
**Last updated:** [May 27, 2025, 8:37pm UTC](https://discourse.julialang.org/t/gurobi-compute-iis-in-julia/129391 "2025-05-27T20:37:31Z")

</div>

What is the equivalent of the following in Julia? https://support.gurobi.com/hc/en-us/articles/15656630439441-How-do-I-use-compute-IIS-to-find-a-subset-of-constraints-that-are-causing-model-infeasibility I understand I…

---

## [Retrieve the simplex tableau from Gurobi.jl using JuMP](https://discourse.julialang.org/t/retrieve-the-simplex-tableau-from-gurobi-jl-using-jump/129237)

<div class="topic-metadata">

**Author:** [@YANG-Hanbin](https://discourse.julialang.org/u/YANG-Hanbin)\
**Replies:** 3\
**Last updated:** [May 22, 2025, 11:42pm UTC](https://discourse.julialang.org/t/retrieve-the-simplex-tableau-from-gurobi-jl-using-jump/129237 "2025-05-22T23:42:36Z")

</div>

Hello everyone! I’m trying to retrieve the optimal simplex tableau after solving a linear program using Gurobi. Thanks to Oscar’s help, I learned how to use the GRBBinvRowi function to access individual rows of the inve…

---

## [How to get the dual of a non convex MIQCP Gurobi](https://discourse.julialang.org/t/how-to-get-the-dual-of-a-non-convex-miqcp-gurobi/129257)

<div class="topic-metadata">

**Author:** [@manoj.centura](https://discourse.julialang.org/u/manoj.centura)\
**Replies:** 1\
**Last updated:** [May 22, 2025, 11:37pm UTC](https://discourse.julialang.org/t/how-to-get-the-dual-of-a-non-convex-miqcp-gurobi/129257 "2025-05-22T23:37:07Z")

</div>

hi All, I need to get the duals of a nonconvex MIQCP i tried below code from model = Model(Gurobi.Optimizer) set\_optimizer\_attribute(model, "NonConvex", 2) @variable(model, x, Bin) @variable(model, y \>= 0) @constraint…

---

## [Gurobi Error 10005 is seen on submitting lazy constraint also when cb\_where == GRB\_CB\_MIPNODE](https://discourse.julialang.org/t/gurobi-error-10005-is-seen-on-submitting-lazy-constraint-also-when-cb-where-grb-cb-mipnode/129094)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 2\
**Last updated:** [May 18, 2025, 12:09am UTC](https://discourse.julialang.org/t/gurobi-error-10005-is-seen-on-submitting-lazy-constraint-also-when-cb-where-grb-cb-mipnode/129094 "2025-05-18T00:09:12Z")

</div>

My code (full and runnable) is import LinearAlgebra.dot as dot import LinearAlgebra.norm as norm import JuMP, Gurobi, Random function my\_callback\_function(cb\_data, cb\_where::Cint) if cb\_where == Gurobi.GRB\_CB\_MIPSOL…

---

## [Gurobi12 reports obj\_value \< obj\_bound in a Min-Program?](https://discourse.julialang.org/t/gurobi12-reports-obj-value-obj-bound-in-a-min-program/126849)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 17\
**Last updated:** [May 11, 2025, 3:00pm UTC](https://discourse.julialang.org/t/gurobi12-reports-obj-value-obj-bound-in-a-min-program/126849 "2025-05-11T15:00:58Z")

</div>

See the comments at the bottom of this code. import JuMP, Gurobi CR = JuMP.Model(() -\> Gurobi.Optimizer()) JuMP.@variable(CR, x\[1:3\]) JuMP.set\_lower\_bound(x\[1\], exp(1)); JuMP.set\_upper\_bound(x\[1\], exp(2)) JuMP.set\_lower…

---

## [Gurobi12 reports OPTIMAL to an NLP which is actually UNbounded](https://discourse.julialang.org/t/gurobi12-reports-optimal-to-an-nlp-which-is-actually-unbounded/127293)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 9\
**Last updated:** [May 14, 2025, 1:07am UTC](https://discourse.julialang.org/t/gurobi12-reports-optimal-to-an-nlp-which-is-actually-unbounded/127293 "2025-05-14T01:07:05Z")

</div>

Continuing the discussion from Gurobi12 Reports unbounded to a nonconvex QP which is actually bounded: import JuMP, Gurobi NLP = JuMP.Model(Gurobi.Optimizer); JuMP.@variable(NLP, x); JuMP.@objective(NLP, Min, (x + 1) \* …

---

## [Gurobi12 Reports unbounded to a nonconvex QP which is actually bounded](https://discourse.julialang.org/t/gurobi12-reports-unbounded-to-a-nonconvex-qp-which-is-actually-bounded/126657)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 15\
**Last updated:** [May 14, 2025, 1:03am UTC](https://discourse.julialang.org/t/gurobi12-reports-unbounded-to-a-nonconvex-qp-which-is-actually-bounded/126657 "2025-05-14T01:03:45Z")

</div>

import JuMP import Gurobi function objf(x, y) return (y - 2)^2/4 - x \* y end B = JuMP.Model(() -\> Gurobi.Optimizer()); # A bilinear program JuMP.@variable(B, 0 \<= x \<= 1); JuMP.@variable(B, y); # this variable is free Ju…

---

## [My Gurobi version is 12.0.2, but in julia it is still 12.0.1](https://discourse.julialang.org/t/my-gurobi-version-is-12-0-2-but-in-julia-it-is-still-12-0-1/128899)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 2\
**Last updated:** [May 12, 2025, 12:00am UTC](https://discourse.julialang.org/t/my-gurobi-version-is-12-0-2-but-in-julia-it-is-still-12-0-1/128899 "2025-05-12T00:00:30Z")

</div>

I update my gurobi optimizer today. And I’ve deleted all the previous version. But in julia it still shows the old version (cf. 🍅 lines). Is this normal? PS K:\\uc24\> gurobi Python 3.11.4 (tags/v3.11.4:d2340ef, Jun 7 20…

---

## [How to license Gurobi inside Google Colab's Julia environment](https://discourse.julialang.org/t/how-to-license-gurobi-inside-google-colabs-julia-environment/128407)

<div class="topic-metadata">

**Author:** [@Engr\_Moiz\_Ahmad](https://discourse.julialang.org/u/Engr_Moiz_Ahmad)\
**Replies:** 7\
**Last updated:** [May 5, 2025, 12:50pm UTC](https://discourse.julialang.org/t/how-to-license-gurobi-inside-google-colabs-julia-environment/128407 "2025-05-05T12:50:50Z")

</div>

I am dealing with a multi-stage mixed-integer stochastic global supply chain optimization problem and want to solve the stage-wise problem instances using the Gurobi solver within SDDiP algorithm using the SDDP.jl packag…

---

## [How to set tolerance attributes of Gurobi inside Google Colab’s Julia environment](https://discourse.julialang.org/t/how-to-set-tolerance-attributes-of-gurobi-inside-google-colab-s-julia-environment/128678)

<div class="topic-metadata">

**Author:** [@Engr\_Moiz\_Ahmad](https://discourse.julialang.org/u/Engr_Moiz_Ahmad)\
**Replies:** 6\
**Last updated:** [May 5, 2025, 12:47pm UTC](https://discourse.julialang.org/t/how-to-set-tolerance-attributes-of-gurobi-inside-google-colab-s-julia-environment/128678 "2025-05-05T12:47:08Z")

</div>

I am dealing with a multi-stage mixed-integer stochastic global supply chain optimization problem and want to solve the stage-wise problem instances using the Gurobi solver within SDDiP algorithm using the SDDP.jl packag…

---

## [Objective\_bound and Gurobi](https://discourse.julialang.org/t/objective-bound-and-gurobi/46633)

<div class="topic-metadata">

**Author:** [@arkanver](https://discourse.julialang.org/u/arkanver)\
**Replies:** 2\
**Last updated:** [April 24, 2025, 2:23am UTC](https://discourse.julialang.org/t/objective-bound-and-gurobi/46633 "2025-04-24T02:23:14Z")

</div>

Hello ! I have shared some code with a research associate, aiming to compute the solution to a continuous optimization problem. Due to problem size, we use a time limit. The problem is that I use CPLEX, and my associate…

---

## [Gurobi's tolerance on convexity in QCP is about \`1e-13\`](https://discourse.julialang.org/t/gurobis-tolerance-on-convexity-in-qcp-is-about-1e-13/127297)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 10\
**Last updated:** [April 15, 2025, 6:18am UTC](https://discourse.julialang.org/t/gurobis-tolerance-on-convexity-in-qcp-is-about-1e-13/127297 "2025-04-15T06:18:40Z")

</div>

Following this topic I do the following test to verify the title using JuMP, Gurobi function test\_convexity(d) # if it ain't Error, the model is deemed convex (by Gurobi) model = Model(Gurobi.Optimizer) @vari…

---

## [Sending a logistic function to Gurobi.jl with JuMP](https://discourse.julialang.org/t/sending-a-logistic-function-to-gurobi-jl-with-jump/128027)

<div class="topic-metadata">

**Author:** [@votroto](https://discourse.julialang.org/u/votroto)\
**Replies:** 2\
**Last updated:** [April 14, 2025, 1:02pm UTC](https://discourse.julialang.org/t/sending-a-logistic-function-to-gurobi-jl-with-jump/128027 "2025-04-14T13:02:42Z")

</div>

JuMP and Gurobi seem to be able to accept nl functions via their new interface. But while I can see that Gurobi claims to accept :logistic as the “head” of a non-linear expression :logistic =\> GRB\_OPCODE\_LOGISTIC, I can’…

---

## [I added 1 Million constraints to an LP unwittingly](https://discourse.julialang.org/t/i-added-1-million-constraints-to-an-lp-unwittingly/127668)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 36\
**Last updated:** [April 13, 2025, 8:59pm UTC](https://discourse.julialang.org/t/i-added-1-million-constraints-to-an-lp-unwittingly/127668 "2025-04-13T20:59:22Z")

</div>

This topic is sharing an experience, probably a noob has not seen before (me included). Put it simply, I’m solving a disjointed bilinear programming using RLT, and wasn’t realizing that the number of constraints will be…

---

## [Convergence of SDDP with nonlinear objective and mixed-integer variables](https://discourse.julialang.org/t/convergence-of-sddp-with-nonlinear-objective-and-mixed-integer-variables/127947)

<div class="topic-metadata">

**Author:** [@Engr\_Moiz\_Ahmad](https://discourse.julialang.org/u/Engr_Moiz_Ahmad)\
**Replies:** 9\
**Last updated:** [April 11, 2025, 7:55am UTC](https://discourse.julialang.org/t/convergence-of-sddp-with-nonlinear-objective-and-mixed-integer-variables/127947 "2025-04-11T07:55:30Z")

</div>

@odow what reference should I cite if I want to claim that due to the simultaneous occurrence of exponential terms in the objective and mixed integer decision space, SDDP can not be used?

---

## [Adding lazy cuts to an LP using JuMP.@build\_constraint](https://discourse.julialang.org/t/adding-lazy-cuts-to-an-lp-using-jump-build-constraint/127764)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 3\
**Last updated:** [April 7, 2025, 6:43am UTC](https://discourse.julialang.org/t/adding-lazy-cuts-to-an-lp-using-jump-build-constraint/127764 "2025-04-07T06:43:58Z")

</div>

As the title suggests, I create a structure (the begin-end block) and wrote a procedure (while-end). import JuMP, Gurobi; GRB\_ENV = Gurobi.Env(); COT = 1e-7 # cut-off tolerance model = JuMP.direct\_model(Gurobi.Optimize…

---

## [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,…

---

## [Gurobi LP solver's cut-off behavior---an example](https://discourse.julialang.org/t/gurobi-lp-solvers-cut-off-behavior-an-example/127454)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 6\
**Last updated:** [March 28, 2025, 11:05pm UTC](https://discourse.julialang.org/t/gurobi-lp-solvers-cut-off-behavior-an-example/127454 "2025-03-28T23:05:03Z")

</div>

I find an interesting example about Gurobi’s LP solver. There are 2 linear constraints in my LP, named fixed and cut. The outcomes for the following 2 schemes are different: Add Both constraints, and solve only once A…

---

## [JuMP solve\_time not matching actual time](https://discourse.julialang.org/t/jump-solve-time-not-matching-actual-time/126397)

<div class="topic-metadata">

**Author:** [@BMI\_OR](https://discourse.julialang.org/u/BMI_OR)\
**Replies:** 3\
**Last updated:** [February 27, 2025, 9:33pm UTC](https://discourse.julialang.org/t/jump-solve-time-not-matching-actual-time/126397 "2025-02-27T21:33:40Z")

</div>

I am executing an algorithm that iteratively executes the following function to solve a problem: function solve\_subproblem(model, z, q, v) fix.(model\[:z\_copy\], z) fix.(model\[:q\_copy\], q) fix.(model\[:v\_copy\],…

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

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