get exitflag number of iterations and function evaluations and final value of the gradient vector of the objective function
4 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Alan Weiss
2014-9-10
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
更多回答(0 个)
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!