To optimize f(x) subject to a constraint g(x) = 0, form the Lagrangian f(x) + lambda times g(x) and set its gradient to zero; at the solution the gradients of f and g are parallel.
Inequality constraints use KKT conditions.
ML examples: the SVM margin problem and its dual (which leads to kernels), and regularization seen as a constrained problem (minimize the loss subject to a bound on the weight norm).
Loading…