mpcInteriorPointSolver
Solve a quadratic programming problem using an interior-point algorithm
Syntax
Description
Using mpcInteriorPointSolver, you can solve a quadratic
programming (QP) problem using a primal-dual interior-point algorithm with a 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.
Examples
Input Arguments
Output Arguments
Tips
To determine whether H is positive definite, use the
cholfunction.[~,p] = chol(H);
If
p= 0, thenHis positive definite. Otherwise,pis a positive integer.mpcInteriorPointSolverprovides 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 usesmpcActiveSetSolver, however, the workflow applies tompcInteriorPointSolveras well.
Algorithms
mpcInteriorPointSolver solves the QP problem using an
interior-point method, based on [1]. For more
information, see QP Solvers for Linear MPC.
References
[1] Nocedal, Jorge, and Stephen J. Wright. Numerical Optimization. New York, NY: Springer New York, 2006. https://doi.org/10.1007/978-0-387-40065-5.
Extended Capabilities
Version History
Introduced in R2020a
See Also
Functions
mpcInteriorPointOptions|mpcActiveSetSolver|mpcActiveSetOptions|setCustomSolver|quadprog(Optimization Toolbox) |InteriorPoint
Objects
Topics
- Solve Custom MPC Quadratic Programming Problem and Generate Code
- Simulate MPC Controller with a Custom QP Solver
- Simulate and Generate Code for MPC Controller with Custom QP Solver
- Optimizing Tuberculosis Treatment Using Nonlinear MPC with Custom Solver
- QP Optimization Problem for Linear MPC
- QP Solvers for Linear MPC