How can I stop Fmincon?

3 ビュー (過去 30 日間)
FAWAZ FAREAD AL BAKRI
FAWAZ FAREAD AL BAKRI 2025 年 3 月 22 日
回答済み: Walter Roberson 2025 年 3 月 22 日
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 Center および File ExchangeProgramming についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by