Constrained Optimization

Constrained optimization minimizes an optimization objective only over allowed solutions. The constraint may encode physics, budgets, fairness rules, simplex probabilities, or margins as in support vector machines.

Defining math

A constrained problem has the form

For equality constraints, the Lagrangian is

At a regular equality-constrained optimum, stationarity requires

The multiplier says how much the optimum would change if the constraint moved. In convex optimization, additional KKT conditions can certify global optimality, while the stationarity equation is still written in terms of gradients.

Worked example

Minimize subject to . The Lagrangian is , and stationarity in and gives

so . The constraint then forces (with ). The unconstrained minimum of is , but the line pushes the closest feasible point to , where the objective is .

Caveats

Constraints can make easy-looking objectives hard. Infeasible constraints, badly scaled constraints, and active-set changes often create more numerical stability trouble than the objective itself, so monitor feasibility alongside objective value.

References