optimget
Read an optimization option value.
📝Syntax
value = optimget(options, name)
value = optimget(options, name, default)
📥Input Arguments
Parameter Description
options structure or solver options object.
name option name.
default fallback value.
📤Output Arguments
Parameter Description
value option value or default.
📄Description

optimget retrieves a named option, using a default when the option is absent or empty.

💡Examples
opts = optimset('MaxIter', 200);
maxiter = optimget(opts, 'MaxIter', 100)
🔗See Also
optimsetoptimoptions
Used Functions
optimset
📚Bibliography
J. Nocedal and S. J. Wright, Numerical Optimization, Springer, 2006.
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub