Convex Optimization Problems and Optimality Conditions
Standard form, why local equals global, and the first-order optimality test.
Leads to: 10.3 introduces duality; 10.5 applies this to portfolios.
Learning Objectives
Click a status chip to cycle: Not started → In progress → Studied → Practiced → Needs review → Mastered.
- Write a convex optimization problem in standard form and identify its feasible set as convex.
- Prove that any local minimum of a convex problem is a global minimum.
- State the first-order optimality condition over a convex feasible set.
- Specialize optimality to the unconstrained case (\(\nabla f=0\)) and to equality constraints.
- Implement Euclidean projection onto the probability simplex.
Key Vocabulary
- Standard form
- Minimize \(f_0(x)\) s.t. \(f_i(x)\le0\) (convex) and \(Ax=b\) (affine).
- Feasible set
- The set of \(x\) satisfying all constraints; convex when constraints are convex/affine.
- Global vs local minimum
- Global: best over the whole feasible set. Local: best within a neighborhood. For convex problems they coincide.
- Optimality condition
- A test a point must satisfy to be optimal; over a convex set it is a variational inequality.
- Projection
- The nearest feasible point to a given \(z\): \(\Pi_C(z)=\argmin_{x\in C}\|x-z\|_2\); well-defined and unique for convex \(C\).
- Convex program
- An optimization problem with convex objective and convex feasible set.
Intuition & Motivation
Standard form
with \(f_0,\dots,f_m\) convex and the equality constraints affine. The feasible set \(\{x:f_i(x)\le0,\ Ax=b\}\) is an intersection of convex sublevel sets and an affine subspace - hence convex.
Interpretation: from the optimum, every feasible direction points ‘uphill or flat’ - no feasible descent direction exists. Two important specializations:
- Unconstrained (\(C=\R^n\)): (10.4) forces \(\nabla f_0(x^\star)=0\) - the familiar stationarity condition.
- Equality-constrained \(Ax=b\): feasible directions lie in the null space of \(A\), giving \(\nabla f_0(x^\star)\perp\mathcal N(A)\), i.e. \(\nabla f_0(x^\star)=A^\top\nu\) for some \(\nu\) (a preview of Lagrange multipliers).
Interactive: project onto the simplex
- Reporting a local minimum as merely local for a convex problem - it is automatically global.
- Applying \(\nabla f=0\) when constraints are active; then the correct condition is the variational inequality (10.4), not stationarity.
- Forgetting feasibility: an optimum must satisfy the constraints, not just the gradient condition.
- Assuming a non-convex objective's stationary point is a minimum - it may be a saddle or maximum.
- Model deliberately for convexity: a convex reformulation buys you a global, certifiable solution.
- For box/simplex constraints, projections have closed forms - the backbone of projected-gradient methods.
- The condition \(\nabla f_0(x^\star)=A^\top\nu\) foreshadows Lagrange multipliers (10.3).
Knowledge Check
Practical Exercise
Consider \(\min\ \tfrac12 x^\top Q x - c^\top x\) with \(Q\succ0\) and no constraints. (a) Write the optimality condition. (b) Solve for \(x^\star\). (c) Why is this the unique global minimizer?
(a) Unconstrained convex + differentiable: \(\nabla f=Qx-c=0\).
(b) \(x^\star=Q^{-1}c\) (well-defined since \(Q\succ0\) is invertible).
(c) \(Q\succ0\) makes \(f\) strictly convex, so any minimizer is unique; and for convex problems the stationary point is the global minimum. Hence \(x^\star=Q^{-1}c\) is THE global optimum.
Lesson Summary
Retrieval Practice
Close the lesson and answer from memory before checking. This is deliberate, effortful recall - the single highest-yield study action.
A: Any feasible point strictly better than \(x^\star\) would, by convexity, make a nearby convex combination even better and feasible, contradicting local optimality.
A: \(\nabla f_0(x^\star)^\top(y-x^\star)\ge0\) for all feasible \(y\); unconstrained it becomes \(\nabla f_0(x^\star)=0\).
Completion Checklist
- I can explain the core ideas in my own words
- I worked the derivations/examples by hand
- I completed the interactive workbench(es)
- I passed the knowledge check