get exitflag number of iterations and function evaluations and final value of the gradient vector of the objective function

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

 Respuesta aceptada

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

Más respuestas (0)

Categorías

Productos

Preguntada:

el 10 de Sept. de 2014

Comentada:

el 10 de Sept. de 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by