Can fmincon output all the considered 'x' values for minimisation of the function f(x)?
Mostrar comentarios más antiguos
I am currently using fmincon to minimise a function f(x), I was hoping there would be a way I could, along with the value of x that minimises f(x), also output all the values of x that led to that final value?
I would like to be able to visualise the minimiser results through the iterations, as the function f(x) is of a quite high dimension.
Respuesta aceptada
Más respuestas (1)
Alan Weiss
el 18 de Mayo de 2015
1 voto
You can use an output function for this purpose. In fact, the example in that link shows how to do exactly what you want.
Alan Weiss
MATLAB mathematical toolbox documentation
Categorías
Más información sobre Solver Outputs and Iterative Display en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!