Main Content

Solver-Based Nonlinear Optimization

Solve nonlinear minimization and semi-infinite programming problems in serial or parallel using the solver-based approach

Before you begin to solve an optimization problem, you must choose the appropriate approach: problem-based or solver-based. For details, see First Choose Problem-Based or Solver-Based Approach.

For problem setup, see Solver-Based Optimization Problem Setup.

Functions

fminbndSolve single-variable local minimization problem on a fixed interval
fminconSolve constrained nonlinear multivariable minimization problem
fminsearchSolve unconstrained multivariable local minimization problem using derivative-free method
fminuncSolve unconstrained multivariable nonlinear minimization problem
fseminfSolve semi-infinitely constrained multivariable nonlinear minimization problem
checkGradientsCheck first derivative function against finite-difference approximation (Since R2023b)
optim.coder.infboundInfinite bound support for code generation (Since R2022b)

Live Editor Tasks

OptimizeOptimize or solve equations in the Live Editor

Apps

Optimization ExplorerExplore multiple solver configurations and their solutions for an optimization problem (Since R2026a)

Topics

Unconstrained Solver-Based Applications

Constrained Solver-Based Applications

Code Generation

Semi-Infinite Constraints

Parallel Computing

Simulation or ODE

Algorithms and Other Theory