Convex Optimization
📐 Convex Optimization
Convex optimization is a subfield of mathematical optimization that studies the problem of minimizing convex functions over convex sets. It is the “gold standard” of optimization because any local minimum is also a global minimum.
🟢 1. Convex Sets and Functions
Convex Sets
A set is convex if the line segment between any two points in lies entirely within . Examples: Hyperplanes, half-spaces, and norm balls.
Convex Functions
A function is convex if its domain is a convex set and for all in its domain: Geometrically, this means the line segment connecting and lies above the graph of .
🟡 2. The Optimization Problem
A standard convex optimization problem is written as: Where are convex functions.
Why Convexity Matters
- Global Optimality: No local minima to get stuck in.
- Efficient Algorithms: Interior-point methods can solve these problems to very high precision in polynomial time.
- Duality: We can often find a “dual” problem that provides a lower bound on the optimal value.
🔴 3. Duality and KKT
The Lagrangian
The Lagrangian associates a multiplier with each constraint:
Dual Problem
The Lagrange dual function is always concave. The dual problem is to maximize subject to .
- Weak Duality: (The dual optimum is always less than or equal to the primal optimum).
- Strong Duality: (Usually holds for convex problems).