How do I plot the values at every iteration of an optimization algorithm against the value of the function to be optimized
Show older comments
Hello,
I am using fmincon to find the optimal variables to minimize a certain function, f(x). I want to be able to see the values of the variables at every iteration along with the associated value of f(x). I cannot seem to find what the values are at every iteration. The PlotFcns option doesn't really help.
Any ideas?
Answers (1)
Alan Weiss
on 26 Nov 2012
2 votes
Categories
Find more on Choose a Solver in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!