Products & Services Solutions Academia Support User Community Company

Learn more about Optimization Toolbox   

Specifying Certain Options

Plot Functions

You can select a plot function to easily plot various measures of progress while the algorithm executes. Each plot selected draws a separate axis in the figure window. If available for the solver selected, the Stop button in the Run solver and view results window to interrupt a running solver. You can select a predefined plot function from the Optimization Tool, or you can select Custom function to write your own. Plot functions not relevant to the solver selected are grayed out. The following lists the available plot functions:

The graphic above shows the plot functions available for the default fmincon solver.

Output function

Output function is a function or collection of functions the algorithm calls at each iteration. Through an output function you can observe optimization quantities such as function values, gradient values, and current iteration. Specify no output function, a single output function using a function handle, or multiple output functions. To provide more than one output function use a cell array of function handles in the Custom function field, for example by typing:

{@outputfcn,@outputfcn2}

For more information on writing an output function, see Output Function.

Display to Command Window

Select Level of display to specify the amount of information displayed when you run the algorithm. Choose from the following; depending on the solver, only some may be available:

See Enhanced Exit Messages for information on detailed messages.

Set Node interval, with the bintprog solver selected, to specify the interval of explored nodes you want to display output for. Note that integer feasible solution nodes are always shown.

Selecting Show diagnostics lists problem information and options that have changed from the defaults.

The graphic below shows the display options.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS