optimset
Create or modify optimization options structure
Syntax
Description
Create or modify options structure for MATLAB® solvers.
Note
optimoptions
is recommended instead of
optimset
for all solvers except fzero
,
fminbnd
, fminsearch
, and
lsqnonneg
.
returns options
= optimset(Name,Value
)options
with specified parameters set using one or more
name-value pair arguments.
optimset
(with no input or output arguments) displays a
complete list of parameters with their valid values.
(with no input
arguments) creates an options structure options
= optimsetoptions
where all
parameters are set to []
.
creates a copy of options
= optimset(oldopts
,Name,Value
)oldopts
and modifies the specified parameters
using one or more name-value pair arguments.
Examples
Input Arguments
Output Arguments
Limitations
optimset
sets options for the four MATLAB optimization solvers:fminbnd
,fminsearch
,fzero
, andlsqnonneg
. To set options for Optimization Toolbox™ or Global Optimization Toolbox solvers, the recommended function isoptimoptions
.optimset
cannot set options for some Optimization Toolbox solvers, such asintlinprog
. Useoptimoptions
instead.optimset
cannot set most options for Global Optimization Toolbox solvers. Useoptimoptions
instead.
Extended Capabilities
Version History
Introduced before R2006a