Lagrangians and KKT practice
Original practice questions (PDF)
Lagrangians, duals, and Slater’s condition
For each primal problem, give its Lagrangian, dual function, and dual problem (including its feasible set). Determine whether the primal is convex, whether Slater’s condition holds, and whether the optimal values agree. For Slater’s condition, use the course refinement that allows affine inequalities to hold with equality.
1. Minimum-norm point with linear inequalities
Minimize over subject to , where and .
Solution to exercise 1
With , The infimum is attained at . The dual maximizes over . The primal is convex and all constraints are affine, so feasibility suffices for the refined Slater condition and equal optimal values. The unrefined strict test would require , which depends on .
2. Minimizing a concave quadratic
Minimize over subject to .
Solution to exercise 2
For , . Thus if , and otherwise. The dual maximizes over , attaining at . The concave objective makes the problem nonconvex. The point is strictly feasible, and the primal attains at , so the two values agree by direct calculation.
3. Entropy on a constrained simplex
Minimize subject to and . Nonnegativity is included among the inequalities. Use the closed entropy convention , with domain .
Solution to exercise 3
Let on the nonnegative orthant. For and , For a scalar coefficient , the minimum of on is at . The dual therefore maximizes over those multiplier domains. The primal is convex. A feasible satisfies refined Slater because the constraints are affine and lies in the relative interior of the entropy domain. Such a point depends on the data. For any feasible instance the optimal values agree even if every feasible point has a zero coordinate. The convex perturbation value function is closed at zero because the perturbed sum constraint bounds all nearby feasible nonnegative vectors. Boundary-only feasibility can prevent attainment of the dual supremum.
4. A redundant quadratic inequality
Minimize over subject to .
Solution to exercise 4
For , and for every , so the dual has empty effective domain. The feasible set is all of . The displayed constraint function is concave, though dropping the redundant constraint gives an equivalent convex problem. Any is strictly feasible. The primal is unbounded below and both extended-real values are .
5. The domain of a quotient
Minimize subject to on its written domain , . What changes if the intended domain is ?
Solution to exercise 5
For either domain , . On , a fixed nonzero and give for . At , . The dual effective domain is , and both optimal values are 0, since any is feasible with . The primal domain is disconnected and the feasible set is nonconvex. A strictly feasible point exists, such as .
With , the constraint is equivalent to , a convex inequality, and satisfies Slater. For the original quotient Lagrangian restricted to , the dual function is because both nonnegative terms and can approach zero. The dual maximizes over and again gives the primal infimum 0. Neither primal infimum is attained.
6. Minimum norm with a residual bound
Minimize over subject to .
Solution to exercise 6
For , . Use and minimize the resulting quadratic in at . The quadratic-plus-norm minimizer has a norm subgradient giving a maximizing , so The dual can maximize the displayed expression jointly subject to . For , one can eliminate by taking .
The primal is convex. Slater holds exactly when some residual has norm less than . If the instance is feasible, the optimal values also agree at a boundary-only radius. The convex perturbation value function is closed at zero since the squared norm bounds any sequence of near-minimizers. A finite dual multiplier need not exist at that boundary.
7. Entropy with equality constraints
Minimize subject to and , with .
Solution to exercise 7
Keep in the entropy domain. With free multiplier , . The dual maximizes over . The primal is convex. A feasible satisfies the relative-interior qualification, which depends on . If the instance is feasible, the values agree even without that qualification because the entropy objective is continuous and coercive on the orthant. Thus bounded near-minimizers of perturbed equality problems have a feasible limit. The dual supremum need not be attained when the constraints force a zero coordinate.
KKT conditions and constraint qualification
For each problem, write the first-order KKT conditions and check Slater’s condition. Explain what the conditions imply about local or global optimality.
8. A quadratic on the simplex
Minimize subject to and .
Solution to exercise 8
Use free for the equality and for . Stationarity is . Include primal feasibility and . The point is strictly feasible for the inequalities. Convexity makes KKT sufficient for global optimality, and Slater makes the conditions necessary. The unique solution is .
9. A nonconvex objective on the disk
Minimize subject to .
Solution to exercise 9
Use . The conditions are The origin is strictly feasible for the disk, but the convex Slater theorem needs a convex objective. The active constraint has nonzero gradient on the boundary, so KKT is necessary at a local minimizer. The origin satisfies KKT and for small nonzero , demonstrating that KKT alone is insufficient.
10. A singleton feasible set
Minimize subject to .
Solution to exercise 10
KKT would require , , , and . The only feasible point is , which is globally optimal. There is no strictly feasible point and stationarity reads there, so the optimum has no KKT multiplier.
11. An affine objective and affine inequalities
Minimize subject to and .
Solution to exercise 11
With for and for , stationarity is . Include primal feasibility, , and . The point is strictly feasible. KKT characterizes global optima, which are all points with .
12. A nonlinear equality
Minimize subject to .
Solution to exercise 12
With free , KKT is together with . The equality is nonlinear, so the convex Slater theorem does not apply. Its gradient is nonzero on the circle, making KKT necessary for a local optimum. Both and satisfy stationarity, and the first maximizes while the second minimizes it.
13. A strictly convex constrained quadratic
Minimize subject to and .
Solution to exercise 13
With for the two sign-adjusted inequalities, stationarity is Include primal feasibility and . The unconstrained minimizer is strictly feasible, so Slater holds. It satisfies KKT with zero multipliers, giving the unique global optimum.