Optimizers find the location of a minimum of a nonlinear objective function. You can find a minimum of a function of one variable on a bounded interval using
fminbnd, or a minimum of a function of several variables on an unbounded domain using
fminsearch. Maximize a function by minimizing its negative.
Find a nonnegative solution to a linear least-squares problem using
The equation solver
fzero finds a real root of a nonlinear scalar function.
Control the output or other aspects of your optimization by setting options using
Solve problems and set options using a visual interface with the Optimize Live Editor task.
|Optimize||Optimize in the Live Editor|
Minimizing and maximizing in one or more dimensions.
This example shows how to fit a nonlinear function to data by minimizing the sum of squared errors.
Optimize using a visual interface.
Controlling an optimization, displaying intermediate calculations.
Obtain intermediate output.
Describes how to monitor or halt solvers.
Describes how to monitor solvers visually.
Solve a nonlinear equation of one real variable.
How to address common issues.