필터 지우기
필터 지우기

How to see at each iteration the results of fmincon

조회 수: 7 (최근 30일)
patr chri
patr chri 2020년 6월 16일
댓글: patr chri 2020년 6월 16일
Hello,
I am using a Non linear MPC formulation for my problem, but I would like to check the results of fmincon at each iteration or generally see the "under the hood" options of the Non linear MPC solver.
How could I do that?

채택된 답변

rubindan
rubindan 2020년 6월 16일
The options OutputFcn and PlotFcn (which you specify using optimoptions) allows you see what happens in each iteration online.
I for exmaple once written a custom OutputFcn to save each iteration data in a log file.
  댓글 수: 1
patr chri
patr chri 2020년 6월 16일
Thank you very much for your answer.
I will give it a try.

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by