Select solver and optimization options, run problems
optimtool opens the Optimization app. Use the Optimization app
to select a solver, optimization options, and run problems. See
Optimization App for a complete description of the Optimization
app.  The Optimization app can be used to run any Optimization
Toolbox™ solver, and any Global Optimization Toolbox solver
except GlobalSearch and MultiStart. Results can be exported to a
file or to the MATLAB® workspace as a structure.
optimtool(optstruct) starts the Optimization app and loads
optstruct. optstruct can be either optimization options or an
optimization problem structure. Create optimization options with
the optimoptions or optimset function, or by using the export
option from the Optimization app. Create a problem structure by
exporting the problem from the Optimization app to the MATLAB
workspace. If you have Global Optimization Toolbox, you can
create a problem structure with the createOptimProblem function.
optimtool('solver') starts the Optimiz