JuMP get number of iterations

Is there a way to access the number of iterations apart from the log of the solver?

I’m comparing different solvers and I would like to store in a vector the number of iteration each one takes.

I couldn’t really find a function for something like this in the documentation, something like getiterations(m::JuMP.Model).

I’ve also looked inside the fields of JuMP.Model with no luck.

thanks for your help!

3 Likes

I too would like to know if such a thing exists.

For some solvers (not all) you can get barrier_iterations(model) or simplex_iterations(model): Solutions · JuMP