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 日

0 投票

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 件のコメント

patrchri
patrchri 2020 年 6 月 16 日
Thank you very much for your answer.
I will give it a try.

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

その他の回答 (0 件)

カテゴリ

質問済み:

2020 年 6 月 16 日

コメント済み:

2020 年 6 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by