In mathematical optimization theory, the linear complementarity problem (LCP) arises frequently in computational mechanics and encompasses the well-known quadratic programming as a special case.
Formulation
Given a real matrix M and vector q, the linear complementarity problem seeks vectors z and w which satisfy the following constraints:
- (that is, each component of these two vectors is non-negative)
- for all i. (The complementarity condition)
A sufficient condition for existence and uniqueness of a solution to this problem is that M be symmetric positive-definite.
The vector is a slack variable, and so is generally discarded after is found. As such, the problem can also be formulated as:
- (the complementarity condition)
Relation to quadratic programming
According to the Karush–Kuhn–Tucker conditions, finding a solution to the linear complementarity problem is equivalent to minimizing the quadratic function
subject to the constraints
Because these constraints ensure that f is always non-negative, it attains its minimum of 0 at z if and only if z solves the linear complementarity problem.
If M is positive definite, any algorithm for solving (convex) QPs can of course be used to solve the LCP. However, there also exist more efficient, specialized algorithms, such as Lemke's algorithm and Dantzig's algorithm.
Also, a quadratic programming problem stated as minimize subject to as well as
is the same as solving the LCP with
This is because the Karush-Kuhn-Tucker conditions of the QP problem can be written as:
...being the multipliers on the non-negativity constraints, the multipliers on the inequality constraints, and the slack variables for the inequality constraints. The fourth condition derives from the complementarity of each group of variables ( ) with its set of KKT multipliers ( ).
In that case,
If the non-negativity constraint on the is relaxed, the dimensionality of the LCP problem can be reduced to the number of the inequalities, as long as is non-singular (which is guaranteed if it is positive definite). The multipliers are no longer present, and the first KKT conditions can be rewritten as:
or:
pre-multiplying the two sides by and subtracting we obtain:
The left side, due to the second KKT condition, is . Substituting and reordering:
Calling now and we have an LCP, due to the relation of complementarity between the slack variables and their multipliers . Once we solve it, we may obtain the value of from through the first KKT condition.
Finally, it is also possible to handle additional equality constraints:
This introduces a vector of Lagrange multipliers , with the same dimension as .
It is easy to verify that the and for the LCP system are now expressed as:
From we can now recover the values of both and the multiplier of equalities :
In fact, most QP solvers work on the LCP formulation, including the interior point method, principal / complementarity pivoting and active set methods.
See also
- Criss-cross algorithm
- Complementarity theory
- Physics engine Impulse/constraint type physics engines for games use this approach.
References
- Murty, K. G. (1988). Linear complementarity, linear and nonlinear programming. Sigma Series in Applied Mathematics. Vol. 3. Berlin: Heldermann Verlag. pp. xlviii+629 pp. ISBN 3-88538-403-5. (Available for download at the website of Professor Katta G. Murty.) MR 0949214
Further reading
- Cottle, Richard W.; Pang, Jong-Shi; Stone, Richard E. (1992). The linear complementarity problem. Computer Science and Scientific Computing. Boston, MA: Academic Press, Inc. pp. xxiv+762 pp. ISBN 0-12-192350-9. MR 1150683
- R. W. Cottle and G. B. Dantzig. Complementary pivot theory of mathematical programming. Linear Algebra and its Applications, 1:103-125, 1968.
- Fukuda, Komei; Namiki, Makoto (1994). "On extremal behaviors of Murty's least index method". Mathematical Programming. 64 (1): 365–370. doi:10.1007/BF01582581. MR 1286455.
{{cite journal}}
: Cite has empty unknown parameter:|1=
(help); Invalid|ref=harv
(help); Unknown parameter|month=
ignored (help) - Fukuda, Komei; Terlaky, Tamás (1997). "Criss-cross methods: A fresh view on pivot algorithms". Mathematical Programming: Series B. 79 (Papers from the 16th International Symposium on Mathematical Programming held in Lausanne, 1997). Amsterdam: North-Holland Publishing Co.: 369–395. doi:10.1016/S0025-5610(97)00062-2. MR 1464775. Postscript preprint.
{{cite journal}}
: Cite has empty unknown parameters:|1=
,|2=
, and|3=
(help); Invalid|ref=harv
(help); More than one of|number=
and|issue=
specified (help); Unknown parameter|editors=
ignored (|editor=
suggested) (help) - Terlaky, Tamás; Zhang, Shu Zhong (1993). "Pivot rules for linear programming: A Survey on recent theoretical developments". Annals of Operations Research. 46–47 (Degeneracy in optimization problems). Springer Netherlands: 203–233. doi:10.1007/BF02096264. ISSN 0254-5330. MR 1260019. PDF file of (1991) preprint.
{{cite journal}}
: Cite has empty unknown parameter:|1=
(help); Invalid|ref=harv
(help); More than one of|number=
and|issue=
specified (help)
External links
- LCPSolve — A simple procedure in GAUSS to solve a linear complementarity problem
- LCPSolve.py — A Python/NumPy implementation of LCPSolve is part of OpenOpt since its release 0.32