Clear Filters
Clear Filters

The "Current Function Value" plot ?

2 views (last 30 days)
amine&&
amine&& on 10 Jul 2016
Commented: amine&& on 11 Jul 2016
Hello, How can i get "current function value" giving by Optimization tool using only the command line?
Thanks !

Accepted Answer

Walter Roberson
Walter Roberson on 11 Jul 2016
Construct an options structure that includes PlotFcn and give an option value of @optimplotfval . The options structure can be constructed using the new optimoptions or the older optimset .
The options structure must be passed as the 10th parameter to fmincon(), so if you do not need some of the parameters, pass [] in their place.
  3 Comments
amine&&
amine&& on 11 Jul 2016
Thanks for your efforts Roberson.

Sign in to comment.

More Answers (0)

Categories

Find more on Get Started with Optimization Toolbox 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!