Convex Optimization
Optimization’s real watershed is not linear vs nonlinear but convex vs nonconvex: for a convex problem a local optimum is automatically global, and a simple gradient/KKT condition certifies it — convex problems are the ones you can actually solve and trust. The subject then has two jobs. (1) Recognize or build convexity — a calculus of convexity-preserving operations on sets and functions, the two welded together by the epigraph. (2) Exploit it — optimality conditions and, above all, duality, which lower-bounds every problem, closes the gap under Slater, certifies optimality via KKT, prices the constraints, and turns intractable robust/infinite problems into solvable ones. Problems sort into a hierarchy LP ⊂ QP ⊂ SOCP ⊂ SDP; modeling is transforming yours down to the simplest class that still holds it. A running thread climbs that tower: norm approximation . Prerequisites cashed in: PSD matrices, eigenvalues, SVD, projection (track 2); OLS / ridge / lasso (track 4); lasso geometry, SVM, soft-thresholding, logistic loss (track 6); MAP-as-penalty and conjugacy (track 7); MLE (track 3).
1. Why convexity — local is global
- Convex set: the segment between any two of its points stays inside — for . Convex function: its domain is convex and every chord lies above the graph,
(Affine = the boundary case, equality always; concave = convex.)
- The payoff — local optimum is global. Derive it. Suppose is locally optimal but some feasible has . Walk from toward : . Convexity bounds the value on the segment,
Because the feasible set is convex and are both feasible, every on the segment is feasible too. For small , is arbitrarily close to yet strictly better — contradicting local optimality. So no feasible point beats : local = global. This single fact is why convex problems are tractable; non-convex ones hide better optima in valleys you can’t see locally.
- Certifiability (first-order). For differentiable convex , the first-order Taylor expansion is a global underestimator:
From local information at you bound everywhere. Setting up the unconstrained optimum: then forces for all — a certificate of global optimality, not just a stationarity coincidence.
- Recognizing the easy cases. Least squares (, a bowl) and linear programs (linear objective, affine constraints) are the two oldest convex templates. The running example is convex for any norm (norms are convex) — the open question is which class it lands in (§4).
Implications
- “Local = global” is the entire reason the taxonomy below matters: every modeling trick exists to keep you inside the convex world where this holds.
- Certifiability means convex solvers return not just an answer but a proof (the dual certificate, §5) — you know you’re done.
Core competency set
- State convex set / convex function (chords above); prove local = global by the segment argument.
- State the first-order global-underestimator inequality and why certifies the unconstrained optimum.
2. Convex sets
-
Three notions, one knob: how free is in ?
- affine combination: , any sign — the whole line through any two points stays in. Example: the solution set (and conversely every affine set is such a solution set).
- convex combination: , — only the segment stays in.
- conic combination: (no sum constraint) — a convex cone holds all of these.
Each hull (affine/convex/conic) is the smallest such set containing ; loosening the constraint on enlarges the notion. A set is convex iff it equals its convex hull.
-
The example zoo — memorize the shape and a representation:
- hyperplane (normal ); halfspace — convex, not affine (not closed under scaling).
- Euclidean ball ; ellipsoid , , equivalently — the semi-axes are the singular values of (track 2).
- norm ball for any norm ( ball = diamond, = cube); norm cone — the Euclidean one is the second-order cone.
- polyhedron — a finite intersection of halfspaces and hyperplanes.
- PSD cone — a convex cone (the boundary is rank-deficient matrices); the workhorse of SDP (§4).
-
The working skill — build, don’t check. To show a set is convex, assemble it from the zoo via operations that preserve convexity (never grind the definition; that’s only for disproving — find two points whose midpoint escapes):
- intersection of any number of convex sets — a polyhedron is an intersection of halfspaces, and the construction extends to infinite intersections. Example: is convex — an infinite intersection of slabs, one per .
- affine image / preimage and — scaling, translation, projection; also the LMI solution set (preimage of , hence convex) and the hyperbolic cone .
- perspective () — the pinhole-camera map (divide by the last coordinate and drop it); preserves convexity both ways.
- linear-fractional — affine, then perspective.
-
Separating hyperplane theorem. Two nonempty disjoint convex sets can be separated: with on and on (build from the segment between the two closest points). Strict separation needs extra (e.g. one set closed, the other a point). This theorem is the existence engine behind duality (§5) and the Fredholm-style “either solve it or certify infeasibility” alternatives.
-
Supporting hyperplane theorem. At every boundary point of a convex set there is a supporting hyperplane with for all — a tangent halfspace containing . (Convexity is exactly what guarantees one exists at every boundary point.) This is the geometric content of strong duality: the dual optimum is the supporting hyperplane to the value set at the optimum (§5).
-
Generalized inequalities. A proper cone — convex, closed, solid (nonempty interior), pointed (contains no line) — defines a partial order . The two you use: componentwise () and the Löwner/PSD order (). Unlike on it is not a total order — some pairs are incomparable.
-
Dual cone (the vectors making a non-obtuse angle with all of ) — always convex, even if isn’t. and are self-dual; the norm cones are duals of each other. The dual cone supplies the multipliers for cone constraints (§4 SDP, §5).
-
Minimum vs minimal — and why scalarization works. With a non-total order, “smallest” splits in two:
- is the minimum of if for all (it beats everything; unique if it exists). Dual test: is minimum iff it is the unique minimizer of over for every .
- is minimal if nothing is strictly below it (); there can be many. Dual fact: if minimizes over for some then is minimal — and for convex every minimal point arises this way.
This is exactly scalarization: a single price collapses a vector objective to a scalar one whose solution is Pareto-optimal — the Pareto frontier is traced by sweeping (regularization tradeoff curves, §6).
Implications
- The convexity-preserving operations mirror §3’s function operations — and are the reason real modeling never invokes the definition: you assemble convex objects from a known kit.
- The supporting hyperplane theorem is the seed of duality: a separating/supporting hyperplane between the achievable-value set and the “better-than-” region is the optimal dual multiplier (§5’s geometric interpretation). Set geometry and duality are one story.
- Scalarization (minimal-via-dual-inequality) is why multi-objective problems reduce to weighted scalar ones, and why the regularization parameter traces a Pareto curve.
Core competency set
- Give the affine/convex/conic combination distinction (the knob) and the example zoo with a representation each (ellipsoid, norm cone, polyhedron, PSD cone).
- Name the convexity-preserving operations with an example each (infinite intersection, LMI preimage, perspective); state the separating and supporting hyperplane theorems and their link to duality.
- Define proper cone, , dual cone (self-dual examples); distinguish minimum vs minimal and state the scalarization (dual-inequality) characterization.
3. Convex functions
- Definition and the line test. is convex if is convex and every chord lies above the graph (§1). The practical checker: is convex iff its restriction to every line is convex — convex in for all , all . This collapses an -dimensional question to one dimension. Worked (): for on , restrict to the line and set . Factor out from both sides:
Take , using and :
Let be the eigenvalues of ; then has eigenvalues and , so the log of the product is a sum of logs:
Each is concave in and a sum of concave functions is concave, so is concave on every line — by the line test, is concave.
- First-order condition (differentiable): convex the tangent is a global underestimator,
Local slope bounds the entire function — the property that makes certify a global min (§1) and that powers the dual lower bounds (§5).
- Second-order condition: convex everywhere (PD ⟹ strictly convex). Worked, in rising difficulty:
- quadratic : , convex iff (the bowl opens up everywhere);
- least squares : gradient , so ; and for any because (track 2) — convex always;
- quadratic-over-linear (): partials , , then , , , which assemble as a rank-1 outer product scaled by , hence PSD;
- log-sum-exp (the smooth ): with , , and
by Cauchy–Schwarz on the vectors and — a genuine PSD proof, not an assertion.
- The epigraph bridge — the keystone. , everything on/above the graph. Then
This welds §2 to §3: every fact about convex sets becomes a fact about convex functions and back. It is also the reformulation trick behind half of modeling — replace “minimize ” by “minimize s.t. ” (§4). (Sublevel sets are convex too — but the converse fails, which is what makes quasiconvexity weaker.)
- Jensen. Convexity is exactly ; the probabilistic form is — you pay more on the downside than you recover on the up. (Reappears as the certainty-equivalence bound, §6.)
- The convexity calculus — atoms + operations. Never check the definition; decompose. Atoms: affine , any norm, , , , , log-sum-exp, quadratic-over-linear , (concave). Operations that preserve convexity, each with its signature use:
- nonnegative weighted sum / integral — , ;
- affine precomposition — the log-barrier (convex on the polyhedron interior, the engine of interior-point methods), and any norm of an affine map (the running example, convex for free);
- pointwise max — piecewise-linear , and the sum of the largest entries over index sets (a max of linear functions);
- pointwise sup — convex because (epigraph bridge). The support function , the distance to the farthest point of a set, and (a sup of linear-in- functions — that’s why max-eigenvalue is convex);
- composition : convex if ( convex ↑, convex) or ( convex ↓, concave) — read it off the chain rule ;
- partial minimization convex if is jointly convex and convex (Schur-complement minimization is the classic instance — minimizing a joint quadratic over leaves the Schur complement in );
- perspective () — cone-ifies ;
- conjugate — convex even if isn’t (a sup of affine functions of ); the biconjugate is the convex envelope (largest convex underestimator). Worked: negative entropy has conjugate — the term that makes the entropy-maximization dual closed-form (§5).
- Quasiconvex (weaker): all sublevel sets are convex (but itself need not be) — e.g. , the linear-fractional , internal rate of return. Optimized by bisection on (a convex feasibility problem at each threshold), not in one shot. Log-concave ( concave): Gaussian densities, CDFs — and preserved under products and (crucially) marginalization/convolution, the reason many statistical likelihoods stay tractable.
Implications
- The atom-list + operation-list is the subject’s working skill; the rest of modeling is pattern-matching your objective to it, never invoking the definition.
- The conjugate is the analytic engine of duality (§5) — the dual function literally is a conjugate of the objective.
- Sup-of-convex is convex but inf is not (unless jointly convex) — the asymmetry is why worst-case robustness (§6) is the hard direction and partial-minimization needs joint convexity.
Core competency set
- Use the line test (log-det example); state FOC (global underestimator) and SOC.
- Prove log-sum-exp convex via the Cauchy–Schwarz Hessian argument; prove convex epi convex and use it for pointwise sup.
- Recite the atoms and operations with a signature example each; give the composition rule and the negative-entropy conjugate.
- Define quasiconvex (sublevel sets) + bisection, and log-concave + what it survives.
4. Convex problems and the hierarchy
- Standard form: minimize s.t. (), (). It is a convex problem when are convex and the equalities are affine () — then the feasible set is convex and (§1) every local optimum is global.
- Optimality condition (differentiable ): is optimal iff feasible and
— the negative gradient points out of the feasible set; you can’t descend without leaving. Unconstrained, this is .
- Equivalent reformulations (solve one, recover the other) — the modeling toolkit:
- epigraph: s.t. (the bridge from §3) — turns any objective into a linear one with one extra constraint;
- slack variables: ;
- eliminate equalities: with ;
- introduce variables / partial-minimize to expose structure.
- The hierarchy — each class contains the previous; modeling is recognizing (or transforming to) the lowest one that holds your problem.
Linear program (LP) — s.t. . The feasible set is a polyhedron; the level sets of are parallel hyperplanes, so you slide the hyperplane across the polyhedron until it last touches — the optimum sits at a vertex.
- Diet problem (the archetype): cheapest food mix meeting nutrient floors, s.t. .
- Piecewise-linear minimization is not linear — but epigraph-ize the max: s.t. , an LP. (This is precisely how and norm approximation of the running example become LPs.)
- Chebyshev center — the gem. Find the largest ball inscribed in a polyhedron . “Maximize the inscribed radius” looks nonlinear, but the ball lies in halfspace iff its worst (deepest-into-the-constraint) point does. Split the sup off the constant term:
The inner sup is maximized at (Cauchy–Schwarz), giving , so the halfspace constraint becomes
linear in — so s.t. these constraints is an LP. Recognizing the linear problem hiding under a geometric description is the whole skill.
- Linear-fractional is quasiconvex (bisection), but homogenizes to an exact LP: set , , giving s.t. , , , .
Quadratic program (QP) — s.t. , with (the bowl). Minimize a convex quadratic over a polyhedron; the objective’s sublevel sets are ellipsoids, and the optimum is where the smallest ellipsoid touches the polyhedron.
- Least squares is the unconstrained QP, , with the analytic solution (track 2/4) — and the QP framework lets you add what OLS can’t handle: box bounds , ordering (isotonic regression), nonnegativity.
- Markowitz mean–variance (the archetype): with random cost (mean , covariance ), has mean and variance , so
trades expected cost against risk, the risk-aversion dial. The version of the running example lives here.
QCQP — convex-quadratic constraints too, (): the feasible set is an intersection of ellipsoids with an affine set.
Second-order cone program (SOCP) — s.t. (norm affine, not squared). Setting recovers a QCQP; recovers an LP — so SOCP strictly generalizes both. Robust LP with ellipsoidal data uncertainty lands exactly here (§6).
Geometric program (GP) — minimize a posynomial (sum of monomials , , any real exponents) s.t. posynomials , monomials . Not convex as written — but substitute and take logs: a monomial becomes affine , a posynomial becomes log-sum-exp of affine, both convex. The cantilever-beam design (minimize weight s.t. bounds on stress, deflection, aspect ratio) is the archetype — weight and stress are posynomials/monomials in the segment dimensions.
Semidefinite program (SDP) — the variable enters a linear matrix inequality ( symmetric), objective . Top of the everyday hierarchy.
- Eigenvalue minimization: , — use to get s.t. , an SDP.
- Everything is an SDP (the containment chain made concrete): an LP is s.t. (a diagonal LMI); an SOCP constraint is the LMI (Schur complement). So LP ⊂ QP ⊂ QCQP ⊂ SOCP ⊂ SDP is a true nesting — each solvable as the next, the price being a slower solver.
- Quasiconvex problems (quasiconvex objective, convex constraints) are solved by bisection — at each candidate value , the sublevel set is convex, so check feasibility; iterations (e.g. bounds , tolerance : feasibility solves).
- Picture to hold: the objective’s level sets are nested contours; slide to the lowest one still touching the feasible set. At the touch point the contour’s normal points back into the set — which is exactly .
Implications
- “Which class?” is the central modeling question: the lower the class, the faster and more reliable the solver, so transform down (the running example shows one problem taking different classes by norm choice).
- The epigraph reformulation is the universal move — it linearizes objectives and is why “minimize s.t. …” appears everywhere.
Core competency set
- Write standard form and the variational optimality condition .
- Reformulate via epigraph / slack / equality-elimination.
- Build the hierarchy LP ⊂ QP ⊂ QCQP ⊂ SOCP ⊂ SDP with the form + geometry of each; sort approximation by class.
- Reproduce the gems: piecewise-linear → epigraph → LP; the Chebyshev-center sup-derivation; Markowitz mean–variance QP; eigenvalue-min and LP/SOCP-as-SDP (diag / Schur). State bisection for quasiconvex.
5. Duality — the keystone
Constraints are inconvenient; price them instead of enforcing them. This one idea pays off four ways: it bounds, certifies, prices, and robustifies.
- The Lagrangian folds constraints into the objective with prices (inequalities) and (equalities):
( is the charge for violating ; you’re subsidized for slack. Sign convention matters — write constraints as so .)
- The dual function minimizes out : . It is concave always (an infimum of functions affine in ), even when the primal is non-convex — and it is built from conjugates, involves .
- Weak duality — bound. Derive it. Take any feasible and any . Since is an infimum over , it is below at this particular :
Expand and sign the two penalty terms — (, ) and ():
Chaining, for every feasible ; take the inf over feasible : . Every dual value is a lower bound on the primal optimum — for any problem, convex or not. The best bound is the dual problem , itself always convex. Picture to hold: each price vector lays a horizontal floor under ; the dual problem raises the highest floor, and under Slater the floor reaches the ceiling — the gap closes.
- Worked dual functions (the bound made concrete — each derivation is “form , minimize out , read off ”):
- Least-norm of linear equations s.t. . ; set ; substitute back:
a concave quadratic, giving for every (useful as a stopping certificate for iterative solvers).
- Standard-form LP s.t. . is affine in , so unless the -coefficient vanishes:
— finite only on an affine set, hence concave. Making that implicit constraint explicit, the dual of an LP is another LP: s.t. .
- Norm minimization s.t. : if , else , where is the dual norm — because when and otherwise.
- The dual function is a conjugate. For s.t. ,
so once you know the conjugate (§3) the dual is automatic — e.g. entropy maximization plugs in . The dual is the objective’s conjugate, evaluated at the constraint-transformed prices.
- Geometric interpretation — why duality works (the deep picture). Plot the achievable (constraint, objective) pairs in the plane (one inequality, for drawing). Then , and the dual value is
the lowest intercept of the line — a non-vertical supporting hyperplane of with slope , read where it crosses the -axis (). Raising tilts the line up to the highest intercept . So: strong duality = there is a non-vertical supporting hyperplane to (the epigraph of) at . For a convex problem that boundary is convex, so the hyperplane exists; and Slater — a point with — is exactly what forces it to be non-vertical, closing the gap. The multipliers are the slopes of that supporting hyperplane, tying duality back to §2’s hyperplanes.
- Strong duality — the gap closes. always (weak); (no gap) holds for convex problems under a constraint qualification — Slater’s: a strictly feasible point exists (, equalities met). LPs have strong duality whenever feasible. Duality is bigger than convexity: some non-convex problems (the trust-region subproblem s.t. , ) still have zero gap, and the dual of the non-convex two-way partitioning s.t. gives the bound — a free certificate from an SDP dual.
- Complementary slackness — derive it. Assume strong duality, and optimal. Run the weak-duality chain at equality:
Every "" is an equality, so ; each term is , so each is zero: . A constraint is either tight () or unpriced ().
- KKT conditions — certify. At a primal–dual optimum (with strong duality) all four hold: (1) primal feasibility ; (2) dual feasibility ; (3) complementary slackness ; (4) stationarity . For convex problems the converse holds — KKT ⟹ optimal: stationarity makes minimize so , and CS makes ; hence and weak duality says is optimal. KKT is the optimality certificate solvers return.
- KKT in action — water-filling (the worked example to know cold). s.t. (). Stationarity, dual feasibility, complementary slackness: , , . Casework on whether collapses to
Picture: the are floor heights of patches; pour one unit of water and it floods to a common level — patches poking above the waterline get . The dual variable is the water level. (This is how power is allocated across parallel communication channels.)
- Numeric anchor: . Try flooding all three patches, so and the budget reads . With this is , so and . But would give — patch 3 is above water; drop it and re-solve on : , so and . Now (3 stays dry) and (1,2 wet). Allocation , water level — the active set found by the same drop-and-recheck the KKT casework prescribes.
- Sensitivity — price. Perturb the constraints to , ; the optimal value satisfies the local shadow-price relation
A big means tightening constraint hurts a lot; a slack constraint has (CS, read as sensitivity). The multipliers are exactly the supporting-hyperplane slopes of §2.
Implications
- The four dividends are one idea: weak duality (bound) → strong duality (the bound is tight) → KKT (a checkable certificate) → shadow prices (what the constraints cost). This is the connective tissue of the whole field.
- Even for non-convex problems the dual gives a free lower bound and is convex — which is why hard combinatorial problems (two-way partitioning) get SDP-relaxation bounds from their duals.
- KKT specializes to everything you’ve seen: OLS normal equations, ridge, the lasso soft-threshold and its active-set (track 6), the SVM support vectors (track 6) — all are KKT systems.
Core competency set
- Write the Lagrangian and dual function; argue is concave; derive at least one worked dual (least-norm or LP) by “minimize out , read off .”
- State the dual-as-conjugate formula; draw the -set geometric interpretation and say what strong duality / Slater mean on it.
- Derive weak duality (the two-inequality chain) and complementary slackness (the sandwich).
- State the four KKT conditions, that KKT ⟺ optimal for convex problems, and solve water-filling; state the shadow-price reading of .
6. Recognizing convex problems in the wild
The skill that makes the theory pay: take a messy real problem and reveal/transform it into a convex program in the hierarchy.
Maximum likelihood
- MLE maximizes ; it’s a convex problem whenever the log-likelihood is concave in the parameters. iid data factorizes it into a sum, for the linear-measurement model .
- Gaussian noise ⟹ ⟹ MLE is least squares (a QP). The running example is the Gaussian MLE.
- Poisson counts (): — concave ( is), maximize s.t. .
- Logistic: — affine minus log-sum-exp, hence concave (track 6’s logistic regression, now seen as a convex program with a unique optimum). The ML-classification view: is non-convex, but maximizing the margin and applying any nonincreasing convex gives the convex surrogate — recovers logistic, the hinge recovers the SVM (track 6).
Norm approximation, regularization, and the dual’s residual story
- Choosing the norm in chooses the penalty on residuals, and the dual reveals where residuals concentrate. For the problem, the dual condition is with the minimizer of forcing unless — so approximation drives many residuals exactly to zero (sparse residuals), the same KKT mechanism as lasso’s sparse coefficients (track 6). Penalty shape is a modeling decision: dead-zone ignores small errors, log-barrier forbids large ones.
- Regularized approximation is bi-objective , scalarized to ; sweeping traces the optimal tradeoff curve. Tikhonov is ridge (track 4), regularization is lasso — the convex-optimization view of the penalty-as-prior dictionary (track 7).
Robust optimization — where duality earns its keep
- Data is uncertain in a set ; worst-case robustness minimizes — an infinite family of constraints, one per . The constraint set is still convex (intersection of convex sets), but you make it solvable by dualizing the inner sup into a finite program.
- Robust LP stays an LP under box uncertainty. Require for all ; the binding case is the worst , which maximizes . The box decouples across coordinates, and each independently picks :
So the robust constraint is , still linear-representable: introduce with and use — the term epigraph-izes into an LP. For ellipsoidal uncertainty , the same sup is , so the constraint reads — a norm affine, i.e. an SOCP (a general norm ball gives the dual norm ). Numeric feel: a manufacturing LP that loses most of its profit under a tiny data perturbation becomes, robustified, provably no worse than ~6% off the nominal optimum — a small price for guaranteed feasibility, bought entirely with the dual reformulation. Polyhedral uncertainty needs the Lagrange dual of the inner max: becomes , turning into finitely many linear constraints.
- Robust LS = regularized LS. With , random mean-zero covariance :
Robustness is Tikhonov regularization — and worst-case robust LS climbs to an SDP. The standing lesson: robustness moves you up the hierarchy (LP→SOCP→SDP), and duality is the vehicle.
Stochastic programming
- Objective/constraints depend on and a random ; minimize s.t. . If each is convex in for every , then is convex (linearity of expectation preserves it) — a convex problem, though usually without closed form.
- Certainty equivalence ignores noise, using . Jensen bounds the error: for convex in — the mean-field problem under-states the true (stochastic) optimum.
- Chance/violation constraints: replace "" with or a penalty on the violation — sometimes convex (SOCP for Gaussian linear constraints).
- Monte Carlo sample-average approximation replaces the expectation by samples. Solution and value are random; as they converge — but with a downward (optimistic) bias, , since . Validate out of sample (the firewall principle, track 6).
Optimal detector & experiment design (vector/SDP applications)
- Detector design: choose a randomized detector (columns are choice probabilities) to trade off false-positive vs false-negative rates — a vector objective; scalarize by and recover the Neyman–Pearson likelihood-ratio test analytically, or minimize the worst error as an LP.
- Experiment design: noisy measurements give estimator error covariance ; choosing the to make “small” (in the order) is an SDP — diversity of measurements (a larger ) shrinks the error.
Implications
- Every application is the same move: find the convex program underneath, then place it on the hierarchy. MLE concavity, regularization-as-prior, and robust-LS-as-Tikhonov all unify stats/ML methods you met elsewhere under one optimization roof.
- Duality is not just theory: it’s the concrete tool that converts a sup-over-uncertainty (infinite constraints) into a finite SOCP/SDP — the workhorse of robust optimization.
Core competency set
- Show Gaussian/Poisson/logistic MLE are concave and place each in the hierarchy; give the margin-surrogate view of classification.
- Explain the dual’s sparse-residual story and regularization-as-scalarization (ridge/lasso/Tikhonov).
- Derive robust-LP-box → and robust-LS → Tikhonov; state “robustness climbs the hierarchy via duality.”
- State certainty-equivalence (Jensen bound) and the MC downward bias.
7. Memorize cold
- Convex set: segment stays in; convex function: chords above, .
- Local = global for convex (segment-contradiction proof); FOC global underestimator ; SOC .
- Epigraph bridge: convex epi convex; minimize--s.t.- reformulation.
- Convexity-preserving ops (functions): nonneg sum, affine precomp, pointwise sup (epigraph intersection), composition rule, partial min (jointly convex), perspective, conjugate .
- Affine/convex/conic = the knob (sum-1 any-sign / sum-1 nonneg / nonneg). Zoo: halfspace, ellipsoid , norm cone, polyhedron, PSD cone .
- Convexity-preserving ops (sets): intersection (even infinite), affine image/preimage, perspective , linear-fractional. Separating hyperplane (disjoint convex → separates); supporting hyperplane (convex → one at every boundary point) = the seed of duality.
- Proper cone (convex/closed/solid/pointed) → (not total); dual cone ; self-dual, dual. Minimum (beats all; unique-min of every ) vs minimal (nothing below; minimizes some ) → scalarization/Pareto.
- Hierarchy LP ⊂ QP/QCQP ⊂ SOCP () ⊂ SDP (); GP convex after ; quasiconvex by bisection.
- LP gems: piecewise-linear → epigraph → LP; Chebyshev center . QP gems: least squares = unconstrained QP; Markowitz . SDP: ; LP/SOCP as SDP via diag / Schur.
- Optimality (diff’able): feasible ; unconstrained .
- Lagrangian ; dual is concave always; (dual = conjugate). Worked: least-norm ; LP dual is an LP s.t. ; norm-min needs .
- Weak duality (always); strong under Slater (strict feasibility); gap . Geometric: = -intercept of a non-vertical supporting hyperplane (slope ) of ; strong duality = such a hyperplane at , Slater forces non-vertical.
- Complementary slackness (tight or unpriced). KKT = primal feas + dual feas + CS + stationarity ; for convex problems KKT ⟺ optimal. Water-filling: , = water level.
- Shadow price .
- MLE concave ⟹ convex: Gaussian→LS, Poisson, logistic (affine − log-sum-exp); margin surrogate .
- Robust LP box → ; norm-ball → dual-norm SOCP; robust LS = Tikhonov ; robustness climbs the hierarchy via duality.
- Certainty equivalence Jensen bound ; MC downward bias .
Named moves (cross-track glossary): local-is-global (the watershed); build-don’t-check (convexity calculus of atoms + operations); epigraph-bridge (sets↔functions, minimize-); recognize-the-class then transform-down the hierarchy; price-the-constraints (Lagrangian); inf-of-affine-is-concave (dual function); dual-is-a-conjugate; supporting-hyperplane-of-the--set (the geometric why of duality); weak-duality-bound then close-under-Slater; the-sandwich (complementary slackness); water-fill (KKT casework); KKT-as-certificate (and KKT-systems behind OLS/ridge/lasso/SVM — tracks 4, 6); shadow-price (sensitivity); scalarize-the-vector-objective (regularization, detector design); dualize-the-inner-sup (robust optimization, infinite → finite); robustness-climbs-the-hierarchy.