The dual linear program is the minimization problem
Indeed, for the optimization Lagrangian bounds the primal objective above on its feasible points. Its supremum over is finite precisely when , and then equals . The two labelled parts below establish the relevant weak duality and strong duality conclusions.
For the subsequent infeasibility argument, introduce nonnegative slack variables and the convex cone
This is generated by the columns of and the coordinate vectors. Here is why this finitely generated cone is closed. Any representation with a minimal number of positive coefficients uses linearly independent generators: otherwise subtract a suitable multiple of a dependence until one positive coefficient vanishes, preserving nonnegativity. For each fixed independent selection of generators, its nonnegative combinations form a closed set, because the inverse coordinate map on its span is continuous. There are finitely many selections, so their union is closed. This is the closedness of finitely generated cones used in Farkas' lemma.
When the primal linear program is infeasible, . Let be the nearest point of to , and set . The minimizing property gives for every . Taking gives . Consequently
In particular and . Rescaling by the positive number produces the requested Farkas' lemma certificate:
Now a feasible point of the relaxed inequalities would satisfy
Since , the sum of the nonnegative is positive. Thus robust infeasibility under uniform constraint relaxation gives
The ellipsoid method makes progress by reducing the volume of a containing ellipsoid. A nonempty linear polyhedron may have empty interior, so small volume alone cannot certify that the original system is infeasible. Relaxing the inequalities remedies this difficulty, but must not make an infeasible system appear feasible. The displayed positive gap proves exactly that sufficiently small relaxations preserve infeasibility. For rational input, determinant bounds give a Farkas' lemma certificate of polynomial encoding length, so a sufficiently small rational relaxation can be chosen from the input encoding length. Together with a bounding box and bounds on the volume of a relaxed feasible system, this lets the ellipsoid method distinguish infeasibility from a feasible system of very small or zero original volume in polynomial time. The certificate argument alone does not assert a polynomial precision bound for arbitrary unencoded real coefficients.
Use the maximizing-dual convention. For the perturbation function , define
The primal problem is ; the Lagrangian dual problem is . The sign convention makes the dual marginal concave for jointly convex data; some formulations negate to express a minimization problem.
The central convex perturbation duality calculation is
The last inequality is weak duality. A sufficient finite-dimensional condition for strong duality with dual attainment is: is jointly proper and convex, is proper with finite, and is finite on a neighborhood of zero. More generally suffices.
Indeed continuity of a convex function on the interior of its domain gives a supporting subgradient , so
Therefore and the dual maximum is attained. This qualification establishes equality and dual attainment; it does not by itself establish a primal minimizer.
For each fixed , choose the convex perturbation function
It is jointly convex and has marginal
Because and are nonnegative and finite everywhere,
for every . The inf-convolution is convex: for approximate decompositions of , take their convex combination and use convexity of both costs; then let their approximation errors tend to zero. Thus is a finite convex function on all of , hence continuous everywhere. In particular is proper and finite near zero, so the qualification in the previous solution applies at every :
This is strong duality for a finite-valued infimal convolution.
No primal attainment was used. For example and meet all the stated assumptions, but is approached only as . This illustrates why a proof based on an assumed minimizing decomposition would be incomplete. The printed functions are real-valued everywhere, not merely extended-real; that distinction supplies continuity and the strong-duality qualification.
Compute the convex conjugate of at a general pair . With , the independent variables become and , so
Therefore the Lagrange dual function is
Using strong duality from the preceding solution gives
Equivalently the conjugate of an infimal convolution is , and the continuous convex equals its biconjugate.
For practical subgradient computation, minimize the known convex dual objective
Every optimizer, and only an optimizer, belongs to by Fenchel–Young inequality. The full characterization is
This is infimal-convolution dual subgradients; the set is nonempty because is finite convex everywhere. If both conjugates are differentiable at the optimizer, solve . For nonsmooth conjugates, use the displayed aggregate subdifferential or a convex minimization algorithm. Replacing it by requires the usual subdifferential sum rule qualification; it is not automatically justified solely by knowing the two conjugates.
Use for the perturbation variable and for its dual variable. The full Fenchel conjugate is . One signed-marginal convention is
The primal problem of convex perturbation duality is and its dual problem of convex perturbation duality is . The signed dual marginal is concave; some conventions instead use as a convex marginal. The definitions above fix all signs. Weak duality follows from . Also , so .
For a sufficient strong duality condition, assume is jointly proper convex, is proper with finite, and is finite and continuous in a neighborhood of . More generally suffices in finite dimensions. A supporting subgradient then exists, and
Thus the dual is attained with no gap. This condition does not by itself assert attainment of the primal infimum; that needs an additional compactness or coercivity argument.
The same subgradient describes sensitivity analysis in convex perturbation duality: bounds the optimum's change under perturbation. When is finite convex near zero, its one-sided directional derivative is . If , then is differentiable there and
These conditions allow first-order sensitivity predictions; without differentiability the subgradient set gives directional bounds. Multipliers can measure the value of relaxing constraints, quantify changes in noise tolerance, and guide parameter choice without resolving every perturbed problem. For the constraint convention in part (b), the noise-budget sensitivity is negative the nonnegative constraint multiplier.
Let and fix the reference noise budget . Define the convex perturbation function
Positive increases the allowed squared noise level. The feasible epigraph set is convex and closed, so this is a proper lower semicontinuous jointly convex perturbation. Writing the inequality indicator as a supremum over its multiplier gives
The Lagrange dual function is for . In the signed convex conjugate convention of part (a), ; positive gives dual objective because the perturbation can be made arbitrarily large.
The feasible ball is nonempty and compact, so lower semicontinuity of total variation gives a primal minimizer. For , satisfies , providing the Slater condition. Total variation is finite everywhere in the given discretization and hence continuous. Strong duality and dual attainment give a finite optimal . The pair satisfies the Karush-Kuhn-Tucker conditions
Equivalently,
Thus the set of saddle points is nonempty. Compactness handles primal attainment, while strict feasibility supplies a finite multiplier; these are distinct steps. An inactive constraint can yield . At , feasibility still forces , but this strict-feasibility argument does not apply.
A kernel support vector machine constructs a large-margin classifier in a feature Hilbert space. Given training points and labels , choose a feature map and an affine score . Prediction is the sign of the score. Normalizing the functional margin to one makes the closest separating geometric margin , and the full margin between the two supporting hyperplanes is . Maximizing that margin therefore minimizes .
For separable data, the hard-margin support vector machine primal is
Noisy or nonseparable data use slack variables and the soft-margin support vector machine:
Eliminating gives the equivalent hinge loss objective . The parameter balances margin size against violations; it is not a hard bound on their number. The bias is unpenalized here, which determines the equality constraint in the dual.
Attach multipliers to and to . The Lagrangian is
Stationarity gives , and . Eliminating yields
where is a positive-definite kernel, meaning positive semidefinite Gram matrices. The hard-margin dual is the same objective with only , without the upper bound. Soft-margin strict feasibility follows by taking and all , so strong duality and the Karush-Kuhn-Tucker conditions apply. For separable hard-margin data a separator can be rescaled to give strict margins, supplying the analogous qualification. Although the feature space may be infinite dimensional, projecting onto the finite span of the training feature vectors preserves scores and cannot increase its norm, so this optimization reduces to a finite span.
The complementary slackness relations are
Points with are support vectors. If , then and ; such a point gives . A point with can lie inside the margin or be misclassified, while contributes no term to . If no coefficient lies strictly between the bounds, an admissible bias must be obtained from the KKT inequalities, rather than dividing by a nonexistent margin vector. Bias and dual coefficients can be nonunique even when the optimal feature-space weight is unique.
The kernel trick operates both during training and prediction. The dual optimization uses only the Gram matrix , so the feature vectors need not be formed. Prediction likewise uses
A nonlinear kernel therefore makes a linear separator in feature space represent a nonlinear boundary in input space. For example, on the degree-two polynomial kernel corresponds to . Gaussian kernels yield infinite-dimensional feature spaces. An arbitrary similarity is not automatically a valid kernel: for every finite collection and real coefficients , one needs . This makes the dual quadratic form positive semidefinite and the maximization concave.
Mercer's theorem gives a spectral realization under its additional analytic hypotheses. For a continuous symmetric positive-semidefinite kernel on a compact domain with a finite full-support measure, the integral operator is compact, self-adjoint and positive. The Mercer expansion is
with the standard uniform convergence conclusions under these hypotheses. Since , the nonlinear feature map
is well defined. This explains the connection of Mercer kernels to Hilbert space features, rather than treating the kernel trick as a purely formal substitution.
The finite-Gram positivity condition is more general than this compact-domain spectral theorem. Every such kernel generates a Reproducing kernel Hilbert space: on finite sums of kernel sections define
quotient out zero-norm elements, and complete. The resulting space satisfies the reproducing property . Its canonical feature map is , whose inner product is exactly . A feature map need not be injective; calling it an embedding does not by itself prove distinct inputs remain distinct. The kernel support vector machine uses this geometry together with convex duality to fit and evaluate a maximum-margin classifier while accessing the geometry only through kernel evaluations.
If a vector gives the strict separation, a common point would satisfy , which is impossible.
For the converse, construct a phase-I linear program with a common violation variable:
where is unrestricted. This linear program is feasible for sufficiently large , bounded below by zero, and attains its optimum. If the two linear polyhedra are disjoint, its optimum is strictly positive: an attained zero optimum would give a common point.
For nonnegative vectors , its optimization Lagrangian is
Taking the infimum over and gives the Lagrangian dual problem
By strong duality for linear programming, an optimal dual pair exists and has objective . It supplies the infeasibility certificate
Take . Every and obeys
The assumed nonemptiness of each linear polyhedron also ensures : if , their feasibility would force both and to be nonnegative. This proves the strict separation of disjoint linear polyhedra using Lagrangian duality.
Associate nonnegative Lagrange multipliers with and with . The Lagrangian dual problem is obtained from
Its infimum over unrestricted is finite exactly when . Thus the dual is
The precise finiteness condition is . If , then on the feasible set. The primal is feasible and bounded below, and splitting into positive and negative parts makes the dual feasible. Linear programming duality therefore gives attained equal finite optima. Equivalently, the strictly feasible point satisfies the Slater condition, with the required finiteness hypothesis. This is strong duality in the usual finite sense.
If , there is with . Every , , is feasible and the objective tends to . The dual is then infeasible. Equality of extended values still holds if its supremum over the empty feasible set is defined as , but there are no finite optimizers. The paper does not assume full column rank of , so this qualification is necessary. The same calculation gives the support function of an inverse image of an infinity-norm ball, for finite decisions.
For the equality constraint, the Lagrangian and dual function are
and the Lagrangian dual problem is . Weak duality says for every . Strong duality means the dual supremum equals the primal infimum, usually with a dual maximizer. A sufficient convex constraint qualification is that be proper, closed and convex and that some satisfy .
Associate a nonnegative Lagrange multiplier with each inequality. The Lagrangian dual problem begins with
Its infimum over is finite exactly when , in which case it equals . The dual linear program is consequently
For any primal-feasible and dual-feasible ,
which proves weak duality. Strong duality means equality of the two optimal values. The stated strict feasibility is the Slater condition; together with finiteness of the primal optimum it gives strong duality and an attained dual optimum .
Let be an optimal dual multiplier and define the maximum violation
Dual stationarity and strong duality imply, for every ,
Since every component of is at most and ,
It follows that the exact maximum-violation penalty obeys
Choose any . A primal optimum has and penalized value , whereas every infeasible point has and penalized value strictly greater than . Thus the penalized problem and the original linear program have exactly the same minimizers.
Primal problem Created 2026-10-07 Updated 2026-10-14
The original mathematical optimization problem relative to a chosen Lagrangian dual problem. In convex perturbation duality, its objective is and its value is . Strong duality concerns optimal values; primal attainment additionally requires an actual minimizing point.
In a finite flow network, a maximum flow exists because the feasible flow set contains the zero flow and is a compact set: the capacity constraints bound every coordinate, and they and flow conservation define a closed set. The strength of a flow is a continuous function, so the extreme value theorem gives an attained maximum. An augmenting path in the residual network would permit positive augmentation, contradicting maximality. The source-reachable vertices in the residual network therefore define a cut of a flow network whose outgoing original edges are saturated and incoming original edges carry zero flow. Flow conservation makes the strength of a flow equal to this cut capacity, proving the max-flow min-cut theorem.
Existence and strong duality for finite real flow network edge capacities do not imply finite termination for every choice of augmenting paths in the Ford-Fulkerson algorithm. With irrational capacities, some choices can continue forever. With integer capacities, Integrality of the Ford-Fulkerson algorithm instead forces finite termination; rational capacities reduce to that case by a common denominator. Choosing shortest augmenting paths as in the Edmonds–Karp algorithm avoids dependence on capacity magnitudes.[ref]
A shadow price measures the marginal improvement from relaxing an inequality optimization constraint. Use for in a minimization problem. With strong duality and a differentiable optimal value function, .[ref]
In the quadratic minimization with a moving upper bound, direct differentiation gives
The derivative at is zero from both sides, although has different one-sided derivatives there. The value of additional room has faded continuously to zero just as the active constraint stops restricting the optimizer.
At , , and . Raising the bound to lowers the value to : the first-order prediction is a change of , while the exact change is . At , the same relaxation leaves and . At , tightening by costs , a second-order effect despite the zero Lagrange multiplier.
Figure 1.
The derivative of the optimal value is the negative inequality multiplier
. Details.
There is also a global statement in this example. Keeping the Lagrange multiplier at the value associated with , the Lagrange dual function changes by . Weak duality therefore gives
At this is , the supporting tangent shown in the diagram. This bound remains valid for large changes, whereas the derivative predicts only the first-order effect. If the value function is not differentiable, an optimal Lagrange multiplier can instead supply a supporting subgradient, rather than a unique marginal rate. This is the same idea used in sensitivity analysis in convex perturbation duality.
Slater's condition 2026-10-14
The Slater condition requires a feasible point at which every nonlinear convex inequality is strict and every affine equality holds. For a convex problem it implies strong duality and attainment of the dual optimum under standard finiteness assumptions.
For a proper cone , suppose a point satisfies and is finite. This generalized Slater condition gives strong duality and attainment of the conic dual problem's optimum. It does not by itself assert primal attainment.[ref]
The two worked examples have strict primal points: has slack in the interior of the nonnegative orthant, and has slack in the interior of the second-order cone. Both optima were already certified by explicit feasible pairs. Slater's condition explains why a matching optimal dual variable can be expected under these hypotheses; checking a supplied zero-gap pair needs only weak duality.
Changing cone geometry preserves the bound mechanism. For a positive semidefinite cone, the dual cone pairing is the Frobenius inner product of two matrices. This connects the same certificate idea to semidefinite programming, while the central path uses strictly interior primal and dual points to approach vanishing gap.
In 1995, Lieven Vandenberghe and Stephen Boyd presented a primal-dual interior-point method for convex optimization with matrix inequalities. Their algorithmic study included exploiting problem structure and allowing incomplete Conjugate gradient method solves within an iteration. This illustrates how the primal-dual viewpoint guides computation as well as checking a final answer.[ref]
Consider an objective function that is a quadratic polynomial, with a singular optimization constraint:
Its only feasible point is , giving . For , completing the square yields
Every finite Lagrange multiplier gives , but as . Thus : strong duality holds, and the primal optimum is attained, yet dual attainment fails. The inner minimizers approach without ever becoming feasible at finite .
Both the objective function and the constraint function are convex functions. However, Slater's condition fails because is impossible. At the optimum, stationarity would require , which no finite Lagrange multiplier satisfies. Compare KKT regularity at a local minimum: a zero gradient of an active constraint can prevent a multiplier certificate. This example has zero duality gap without the Strong Lagrangian property.