Stopping pattern search when a target value is reached

This may be a feature request, rather than a question. I'd like to run pattern search until a particular target value is reached (not using a relative x or f criterion. I don't see an obvious way to do this --- does one exist?

Answers (1)

Use an output function, and have the function set the stop value to true when the solver reaches the condition you want.
Alan Weiss
MATLAB mathematical toolbox documentation

Products

Asked:

on 4 May 2018

Answered:

on 7 May 2018

Community Treasure Hunt

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

Start Hunting!