Constrained Optimization — The Setup
We want to minimize subject to the constraint for some function . The feasible set is the isosurface — a hypersurface in .
We cannot just run unconstrained gradient descent — it might step off the surface. We need to understand which directions of movement are feasible (stay on ) and which make decrease.
Feasible directions at are exactly the tangent space . A direction decreases if .
So if there exists a with , we can move along to decrease while staying on — is not optimal. For to be a constrained minimum, no such direction can exist: for all .
Formal View
Why This Matters
Equality-constrained optimization is everywhere: engineering design with fixed resources, physics with conservation laws, economics with budget constraints.
- Budget-constrained utility maximization in economics
- Robot arm reaching target position (kinematic constraint)
- Circuit design: minimize power subject to performance constraints
- Machine learning: training with constraints (e.g., orthogonality)
Quiz
For constrained optimization s.t. , the feasible directions at are:
At a constrained minimum , what must be true about all tangent directions ?
A constrained minimum of on must also be an unconstrained critical point of .
The necessary condition for a constrained minimum is . This means:
Common Mistakes
- Confusing the feasible set (the surface ) with the constraint function .
- Forgetting that unconstrained critical points of need not be constrained critical points, and vice versa.
- Applying unconstrained gradient descent on the full space when the feasible set is a lower-dimensional surface.