optimset still works, and it is the only way to set options for solvers that are available without an Optimization Toolbox™ license: fminbnd, fminsearch, fzero, and lsqnonneg.
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
intlinprog uses only optimoptions options.
The main difference in creating options is:
For optimoptions, you include the solver name as the first argument.
options = optimoptions(SolverName,Name,Value,...)
For optimset, the syntax does not include the solver name.
options = optimset(Name,Value,...)
For example, compare the display of optimoptions to that of optimset.
options = optimset('GradObj','on') options = optimoptions(@fminunc,'GradObj','on')