Primer on Lagrangians
You typically have a function
- Equality constraints:
, for . - Inequality constraints:
, for .
The Idea
Lagrange multipliers introduce additional variables (multipliers) to incorporate constraints into the objective function. This creates a single "augmented" function, the Lagrangian:
where
Procedure
-
Construct the Lagrangian: Combine
and into . -
Stationary Points: Find critical points by solving:
This ensures gradients of the objective and constraints are aligned.
-
Solve: Solve the system of equations to find
and .
Inequality Constraints (KKT Conditions)
For inequality constraints
where
, , , (complementary slackness).
Geometric Insight
The Lagrange multiplier