フィルターのクリア

How to count how many times a nested function is being called during fmincon

6 ビュー (過去 30 日間)
patr chri
patr chri 2020 年 6 月 18 日
回答済み: patr chri 2020 年 6 月 19 日
Hello,
I am working with a Non-linear MPC and I am using fmincon for the optimization. The NMPC runs in Simulink and currently I am trying to modify optimplotfval in order to extract the number of iterations, the optimum value and the current time step of simulation for each optimization result. One way I thought that I could include time is to count the numbers that my version of optimplotfval will be called during the simulation and then use this counter knowing the step of the solver to extract the time.
I would like to ask how would it be possible for me to implement this or even if there is a better way to approach to this?

採用された回答

patr chri
patr chri 2020 年 6 月 19 日
I found the answer by looking at this topic:

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePhysics についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by