Products & Services Solutions Academia Support User Community Company

Learn more about Optimization Toolbox   

optimget - Optimization options values

Syntax

val = optimget(options,'param')
val = optimget(options,'param',default)

Description

val = optimget(options,'param') returns the value of the specified option in the optimization options structure options. You need to type only enough leading characters to define the option name uniquely. Case is ignored for option names.

val = optimget(options,'param',default) returns default if the specified option is not defined in the optimization options structure options. Note that this form of the function is used primarily by other optimization functions.

Examples

This statement returns the value of the Display option in the structure called my_options.

val = optimget(my_options,'Display')

This statement returns the value of the Display option in the structure called my_options (as in the previous example) except that if the Display option is not defined, it returns the value 'final'.

optnew = optimget(my_options,'Display','final');

See Also

optimset

  


Free Optimization Interactive Kit

Learn how to use optimization to solve systems of equations, fit models to data, or optimize system performance.

Get free kit

Trials Available

Try the latest version of optimization products.

Get trial software
 © 1984-2010- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS