5 - Advanced Convex Optimization
Leave the polished solver output closed for a moment. Imagine instead that someone slides a result across the table and asks, “How do you know this is globally best?” This blog is our attempt to answer that question without hand-waving.
Linear, quadratic, and conic models gave us a useful vocabulary. This blog asks a deeper question: why can some large nonlinear-looking problems still be solved reliably, while apparently simpler ones trap us in poor local solutions? The answer is not the name of a solver. It is convex structure.
We will build that structure carefully. We will prove convexity rather than guess it, derive duals rather than quote them, and connect each algorithm to the geometry it exploits. Then we will return to the 2024 CUMCM crop-planning problem and rebuild its uncertainty layer using scenarios and conditional value-at-risk (CVaR). The aim is not to make the paper look more advanced. The aim is to make the promise “this decision remains acceptable when the data are wrong” mathematically testable.
Do not ask “Which algorithm should I mention?” Ask: What function and set do I have? What curvature can I prove? What certificate will tell me that I am done? The algorithm comes after those answers.
1. Convex Sets, Functions, and Epigraphs
A set
Half-spaces, affine sets, norm balls, positive-semidefinite cones, and intersections of convex sets are convex. A union of convex sets is generally not. The set
A function
Geometrically, the chord lies above the graph. The epigraph
is convex exactly when
If
The tangent plane never rises above a convex function. If
Proof examples
For log-sum-exp,
define softmax weights
where
For
so it is convex. This barrier is central to semidefinite and interior-point methods.
Useful closure rules include nonnegative weighted sums, pointwise maxima, affine composition
Is
2. Strong Convexity, Smoothness, and Conditioning
A differentiable function is
It is
For twice differentiable
give strong convexity and smoothness. The ratio
From smoothness,
Choose
This descent lemma justifies the step size
$$|x_k-x^|^2\le\left(1-\frac\mu L\right)^k|x_0-x^|^2.$$
Scaling and preconditioning try to reduce
3. Subgradients and Nonsmooth Models
At a kink, the ordinary gradient does not exist, but convexity still supplies supporting hyperplanes. A vector
The set of all such vectors is
A point minimizes a proper closed convex function iff
where
Subgradient descent uses
4. Conjugates and Duality Derived Systematically
The Fenchel conjugate is
It records all affine lower bounds of
with equality exactly when
Examples:
- If
, then . - If
, then is when and otherwise. - If
is the indicator of convex set , then , the support function.
Consider
Introduce
Minimizing over
Therefore the dual is
This one derivation produces duals for basis pursuit, regularized regression, network flows, entropy models, and many decomposable programs.
Strong duality needs conditions. Slater’s condition—existence of a point satisfying affine equalities and strictly satisfying convex inequalities—is a practical sufficient condition. Without a qualification, the duality gap may be positive and KKT multipliers may fail to exist.
5. Proximal Operators: Solving a Small Problem at Every Step
For a closed convex function
The quadratic keeps
To derive it, solve the one-dimensional problem separately for
For composite minimization
With
For LASSO,
the update is
where
6. Splitting and ADMM
Suppose
The scaled augmented Lagrangian leads to ADMM:
The primal residual is
ADMM is attractive when variables split by data block, geographic region, scenario, or regularizer. It is not automatically faster than a mature conic solver. Its value appears when decomposition makes subproblems parallel, private, or much smaller.
The penalty
7. Stochastic, Coordinate, and Large-Scale Methods
If
Noise makes early progress cheap but prevents constant-step iterates from settling exactly. Mini-batches trade variance for computation. Variance-reduced methods periodically use full gradients or control variates to recover faster convergence on finite sums.
Coordinate descent updates one coordinate or block. For smooth
Projected gradient handles a simple convex set
Projection onto a box clips coordinates; projection onto a simplex can be obtained by sorting and thresholding; projection onto an affine set solves a least-squares system. The word “projection” hides an optimization problem, so complexity depends on
8. Risk as a Convex Object: VaR and CVaR
Let
VaR reports a threshold but ignores how severe the tail becomes beyond it. CVaR measures expected tail loss. The Rockafellar–Uryasev representation is
$$\operatorname{CVaR}\alpha(L)=\min_\eta\left[\eta+\frac1{1-\alpha}\mathbb E(L-\eta)+\right].$$
With scenarios
If each scenario loss
Suppose five equally likely losses are
Risk aversion can be expressed as
or as a constraint $\operatorname{CVaR}\alpha\le R{\max}
9. Winning-Paper Case: Risk-Aware Crop Planning
The 2024 CUMCM crop-planning excellent paper extends its deterministic plan by treating demand, yield, price, and cost as uncertain, then incorporating CVaR. Let
where yield affects the link between planted area and sellable production. Let loss be
subject to
plus land, crop, rotation, and sales constraints for every scenario. Here
Building scenarios without manufacturing certainty
If the prompt states ranges rather than distributions, do not pretend they are precisely Gaussian. A defensible design might include:
- a nominal scenario;
- low/high demand by crop family;
- adverse yield and high cost;
- favorable demand but constrained production;
- correlated shocks, such as reduced yield coinciding with higher market price.
Scenario probabilities should come from evidence when available. Otherwise present them as assumptions and test alternatives. Independent random draws can destroy meaningful correlations. A drought that reduces multiple crop yields simultaneously is not represented by perturbing every crop independently.
Comparing decisions, not only objective values
For each
The excellent paper uses a DEGA heuristic to solve its extended model. That does not remove the need for bounds. Because much of the scenario-CVaR layer is linear once discrete crop choices are introduced, a MILP formulation can benchmark reduced instances. Compare heuristic value against the MILP incumbent and bound, then explain any remaining gap.
A four-scenario miniature
Let two crop allocations satisfy
With equal probabilities, vegetable has mean
10. Certificates, Failure Modes, and Reporting
A convex algorithm is trustworthy only when formulation and diagnostics agree. Track:
- primal feasibility;
- stationarity or dual feasibility;
- complementary slackness where relevant;
- primal-dual gap;
- objective change and iterate change;
- conditioning and scaling;
- out-of-sample scenario performance.
For composite problems, the proximal-gradient mapping
generalizes the gradient.
Common failure modes include:
- asserting convexity because a plot “looks bowl-shaped”;
- using a Hessian test outside its domain;
- treating KKT conditions as a global certificate for a nonconvex model;
- reporting a dual variable without its units or sign convention;
- tuning risk parameters on the same scenarios used to claim robustness;
- comparing algorithms at different tolerances;
- declaring convergence because the objective stopped changing while constraints remain violated;
- describing a heuristic as “convex optimization” merely because some subexpression is convex.
Sources and further reading
- CUMCM official site and excellent-paper display for the 2024 crop-planning case.
- Stephen Boyd and Lieven Vandenberghe, Convex Optimization.
- Neal Parikh and Stephen Boyd, Proximal Algorithms.
- Stephen Boyd et al., Distributed Optimization and Statistical Learning via ADMM.
- Rockafellar and Uryasev, Optimization of Conditional Value-at-Risk.
Convex optimization is powerful not because it makes modeling automatic, but because it connects geometry, algorithms, and certificates. When you can prove curvature, derive a dual, and measure optimality, the solver’s answer becomes an auditable argument rather than a mysterious number.
If you made it this far, here is the hidden exercise: derive the conjugate of
- Title: 5 - Advanced Convex Optimization
- Author: Gavin0576
- Created at : 2026-09-15 18:00:17
- Updated at : 2026-10-23 07:06:57
- Link: https://jiangpf2022.github.io/blog//2026/09/15/Mathematical-Modeling-05-Advanced-Convex-Optimization/
- License: This work is licensed under CC BY-NC-SA 4.0.