How to count how many times a nested function is being called during fmincon
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
patr chri
le 18 Juin 2020
Réponse apportée : patr chri
le 19 Juin 2020
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?
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Simulated Annealing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!