12.07.2015 Views

What Is Optimization Toolbox?

What Is Optimization Toolbox?

What Is Optimization Toolbox?

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Default Options SettingsDetermining Options Used by a FunctionThe options structure defines the options that can be used by the functionsprovided by the toolbox. Because functions do not use all the options, it can beuseful to find which options are used by a particular function.To determine which options structure fields are used by a function, pass thename of the function (in this example, fmincon) tooptimset.oroptimset('fmincon')optimset fminconThis statement returns a structure. Fields not used by the function haveempty values ([]); fields used by the function are set to their default valuesfor the given function.Displaying OutputTo display output at each iteration, enteroptions = optimset('Display', 'iter');This command sets the value of the Display option to 'iter', whichcausesthe toolbox to display output at each iteration. You can also turn off anyoutput display ('off'), display output only at termination ('final'), ordisplay output only if the problem fails to converge ('notify').Running Medium-Scale <strong>Optimization</strong>For all functions that support medium- and large-scale optimization problemsexcept fsolve, the default is for the function to use the large-scale algorithm.To use the medium-scale algorithm, enteroptions = optimset('LargeScale', 'off');For fsolve, the default is the medium-scale algorithm. To use the large-scalealgorithm, enteroptions = optimset('LargeScale', 'on');2-79

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

Saved successfully!

Ooh no, something went wrong!