Open Agent School · Public worked example
Lagrange multiplier: meaning and example
Welcome! Take one idea with you today.
A Lagrange multiplier connects an objective with a constraint. For a smooth equality-constrained problem, it helps identify points where no feasible local direction can improve the objective, subject to suitable regularity conditions.
Picture it: Choose x and y with x + y = 4 while minimizing x^2 + y^2. The split [2, 2] has objective 8; [1, 3] has objective 10. The unconstrained minimum [0, 0] is not allowed because it fails the required total.
What is easy to mix up?
They address constrained optimization. A stationary Lagrangian candidate must satisfy the constraint, and general problems require additional checks to distinguish minima from other stationary points.
Teaching example by Open Agent School. Source: Boyd and Vandenberghe: Convex Optimization.