# How to increase the maximum number of iterations in Ipopt?

**URL:** https://discourse.julialang.org/t/how-to-increase-the-maximum-number-of-iterations-in-ipopt/75109
**Category:** Optimization (Mathematical)
**Tags:** question, jump, ipopt
**Created:** [January 24, 2022, 8:51am UTC](https://discourse.julialang.org/t/how-to-increase-the-maximum-number-of-iterations-in-ipopt/75109 "2022-01-24T08:51:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![oxox](https://avatars.discourse-cdn.com/v4/letter/o/f14d63/32.png) [@oxox](https://discourse.julialang.org/u/oxox)
#### Post date: [January 24, 2022, 8:51am UTC](https://discourse.julialang.org/t/how-to-increase-the-maximum-number-of-iterations-in-ipopt/75109/1 "2022-01-24T08:51:22Z")

</div>

I got stuck while solving a problem with Ipopt, showing EXIT: Maximum Number of Iterations Exceeded.  
Its maximum number of iterations is 3000, how can I increase the maximum number of iterations？？？

---

<div class="post-metadata">

### Author: ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)
#### Post date: [January 24, 2022, 11:10am UTC](https://discourse.julialang.org/t/how-to-increase-the-maximum-number-of-iterations-in-ipopt/75109/2 "2022-01-24T11:10:52Z")

</div>

How are you using Ipopt? Which package do you use?

Did you try:

```julia
using JuMP, Ipopt
model = Model(Ipopt.Optimizer)
set_optimizer_attribute(model, "max_iter", 6000)

```

I mean, reading the documentation helps: [https://github.com/jump-dev/Ipopt.jl](https://github.com/jump-dev/Ipopt.jl)

---

<div class="post-metadata">

### Author: ![oxox](https://avatars.discourse-cdn.com/v4/letter/o/f14d63/32.png) [@oxox](https://discourse.julialang.org/u/oxox)
#### Post date: [January 24, 2022, 12:09pm UTC](https://discourse.julialang.org/t/how-to-increase-the-maximum-number-of-iterations-in-ipopt/75109/3 "2022-01-24T12:09:31Z")

</div>

Thank you so much
