フィルターのクリア

Display message in GUI when solver stops prematurely

1 回表示 (過去 30 日間)
Alonso
Alonso 2016 年 6 月 27 日
コメント済み: Alonso 2016 年 6 月 28 日
I have a GUI that executes perfectly when the user enters the right information. However, if some datum doesn't coincide with the ones written before, the optimization algorithm (fmincon) can't find a proper answer. I have no problem with this, but I'd like to display a message (msgbox) when the "Solver stopped prematurely" but I can't find how to refer to this situation in the GUI.
Thank you for your assistance.

回答 (1 件)

Swarooph
Swarooph 2016 年 6 月 27 日
You can use the try-catch statement to handle potential errors and override default behavior. Documentation here .
  1 件のコメント
Alonso
Alonso 2016 年 6 月 28 日
Alright, then I'll try with those commands. Thank you

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGet Started with Optimization Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by