mpcqpsolver
(To be removed) Solve a quadratic programming problem using the KWIK algorithm
mpcqpsolver
will be removed in a future release. Use
mpcActiveSetSolver
instead. For more information, see Version History.
Syntax
Description
Examples
Input Arguments
Output Arguments
Tips
The KWIK algorithm requires that the Hessian matrix, H, be positive definite. When calculating
Linv
, use:[L, p] = chol(H,'lower');
If p = 0, then H is positive definite. Otherwise, p is a positive integer.
mpcqpsolver
provides access to the QP solver used by Model Predictive Control Toolbox™ software. Use this command to solve QP problems in your own custom MPC applications.
Algorithms
mpcqpsolver
solves the QP problem using an active-set method, the
KWIK algorithm, based on [1]. For more information, see
QP Solvers for Linear MPC.
References
[1] Schmid, C., and L.T. Biegler. ‘Quadratic Programming Methods for Reduced Hessian SQP’. Computers & Chemical Engineering 18, no. 9 (September 1994): 817–32. https://doi.org/10.1016/0098-1354(94)E0001-4.
Extended Capabilities
Version History
Introduced in R2015bSee Also
Functions
mpcqpsolverOptions
|mpcActiveSetSolver
|mpcActiveSetOptions
|mpcInteriorPointSolver
|mpcInteriorPointOptions
|setCustomSolver
|quadprog
(Optimization Toolbox)
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