The complementarity condition , also complementary slip called (English complementary slackness ) is a statement of the mathematical optimization , the developed relationships between the optimum points of two optimization problems that dual to each other with respect to the Lagrangian duality are. The complementarity condition is a necessary optimality criterion and is used for inner point methods and the Karush-Kuhn-Tucker conditions .
statement
General case
Problem
Two optimization problems are given as in the following table:
Primal problem |
Dual problem
|
|
|
It is

the dual function and
statement
The complementarity condition is now

for permissible . An alternative formulation in vector notation with and is



-
.
If the -th Lagrange multiplier (the -th inequality restriction) is not equal to zero, the -th inequality restriction (the -th Lagrange multiplier) must therefore be equal to zero:




-
.
So at least one of the two factors must always be zero. This follows from the fact that and applies because both are dual or primal.


validity
Applies the strong duality (d. E. Are the optimum value of the primal and the dual problem the same), the optimum value is in and accepted, and it is finite, so the complementarity condition applies.


Alternatively, the KKT conditions also contain the formulation that if is optimal for the primal problem, is finite and certain regularity conditions (also called constraint qualifications ) exist , so that the complementarity condition applies. The regularity conditions guarantee the strong duality (mostly only in the point ) and thus enable the primal optimal solution to be supplemented by the dual optimal solution.





For linear programs
Problem
If the optimization problems are linear programs , the primal and the dual problem take on a special form and the complementary slack is simplified.
Primal problem |
Dual problem
|
|
|
There is and .


statement
Denote the i-th component of the vector . Then the complementarity condition for admissible is![[x] _ {i}](https://wikimedia.org/api/rest_v1/media/math/render/svg/32853b9e225c016c39907e415e5aab39f48fb6bc)

-
.
So follows
-
.
If the dual problem is formulated with a slack variable , then the constraints are


this is the complementarity condition
![(x ^ {*}) ^ {T} s ^ {*} = 0 {\ text {or}} [x ^ {*}] _ {i} \ cdot [s] _ {i} = 0](https://wikimedia.org/api/rest_v1/media/math/render/svg/753e6e19d0232e0c0dfbb9afc887cfc64c5f30c9)
and
-
.
This explains the naming as complementary slack: Either the slack variable is zero or the primal variable is zero.
validity
The formulation of the complementarity condition is based on the fact that strong duality holds for linear programs and the optimal value is finite if and only if both the primal and the dual problem have a feasible point.
The formulation is therefore that if the primal and the dual problem have admissible solutions, admissible solutions (or depending on the formulation ) exist that satisfy the complementarity condition. They are then optimal solutions to the primal and dual problem.



Conversely, every finite primal-dual optimal pair fulfills the complementarity condition.

example
We consider the primal linear program

and the associated dual program

Both problems have an allowable point, so strong duality applies. The optimal dual objective function value is . From the strong duality one deduces that is. The complementary slip now delivers




and with it . Thus, the complementary slip provides the complete primal optimum point here. Conversely, given primal and dual points, one can also check whether these are optimal points: If they are optimal, they must satisfy the complementary slack.

Derivation
Be primal optimal and dual optimal. Then and , since the optimal points are allowable. So is . Because of the strong duality is






The first curly bracket follows from the identity shown above, the second from the fact that da is permissible. If now is finite, then equality holds in the inequality and it follows



-
,
which implies the claim that each of the summands is less than or equal to zero.
Generalizations
The complementary slip can also be formulated more generally for mappings between complete real vector spaces that are provided with a scalar product and on which a generalized inequality or an order cone is defined. The functions map into the vector space provided with the scalar product , and the functions map into the vector space provided with the scalar product . The primal and dual problems are then







Primal problem |
Dual problem
|
|
.
|
It is

the dual function and the dual cone too .


If strong duality applies and if the points are as well as optimal and if the objective function value is finite, then applies


-
.
It follows

The derivation for this general case is largely analogous to the procedure above, making use of the fact that if is, it follows that .


If the problem is formulated with cones of order, so the inequality restrictions are of the form or , the same applies as above


-
.
The statement

but only applies if the cone has a non-empty interior. Applies analogously


only when the inside of is not empty.

literature
- Boyd, Stephen; Vandenberghe, Lieven (2004). Convex Optimization. Cambridge University Press. ISBN 978-0-521-83378-3 . ( online )
- C. Geiger, C. Kanzow: Theory and numerics of restricted optimization tasks . Springer, 2002. ISBN 3-540-42790-2 .