# Accesing Lagrange multipliers while using Ipopt from Nonconvex.jl

**URL:** <https://discourse.julialang.org/t/accesing-lagrange-multipliers-while-using-ipopt-from-nonconvex-jl/72841>\
**Category:** Optimization (Mathematical)\
**Tags:** package\
**Created:** [December 9, 2021, 5:30pm UTC](https://discourse.julialang.org/t/accesing-lagrange-multipliers-while-using-ipopt-from-nonconvex-jl/72841 "2021-12-09T17:30:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![A\_C](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@A\_C](https://discourse.julialang.org/u/A_C)\
**Post date:** [December 9, 2021, 5:30pm UTC](https://discourse.julialang.org/t/accesing-lagrange-multipliers-while-using-ipopt-from-nonconvex-jl/72841/1 "2021-12-09T17:30:15Z")

</div>

I was trying Nonconvex.jl using Ipopt. Is there a way in which I can access Lagrange multipliers?

---

<div class="post-metadata">

**Author:** ![mohamed82008](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mohamed82008/32/18171_2.png) [@mohamed82008](https://discourse.julialang.org/u/mohamed82008)\
**Post date:** [December 9, 2021, 6:25pm UTC](https://discourse.julialang.org/t/accesing-lagrange-multipliers-while-using-ipopt-from-nonconvex-jl/72841/2 "2021-12-09T18:25:24Z")

</div>

The Lagrangian multipliers can be accessed using:

```julia
result.problem.mult_g
result.problem.mult_x_L
result.problem.mult_x_U

```

The first is all the multipliers associated with the inequality constraints followed by the equality constraints in the order in which they were added. The second is the multipliers associated with the variables’ lower bounds. The third is the multipliers associated with the variables’ upper bounds.

---

<div class="post-metadata">

**Author:** ![A\_C](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@A\_C](https://discourse.julialang.org/u/A_C)\
**Post date:** [December 10, 2021, 4:35am UTC](https://discourse.julialang.org/t/accesing-lagrange-multipliers-while-using-ipopt-from-nonconvex-jl/72841/3 "2021-12-10T04:35:53Z")

</div>

Thank you.
