MATLAB: Positive exitflag other than ‘1’ in fmincon

convergedexitflagfminconlocal minimum possibleoptimization

positive exitflag message other than '1' is regarded as 'local minimum possible', which is not a guaranteed converged minimum considered by MatLab, so should I keep digging until I reach a '1' or I can simply trust solutions with exitflag message greater than '1'? Can they (greater than 1) be treated as accurate solutions to my problem?
Many thanks!
Jason

Best Answer

There are no completely reliable stopping criteria, including extflag=1. You just have to look at the solution returned and assess whether it fulfills its practical purpose.
You could also experiment with different tolerances and see if tightening the tolerances produces a better practical result.