필터 지우기
필터 지우기

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 CenterFile Exchange에서 Get 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