KKT conditions: summary#
Standard form formulation#
Consider the following general inequality and equality constrained optimisation problem written in a standard form:
There are
Lagrangian#
The Lagrangian has three components: the original objective function, the equality constraints multiplied by their Lagrange multipliers, and the inequality constraints multiplied by their Lagrange multipliers.
KKT Conditions#
Let’s look at each of these equations in a little more detail. We have:
Derivative of Lagrangian w.r.t. decision variables
equal to zero optimality conditionsDerivative of Lagrangian w.r.t. Lagrange multipliers
(equality constraints) primal feasibility (solution is feasible with respect to the primal constraints)Derivative of Lagrangian w.r.t. Lagrange multipliers
(inequality constraints) primal feasibilityThe multiplication of a Lagrange multiplier with its associated inequality constraint is zero
complementary slackness conditions (indicates that in some cases the inequality constraints might not be binding)Lagrange multipliers
need to be positive or zero dual feasibility
Interpretation of the complementary slackness conditions
If a constraint is binding, we can replace the inequality sign with an equality sign, so we have
The KKT conditions are a large set of equations. For simple cases addressed in this course, we can solve the problem by using trial-and-error. We try different combinations of constraints, come up with candidate solutions, then assess whether they are optimal or not. Depending on the problem, we reason which inequality constraints are likely to be binding. Then, we make them equality constraints, and their corresponding