optimtool

Select solver and optimization options, run problems

optimtool warns that it will be removed in a future release.

Syntax

optimtool
optimtool(optstruct)
optimtool('solver')

Description

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 except intlinprog, 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 for fmincon, fminunc, lsqnonlin, or lsqcurvefit using the createOptimProblem function.

optimtool('solver') starts the Optimization app with the specified solver, identified as a string, and the corresponding default options and problem fields. All Optimization Toolbox and Global Optimization Toolbox solvers are valid inputs to the optimtool function, except for intlinprog, GlobalSearch, and MultiStart.

Was this topic helpful?