Plotting x vector of fmincon
Show older comments
Dear All,
I am trying to plot the x value of fmincon to show how the transition phase reaches its optimum value.
I will get x(1),x(2),(3),..... x(6)
Each x starts at initial point and reaches to its upper bound or to its lower bound. I would like to plot all the six variables on a single plot to present the transition of all the variables for every iteration.
I tried plotfn with options = optiset('Display', 'iter') it provides bars of the optimum values of variables.
It would also helpful if someone could help me how to save x variables for every iterations, so that i can plot.
Any suggestions are much appreciated.
Thank you,
Best Regards, Sai
Accepted Answer
More Answers (1)
Veeranki
on 8 Sep 2014
0 votes
Categories
Find more on Labels and Styling in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!