# How to export the coefficient matrix of JuMP model?

**URL:** <https://discourse.julialang.org/t/how-to-export-the-coefficient-matrix-of-jump-model/69635>\
**Category:** Optimization (Mathematical)\
**Created:** [October 12, 2021, 3:19pm UTC](https://discourse.julialang.org/t/how-to-export-the-coefficient-matrix-of-jump-model/69635 "2021-10-12T15:19:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![iiitr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iiitr/32/24586_2.png) [@iiitr](https://discourse.julialang.org/u/iiitr)\
**Post date:** [October 12, 2021, 3:19pm UTC](https://discourse.julialang.org/t/how-to-export-the-coefficient-matrix-of-jump-model/69635/1 "2021-10-12T15:19:47Z")

</div>

Hi all,

In Matlab/Yalmip, we can using `export`, we can get the coefficient matrix and several “standard form” based on certain solver. For example, if we use Gurobi, we can use `export` to get `A`, `rhs`, `sense`, `vtype`, `obj`…

I would like to know if there are similar functions in JuMP?

I think JuMP is also convert various constraints entered by users into a form acceptable to a specific solver.

Thanks a lot!

---

<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 12, 2021, 8:53pm UTC](https://discourse.julialang.org/t/how-to-export-the-coefficient-matrix-of-jump-model/69635/2 "2021-10-12T20:53:29Z")

</div>

> I would like to know if there are similar functions in JuMP?

Unfortunately, there isn’t.

There is a work-in-progress, but it isn’t finished yet: [GitHub - jump-dev/MatrixOptInterface.jl: An interface to pass matrix form problems](https://github.com/jump-dev/MatrixOptInterface.jl)
