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.
In a minimum-cost flow problem, a directed graph has arc flows , unit costs , lower and upper capacities , and net supplies summing to zero. The linear program minimizes subject to the flow balances and .
Give each graph vertex a network dual potential . With the outgoing-minus-incoming oriented incidence matrix , the optimization Lagrangian is
Minimizing over the capacity intervals is separable. A candidate feasible flow minimizes this optimization Lagrangian if it takes its lower bound whenever the network reduced cost is positive, its upper bound whenever that network reduced cost is negative, and any allowed value when that network reduced cost is zero. Equivalently, for arcs with distinct lower and upper bounds,
For every other feasible flow , these conditions give . This proves the Lagrangian sufficiency theorem certificate, rather than merely stating the capacitated flow optimality conditions.
Put . The four flow balances determine
Intersecting the four capacity intervals gives . In particular,
is a feasible flow. Write . Its cost along the feasible interval is
Hence is optimal precisely when . A network dual potential certificate is
The three interior arcs have zero network reduced costs and , which has the required nonnegative sign at its lower capacity.
For the network simplex algorithm, start with the network simplex tree basis consisting of arcs , and fix nonbasic arc at its lower bound 2. These are exactly the potentials just found. If , no improving pivot is needed. If , arc enters and its fundamental graph cycle increases all four flows by the same amount. At the remaining upper capacities are , so the simplex ratio test allows an increase of 2. Arc reaches its upper bound and leaves the tree. The new network simplex tree basis has arcs , with potentials
Now only the nonbasic arc has a possibly nonzero network reduced cost, namely . It is at its upper bound, so the sign is optimal. Thus for all real costs the complete answer is
When , both endpoint basic feasible solutions and every intermediate feasible flow have the same cost.
To count basic solutions, a network simplex tree basis omits one arc of the four-cycle and fixes that arc at either bound. The possibilities are
There are eight tree/bound basic representations, seven distinct basic flow vectors, and two basic feasible solutions. The distinction in the first count matters: the upper bounds on and both give the identical flow at . Thus if “basic solutions” counts vectors rather than basis representations, the answer to (i) is seven; the frequently used count of basis/bound choices is eight. The answer to (ii) is unambiguously two, since only satisfy all capacities.
Use the optimization Lagrangian with the sensitivity sign convention
For equality constraints the Lagrange multipliers have unrestricted signs. The Lagrangian sufficiency theorem says that if and, for some , globally minimizes over , then globally minimizes subject to the constraint. Indeed every feasible satisfies
This proves the theorem without a convexity or differentiability assumption. Merely finding a stationary point of the optimization Lagrangian would not establish its required global minimum.
Let , with value when the feasible set is empty, and suppose is finite. The problem has the Strong Lagrangian property if a finite multiplier satisfies
This includes attainment of the dual bound by a multiplier. It does not by itself assert attainment of the primal infimum. For every multiplier, restricting the infimum to feasible gives , the relevant weak duality. A non-vertical supporting hyperplane of a value function is a plane
with for every . Its vertical coefficient is nonzero and has been normalized to one; the epigraph lies above it. The two directions of the equivalence are proved in parts (a) and (b).
For the sampling allocation put . Finite variance requires every ; interpret the objective at a zero coordinate as . An optimum uses all the budget, because scaling every positive up would otherwise reduce the objective while remaining feasible. The Cauchy-Schwarz inequality gives the global bound
Equality requires to be proportional to . The budget then determines the unique allocation:
This is the optimal cost-constrained stratified sampling allocation.
For an inequality , our sign convention uses , so is a lower bound on at feasible points. Its coordinate stationary equations are , and the displayed allocation gives
The function has a strict global minimum at : its second derivative is and its value diverges at both endpoints of . Thus the multiplier also supplies the Lagrangian sufficiency theorem certificate, with the tight inequality giving complementary slackness.
Finally, for ,
Hence the first-order change in minimal variance is . Increased resources decrease the variance. With the alternative convention , the multiplier is and the sensitivity is .
For a minimization problem on a domain , write the equality constraints as and the inequality constraints as . Define the optimization Lagrangian
The Lagrangian sufficiency theorem states that a feasible is globally optimal if it globally minimizes on for some multipliers with and satisfies complementary slackness, for every . Equality multipliers have unrestricted signs.
For any feasible , the multiplier sign gives . Feasibility and complementary slackness at give . Hence
This proves sufficiency. Global Lagrangian minimization, rather than stationarity alone, is the certificate. No convexity or constraint qualification is needed for this implication; convexity is one way to verify the required global minimum.
Use the Lagrange multiplier with the sign convention
For every , this is a strictly convex quadratic in , with unique global minimizer
These formulas follow by setting the three partial derivatives of the optimization Lagrangian to zero; its Hessian is , which is positive-definite.
Choose to make this minimizer feasible. Its constraint value is , so the scalar equation is
The left side of the first equation is strictly decreasing on , with limits and . Thus exactly one positive multiplier exists and can be obtained by a bracketed scalar root search. The Lagrangian sufficiency theorem proves that its associated feasible point is the global optimum; strict Lagrangian convexity makes that optimum unique.
Consequently the unique solution is
Its objective value is . This scalar multiplier certificate for a quadratic equality constraint does not require finding the multiplier in radicals, and does not mistake the nonconvex equality surface for a convex set.
Introduce a free scalar . The epigraph reformulation is the linear program
For each fixed , the smallest feasible equals the maximum of the affine expressions, so the reformulation preserves the optimum.
Associate nonnegative multipliers with these inequalities. Its optimization Lagrangian is
Because and are unrestricted, the infimum is finite precisely when the coefficients of both vanish. Therefore the Lagrangian dual problem is
A feasible dual vector is a convex combination of the slopes whose mean slope is zero. It gives a constant lower bound on the maximum of the affine functions. The primal is always feasible, by taking and sufficiently large . If it has a finite optimum, linear programming duality gives attainment and equality with this dual; otherwise the dual is infeasible and the primal is unbounded below.
For a maximization problem with and , use the optimization Lagrangian
The Lagrangian sufficiency theorem says: if is feasible, globally maximizes over its original domain, and complementary slackness holds, , then globally maximizes over the feasible set. Equality Lagrange multipliers have no sign restriction. For every feasible ,
which proves the theorem.
For a minimization problem, reverse the signs in the optimization Lagrangian: take , with . If a feasible globally minimizes this optimization Lagrangian and satisfies complementary slackness, then
The hypothesis is a global extremum of the Lagrangian. Merely solving its stationarity equations is insufficient; no convexity assumption is needed when the global extremum itself has been proved.
With and , the maximization optimization Lagrangian is
A finite unconstrained maximum requires to cancel the coefficient of . With , completing the square gives
Thus its global maximizers have and . The equality constraint holds, and complementary slackness with makes , giving . The Lagrangian sufficiency theorem certifies
Every feasible point has objective at most , so this is a global conclusion rather than just a stationary-point calculation.
For minimization, the optimization Lagrangian is
Its coefficient of is , so its infimum over unrestricted is for every allowable Lagrange multiplier. There is no finite global minimizer of the optimization Lagrangian to which the Lagrangian sufficiency theorem could apply.
The primal minimization problem is also unbounded: set , and . These points are feasible, and . Hence
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.
Choose the oriented incidence matrix convention with at an edge's tail and at its head. Let be net supply, so . The uncapacitated minimum-cost flow problem on a finite directed graph is
or . Negative denotes net demand. Costs may have either sign; the problem can be infeasible or unbounded.
For vertex network dual potentials , the optimization Lagrangian is
The infimum over is finite exactly when every network reduced cost is nonnegative. Thus the Lagrangian dual problem and complementary slackness are
A feasible flow and feasible network dual potentials satisfying these equalities have equal costs and are optimal by weak duality.
If the underlying undirected graph is connected, deleting one redundant balance row makes the oriented incidence matrix have rank . A set of independent edge columns is exactly a spanning tree. Set all non-tree flows to zero, solve the tree balances, and check nonnegativity to obtain a basic feasible solution. Basic tree edges may have zero flow, which is degeneracy in linear programming. Requiring on tree edges determines network dual potentials up to a common additive constant. If every non-tree network reduced cost is nonnegative, the tree flow is optimal. This is the basis of the network simplex algorithm. If the graph is disconnected, solve the balances separately in each component; each component must have total net supply zero and uses its own spanning tree.
Separate inactive and active optimization constraints. At an interior feasible point with , a differentiable local minimum must satisfy . Retain only solutions lying in the interior.
On the boundary , if , apply the Lagrange multiplier condition. Using the optimization Lagrangian , the Karush-Kuhn-Tucker conditions are
The sign follows from feasible motion into : the directional derivative along at a minimum cannot be negative. Thus a boundary candidate has and a nonnegative Lagrange multiplier. Boundary points with must be examined separately, because the usual constraint qualification fails there.
Solve the interior and boundary systems, check membership in the feasible set, and establish which candidates are minima using second-order tests or a direct global comparison. The Karush-Kuhn-Tucker conditions alone are not sufficient for general nonconvex functions or feasible sets. On an unbounded feasible set, also check whether an infimum is attained and whether escaping sequences can improve the objective.
Use the optimization Lagrangian
Symmetry gives the gradient equations and . The positive-definite matrices are invertible, so define
The affine constraint gives , hence
For a global certificate, write any other feasible point as . Feasibility implies . Expansion cancels the cross terms and leaves
By positive definiteness this is positive unless . Thus the solution is the unique global minimum, not merely a stationary point. This is a two-block instance of positive quadratic minimization under one affine constraint.
Assume and are continuously differentiable near the point. At a regular feasible point, meaning and , a differentiable constrained local extremum satisfies the Lagrange multiplier equations
They arise by differentiating the optimization Lagrangian with respect to all coordinates and the multiplier. Geometrically, the objective has zero derivative along the tangent space of the constraint surface, so its gradient must lie in the normal direction.
Solve these equations for candidates, examine feasible points where the regularity condition fails separately, and compare objective values or use a second-order test restricted to feasible directions. The equations locate stationary points; they do not by themselves establish which are minima or whether a global minimum is attained.
A nonconvex primal problem can have a positive duality gap even when both optima are attained. Choose the finite set , the objective function values , , , and the equality optimization constraint . The only feasible point is , so .
With unrestricted equality Lagrange multiplier , the three possible optimization Lagrangian values and their minimum are
The concave Lagrange dual function has unique maximizer , with . Thus the duality gap is . At the optimal Lagrange multiplier, both inner minimizers and violate the equality; the dual optimum does not recover a primal optimizer.
Figure 1.
A feasible finite problem has a duality gap of 3 despite dual attainment
. Left: three allowed decisions shown as cost versus equality residual. For each indicated Lagrange multiplier, the line lies below every allowed cost. The dotted segment joining the two zero-cost points contains cost-residual pairs unavailable to any allowed decision. Right: maximizing gives 0, below the primal value 3. Details.
Why can no slope close the gap? Any affine function lying below the two endpoint costs obeys and . Adding gives , so its value at residual zero cannot reach the feasible cost . A convex combination of the endpoint cost-residual pairs with equal weights has residual zero and average cost zero. This averaged pair is unattainable: the actual decision costs . This geometry explains precisely what the dual bounds fail to distinguish. Nonconvexity does not force a positive duality gap: changing only to makes both optimal values zero on the same nonconvex domain.
Consider the minimization problem
The objective function is a strictly convex function with its unconstrained optimization minimum at . If , it decreases throughout the feasible set until the bound is reached. If , the feasible set already contains . Hence
With , the optimization Lagrangian and KKT conditions are
Substituting gives the unique inequality Lagrange multiplier
For , the active constraint has . For , there is strict slack and . At , the active constraint has zero Lagrange multiplier: the boundary happens to pass through the unconstrained optimum. Feasibility and complementary slackness must both be checked; solving only would allow infeasible candidates.
Figure 1.
The same quadratic objective with active, just-touching and inactive upper bounds
. Details.
An independent certificate follows by completing the square:
The Lagrange dual function is a concave function of . Its maximum over occurs at and equals . Thus every case has an explicit lower bound attained by a feasible point; the KKT conditions provide a certificate that can be checked without searching all real numbers.
Scalar multiplier certificate for a quadratic equality constraint Created 2026-10-07 Updated 2026-10-14
For and , minimize subject to . Adding a positive Lagrange multiplier times the constraint gives a positive-definite quadratic optimization Lagrangian, whose minimizer is and . Feasibility is the displayed scalar equation. Its left side strictly decreases from positive infinity to negative infinity on , so it has a unique root for every real . The Lagrangian sufficiency theorem certifies a unique global optimum on the possibly nonconvex equality surface.
Strong Lagrangian property Created 2026-10-14 Updated 2026-10-18
For a finite constrained optimum value and optimization Lagrangian , the strong Lagrangian property means that some finite Lagrange multiplier attains the dual lower bound exactly: . It includes dual attainment, but need not include primal attainment. It is equivalent to a non-vertical supporting hyperplane of a value function: a supporting slope gives , hence ; weak duality gives the opposite inequality. Conversely the infimum identity bounds every below by ; taking the infimum over gives the supporting inequality. No convexity assumption is needed for this equivalence.