Main Content

Problem-Based Nonlinear Optimization

Solve nonlinear optimization problems in serial or parallel using the problem-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.

Formulate your objective and nonlinear constraint functions as expressions in optimization variables, or convert MATLAB® functions using fcn2optimexpr. For problem setup, see Problem-Based Optimization Setup.


evaluateEvaluate optimization expression or objectives and constraints in problem
fcn2optimexprConvert function to optimization expression
infeasibilityConstraint violation at a point
optimproblemCreate optimization problem
optimvarCreate optimization variables
prob2structConvert optimization problem or equation problem to solver form
solveSolve optimization problem or equation problem

Live Editor Tasks

OptimizeOptimize or solve equations in the Live Editor (Since R2020b)


Unconstrained Problem-Based Applications

Constrained Problem-Based Applications

Parallel Computing

Simulation or ODE

Algorithms and Other Theory