# Moving from LMI toolbox (Matlab) to JuliaOpt

**URL:** https://discourse.julialang.org/t/moving-from-lmi-toolbox-matlab-to-juliaopt/21001
**Category:** Optimization (Mathematical)
**Tags:** optimization, convex-optimization
**Created:** [February 20, 2019, 6:33am UTC](https://discourse.julialang.org/t/moving-from-lmi-toolbox-matlab-to-juliaopt/21001 "2019-02-20T06:33:03Z")
**Posts on this page:** 1
**Showing post:** 13

<div class="post-metadata">

### Author: ![zdenek\_hurak](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zdenek_hurak/32/53118_2.png) [@zdenek\_hurak](https://discourse.julialang.org/u/zdenek_hurak)
#### Post date: [July 31, 2021, 1:28pm UTC](https://discourse.julialang.org/t/moving-from-lmi-toolbox-matlab-to-juliaopt/21001/13 "2021-07-31T13:28:52Z")

</div>

Well, I think that the reason why you were directed by @rafael.guerra from [your original post](https://discourse.julialang.org/t/solve-linear-matrix-inequality-in-julia/65592/3) to this post was not exactly to replicate your question here but rather to have a look at what had been discussed here. The discussion here turns out to be relevant for your need. Have you at least tried and struggled? Where exactly have you struggled?

But let me restate here for convenience: you have two options: either use [JuMP](https://jump.dev/JuMP.jl/stable/) or [Convex](https://jump.dev/Convex.jl/stable/) to formulate your LMI feasibility problem. For this particular problem both do the job. The documentation for both contains a sufficient description how to define and solve semidefinite problems, in this case just LMI feasibility problems. Examples of usage for both packages are also above in this thread. It should not be difficult to massage those code snippets so that they address your problem.

I am eager to help you once you encounter problems.

At minimum, please, paste here a code for generating those matrices `A`, `B`, `Q` and `R` (inside triple quotes).

---

_[View the full topic](https://discourse.julialang.org/t/moving-from-lmi-toolbox-matlab-to-juliaopt/21001)._
