Can I create an OutputFcn property for the Optimization Toolbox solvers like the ODE OutputFcn option?

1 view (last 30 days)
The ODE solvers have a parameter in ODESET called OutputFcn.
OutputFcn - Installable output function [ function ]
This output function is called by the solver after each time step. When
a solver is called with no output arguments, OutputFcn defaults to the
function odeplot. Otherwise, OutputFcn defaults to [].
Something like this would be very nice to have for the functions in the Optimization Toolbox. It would provide a way to examine the progress of the optimizer at each step of the process.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This feature has been added to the Optimization Toolbox 2.3 (R13SP1). See the documentation here:
for more information on how to use an output function.
If you are using a version older than the Optimization Toolbox 2.3 (R13SP1), the only workaround is to have the objective function display information each time it is executed.

More Answers (0)

Categories

Find more on Problem-Based Optimization Setup in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!