Quadratic Program Direct Substitution

Version 1.0.0 (3 KB) by Josiah
Speedup quadratic program (quadprog) calls, by first performing direct substitution of any equality constraints.
4 Downloads
Updated 14 Jan 2026

View License

Solves a quadratic program using direct substitution of the equality constraints as opposed to passing the equality constraints to the QP-solver (which uses the Lagrange multiplier method to satisfy quality constraints). This method works by finding the null space of the equality constraints and solving a smaller QP for a solution within that null space.
This method is faster for some problems. For example, running quadprogds_test.m on Macbook A1, with 2000 variables in the QP and 400 equality constraints, this method took 0.9s versus 2.2s, a speedup 2.4x.

Cite As

Josiah (2026). Quadratic Program Direct Substitution (https://ch.mathworks.com/matlabcentral/fileexchange/183056-quadratic-program-direct-substitution), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2024a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags
Version Published Release Notes
1.0.0