# Using simplex method with Mosek with MosekTool package

**URL:** <https://discourse.julialang.org/t/using-simplex-method-with-mosek-with-mosektool-package/89416>\
**Category:** Optimization (Mathematical)\
**Tags:** jump, mosek\
**Created:** [October 28, 2022, 2:14am UTC](https://discourse.julialang.org/t/using-simplex-method-with-mosek-with-mosektool-package/89416 "2022-10-28T02:14:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Khashayar-Neshat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/khashayar-neshat/32/42852_2.png) [@Khashayar-Neshat](https://discourse.julialang.org/u/Khashayar-Neshat)\
**Post date:** [October 28, 2022, 2:14am UTC](https://discourse.julialang.org/t/using-simplex-method-with-mosek-with-mosektool-package/89416/1 "2022-10-28T02:14:47Z")

</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?

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [October 28, 2022, 2:37am UTC](https://discourse.julialang.org/t/using-simplex-method-with-mosek-with-mosektool-package/89416/2 "2022-10-28T02:37:28Z")

</div>

Use the `MSK_IPAR_OPTIMIZER` parameter: [15.5 Parameters (alphabetical list sorted by type) — MOSEK Optimization Toolbox for MATLAB 10.0.26](https://docs.mosek.com/latest/toolbox/parameters.html#mosek.iparam.optimizer)

I don’t have Mosek so I can’t test, but perhaps something like:

```julia
set_optimizer_attribute(model, "MSK_IPAR_OPTIMIZER", Mosek.MSK_OPTIMIZER_FREE_SIMPLEX)

```

---

<div class="post-metadata">

**Author:** ![Khashayar-Neshat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/khashayar-neshat/32/42852_2.png) [@Khashayar-Neshat](https://discourse.julialang.org/u/Khashayar-Neshat)\
**Post date:** [October 28, 2022, 5:56pm UTC](https://discourse.julialang.org/t/using-simplex-method-with-mosek-with-mosektool-package/89416/3 "2022-10-28T17:56:31Z")

</div>

> [@odow](#):
>
> `set_optimizer_attribute(model, "MSK_IPAR_OPTIMIZER", Mosek.MSK_OPTIMIZER_FREE_SIMPLEX)`

It works, thank you.
