How to increase the maximum number of iterations in Ipopt?

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???

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

Did you try:

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

I mean, reading the documentation helps: GitHub - jump-dev/Ipopt.jl: Julia interface to the Ipopt nonlinear solver

1 Like

Thank you so much