12.07.2015 Views

What Is Optimization Toolbox?

What Is Optimization Toolbox?

What Is Optimization Toolbox?

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Specifying the OptionsPlot FunctionsYou can select a plot function to easily plot various measures of progresswhile the algorithm executes. Each plot selected draws a separate axis in thefigure window. If availableforthesolver selected, the Stop button in the Runsolver and view results window to interrupt a running solver. You canselect a predefined plot function from the <strong>Optimization</strong> Tool, or you can selectCustom function to write your own. Plot functions not relevant to the solverselected are grayed out. The following lists the available plot functions:• Current point — Select to show a bar plot of the point at the currentiteration.• Function count — Select to plot the number of function evaluations ateach iteration.• Function value —Selecttoplotthefunctionvalueateachiteration.• Norm of residuals — Select to show a bar plot of the current norm ofresiduals at the current iteration.• Max constraint — Select to plot the maximum constraint violation valueat each iteration.• Current step —Selecttoplotthealgorithmstepsizeateachiteration.• First order optimality — Select to plot the violation of the optimalityconditions for the solver at each iteration.• Custom function — Enter your own plot function as a function handle. Toprovide more than one plot function use a cell array, for example, by typing:{@plotfcn,@plotfcn2}See “Plot Functions” on page 6-25.5-39

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!