
R2013a
5-2
optimoptions function for setting options with compact and
comprehensive display
The new optimoptions function creates and modifies options for all solvers except the
base MATLAB
®
solvers fminbnd, fminsearch, fzero, and lsqnonneg. Continue to use
optimset for those functions.
optimoptions organizes options by solver, with a more focused and comprehensive
display than optimset:
• Creates and modifies only the options that apply to a solver
• Shows your option choices and default values for a specific solver/algorithm
• Displays links for more information on solver options and other available solver
algorithms
For details, see the optimoptions page, or Set Options.
Compatibility Considerations
If you export options or a problem from the Optimization Tool, the options are an object
as created by optimoptions. Therefore, earlier software versions cannot import the
options or problem. This consideration does not apply to the base MATLAB solvers,
which continue to encapsulate options as a structure.
Algorithm option replaces LargeScale option
Use the Algorithm option to select the algorithm in all solvers that have multiple
algorithms. In a future release, solvers will no longer use the LargeScale option. The
linprog Simplex option will also change to the Algorithm option.
Compatibility Considerations
Update options as follows.
Solver Previous Setting Current Setting
fminunc 'LargeScale' = 'on' 'Algorithm' = 'trust-
region'
Commentaires sur ces manuels