Is it possible to get an exitflag using findop ?

I am using 'findop' from the Simulink Control Design Toolbox to find operating points of a system. I use the default 'graddescent_elim' algorithm, which calls the 'fmincon' algorithm.
I know that the 'fmincon' function can return an integer 'exitflag' giving informations about how the optimization has ended. In the report generated by findop ('opreport') I can display a termination message with the command 'opreport.OptimizationOutput.message' which gives informations about the termination of the optimization. However I would like to have that info "summed up" as an integer like the 'exitflag' of 'fmincon'. Is it possible to get the 'exitflag' of fmincon as an output of 'findop' ?

Respuestas (1)

Alan Weiss
Alan Weiss el 21 de Nov. de 2014

0 votos

Can you examine opreport to see if there is an Exitflag field?
Disclaimer: I know nothing about Simulink reports.
Alan Weiss
MATLAB mathematical toolbox documentation

1 comentario

ThS
ThS el 22 de Nov. de 2014
Editada: ThS el 1 de Dic. de 2014
Yes I have already done that. I did not manage to find something else than the structure 'opreport.OptimizationOutput' which seems to correspond to the output argument 'output' from fmincon, since it contains the same elements.
Edit : The 'exitflag' is explicitly used in the source code of 'findop'. Would it be possible to add a property 'ExitFlag' to the class 'opcond.OperatingReport' ? Then, calling something like 'opreport.ExitFlag' would return the value of the exit flag.

Iniciar sesión para comentar.

Categorías

Etiquetas

Preguntada:

ThS
el 21 de Nov. de 2014

Editada:

ThS
el 1 de Dic. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by