The complementarity gap
- Define the complementarity gap as
xᵀ r, wherer = c − Aᵀyis the dual slack (33:19). - Expand:
xᵀ(c − Aᵀy) = cᵀx − (Ax)ᵀy, and ifxis primal-feasible thenAx = b, so the gap is exactlycᵀx − bᵀy(34:28). - At optimality this gap is zero (
34:28).
The theorem
If
x*andy*are optimal for the primal and dual respectively, then for everyi, eitherx_i = 0or the dual slack(c − Aᵀy)_i = 0(36:00,36:39).
Proof
- By strong duality there is no primal–dual gap at optimality:
cᵀx − bᵀy = 0(36:39). - But
cᵀx − bᵀy = Σ_i x_i r_i(37:08). - Every term
x_i r_iis non-negative, so a sum of zero forces each term to vanish:x_i = 0orr_i = 0(37:08).