MATLAB: Fmincon exitflag=0; MaxIter=3000; output.iterations=277

fmincon iteration countsMATLABOptimization Toolbox

fmincon gives me command window warnings that MaxIter is exceeded and returns the correct exitflag. But the returned iteration count is well below MaxIter.
Running MatLab R2014a.
Any idea what is going on?
Rob B.

Best Answer

I am not sure what is going on here. Can you show us your options, and the way you called fmincon? I am also interested in seeing ALL of the fmincon output.
Alan Weiss
MATLAB mathematical toolbox documentation