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' ?

Answers (1)

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 Comment

ThS
ThS on 22 Nov 2014
Edited: ThS on 1 Dec 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.

Sign in to comment.

Categories

Asked:

ThS
on 21 Nov 2014

Edited:

ThS
on 1 Dec 2014

Community Treasure Hunt

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

Start Hunting!