ECOS increase iteration limit

Hello,

how can you increase the iteration limit for the ECOS solver? It seems like its stuck to 100, and returns:
Maximum number of iterations reached, recovering best iterate (19) and stopping.

I think
cvx_solver_settings('maxit',500)
should work to increase max iterations to 500. http://cvxr.com/cvx/doc/solver.html#advanced-solver-settings

However, if ECOS hits 100 iterations, it may be that there is something bad about your model, for instance bad numerical scaling, or there being little to no relative interior with respect to the nonlinear constraints, or some other exact or approximate degeneracy.

1 Like