Solve a quadratic programming problem using an interior-point algorithm
Using mpcInteriorPointSolver
, you can solve a quadratic
programming (QP) problem using a primal-dual interior-point algorithm with Mehrotra
predictor-corrector. This function provides access to the built-in Model
Predictive Control Toolbox™ interior-point QP solver.
Using an interior-point solver can provide superior performance for large-scale optimization problems, such as MPC applications that enforce constraints over large prediction and control horizons.
This solver is useful for:
Advanced MPC applications that are beyond the scope of Model Predictive Control Toolbox software.
Custom QP applications, including applications that require code generation.
Alternatively, you can also access the built-in active-set QP solver using mpcActiveSetSolver
.
To determine whether H is positive definite, use the
chol
function.
[~,p] = chol(H);
If p
= 0, then H
is positive definite. Otherwise,
p
is a positive integer.
mpcInteriorPointSolver
provides access to the
interior-point QP solver used by Model
Predictive Control Toolbox software. Use this command to solve QP problems in your own custom
MPC applications. For an example of a custom MPC application, see Solve Custom MPC Quadratic Programming Problem and Generate Code. This example
uses a mpcActiveSetSolver
, however the workflow applies to
mpcInteriorPointSolver
as well.
mpcInteriorPointSolver
solves the QP problem using an
interior-point method. For more information, see QP Solvers.