Convex Analysis and OptimalityIntroductionConvexity is the mathematical structure that makes many optimization problems reliable, interpretable, and computationally tractable. In business analytics, convex models arise in portfolio allocation, regression, pricing, supply-chain planning, resource allocation, classification, and risk management. The central advantage is that, under suitable assumptions, every local optimum is also a global optimum. Consequently, optimization algorithms do not need to search among many deceptive local solutions. This chapter develops the geometry and analysis underlying convex optimization. It begins with convex sets and convex combinations, then introduces convex functions through line segments and epigraphs. Separation theorems explain why supporting hyperplanes exist, while subgradients extend derivatives to nonsmooth functions. These ideas lead to first-order and Karush–Kuhn–Tucker optimality conditions, duality, and practical modeling principles. Learning ObjectivesBy the end of this chapter, the reader should be able to: - Define convex combinations, convex sets, cones, and polyhedra.
- Test whether a function is convex using definitions, Hessians, and composition rules.
- Interpret epigraphs and sublevel sets geometrically.
- Use gradients and subgradients to establish global optimality.
- Explain separation and supporting-hyperplane results.
- Apply KKT conditions to constrained convex programs.
- Recognize the practical benefits and limitations of convex optimization.
1. Convex Sets and Their GeometryA set contains every straight-line interpolation between any two of its points if it is convex. Formally, a set C ⊆ ℝⁿ is convex when, for every x, y ∈ C and every θ ∈ [0,1], θx + (1 − θ)y ∈ C Here θ is a scalar weight, and the expression is a convex combination. The endpoints correspond to θ = 0 and θ = 1; intermediate values produce points on the line segment joining x and y. Examples include intervals, affine subspaces, half-spaces, Euclidean balls, norm balls, polyhedra, and the positive semidefinite cone. A circle boundary alone is generally not convex, whereas the filled disk is convex. A feasible region formed by linear inequalities is convex because each inequality defines a half-space and intersections of convex sets remain convex. An affine set has the form {x ∈ ℝⁿ : Ax = b} where A and b are fixed. An affine set is convex, although it need not contain the origin. A polyhedron has the form P = {x ∈ ℝⁿ : Ax ≤ b, Ex = d} where inequalities are interpreted componentwise. Linear programming feasible regions are polyhedra and therefore convex. A convex cone C satisfies x ∈ C and α ≥ 0 ⇒ αx ∈ C. Important cones include the nonnegative orthant and the second-order cone. Cones are important in conic optimization because they provide a unified language for linear, quadratic, and semidefinite models. Convex combinations and hullsGiven points x₁,…,xₖ, their convex hull is the set of all convex combinations: conv{x₁,…,xₖ} = {∑ᵢ₌₁ᵏ λᵢxᵢ : λᵢ ≥ 0, ∑ᵢ₌₁ᵏ λᵢ = 1} The convex hull is the smallest convex set containing the points. This concept is useful in scenario analysis: if a demand vector is a convex combination of observed scenarios, it lies within the scenario hull and can be interpreted as a weighted mixture of those scenarios. 2. Convex FunctionsA function f defined on a convex domain D is convex if, for all x, y ∈ D and θ ∈ [0,1], f(θx + (1 − θ)y) ≤ θf(x) + (1 − θ)f(y) The function value along a chord is at least as large as the function value at the corresponding point. Thus, the graph of a convex function bends upward relative to its chords. A function is strictly convex if the inequality is strict whenever x ≠ y and 0 < θ < 1. A concave function satisfies the reverse inequality. A function may be neither convex nor concave; for example, a cubic function over all of ℝ is generally neither. First-order characterizationIf f is differentiable on an open convex domain, then f is convex if and only if f(y) ≥ f(x) + ∇f(x)ᵀ(y − x) for all x and y in the domain. The right side is the tangent-plane approximation at x. Convexity means every tangent plane lies below the graph. This inequality also gives a global lower bound, which is fundamental for optimization and algorithm design. If f is twice differentiable, convexity is equivalent to positive semidefiniteness of the Hessian: ∇²f(x) ⪰ 0 for every x in the domain. The notation ⪰ 0 means that vᵀ∇²f(x)v ≥ 0 for every vector v. Strict positive definiteness, ∇²f(x) ≻ 0, implies strict convexity on suitable convex domains, although positive definiteness is a sufficient condition and domain assumptions must still be respected. For a quadratic function f(x) = ½xᵀQx + cᵀx + r with symmetric Q, f is convex exactly when Q ⪰ 0. Here x is the decision vector, c is a coefficient vector, and r is a scalar constant. If Q ≻ 0, the function has a unique minimizer in an unconstrained problem. ExamplesThe exponential function f(t) = exp(t) is convex because f″(t) = exp(t) > 0. The squared Euclidean norm f(x) = ‖x‖₂² is convex because its Hessian is 2I. The absolute-value function f(t) = |t| is convex but not differentiable at t = 0. The logarithm is concave on t > 0, while −log(t) is convex there. Operations preserving convexityThe following rules are frequently used in model construction: | Operation | Condition | Result |
|---|
| Nonnegative weighted sum | fᵢ convex, αᵢ ≥ 0 | ∑ᵢ αᵢfᵢ is convex | | Affine composition | f convex, Ax+b affine | f(Ax+b) is convex | | Pointwise maximum | Each fᵢ convex | maxᵢ fᵢ is convex | | Restriction | Convex f on a convex subset | Remains convex | | Perspective transformation | f convex, t > 0 | tf(x/t) is convex |
A nonnegative weighted sum is especially important in statistical learning. For example, a regularized loss may be written as F(w) = (1/m)∑ᵢ₌₁ᵐ ℓᵢ(w) + λR(w) where ℓᵢ is a convex observation loss, R is a convex regularizer, m is sample size, and λ ≥ 0 controls regularization strength. The resulting objective is convex. 3. Epigraphs and Sublevel SetsThe epigraph of f is epi(f) = {(x,t) : x ∈ dom f, t ≥ f(x)} It is the region on or above the graph. A fundamental theorem states that f is convex if and only if epi(f) is a convex set. This converts function analysis into set geometry and is the basis of disciplined convex modeling. For example, the epigraph of f(x) = x² is the region t ≥ x², which is convex. The region below the graph is not the epigraph and does not generally provide the corresponding convexity property. A sublevel set is Lα = {x : f(x) ≤ α} Every sublevel set of a convex function is convex. The converse is not always true: quasiconvex functions have convex sublevel sets but need not be convex. This distinction matters because quasiconvexity can guarantee useful global structure without providing all the numerical advantages of convexity. 4. Separation and Supporting HyperplanesSeparation results formalize the intuition that disjoint convex sets can be divided by a hyperplane. A hyperplane in ℝⁿ has the form {z : aᵀz = β} where a ≠ 0. The associated half-spaces are aᵀz ≤ β and aᵀz ≥ β. A basic separation theorem states that if C is a nonempty closed convex set and y ∉ C, then there exists a nonzero vector a and scalar β such that aᵀy > β ≥ aᵀx for every x ∈ C Thus, y lies strictly on one side of a hyperplane while C lies on the other side. Stronger versions separate two disjoint convex sets under additional closedness or compactness assumptions. At a boundary point x̄ of a convex set C, a supporting hyperplane may satisfy aᵀ(x − x̄) ≤ 0 for every x ∈ C The vector a is a normal direction. Supporting hyperplanes explain why linear inequalities can describe convex feasible regions and why dual variables often have economic interpretations as marginal values. 5. Subgradients and Nonsmooth ConvexityA vector g is a subgradient of a convex function f at x if f(y) ≥ f(x) + gᵀ(y − x) for every y The set of all subgradients is the subdifferential, denoted ∂f(x). If f is differentiable at x, then ∂f(x) = {∇f(x)}. At a nondifferentiable point, the subdifferential may contain many vectors. For f(t) = |t|, ∂f(0) = [−1,1] and for t ≠ 0, ∂f(t) = {1} when t > 0 and {−1} when t < 0. The subgradient inequality gives a global lower bound even where an ordinary derivative does not exist. For a sum f = g + h, under standard qualification conditions, ∂f(x) = ∂g(x) + ∂h(x) where the right side is the Minkowski sum of the two sets. For f(x) = ‖x‖₁ = ∑ᵢ|xᵢ|, a subgradient g has components gᵢ = sign(xᵢ) when xᵢ ≠ 0 and gᵢ ∈ [−1,1] when xᵢ = 0. The subgradient optimality condition for unconstrained minimization is 0 ∈ ∂f(x⋆) This condition is necessary and sufficient for a proper convex function on a suitable convex domain. It generalizes the differentiable condition ∇f(x⋆) = 0. 6. Convex Optimization and Global OptimalityA convex optimization problem has the form minimize f₀(x) subject to fᵢ(x) ≤ 0, i = 1,…,m Ax = b where f₀ and each fᵢ are convex, and the equality constraints are affine. The feasible set is convex because each sublevel set {x : fᵢ(x) ≤ 0} is convex and affine constraints preserve convexity. If x⋆ is a local minimizer of a convex optimization problem, then x⋆ is a global minimizer. To see this, suppose another feasible y had f₀(y) < f₀(x⋆). Every point zθ = θy + (1−θ)x⋆ is feasible. Convexity would imply f₀(zθ) ≤ θf₀(y) + (1−θ)f₀(x⋆) < f₀(x⋆) for θ > 0, contradicting local optimality. If f₀ is strictly convex on the feasible set, the optimal solution is unique. The objective value may be unique even when the optimizer is not; this occurs, for example, when the objective is constant along a feasible face. First-order optimalityFor differentiable unconstrained minimization over a convex domain C, x⋆ is optimal if and only if ∇f(x⋆)ᵀ(x − x⋆) ≥ 0 for every x ∈ C If C = ℝⁿ, this reduces to ∇f(x⋆) = 0. The inequality says that no feasible direction gives a first-order decrease. KKT conditionsFor a differentiable convex problem, the Karush–Kuhn–Tucker conditions are often sufficient for global optimality. With Lagrangian L(x,λ,ν) = f₀(x) + ∑ᵢ λᵢfᵢ(x) + νᵀ(Ax − b) where λᵢ ≥ 0 are inequality multipliers and ν are equality multipliers, the conditions are: - Primal feasibility: fᵢ(x⋆) ≤ 0 and Ax⋆ = b.
- Dual feasibility: λᵢ⋆ ≥ 0.
- Stationarity: ∇f₀(x⋆) + ∑ᵢλᵢ⋆∇fᵢ(x⋆) + Aᵀν⋆ = 0.
- Complementary slackness: λᵢ⋆fᵢ(x⋆) = 0.
For convex problems, these conditions are sufficient. They are also necessary under a constraint qualification such as Slater’s condition: there exists a point satisfying all affine equalities and satisfying fᵢ(x) < 0 for every inequality constraint. Without a suitable qualification, an optimum may exist but KKT multipliers may fail to exist. Complementary slackness has a useful interpretation. If a constraint is inactive, its multiplier must be zero. A positive multiplier indicates that relaxing the associated active constraint can improve the objective locally. 7. Worked Example: A Convex Quadratic Allocation ProblemConsider two business activities with allocation vector x = (x₁,x₂). Minimize f(x) = 2x₁² + x₂² subject to x₁ + x₂ = 3 and x₁,x₂ ≥ 0. The Hessian is diag(4,2), which is positive definite, so the objective is strictly convex. The feasible set is affine intersected with the nonnegative orthant and is convex. Therefore, any feasible stationary point is the unique global optimum. Substitute x₂ = 3 − x₁. The objective becomes φ(x₁) = 2x₁² + (3 − x₁)² = 3x₁² − 6x₁ + 9 Differentiating gives φ′(x₁) = 6x₁ − 6. Setting this equal to zero yields x₁ = 1 and x₂ = 2. Both are nonnegative. The minimum objective value is f(1,2) = 2(1)² + (2)² = 6 Because strict convexity ensures uniqueness, the allocation (1,2) is the sole global optimum. 8. Applied Case: Convex Portfolio Risk ManagementBackgroundThis illustrative case concerns an investment team allocating capital among n assets. Expected returns are represented by μ ∈ ℝⁿ, portfolio weights by w ∈ ℝⁿ, and the covariance matrix of returns by Σ. ProblemThe team seeks to minimize variance while achieving a target expected return r̄ and investing all capital: minimize wᵀΣw subject to μᵀw ≥ r̄ 1ᵀw = 1 w ≥ 0 The covariance matrix is positive semidefinite by definition when estimated appropriately, so wᵀΣw is convex. The return and budget restrictions are affine, and nonnegative weights define a convex set. Analysis and approachThe model can be solved as a quadratic program. Convexity means that a solver returning a feasible KKT point has found a global optimum, subject to numerical accuracy. The multiplier on the target-return constraint measures the marginal increase in minimum variance associated with demanding a higher return. The nonnegativity constraints prevent short selling and may produce zero weights for unattractive or redundant assets. OutcomeThe resulting portfolio is globally variance-minimizing among all portfolios satisfying the target and policy restrictions. If the target is increased, the efficient frontier generally moves toward higher risk. Sensitivity analysis should be performed because covariance estimates are noisy and small estimation errors can produce materially different weights. Learning points- Convex modeling provides global guarantees.
- Constraint multipliers support managerial interpretation.
- Statistical estimation remains a major source of uncertainty even when optimization is exact.
- Governance requires monitoring assumptions, transaction costs, liquidity, and concentration limits.
9. Algorithms and Practical ModelingConvexity supports several algorithmic families. Gradient methods use the direction −∇f(x), while projected-gradient methods update and then project onto a convex feasible set. Proximal methods are effective for objectives containing nonsmooth regularizers such as the ℓ₁ norm. Interior-point methods approach the solution through the interior of inequality-constrained feasible regions and are powerful for medium- and large-scale conic programs. Coordinate descent is often effective for sparse learning models. A generic projected-gradient iteration is xₖ₊₁ = ΠC(xₖ − αₖ∇f(xₖ)) where C is a closed convex feasible set, αₖ > 0 is a step size, and Π_C(z) is the Euclidean projection of z onto C, defined as the point in C closest to z. Convergence requires assumptions such as convexity, suitable step sizes, and regularity of f; exact rates depend on smoothness and strong convexity. Good modeling practice includes checking convexity before selecting a solver, scaling variables, testing constraint feasibility, reporting tolerances, and validating solutions against independent calculations. A solver status of optimal should not be accepted without checking primal residuals, dual residuals, objective values, and sensitivity to perturbations. 10. Limitations, Governance, and Contemporary DevelopmentsConvexity does not make a model automatically realistic. A convex model may omit integer decisions, fixed charges, nonlinear economies, behavioral responses, or uncertainty. Mixed-integer constraints generally destroy convexity, although continuous convex relaxations can provide bounds and candidate solutions. Poorly conditioned covariance or design matrices can create numerical instability even in convex problems. Data-driven models require governance. Analysts should document variable definitions, data provenance, estimation procedures, fairness implications, and excluded alternatives. In portfolio or credit applications, constraints may encode legal, fiduciary, or risk requirements. Automated decisions should be auditable, and stakeholders should understand whether a result is mathematically optimal only relative to a potentially incomplete model. Contemporary optimization increasingly combines convex optimization with machine learning. Convex losses and regularizers remain attractive because training can be reproducible and globally interpretable. Large-scale systems also use distributed optimization, first-order methods, automatic differentiation, and differentiable optimization layers. These technologies improve scale but do not remove the need to verify assumptions, constraint qualifications, numerical accuracy, and data quality. Chapter SummaryConvex sets contain every line segment joining two of their points. Convex functions lie below their chords and have convex epigraphs and sublevel sets. Differentiable convex functions satisfy a global supporting-tangent inequality, while twice-differentiable functions have positive semidefinite Hessians. Subgradients extend these ideas to nonsmooth functions. Convex optimization combines a convex objective with convex inequality constraints and affine equalities. Its defining practical benefit is global optimality: every local optimum is global, and strict convexity can ensure uniqueness. Separation and supporting-hyperplane theorems provide the geometric foundation for duality and constraint multipliers. KKT conditions provide a powerful optimality certificate under appropriate assumptions. In practice, convexity improves reliability but does not compensate for poor data, unrealistic constraints, or inadequate governance. Key TermsConvex set: A set containing every line segment joining any two of its points. Convex combination: A weighted sum with nonnegative weights that sum to one. Convex hull: The smallest convex set containing a specified collection of points. Affine set: A set described by linear equalities and closed under affine combinations. Polyhedron: An intersection of finitely many affine half-spaces and hyperplanes. Convex function: A function whose value on a line segment does not exceed the corresponding weighted endpoint values. Strict convexity: Convexity with strict inequality for distinct points and interior weights. Epigraph: The set of points on or above the graph of a function. Sublevel set: The set of arguments whose function values do not exceed a specified level. Hessian: The matrix of second partial derivatives. Positive semidefinite matrix: A symmetric matrix Q satisfying vᵀQv ≥ 0 for every v. Subgradient: A vector defining a global affine lower bound to a convex function at a point. Subdifferential: The set of all subgradients at a point. Separation theorem: A result guaranteeing a hyperplane that distinguishes suitable disjoint convex sets. Supporting hyperplane: A hyperplane touching a convex set without cutting through it. KKT conditions: Feasibility, stationarity, dual feasibility, and complementary slackness conditions. Slater’s condition: Existence of a point satisfying equalities and strict inequalities. Complementary slackness: The condition that each inequality multiplier times its constraint residual equals zero. Strong convexity: Convexity with a positive quadratic curvature lower bound, implying stronger uniqueness and convergence properties. Review QuestionsShort Answer Questions- What is the defining property of a convex set?
- State the Hessian condition for a twice-differentiable convex function.
- What is the epigraph of a function?
- How does a subgradient differ from an ordinary gradient?
- Why does convexity make every local minimum global?
Long Answer Questions- Explain the relationship between convex functions, epigraphs, and sublevel sets, including the distinction between convexity and quasiconvexity.
- Derive and interpret the first-order characterization of differentiable convex functions.
- Explain the four KKT conditions and the role of complementary slackness in managerial interpretation.
- Compare gradient, projected-gradient, proximal, and interior-point methods for convex optimization.
- Discuss why a mathematically convex model may still produce an inappropriate business decision.
Analytical / Application Questions- Determine whether f(x₁,x₂) = 3x₁² + 2x₁x₂ + x₂² is convex by examining its Hessian. Explain whether the answer changes if the cross-term coefficient is modified.
- Formulate a convex resource-allocation model that minimizes a weighted quadratic cost subject to a budget, demand, and nonnegativity constraints. Identify the variables, objective, feasible set, and likely KKT interpretation.
- A machine-learning team proposes minimizing a convex loss plus an ℓ₁ penalty. Explain why the objective is convex, why the optimum may be nonunique, and how zero coefficients can arise through subgradient optimality.
Multiple Choice Questions with AnswersQuestion 1Which condition defines a convex set C? A. Every midpoint of points outside C belongs to C B. For all x,y ∈ C and θ ∈ [0,1], θx + (1−θ)y ∈ C C. C contains only its extreme points D. C is bounded and closed Correct Answer: B. For all x,y ∈ C and θ ∈ [0,1], θx + (1−θ)y ∈ C Question 2For a twice-differentiable function on a convex domain, which condition is sufficient for convexity? A. ∇²f(x) ⪯ 0 for every x B. ∇f(x) = 0 for every x C. ∇²f(x) ⪰ 0 for every x D. f(x) is bounded above Correct Answer: C. ∇²f(x) ⪰ 0 for every x Question 3What does the epigraph of f contain? A. All points strictly below the graph B. All points on or above the graph C. Only minimizers of f D. Only stationary points of f Correct Answer: B. All points on or above the graph Question 4For an unconstrained convex function, which condition is sufficient for x⋆ to be a global minimizer when f is differentiable? A. ∇f(x⋆) = 0 B. ∇f(x⋆) ≠ 0 C. ∇²f(x⋆) ⪯ 0 D. f(x⋆) is locally concave Correct Answer: A. ∇f(x⋆) = 0 Question 5Which statement about the function f(t) = |t| is correct? A. It is differentiable everywhere B. It is nonconvex at t = 0 C. Its subdifferential at zero is [−1,1] D. Its Hessian is positive definite everywhere Correct Answer: C. Its subdifferential at zero is [−1,1] Question 6In a convex optimization problem, why is a local optimum globally optimal? A. The feasible set must be finite B. Convexity prevents a feasible lower point from existing near a local optimum C. All convex objectives are linear D. The objective must be strictly decreasing Correct Answer: B. Convexity prevents a feasible lower point from existing near a local optimum Question 7Which KKT condition requires inequality multipliers to be nonnegative? A. Primal feasibility B. Stationarity C. Dual feasibility D. Complementary slackness Correct Answer: C. Dual feasibility Question 8For f(x) = ½xᵀQx + cᵀx + r, what condition makes f convex when Q is symmetric? A. Q ⪰ 0 B. Q ⪯ 0 C. Q = 0 only D. c = 0 Correct Answer: A. Q ⪰ 0 Question 9What does complementary slackness imply when an inequality constraint is inactive? A. Its multiplier must be zero B. Its multiplier must be negative C. The constraint must be removed D. The objective becomes linear Correct Answer: A. Its multiplier must be zero Question 10What is the main purpose of Slater’s condition in convex optimization? A. To prove that all variables are integers B. To guarantee strict feasibility and support KKT necessity and strong duality under standard assumptions C. To make every objective strictly convex D. To eliminate equality constraints Correct Answer: B. To guarantee strict feasibility and support KKT necessity and strong duality under standard assumptions
|