How to display fmincon output outside the command windows ? (Deported output)

조회 수: 4 (최근 30일)
Hi,
I use Matlab fmincon opitmizer through matlab engine in an application developed in Qt.
I would like to know if there is a way to have the fmincon realtime output displayed outside the Matlab command Window ? Ideally deported in a Qt interface or at least on a maltab window that can be open by the run manager.
For all other displays it works already well but the fmincon output (and I assume that it is the same thing with other algorithm) is only displayed at the end of the whole optimization. In that way, user has no feedbak of the optimization process until its finished. It is disturbing when a processus can takes several hours !
Thanks a lot for your help !

채택된 답변

Matt J
Matt J 2020년 7월 8일
편집: Matt J 2020년 7월 8일
The way to gain access to status information during the execution of fmincon is by using the OutputFcn option,
From within the Ouput Function, you can plot anything you want, anywhere you want, and use the status to trigger your own stopping criteria if you wish.
  댓글 수: 7
Matt J
Matt J 2020년 7월 9일
With the same error message? I don't see why that would happen.
Jérôme Vinçonneau
Jérôme Vinçonneau 2020년 7월 9일
finally it was a mistake in the wording and even if x is not used it is mandatory !!
Thanks a lot for your help

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Optimization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by