What is strong duality, what does Slater's condition state, and how do you derive the Lagrange dual of subject to and verify that the duality gap is zero?
Linear algebra and optimisation, Duality
Level L3 Intermediate. Length Long. Nature Mat Mathematical.
What's being asked
Whether you know when weak duality becomes an equality and can derive an explicit dual problem and check strong duality.
Key idea
Strong duality means the dual optimal value equals the primal optimal value (). For convex problems, Slater's condition guarantees strong duality whenever there exists at least one strictly feasible point satisfying every inequality constraint strictly ().
Steps
- Define strong duality (, i.e. zero duality gap ) and state Slater's condition: for a convex problem subject to and , if there exists a strictly feasible in the relative interior of the domain (all of when unconstrained by domain) with and for all non-affine (and plain feasibility suffices when all constraints are affine), then strong duality holds.
- Rewrite the primal constraint in standard form: . Slater's condition holds trivially because the constraint is affine (and is strictly feasible with ).
- Form the Lagrangian for : .
- Compute the dual function : set and , giving . Substituting back yields .
- Solve the dual problem : setting gives , with .
- Verify zero duality gap: at , is primal feasible () with . By weak duality, , so and the duality gap is zero.
Common mistakes
- Writing the constraint as (which reverses the inequality) or forgetting in the dual problem.
- Thinking convexity alone always guarantees strong duality. Without a constraint qualification such as Slater's condition, even convex problems can have a non-zero duality gap.
How long your answer should be
Half to one page; 6 minutes.
Last checked on 4 December 2026.
Read this
Previous in Linear algebra and optimisation: How do step decay, decay and cosine annealing learning-rate schedules differ, and why do the Robbins–Monro conditions (, ) require the step size to decay neither too fast nor too slow for SGD convergence?
Next in Linear algebra and optimisation: Solve subject to and using the KKT conditions. Which constraint is active at the optimum, and why does the unconstrained minimum fail?