Convex optimization Created 2026-09-24 Updated 2026-10-13
Convex optimization is a minimization problem with a convex function as its objective function and a convex set of feasible points. For a finite-valued , the problem is to find with for every . The displayed infimum describes its value even when no minimizing point exists. The two convexity requirements concern different objects: the allowed decisions and the scores assigned to them.
A convex set contains the whole line segment between any two of its points:
A convex function lies below the interpolation of its endpoint values:
Thus mixing two allowed decisions preserves feasibility, and the mixed score is no worse than the same mixture of endpoint scores. The objective function may have flat regions or corners. For a strictly convex function, the second inequality is strict when and .
A useful constraint representation is
where are convex functions on a common convex set , and the equalities are affine functions. Each inequality defines a convex sublevel set; their intersection with and the equality set is a convex set. An equality involving a general convex function need not preserve this geometry: allows and but excludes their midpoint . See Boyd and Vandenberghe, Convex Optimization (2004), §4.2.1 for the standard problem form.
Why local information can certify a global answer. Every local minimum of a convex optimization problem is a global minimum, including minima on the boundary. If a feasible point had , points would remain feasible and have value strictly below for every . Taking arbitrarily small contradicts a local minimum at . This argument explains the special power of convexity: a better distant decision would reveal an improving direction immediately nearby.
If a minimizer exists and the objective function is strictly convex on , it is unique. Two distinct minimizers of value would have a feasible midpoint with value strictly below . Existence is a separate question: the exponential function is strictly convex on , but its infimum is approached only as . Even a bounded convex set need not suffice: on also has unattained infimum . A continuous function on a nonempty compact set attains its minimum by the extreme value theorem.
Nor does strict convexity imply differentiability. For , the squared term gives the strict inequality while the triangle inequality gives the weak inequality for the absolute value. At zero the left and right derivatives are and , so no derivative exists there, although zero is the unique minimizer. Such objectives require subgradients or proximal operators rather than an ordinary gradient at every point.
For a differentiable convex function on an open convex set containing , the constrained first-order condition is
Indeed, the subgradient inequality makes this sufficient; taking the one-sided derivative along feasible line segments makes it necessary. At an interior minimizer, both directions are feasible and the gradient must vanish. At a boundary minimizer it can be nonzero: it only needs to make every feasible direction nondecreasing. See Boyd and Vandenberghe, §§3.1.3 and 4.2.3.
A fully computed nearest-point problem. Project onto the half-space by minimizing half the squared Euclidean distance:
The Hessian matrix is the identity matrix, so the objective function is strictly convex. The unconstrained minimizer violates the inequality. With the convention , the optimization Lagrangian is , where the Lagrange multiplier satisfies . Its Karush-Kuhn-Tucker conditions are
The last two equations give , . The choice is infeasible, so complementary slackness forces . Consequently , giving , and . The Euclidean distance is , rather than the objective function value . The gradient at the answer balances ; the displacement from to is a normal vector to the boundary.
Figure 1.
The nearest feasible point is where an objective contour first touches the half-space boundary
. Details.
There is an exact certificate independent of numerical search. Completing squares gives
For every feasible point, implies . Thus every feasible objective is at least , and attains this bound. More generally the Lagrangian dual problem has objective for . Its maximum is also , illustrating strong duality through matching computed bounds. This makes the example a model for Euclidean projection onto a convex set and the projection step in projected gradient descent.
What the multiplier conditions require. For differentiable convex functions on an open convex set and equalities defined by affine functions, the KKT conditions combine feasibility, , complementary slackness , and stationarity
with unrestricted equality Lagrange multipliers . They suffice to certify a global minimum without an additional regularity assumption: the optimization Lagrangian is convex, stationarity minimizes it, and feasibility with complementary slackness gives the same certificate as above. To guarantee their necessity at an attained finite optimum, a regularity hypothesis suffices: Slater's condition requires some with and . The projection example has the strictly feasible point . See Boyd and Vandenberghe, §§5.2.3 and 5.5.3. This hypothesis guarantees suitable multipliers, not existence of a primal minimizer.
Without regularity, necessity can fail even for convex functions: minimize subject to . The sole feasible point is optimal, but stationarity would require . No Lagrange multiplier works. There is no strictly feasible point, and the gradient of the constraint vanishes at the answer.
The nonconvex contrast. The polynomial has derivative and second derivative . Numerically solving the cubic gives stationary points , , and . Their objective values are respectively , , and , with second derivatives , , and . Hence both outer points are local minima, and the middle point is a local maximum. Since at both ends, its global minimum exists and must be one of the stationary minima: it is the left one. A method stopping at the right local minimum misses a better value by approximately .
Figure 2.
A strictly convex quadratic has one minimum; a tilted quartic has two local minima with different values
. Details.
The practical appeal of convex optimization is the ability to check an answer globally using geometry and matching Lagrangian duality bounds. The projection certificate certifies every feasible alternative at once; the tilted quartic shows why a zero gradient alone cannot do that for general nonlinear optimization.
Historically, an early landmark is Kuhn and Tucker's [ref]. Its §3 explicitly states a regularity hypothesis for inequality-constrained Lagrange multipliers; its discussion of saddle points explains how concave functions support global conclusions for maximization. This documents an early formulation of the multiplier approach; it does not establish sole discovery of today's KKT conditions or of convex optimization as a whole.
Duality of block mixed norms Created 2026-10-06 Updated 2026-10-14
For a linear map between finite-dimensional real inner product spaces,
Thus the penalty is the support function of the compact convex set . The Moreau decomposition makes its proximal operator the identity minus the Euclidean projection onto a convex set.
Farkas' lemma Created 2026-10-07 Updated 2026-10-14
For a real matrix and a vector , exactly one of the following systems has a solution:
The linear inequalities here are componentwise. In the first system is nonnegative; in the second system is unrestricted in sign. The second system is a certificate that the first has no feasible point. This nonnegative-equations alternative is developed in Boyd and Vandenberghe, Convex Optimization slides, §5.34.
Build the target, or separate it. Write the columns of as . Then is a conic combination: its coefficients must be nonnegative, but need not sum to one. The obtainable targets form the finitely generated cone
A solution explains how to build from those columns. A certificate instead defines a linear functional . The condition says that its dot product with every generating column is nonnegative, and hence with every point of . But places the target strictly on the other side of the hyperplane . Thus belongs to the dual cone of and rules out every allowed conic combination at once.
A certificate that can be checked by eye. Take the identity matrix
Here is the nonnegative orthant. The equation forces , violating . The certificate gives
The linear functional simply reads the first coordinate: all allowed column combinations have a nonnegative first coordinate, while has first coordinate . For comparison, the target is obtained with .
Figure 1.
Nonnegative column combinations lie in a cone, while a Farkas certificate separates the target
. For , the shaded nonnegative orthant is the conic hull of the two columns. The hyperplane for is the vertical axis; lies strictly on its negative side. The obtainable target illustrates the other alternative. Details.
Why this is useful and striking. A successful search can exhibit one feasible point; an unsuccessful search alone cannot explain why every candidate fails. Farkas' lemma guarantees an equally concrete witness of impossibility for this finite linear problem. Once is supplied, verification needs only matrix multiplication, sign tests and one dot product. The same idea gives a Farkas certificate for linear inequalities and underlies linear programming duality.
Brief geometric proof. The two systems cannot both hold, because they would imply
For existence of a certificate when , closedness of finitely generated cones makes a closed convex cone, so separation from a closed convex cone supplies and for every . Testing each column gives . Concretely, let be the Euclidean projection onto a convex set of onto and set . The projection inequality gives for . Testing and gives , whence . In the example, and . Alternatively, the Fenchel-Moreau theorem applied to the cone's indicator functional proves the same separation through its polar cone.
An original historical source is Julius Farkas's [ref]. The linked archival record verifies the author, title and publication details.
Feasible triangle with a squared-distance objective Created 2026-10-14 Updated 2026-10-31
Take the decision domain and minimize the objective function
Each inequality permits a closed half-space; their intersection is the filled triangle with vertices , and , including its edges. The feasible region is a compact set and a convex set. The point is a feasible point, but its objective function value will not be best. Without the optimization constraints, the unique global minimum is at with value . That point is infeasible because .
The objective function is the squared Euclidean distance from . Its positive level sets are circles centered there. Expanding a circle from that center, the first contact with the feasible region is at , with objective function value . Thus the optimum is the Euclidean projection onto a convex set of the target . Squaring a nonnegative Euclidean distance preserves which point is nearest.[ref]
Here is a direct certificate, without relying on the picture. Put and . The objective function becomes
Equality requires and , so the unique optimum is . At this point is an active constraint, while and are strict. An active constraint identifies a tight restriction at a specified point; it alone does not establish optimality. For example, has the same tight sum restriction but objective function value .
For a check using the Karush-Kuhn-Tucker conditions, write the inequalities as , , . Their Lagrange multipliers at the optimum are . The gradient equation is
Feasibility, nonnegative Lagrange multipliers and complementary slackness also hold. With this strictly convex function and affine optimization constraints, the Karush-Kuhn-Tucker conditions certify the unique global minimum.[ref]
Half-space representation of a closed convex set Created 2026-10-06 Updated 2026-10-14
A closed convex set in a finite-dimensional Euclidean space is the intersection of all containing closed half-spaces. For a point outside a nonempty set, its Euclidean projection onto a convex set gives a separating normal. Applied to an epigraph, this turns geometric separation into affine lower bounds and is a key step in the Fenchel-Moreau theorem.
Replace evaluation in a possibly inaccurate dynamical model by an experimental objective. Parametrize an admissible pulse as , with collecting time-slice amplitudes or basis-function coefficients. Prepare the same initial state, apply the pulse, measure performance, and update before the next run. This is adaptive experimental quantum control: the loop closes through experimental results, even though each individual pulse is applied open loop.
For example, minimize
for a pure target , with a nonempty closed convex set enforcing amplitude and bandwidth bounds. The overlap is an experimentally estimable probability. An observable objective can use its measured expectation instead; a gate objective generally needs more input states and measurement settings. The true dynamics constrain the physically produced , but no accurate formula for those dynamics is required to evaluate this objective.
A direct search compares measured scores for candidate pulses, accepts improvements and refines the search region. Alternatively estimate a gradient experimentally by finite differences,
where is the Euclidean projection onto a convex set. Population-based searches can also explore several candidates in parallel. These methods use experimental data rather than simulated propagation or a model-derived adjoint gradient.
Each score needs enough repeated preparations to manage measurement noise; uncertainty in score differences should determine replication and stopping decisions. Excessively small finite-difference steps amplify that noise. A model-based pulse can provide a useful starting point, but adaptation corrects its systematic mismatch using the device itself. This mitigates model uncertainty, not arbitrary fluctuations: reproducible preparation, calibrated measurements and sufficiently slow drift remain necessary. Nor does a local numerical search guarantee a global optimum.
Let be the family of closed half-spaces containing . Certainly . To prove the reverse inclusion, exclude an arbitrary .
Suppose first that is nonempty. Its Euclidean projection onto a convex set exists: minimizing the continuous squared distance may be restricted to a sufficiently large closed ball, whose intersection with the closed set is compact. Put . For every , convexity puts in for . Minimality of gives
Thus the closed half-space
contains , while excludes . Since every point outside is excluded by some member of ,
This is the half-space representation of a closed convex set. If , every point can again be excluded by a containing half-space, so the intersection is empty. If , no proper half-space contains it and the empty intersection is, by convention, .
If , the family of proper containing half-spaces is empty and its intersection is, by convention, . If , every closed half-space contains it and their intersection is empty. Now suppose is a nonempty proper closed convex set. Take and let be its Euclidean projection onto a convex set. This projection exists: a minimizing sequence can be restricted to a bounded ball, and closedness gives attainment. It is unique by convexity and strict convexity of squared distance.
For , the segment remains in for . Minimality at implies
Thus the closed half-space contains but excludes , since . Every point outside is excluded by at least one containing half-space. The reverse inclusion is immediate, giving
This is the half-space representation of a closed convex set. The argument gives an explicit separating hyperplane rather than just citing a Hahn-Banach separation theorem.
Write and , with Euclidean adjoints determined by the chosen discretization and boundary conditions. Take the usual positive total generalized variation weights . Introduce a primal variable through
The support function of the row-ball product is a sum of row norms. Convex duality gives the equivalent augmented saddle problem
The equality follows by dualizing the row-ball constraint. With positive radii, strictly satisfies both row constraints, supplying the finite-dimensional qualification for this splitting. The original feasible dual set is compact and nonempty, and the quadratic primal term is coercive; saddle points exist. The TGV divergence splitting avoids the difficult projection onto .
Use the Chambolle–Pock algorithm. Choose with ; the sufficient bound is convenient. Initialize and , . For , compute
The dual update is a Euclidean projection onto a convex set onto ; the two primal updates are the quadratic proximal operator and radial soft thresholding. Their signs follow from . All substeps are closed form, and the standard finite-dimensional primal-dual convergence result applies to this saddle problem with the stated step-size condition. The iterates satisfy ; the additional constraint is enforced through the splitting at convergence, not claimed for every intermediate iterate. If a weight is zero, the corresponding row projection or support-function proximal step is interpreted directly rather than by division by zero.
Write and use the real pixelwise inner products. Let be the adjoint operator, defined by . For each nontrivial grid direction its one-dimensional formula is
with the analogous formula in for . Their sum is ; unused components and do not contribute. For , . If discrete divergence is defined, its sign convention is , as in the adjoint of a discrete forward gradient.
Define the compact convex set and its image . The image is compact and convex, hence closed, and contains zero. The finite-dimensional Euclidean duality formula , applied independently at every pixel, gives
Thus the penalty is the support function . Its convex conjugate is the indicator functional of a constraint set , equal to zero on and infinity elsewhere. For , the conjugate supremum is zero; for , the separation theorem supplies a direction with , and scaling that direction makes the supremum infinite.
The proximal operator is . It exists uniquely because the objective is continuous, coercive and strictly convex. The Moreau decomposition for a proper closed convex function gives . The second term is the Euclidean projection onto a convex set, so the projection residual for discrete total variation is
Alternatively, the variational characterization of convex projection says exactly when for every . Hence attains the support function at , giving and the same optimality condition. This supplies a direct verification of the Moreau decomposition step in this instance.
The printed wording needs “the residual after a projection”, rather than “the projection itself”. In general this denoising map is not a projection onto any fixed closed convex set. A metric projection onto a closed convex set is idempotent, while denoising a sufficiently large jump twice shrinks it twice. Concretely, for and data with rows and , the minimizer has rows and . Reapplying the map gives rows and , so it is not idempotent. These formulas have a global certificate: take , all other dual entries zero, giving with rows and ; it saturates every positive row difference and yields the primal optimality condition. The qualification is therefore not merely a consequence of a restricted two-level ansatz.
Computing is equivalent to minimizing over , since ranges over precisely . Differentiating with the adjoint operator gives , whose Lipschitz constant is . Starting with any , for example zero, the projected-gradient dual total variation algorithm is
The block formula is the Euclidean projection onto a convex set , since it clips each two-dimensional block to a Euclidean ball of radius . Both components must be clipped together for the isotropic block mixed norm.
For the unscaled forward differences, and likewise in the other direction, so . More exactly, for the one-dimensional path difference has eigenvalues , , and the square-grid operator sums two such spectra. Thus . Finite-dimensional projected gradient descent for a convex objective with an -Lipschitz gradient converges from every feasible starting point to a dual minimizer for fixed . The theorem assumes a nonempty closed convex set, a convex differentiable objective with globally Lipschitz gradient, and a nonempty minimizer set. All hold here: is compact and convex, and is a continuous convex quadratic. Finite-dimensional convergence is of the full sequence, rather than only its objective values.
Consequently any fixed step with is safe on this grid; the more conservative is also safe. The dual minimizer need not be unique because has a null space, but and uniquely. For , the gradient penalty vanishes and , so no positive- step restriction is needed.
For a differentiable convex function with -Lipschitz gradient and a proper lower-semicontinuous convex function , the proximal gradient method is
The proximal operator is . To obtain an explicit iteration for discrete isotropic total variation, let with the printed zero boundary differences and
The dual is minimization of over , and the primal minimizer is . Here must be the exact adjoint operator of these differences. For example,
with the analogous formula in for ; for both operators are zero. Equivalently use in the backward-difference expression, ignoring unused edge components.
The gradient of the dual objective is , with Lipschitz constant . Taking to be the indicator functional of a constraint set makes its proximal operator the Euclidean projection onto a convex set. Thus a valid explicit algorithm is
The bound follows by summing over grid differences. Finite-dimensional proximal gradient method convergence gives a dual minimizer and convergence of the recovered to the unique primal minimizer. Projection is pointwise in the dual; applying pointwise soft thresholding directly to would not compute the primal TV proximal operator.
Take and . Their proximal maps are the projections , so
The Douglas--Rachford shadow sequence converges in finite dimensions to a point of when the intersection is nonempty.
For , the euclidean projection onto a convex set is
The squared distance is a strictly convex function. Its restriction to the convex set can therefore have at most one minimizer by part (b). Closedness, together with finite dimensionality, supplies existence, although existence was not required to be proved.
The Euclidean projection onto a convex set is nonexpansive, and because the optimum is feasible. Therefore the projected subgradient method satisfies
The subgradient inequality gives , while Lipschitz continuity of the finite convex function gives . Hence
Summing this telescoping inequality for , and then bounding the smallest term by the average, yields
Writing , the right-hand side is minimized by the constant step size
Substitution gives
If , the initial point is already optimal and the result is immediate.
The objective is strictly convex, so the minimizer is unique. The Slater condition makes the Karush-Kuhn-Tucker conditions necessary and sufficient. Absorb the box constraints into the Euclidean projection onto a convex set and attach a scalar multiplier to . Stationarity over the box is equivalent to
while primal feasibility requires . Coordinatewise, these conditions are
They are also sufficient because they minimize the Lagrangian over the box and satisfy the equality constraint. Thus the projection onto a box-constrained hyperplane reduces to solving the displayed one-dimensional continuous, nonincreasing equation for . The multiplier need not be unique on a flat interval, but the projected vector is unique.
The function is the support function . For a nonempty compact convex set,
so its convex conjugate is the indicator function . Applying the Moreau decomposition,
Multiplication of an indicator function by a positive scalar does not change it, and its proximal operator is the Euclidean projection onto a convex set. Therefore
Minimize over using
The pointwise Euclidean projection onto a convex set sends a block to . The gradient of has Lipschitz constant , so finite-dimensional projected gradient descent converges for . On an unscaled square grid with , is safe. Reconstruct ; unused dual directions may make the minimizing nonunique while the primal minimizer is unique.
The projected subgradient method minimizes a possibly nonsmooth convex function over a closed convex set by iterating with . Nonexpansiveness of Euclidean projection onto a convex set and the subgradient inequality give its basic convergence bound.
Projections onto convex sets is an iterative feasibility method that successively applies a Euclidean projection onto a convex set to each closed convex constraint set. With two sets it uses . It seeks a point in the intersection; a single projection onto one set is a different operation, and the method does not generally compute the closest intersection point to the initial iterate.