how to get the value of interations needed by nlmpcmove
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Andre Hirsch
el 8 de Ag. de 2019
Respondida: Harsha Priya Daggubati
el 14 de Ag. de 2019
hello everyone,
I am currently using the nlmpcmove() function to calculate the optimal solutions for my nonlinear problem. Since the calculations take quite some time, I wanted to try and limit the maximum iterations allowed for the solver to caluclate the solution. This works quite well.
But now to my problem:
I want to know how many iterations the solver needed for the optimal or suboptimal solution. The output [~,~,info], doesn't seem to give me enough information to do so!?
Does anyone know a simple solution? Thank you in advance :)
cheers
0 comentarios
Respuesta aceptada
Harsha Priya Daggubati
el 14 de Ag. de 2019
Hi,
A manual approach to find the number of iterations if to plot your Cost Function against Number of iterations using a for loop and examine the plot. If incase you plot does not converge choose a threshold and compare with the two subsequent cost function values.
You can also try using fmincon which provides similar functionality.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Model Predictive Control Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!