Plotting x vector of fmincon
이전 댓글 표시
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
채택된 답변
추가 답변 (1개)
카테고리
도움말 센터 및 File Exchange에서 Choose a Solver에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!