# How do I extract the coefficients and RHS's of all constraints in a JuMP linear program? (Need for KKT)

**URL:** <https://discourse.julialang.org/t/how-do-i-extract-the-coefficients-and-rhss-of-all-constraints-in-a-jump-linear-program-need-for-kkt/38525>\
**Category:** Optimization (Mathematical)\
**Tags:** question, jump, linear-programming\
**Created:** [May 1, 2020, 3:14am UTC](https://discourse.julialang.org/t/how-do-i-extract-the-coefficients-and-rhss-of-all-constraints-in-a-jump-linear-program-need-for-kkt/38525 "2020-05-01T03:14:43Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [May 1, 2020, 1:48pm UTC](https://discourse.julialang.org/t/how-do-i-extract-the-coefficients-and-rhss-of-all-constraints-in-a-jump-linear-program-need-for-kkt/38525/4 "2020-05-01T13:48:19Z")

</div>

See [Constraints · JuMP](https://www.juliaopt.org/JuMP.jl/stable/constraints/#Accessing-constraints-from-a-model-1).

JuMP doesn’t have an easy way to get matrices, because it does not represent the problem in a `Ax=b`-type standard form.

---

_[View the full topic](https://discourse.julialang.org/t/how-do-i-extract-the-coefficients-and-rhss-of-all-constraints-in-a-jump-linear-program-need-for-kkt/38525)._
