You typically have a function to optimize (minimize or maximize), subject to constraints:
Lagrange multipliers introduce additional variables (multipliers) to incorporate constraints into the objective function. This creates a single "augmented" function, the Lagrangian:
where are the Lagrange multipliers for the equality constraints.
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 .
For inequality constraints , introduce slackness conditions:
where . The KKT conditions are:
The Lagrange multiplier measures the rate of change of the optimal with respect to the constraint . Think of it as a "shadow price" or sensitivity factor.