For a differentiable convex optimisation problem subject to ( convex) and (affine), how do you prove that any point satisfying the KKT conditions is globally primal-dual optimal and achieves zero duality gap?
Linear algebra and optimisation, Constrained optimisation
Level L5 Expert. Length Long. Nature Mat Mathematical.
What's being asked
Whether you can prove why KKT conditions are sufficient for global optimality on convex problems and why affine equality constraints are essential.
Key idea
At with , the Lagrangian is convex in . KKT stationarity says its gradient at is zero, so minimises the Lagrangian globally, which collapses to via complementary slackness and closes the duality gap.
Steps
- Check convexity of the Lagrangian in : . Since and each are convex, each (by KKT dual feasibility), and each is affine (hence convex even if ), is a non-negative combination of convex functions, so it is convex.
- Use KKT stationarity: . For a differentiable convex function, a zero gradient implies a global unconstrained minimum, so minimises over all .
- Evaluate the dual function at :
- Apply KKT complementary slackness () and primal feasibility (): all constraint terms vanish, leaving .
- Finish with weak duality: since is primal feasible (), . By weak duality, . Hence , proving is globally primal optimal, is dual optimal, and the duality gap is zero.
Common mistakes
- Allowing non-linear equality constraints while still claiming is convex in . If , can be non-convex even if is convex, which is why convex problems restrict equality constraints to be affine.
- Confusing necessity and sufficiency: this proof shows KKT is sufficient for convex problems without needing Slater's condition; Slater's condition is needed for the converse (necessity of KKT at an optimum).
How long your answer should be
One page; 7–8 minutes.
Last checked on 4 December 2026.
Read this
Previous in Linear algebra and optimisation: Let be convex with minimiser , and suppose stochastic gradients satisfy and . How do you prove that SGD with fixed step size satisfies for , and what step size gives the optimal rate?
Next in Linear algebra and optimisation: none