How can I stop Fmincon?

3 次查看(过去 30 天)
FAWAZ FAREAD AL BAKRI
Hi all,
How can I stop the fmincon if the cost function tracks a certian value?

回答(1 个)

Walter Roberson
Walter Roberson 2025-3-22
Use an OutputFcn and set the "stop" output according to whether you want to stop or not. https://www.mathworks.com/help/optim/ug/output-function.html#f11675

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by