필터 지우기
필터 지우기

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

조회 수: 6 (최근 30일)
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 CenterFile Exchange에서 Physics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by