Problemadvanced
Multiparametric quadratic programming
Also called mp-QP, parametric quadratic programming.
Find the solution of a strictly convex quadratic program as a function of a parameter in its linear cost term and constraint bounds; it is piecewise affine on polyhedral critical regions.
- Model
- Real RAM
Multiparametric quadratic programming (mp-QP) asks for the solution of a quadratic program not at one data point but for every value of a parameter vector that enters its linear cost term and the right-hand side of its constraints. For a strictly convex QP the answer has a clean structure (Bemporad, Morari, Dua and Pistikopoulos 2002): the parameters for which the QP is feasible form a polyhedron, it splits into polyhedral critical regions, one for each optimal active set, and on each region the optimizer is an affine function of . The optimizer is continuous and piecewise affine, and the optimal value is convex and piecewise quadratic. The main application is explicit MPC, where is the state and the solution is the MPC law for all states. The number of critical regions can be exponential in the number of constraints.
In plain words
A quadratic program finds the best point of a bowl-shaped cost inside a region with flat walls. Now let some of the numbers of the problem depend on a knob. Turning the knob moves the bowl and the walls a little, and the best point moves with it. For a fixed choice of which walls the best point touches, the best point moves along a straight line or plane as the knob turns. When the best point reaches a new wall or leaves one, a new piece starts. So the knob settings fall into pieces with flat sides, and on each piece there is a simple formula for the answer. The task is to find all the pieces and their formulas before anyone asks.
Definition
Input. A positive definite , matrices , , , a vector , and a polyhedron of parameters of interest. For each , the QP is
Output. The feasible parameter set ; a finite list of polyhedra that cover and have disjoint interiors; and for each an affine law (and, if wanted, as a quadratic function on ).
The critical region of an active set with linearly independent rows is the set of for which the solution of the KKT conditions with exactly the rows held as equalities is feasible and has nonnegative multipliers. Both conditions are affine in , so is a polyhedron, and on it
Structure (theorem, Bemporad et al. 2002). With : is a polyhedron; is unique, continuous and piecewise affine on ; is continuous, convex and piecewise quadratic; the critical regions are polyhedra.
Variants
- Parameter in the cost only, or in the bounds only. Both are special cases. With the feasible set does not depend on . With only the walls move.
- Single parameter. For the regions are intervals, and the solution is a piecewise affine path in . This is the classical setting of parametric quadratic programming, solved by homotopy methods that follow the path and change one active constraint at each breakpoint.
- Positive semidefinite . The optimizer may be nonunique. The value function is still convex and piecewise quadratic, but a continuous piecewise affine selection of the optimizer needs extra care.
- Multiparametric linear programming. With , the problem is an mp-LP: the value is convex and piecewise affine, and the optimizer can be chosen piecewise affine; see parametric linear programming.
- Parameter in or in . Then the solution is no longer piecewise affine in general, and the regions are not polyhedra.
- Mixed-integer versions. mp-MILP and mp-MIQP arise from hybrid MPC; the regions can overlap and the value function need not be convex.
Examples
One variable, one constraint. subject to , for . Here , , , , . There are two critical regions:
| region | active set | multiplier | ||
|---|---|---|---|---|
| none | ||||
is continuous and piecewise affine, and is convex, quadratic on one region and affine on the other. The two pieces agree at .
A box: exponentially many regions. subject to for , with . The QP separates by coordinates, and . For each coordinate there are three cases (lower bound active, no bound active, upper bound active), so there are exactly critical regions, each a box product of the intervals , , . With rows this is regions.
Explicit MPC of a double integrator. The explicit MPC page solves the mp-QP of a linear MPC problem with variables, rows and : 27 candidate active sets have independent rows, and 19 of them give regions with an interior point (measurement). The first input has only 7 different affine pieces on these 19 regions.
Known algorithms
- Geometric exploration (Bemporad et al. 2002). Solve the QP at one parameter, build its critical region, split the rest of the parameter set into polyhedra, and repeat in each piece.
- Facet stepping (Tøndel, Johansen and Bemporad 2003). From each facet of a known region, step a little across, and get the neighbor's active set by adding or removing the constraint of that facet. This avoids the artificial splits of the geometric method.
- Active set enumeration (Gupta, Bhartiya and Nataraj 2011). Enumerate candidate active sets in a tree by size, test each with a linear program, and prune all supersets of an infeasible set. The explicit MPC page implements a simple enumeration without pruning.
- Online point location. Once the partition is known, the online task is to find the region that contains . A sequential search costs ; a binary search tree on the hyperplanes of the partition (Tøndel, Johansen and Bemporad 2003) gives a depth logarithmic in when it is balanced. In two dimensions this is planar point location.
| Algorithm | Time | Space | Properties | Code |
|---|---|---|---|---|
| Explicit MPC | O(2^c (N^3 m^3 + c N m n + L)) worst | O(M (c + n) (n + N m)) extra | deterministicexactofflineiterative | 1 language |
Bounds
All in the real-RAM model, with variables, constraint rows and parameters.
- Upper bound on the regions (theorem). Different full-dimensional regions belong to different active sets with independent rows, and an independent set has at most rows. So .
- Lower bound (theorem). The box example has regions, so no algorithm that lists the regions explicitly can run in time polynomial in for all inputs.
- Size of one region. A critical region is given by primal inequalities and dual inequalities, so inequalities in , many of them often redundant. Removing the redundant ones costs one linear program per row.
- Per candidate set. Building the law and the region of one active set costs , plus a linear program to test for an interior point.
- Measured counts in MPC grow quickly with the horizon and the number of constraints; the counts on the explicit MPC page are 9, 19, 33 and 43 regions for horizons 2 to 5 (measurement).
Reductions
- Parameter in the cost to parameter in the bounds. The substitution turns the cost into plus a term in alone, and the constraints into . So every mp-QP with is equivalent to one with the parameter only in the right-hand side.
- Constrained linear MPC to mp-QP. Eliminating the states from a linear MPC problem with a quadratic cost gives an mp-QP with , variables and one row per constraint; see linear MPC.
- Fixed parameter to QP. For each fixed the problem is an ordinary QP, so any QP method gives one point of the solution, and the KKT multipliers identify its active set.
- Feasible set to projection. is the projection of the polyhedron onto , computable by Fourier-Motzkin elimination or by the union of the critical regions.
- Dual problem. By Lagrangian duality, the dual of the QP is a QP in the multipliers with in its linear term, and its piecewise affine multipliers are the dual counterpart of .
Applications
- Explicit MPC. The MPC law for every state, evaluated online by point location; see explicit MPC.
- Constrained LQR by backward recursion. In the backward recursion of a constrained linear quadratic problem, the cost to go is piecewise quadratic, and each step can be solved as one mp-QP per piece of the cost to go. This is another way to get the finite-horizon constrained LQR law as a piecewise affine function.
- Sensitivity analysis. How the solution of a QP changes when its data change; for linear programs see LP sensitivity analysis.
- Design under uncertainty and bilevel problems. When an inner QP depends on the decisions of an outer problem, its parametric solution replaces the inner problem by a finite list of affine laws.
References
- Alberto Bemporad, Manfred Morari, Vivek Dua and Efstratios N. Pistikopoulos, The explicit linear quadratic regulator for constrained systems, Automatica 38(1), 3-20, 2002, the mp-QP formulation, the polyhedral critical regions, the continuous piecewise affine optimizer, the convex piecewise quadratic value function, and the geometric algorithm
- Petter Tøndel, Tor Arne Johansen and Alberto Bemporad, An algorithm for multi-parametric quadratic programming and explicit MPC solutions, Automatica 39(3), 489-497, 2003, the exploration of the parameter space across the facets of the critical regions
- Petter Tøndel, Tor Arne Johansen and Alberto Bemporad, Evaluation of piecewise affine control via binary search tree, Automatica 39(5), 945-950, 2003, the binary search tree for the online point location in the partition
- Arun Gupta, Sharad Bhartiya and P. S. V. Nataraj, A novel approach to multiparametric quadratic programming, Automatica 47(9), 2112-2117, 2011, the combinatorial enumeration of optimal active sets with pruning
- Francesco Borrelli, Alberto Bemporad and Manfred Morari, Predictive Control for Linear and Hybrid Systems, Cambridge University Press, 2017, the chapter on multiparametric programming, with the properties of mp-LP and mp-QP solutions and the algorithms
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag 00MC8N Edit this page History Report an error Markdown