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
How can I stop Fmincon?
3 次查看(过去 30 天)
显示 更早的评论
Hi all,
How can I stop the fmincon if the cost function tracks a certian value?
0 个评论
回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!