Values of exitflag in fminunc Matlab function is not consistant in Matlab 7.6 and 7.8
I need to know what exitflags mean in function fminunc, in Matlab version 7.6. Specifically, I get value -2 which is not listed in http://www.mathworks.com/h开发者_JS百科elp/toolbox/optim/ug/fminunc.html. Thanks, Farzane
That documentation is the latest one. Why don't you try looking inside the help that comes with your MATLAB version? That might contain info.
If not, enter type fminunc.m
at the command line to see the source code and look there to see what -2
means.
Edit: This posting of the code of the function seems to indicate that any negative value indicates "FMINUNC did not converge to a solution"
精彩评论