Mathematics |
Setting Minimization Options
You can specify control options that set some minimization parameters using an options
structure that you create using the function optimset
. You then pass options
as in input to the optimization function, for example, by calling fminbnd
with the syntax
Use
optimset
to set the values of the options
structure. For example, to set the 'Display'
option to 'iter'
, in order to display output from the algorithm at each iteration, enter
fminbnd
and fminsearch
use only the options
parameters shown in the following table.
The number of function evaluations, the number of iterations, and the algorithm are returned in the structure output
when you provide fminbnd
or fminsearch
with a fourth output argument, as in
Fitting a Curve to Data | Output Functions |
© 1994-2005 The MathWorks, Inc.