get exitflag number of iterations and function evaluations and final value of the gradient vector of the objective function
3 views (last 30 days)
Show older comments
I am using fmincon SQP GUI optimization tool I am trying to get exitflag, number of iterations and function evaluations and final value of the gradient vector of the objective function I don't know from where I can get these output I know that I can get the exit flag by typing something like [x,fval,exitflag] = fmincon(...) but it doent work and I have a massage said continue entering statement any help would be appreciated
Thanks
0 Comments
Accepted Answer
Alan Weiss
on 10 Sep 2014
If you are using the GUI (the Optimization app, as it is called these days) then after you get your solution choose File - Export to Workspace. Check the box saying Export results... and you will get a structure in your workspace containing all the information that fmincon can return. For details, click the link I gave.
Alan Weiss
MATLAB mathematical toolbox documentation
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!