ESM / Concepts
KKT Conditions
Created
KKT = the conditions a point must satisfy to be optimal. It extends Lagrange multipliers to inequality constraints.
Lagrange intuition
Optimum on a constraint: the contour of touches the constraint (crossing → you could still improve) → gradients parallel:
- = decision variables: the optimizer chooses them
- = RHS of the constraint: the limit given from outside (e.g. demand = 300)
- = the best achievable value → = how much the best result changes when the limit changes by 1 = Shadow Price
What means (min, , )
= how much the minimum cost drops when constraint is relaxed by 1 → always ≥ 0. Mini dispatch: demand = 30 · A capacity = 10 · B capacity = 0 (non-binding)
Recipe
- Standard form: min; every constraint (move constants left, RHS = 0); name the multiplier next to it ; equalities
- Lagrangian:
- Conditions:
| Condition | Form | How many |
|---|---|---|
| Stationarity | one per variable | |
| Primal feasibility | , | one per constraint |
| Complementary Slackness | one per inequality | |
| Dual feasibility | one per inequality |
Why learn it
- Not to solve big LPs (that’s the solver; active-set guesses by hand)
- Shows why dual = price (Market Clearing)
- Several players can’t share one LP → write each player’s KKT and stack them = Mixed Complementarity Problem (W7)
Typical traps
- Bounds are constraints too: → →
- Write "" after each
- Inequalities can be added, never subtracted
- Write constraints as given, don’t simplify (÷2 → its ×2 and loses its unit, e.g. €/MWh)
Links: Duality, Shadow Price, Complementary Slackness, Mixed Complementarity Problem