Main Content

Quadratic Programming and Cone Programming

Solve problems with quadratic objectives and linear constraints or with conic constraints

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 the problem-based approach, create problem variables, and then represent the objective function and constraints in terms of these symbolic variables. For the problem-based steps to take, see Problem-Based Optimization Workflow. To solve the resulting problem, use solve.

For the solver-based steps to take, including defining the objective function and constraints, and choosing the appropriate solver, see Solver-Based Optimization Problem Setup. To solve the resulting problem, use quadprog or coneprog.


expand all

evaluateEvaluate optimization expression
infeasibilityConstraint violation at a point
optimproblemCreate optimization problem
optimvarCreate optimization variables
solveSolve optimization problem or equation problem
coneprogSecond-order cone programming solver
optim.coder.infboundInfinite bound support for code generation
optimwarmstartCreate warm start object
quadprogQuadratic programming
secondorderconeCreate second-order cone constraint

Live Editor Tasks

OptimizeOptimize or solve equations in the Live Editor


SecondOrderConeConstraintSecond-order cone constraint object


Problem-Based Quadratic Programming

Solver-Based Quadratic Programming

Problem-Based Second-Order Cone Programming

Solver-Based Second-Order Cone Programming

Code Generation

Problem-Based Algorithms

Algorithms and Options