view options
optimoptions
“hides” some
options, meaning it does not display their values. for example, it
hides the patternsearch
maxmeshsize
option.
options = optimoptions('patternsearch','maxmeshsize',1e2)
options = patternsearch options: set properties: no options set. default properties: acceleratemesh: 0 constrainttolerance: 1.0000e-06 display: 'final' functiontolerance: 1.0000e-06 initialmeshsize: 1 maxfunctionevaluations: '2000*numberofvariables' maxiterations: '100*numberofvariables' maxtime: inf meshcontractionfactor: 0.5000 meshexpansionfactor: 2 meshtolerance: 1.0000e-06 outputfcn: [] plotfcn: [] pollmethod: 'gpspositivebasis2n' pollorderalgorithm: 'consecutive' scalemesh: 1 searchfcn: [] steptolerance: 1.0000e-06 usecompletepoll: 0 usecompletesearch: 0 useparallel: 0 usevectorized: 0
you can view the value of any option, including “hidden” options, by using dot notation. for example,
options.maxmeshsize
ans = 100
solver reference pages list “hidden” options in italics.
there are two reason that some options are “hidden”:
they are not useful. for example, the
ga
stalltest
option allows you to choose a stall test that does not work well. therefore, this option is “hidden”.they are rarely used, or it is hard to know when to use them. for example, the
patternsearch
maxmeshsize option is hard to choose, and so is “hidden”.
for details, see .