Saving a matrix that have been created in a function in order to use it later.
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I use fmincon to minimize a function subject to nonlinear constraints. Every time a fmincon calls for a constraint evaluation i want save the values of the constraints, because i will need them on the next constraint evaluation.
2 comentarios
Stephen23
el 19 de Abr. de 2017
The constraints are dynamic? I am not sure that the fmincon algorithm will like that...
Respuestas (1)
dpb
el 19 de Abr. de 2017
You don't have to try to do that; use the functional form for the constraints for fmincon to call whenever it needs to evaluate the constraints--
0 comentarios
Ver también
Categorías
Más información sobre Solver Outputs and Iterative Display 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!