# \#mosek

**URL:** https://discourse.julialang.org/tag/mosek/207.md

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

---

## [Bottleneck of JuMP](https://discourse.julialang.org/t/bottleneck-of-jump/136609)

<div class="topic-metadata">

**Author:** [@ttx002000](https://discourse.julialang.org/u/ttx002000)\
**Replies:** 24\
**Last updated:** [April 15, 2026, 8:38pm UTC](https://discourse.julialang.org/t/bottleneck-of-jump/136609 "2026-04-15T20:38:55Z")

</div>

I am solving a SDP problem using JuMP and the associated MosekTools. The basic pattern is this:\` NQ=9 Nk=9 nred=4 Dmatrix = Vector{Any}(undef, 3) Dmatrix\[1\] = Vector{Any}(undef, NQ) # uuuu channel Dmatr…

---

## [SLOW\_PROGRESS or NUMERICAL\_ERROR: a simple but nontrivial SDP example, solved with LP relaxation](https://discourse.julialang.org/t/slow-progress-or-numerical-error-a-simple-but-nontrivial-sdp-example-solved-with-lp-relaxation/127399)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 8\
**Last updated:** [May 11, 2025, 10:04am UTC](https://discourse.julialang.org/t/slow-progress-or-numerical-error-a-simple-but-nontrivial-sdp-example-solved-with-lp-relaxation/127399 "2025-05-11T10:04:38Z")

</div>

I wonder why mosek cannot solve this simple problem to optimality (it reports SLOW\_PROGRESS). x-ref \[docs\] improve the docstring for DUAL\_INFEASIBLE by odow · Pull Request #2701 · jump-dev/MathOptInterface.jl · GitHub i…

---

## [How to use Mosek 11 beta in JuMP](https://discourse.julialang.org/t/how-to-use-mosek-11-beta-in-jump/123821)

<div class="topic-metadata">

**Author:** [@CaG21](https://discourse.julialang.org/u/CaG21)\
**Replies:** 4\
**Last updated:** [March 21, 2025, 7:55am UTC](https://discourse.julialang.org/t/how-to-use-mosek-11-beta-in-jump/123821 "2025-03-21T07:55:35Z")

</div>

I’d like to use Mosek 11 beta in JuMP.jl. In order to do so, I have installed Mosek 11.0.1 binaries from the website, and created the environment variable MOSEKBINDIR to point to the bin directory of Mosek 11. Then, I tr…

---

## ["Error building 'Mosek' " in Windows 10](https://discourse.julialang.org/t/error-building-mosek-in-windows-10/98469)

<div class="topic-metadata">

**Author:** [@zakos22](https://discourse.julialang.org/u/zakos22)\
**Replies:** 4\
**Last updated:** [March 20, 2025, 11:14pm UTC](https://discourse.julialang.org/t/error-building-mosek-in-windows-10/98469 "2025-03-20T23:14:06Z")

</div>

Dear All, I would deeply appreciate some help in troubleshooting why my MOSEK package installation attempts are failing. I am using Julia 1.8.5, VSCode and Windows 10 and I am trying to install Mosek.jl . While runnin…

---

## [JuMP re-solving Model after equivalently reformulating objective gives different results](https://discourse.julialang.org/t/jump-re-solving-model-after-equivalently-reformulating-objective-gives-different-results/125210)

<div class="topic-metadata">

**Author:** [@phK3](https://discourse.julialang.org/u/phK3)\
**Replies:** 2\
**Last updated:** [March 20, 2025, 11:11pm UTC](https://discourse.julialang.org/t/jump-re-solving-model-after-equivalently-reformulating-objective-gives-different-results/125210 "2025-03-20T23:11:38Z")

</div>

Disclaimer: This is a repost/extension of this github issue. The “output variables” of my problem are the entries in some specific place of a SDP matrix (P\[1,4:5\]) in the code below). When I directly optimize an object…

---

## [Feasibility cut from HiGHS and Mosek are different (Benders decomposition)](https://discourse.julialang.org/t/feasibility-cut-from-highs-and-mosek-are-different-benders-decomposition/125630)

<div class="topic-metadata">

**Author:** [@saikrishna-nadella](https://discourse.julialang.org/u/saikrishna-nadella)\
**Replies:** 7\
**Last updated:** [March 20, 2025, 11:08pm UTC](https://discourse.julialang.org/t/feasibility-cut-from-highs-and-mosek-are-different-benders-decomposition/125630 "2025-03-20T23:08:35Z")

</div>

Hi, I am implementing bender’s decomposition using JuMP in Julia. I am investigating generation of feasibility cuts using “dual\_objective\_value” and “reduced\_cost” of fixing constraint as detailed in JuMP documentation. …

---

## [Mosek interior point stopping criterion and basis identification](https://discourse.julialang.org/t/mosek-interior-point-stopping-criterion-and-basis-identification/126863)

<div class="topic-metadata">

**Author:** [@rpetit](https://discourse.julialang.org/u/rpetit)\
**Replies:** 4\
**Last updated:** [March 13, 2025, 9:22am UTC](https://discourse.julialang.org/t/mosek-interior-point-stopping-criterion-and-basis-identification/126863 "2025-03-13T09:22:18Z")

</div>

Hi! I have noticed a weird behaviour of Mosek: when solving a linear program with the interior-point optimizer, the primal and dual feasibility tolerances do not seem to be taken into account when basis identification i…

---

## [Selection of Mosek Optimizer in JuMP not respected](https://discourse.julialang.org/t/selection-of-mosek-optimizer-in-jump-not-respected/125623)

<div class="topic-metadata">

**Author:** [@saikrishna-nadella](https://discourse.julialang.org/u/saikrishna-nadella)\
**Replies:** 6\
**Last updated:** [February 7, 2025, 8:35pm UTC](https://discourse.julialang.org/t/selection-of-mosek-optimizer-in-jump-not-respected/125623 "2025-02-07T20:35:38Z")

</div>

Hi, I am using MosekTools with JuMP. I have been facing problem in forcing solver attributes to Mosek. for example, following seems to work set\_attribute(myModel, “MSK\_IPAR\_PRESOLVE\_USE”, 0) but, following does not w…

---

## [Updating to MosekToolsv0.15.3 breaks many JuMP SDP codes](https://discourse.julialang.org/t/updating-to-mosektoolsv0-15-3-breaks-many-jump-sdp-codes/123893)

<div class="topic-metadata">

**Author:** [@Shuvomoy\_Das\_Gupta](https://discourse.julialang.org/u/Shuvomoy_Das_Gupta)\
**Replies:** 5\
**Last updated:** [December 17, 2024, 1:09pm UTC](https://discourse.julialang.org/t/updating-to-mosektoolsv0-15-3-breaks-many-jump-sdp-codes/123893 "2024-12-17T13:09:37Z")

</div>

I updated MosekTools to v0.15.3 today (from 0.15.1) and it breaks my existing SDP codes with the following error when calling optimize!: MSK\_RES\_ERR\_SYM\_MAT\_INVALID\_ROW\_INDEX): The row index 11 specified for sparse symm…

---

## [@SDconstraint not working](https://discourse.julialang.org/t/sdconstraint-not-working/96685)

<div class="topic-metadata">

**Author:** [@shaurya](https://discourse.julialang.org/u/shaurya)\
**Replies:** 2\
**Last updated:** [March 29, 2023, 8:00pm UTC](https://discourse.julialang.org/t/sdconstraint-not-working/96685 "2023-03-29T20:00:18Z")

</div>

Hi, I’m new to Julia and this might be something very simple but I’m struggling to implement in JuMP. julia\> using JuMP julia\> using MosekTools julia\> model = Model(); julia\> @variable(model, x) x julia\> a = \[x 2x …

---

## [AssertionError when deleting and updating constraint in JuMP using Mosek solver](https://discourse.julialang.org/t/assertionerror-when-deleting-and-updating-constraint-in-jump-using-mosek-solver/96238)

<div class="topic-metadata">

**Author:** [@bobo](https://discourse.julialang.org/u/bobo)\
**Replies:** 2\
**Last updated:** [March 20, 2023, 12:53pm UTC](https://discourse.julialang.org/t/assertionerror-when-deleting-and-updating-constraint-in-jump-using-mosek-solver/96238 "2023-03-20T12:53:45Z")

</div>

Dear team, I would like to sequentially solve a problem by updating a constraint, the way I do it is to delete and restate the constraint inside a loop. Once the problem is solved and I try to delete the constraint I ge…

---

## [Nonlinear optimization using JuMP, The solver does not support nonlinear problems (i.e., NLobjective and NLconstraint)](https://discourse.julialang.org/t/nonlinear-optimization-using-jump-the-solver-does-not-support-nonlinear-problems-i-e-nlobjective-and-nlconstraint/95978)

<div class="topic-metadata">

**Author:** [@mosby](https://discourse.julialang.org/u/mosby)\
**Replies:** 10\
**Last updated:** [March 13, 2023, 7:30pm UTC](https://discourse.julialang.org/t/nonlinear-optimization-using-jump-the-solver-does-not-support-nonlinear-problems-i-e-nlobjective-and-nlconstraint/95978 "2023-03-13T19:30:14Z")

</div>

I am solving a nonlinear optimization problem using Mosek, I am running the following script model = Model(Mosek.Optimizer) @variable(model, y\[1:n\]) @NLconstraint(model, sum((Ay-b)\[i\]^4 for i=1:m) \<= 1.0) # The constr…

---

## [Using simplex method with Mosek with MosekTool package](https://discourse.julialang.org/t/using-simplex-method-with-mosek-with-mosektool-package/89416)

<div class="topic-metadata">

**Author:** [@Khashayar-Neshat](https://discourse.julialang.org/u/Khashayar-Neshat)\
**Replies:** 2\
**Last updated:** [October 28, 2022, 5:56pm UTC](https://discourse.julialang.org/t/using-simplex-method-with-mosek-with-mosektool-package/89416 "2022-10-28T17:56:31Z")

</div>

Hi, I want to solve a linear programming problem with the SumOfSquare package with Mosek. How can I tell the MosekTool package that Mosek use the simplex method instead of the interior point method?

---

## [Solving a Convex Quadratic Program Using Gurobi & Mosek](https://discourse.julialang.org/t/solving-a-convex-quadratic-program-using-gurobi-mosek/67214)

<div class="topic-metadata">

**Author:** [@RoyiAvital](https://discourse.julialang.org/u/RoyiAvital)\
**Replies:** 12\
**Last updated:** [September 14, 2021, 10:18pm UTC](https://discourse.julialang.org/t/solving-a-convex-quadratic-program-using-gurobi-mosek/67214 "2021-09-14T22:18:25Z")

</div>

I would like to solve the following Quadratic Program / Quadratic Programming: \\begin{aligned} \\arg \\min\_{x} \\quad & \\frac{1}{2} {x}^{T} P x + {x}^{T} q \\\\ \\text{subject to} \\quad & l \\leq A x \\leq u \\end{aligned} The…

---

## [Mosek Error upon using Powermodels.jl](https://discourse.julialang.org/t/mosek-error-upon-using-powermodels-jl/66856)

<div class="topic-metadata">

**Author:** [@aaldik](https://discourse.julialang.org/u/aaldik)\
**Replies:** 1\
**Last updated:** [August 23, 2021, 9:24pm UTC](https://discourse.julialang.org/t/mosek-error-upon-using-powermodels-jl/66856 "2021-08-23T21:24:19Z")

</div>

Hello I’m trying to use the solver Mosek to solve a SDP problem via the “Powermodels.jl” library. My code is very simple: using powermodels using MosekTools solver4 = Mosek.Optimizer; SDP\_relax=run\_opf(“pglib\_opf\_ca…

---

## [Mosek doesnt add its generated cuts](https://discourse.julialang.org/t/mosek-doesnt-add-its-generated-cuts/49457)

<div class="topic-metadata">

**Author:** [@hassanis](https://discourse.julialang.org/u/hassanis)\
**Replies:** 1\
**Last updated:** [November 2, 2020, 1:29pm UTC](https://discourse.julialang.org/t/mosek-doesnt-add-its-generated-cuts/49457 "2020-11-02T13:29:50Z")

</div>

Hello, I’m working on a problem using Mosektools & JUMP. It seems that after running it heuristics and cut generation at the root node, it fails to add them to the problem. As you can see in the output below, the relaxa…

---

## [How to model a \<= 1/b](https://discourse.julialang.org/t/how-to-model-a-1-b/44370)

<div class="topic-metadata">

**Author:** [@sobhan](https://discourse.julialang.org/u/sobhan)\
**Replies:** 5\
**Last updated:** [August 5, 2020, 10:42pm UTC](https://discourse.julialang.org/t/how-to-model-a-1-b/44370 "2020-08-05T22:42:15Z")

</div>

i know we can write a \\geq \\frac{1}{b} as \[a +b, a - b, 2\] in SecondOrderCone() or a + b \\geq ||(a-b, 2)||\_2 But how can i rewrite a \\leq \\frac{1}{b} with Second Order cones, power cones, exponential cones, basically an…

---

## [Second order cone constraint in JuMP 0.19 with JuMP solver](https://discourse.julialang.org/t/second-order-cone-constraint-in-jump-0-19-with-jump-solver/37214)

<div class="topic-metadata">

**Author:** [@Chengda\_Ji](https://discourse.julialang.org/u/Chengda_Ji)\
**Replies:** 1\
**Last updated:** [April 8, 2020, 12:18pm UTC](https://discourse.julialang.org/t/second-order-cone-constraint-in-jump-0-19-with-jump-solver/37214 "2020-04-08T12:18:08Z")

</div>

Hi all, When trying to implement the SOCP in JuMP and Mosek, the Mosek solver stalls and SLOW\_PROGRESS JuMP status show up. After checking the results, I notice that it is not feasible, and the upper bounds are depresse…

---

## [Supressing verbosity of dual Models (JuMP, Dualization and Mosek)](https://discourse.julialang.org/t/supressing-verbosity-of-dual-models-jump-dualization-and-mosek/37065)

<div class="topic-metadata">

**Author:** [@martincornejo](https://discourse.julialang.org/u/martincornejo)\
**Replies:** 2\
**Last updated:** [April 5, 2020, 7:25pm UTC](https://discourse.julialang.org/t/supressing-verbosity-of-dual-models-jump-dualization-and-mosek/37065 "2020-04-05T19:25:33Z")

</div>

I have tried multiple methods to silence the verbosity of “dualized Mosek”. (Currently using JuMP v0.20.2 and Dualization v0.2.2) julia\> model = Model(with\_optimizer(() -\> Dualization.DualOptimizer(Mosek.Optimizer()))) …

---

## [Fail Testing Mosek 8 -\> ERROR: LoadError: ReadOnlyMemoryError()](https://discourse.julialang.org/t/fail-testing-mosek-8-error-loaderror-readonlymemoryerror/8891)

<div class="topic-metadata">

**Author:** [@erikfilias](https://discourse.julialang.org/u/erikfilias)\
**Replies:** 5\
**Last updated:** [February 9, 2018, 5:03am UTC](https://discourse.julialang.org/t/fail-testing-mosek-8-error-loaderror-readonlymemoryerror/8891 "2018-02-09T05:03:31Z")

</div>

Testing Mosek on Windows with Julia v0.6.2 - 32 bits. I am trying to run this code: using JuMP using Mosek #using SCS model = Model(solver=MosekSolver()) #model = Model(solver=SCSSolver()) @variable(model, Q\[1:2, 1:2…
