GLOBAL KNOWLEDGE ARK

Mathematics · Article

Linear programming and duality

Build exact linear-programming certificates from geometry, Farkas alternatives and duality through simplex, sensitivity, network integrality, robust rows and quantified numerical defects.

Back to Mathematics

After reading, you can

  • Convert an LP to nonnegative equality standard form while preserving decisions, bounds and objective offsets.
  • Prove the independent-support, finite-optimum and Farkas results with their actual finite-dimensional assumptions.
  • Derive weak and strong duality, mixed-sign rules and complementary-slackness certificates.
  • Follow primal and dual simplex pivots, phase-I recovery, degeneracy and a finite anti-cycling argument.
  • Qualify sensitivity ranges, network integrality, flow cuts and conditional barrier-gap bounds.
  • Build robust-row and numerical-defect certificates and recover their original units and model scope.
01

An allocation and a checkable bound

A linear program chooses among feasible allocations using an affine cost or benefit. A decision vector alone does not explain whether the constraints were met, whether another allocation could do better, or whether a numerical status has the right meaning. Duality supplies a second object: a bound that can be checked against the same original model. When a feasible decision and a feasible bound agree, they certify the optimum.

We develop that certificate from finite-dimensional geometry rather than assume that a picture always has a useful corner. Independent supports lead to bases; closed finitely generated cones lead to Farkas alternatives; feasible directions give strong duality and complementary slackness. The simplex dictionaries then become transparent algebra, including zero-step degeneracy, feasibility recovery and a dual-simplex repair.

The same reasoning reaches resource prices, transportation and assignment, network flow cuts, interior barrier gaps and robust uncertainty rows. Exact examples retain signs, units, domains and objective offsets. Approximate residuals receive explicit corrections only when the required bounds are proved. Throughout, a certificate establishes the stated mathematical model; discrete choices, omitted constraints and physical uncertainty retain their own assumptions.

02

A linear program and its domain

Write a minimization problem as inf{c^T x+c0: x in F}, where x is a finite vector of real decisions and F is specified by finitely many linear equalities and weak linear inequalities. The objective is affine; the constant c0 changes the reported value but not the minimizing decisions. A constraint such as a^T x<=b is affine in x even when its coefficients carry physical units. Products of two decisions, variable exponents and strict inequalities are outside this basic linear-programming form.

A choice x>=0 is a mathematical restriction, not a default property of every physical quantity. A displacement or a net financial position may be free in sign; an allocation or amount may have an actual nonnegative domain. Integer decisions define a different feasible set from their continuous relaxation. A linear expression does not turn that discrete problem into an ordinary real linear program. State which interpretation is intended before drawing a polygon or applying duality.

Separate three questions: does a feasible decision exist, is the objective bounded in the desired direction, and is its best value attained? For minimization the convention inf empty set=+infinity records infeasibility; value -infinity records a nonempty feasible set with arbitrarily low objective. A finite value alone would not imply attainment in a general optimization problem. Later we prove the stronger finite-dimensional polyhedral result rather than importing it from a picture.

The model is an assertion about admissible choices, resources and costs. Its linear coefficients must remain fixed while that model is solved; estimating uncertain coefficients or validating an engineering approximation is a separate task. An exact optimum can be scientifically inappropriate if a missing capacity, safety condition or discrete choice changes F. Conversely, a valid primal-dual certificate establishes the optimum of the stated LP without claiming that the stated LP is an exact description of the world. For the related linear-programming definitions and proof context, see [Standard-form geometry and finite optima](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=5); [Weak and strong LP duality](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=15). The decision domain, affine objective and optimization direction are part of the model.

03

Exact conversion to standard form

Our standard primal is min c^T x subject to Ax=b and x>=0. Replace a free real variable u by uplus-uminus with both components nonnegative. Every real u has such a representation, and every representing pair maps back to u. The representation is generally nonunique: adding the same positive number to both components changes neither u nor any correctly transformed objective or constraint. Equivalence therefore concerns recovered decisions and values, not a bijection of the enlarged vectors.

A lower bound v>=ell becomes v=ell+w with w>=0. Substitute this expression everywhere, including the objective constant and every right-hand side. An upper bound on w remains a constraint; it is not removed by the substitution. For a <= row, a slack s>=0 gives a^T x+s=b. For a >= row, a surplus s>=0 gives a^T x-s=b. In each case projection of the new equality set onto the original variables gives exactly the original weak inequality.

An objective c^T x+c0 may be stored as c^T x during pivot calculations if c0 is separately retained and restored in the final value and gap comparisons. To turn maximization into minimization, negate the whole objective and reverse the interpretation of its optimum value. Positive objective scaling preserves the direction; negative scaling without direction reversal does not. These are algebraic transformations with recovery rules, not permission to compare differently scaled certificates without conversion.

Slack introduction adds dimensions and can create degenerate bases; free-variable splitting can add recession directions that represent no change in the original decision. Neither phenomenon destroys exact feasibility equivalence. The standard-form theorems below apply to the enlarged nonnegative system, while the original answer is obtained by the saved inverse substitutions. Keep original variable names, units, bounds and constants in the recovery map so an algorithmic certificate can be checked against the actual formulation. For the related linear-programming definitions and proof context, see [Weak and strong LP duality](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=15); [Mixed signs and complementary slackness](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=18). Free-variable splits, bound offsets and slack columns preserve the original decisions and objective only with their full recovery map.

04

Polyhedral feasible geometry

For a row a^T x<=b, the feasible half-space is closed because a^T x is continuous, and convex because a^T(theta x+(1-theta)z)=theta a^T x+(1-theta)a^T z<=b for 0<=theta<=1. Equalities obey the same affine-combination identity and are closed hyperplanes or the appropriate whole/empty set when a=0. A finite intersection of these sets is a closed convex polyhedron. This proof also covers variable-bound rows.

Closed and convex do not imply bounded. The half-line x>=0 is a polyhedron with an unbounded direction. They do not imply nonempty either: the intersection x>=1, x<=0 is empty. The whole real line is a polyhedron with no extreme point. In higher dimensions an affine line inside a feasible set can likewise prevent every point on that line from being extreme. These counterexamples limit what can be concluded from geometry alone.

An extreme point v of F is a point that cannot be written as theta u+(1-theta)w for two distinct feasible u, w and 0<theta<1. A linear objective evaluated at such a combination is the same combination of the endpoint objectives. Thus if a combination is optimal and both endpoints are feasible, neither endpoint can have a strictly better value and both must also be optimal. This observation explains why a whole edge can be optimal; it does not establish that every feasible set has an edge or vertex.

For Ax=b, x>=0, the coordinate restrictions eliminate nontrivial two-sided lines: if x+t d remains nonnegative for every real t, each d_j must be zero. This pointed structure is one reason standard form admits a basic-optimum theorem even when the original free-variable formulation has no extreme points. We will prove that theorem through support reduction, so neither a bounded feasible polygon nor a drawing in two dimensions is a hidden hypothesis. For the related linear-programming definitions and proof context, see [Standard-form geometry and finite optima](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=5). Closed convex polyhedra can be empty, unbounded or without vertices in an original free-variable representation.

05

The rank test for an extreme point

Let J={j: x_j>0} be the positive support of a feasible x for Ax=b, x>=0. If the columns A_J are dependent, there is a nonzero vector d supported on J with Ad=0. Choose epsilon>0 small enough that epsilon|d_j|<x_j for every nonzero supported coordinate. Then x+epsilon d and x-epsilon d are distinct nonnegative solutions of the same equalities, and x is their midpoint. Therefore x is not extreme.

Conversely, suppose the support columns are independent and x=theta u+(1-theta)v for feasible u, v and 0<theta<1. If x_j=0, nonnegativity forces u_j=v_j=0. Thus u-v is supported on J and A_J(u_J-v_J)=0. Independence gives u_J=v_J; all remaining coordinates already vanish. Hence u=v=x and x is extreme. This establishes both directions, including points with some zero coordinates.

The criterion concerns the positive support, not the number of constraints printed on the page. An equality may be redundant, and more than the necessary number of inequalities may be tight at a vertex. For the simplex x1+x2+x3=1, x>=0, the point (1, 0, 0) has one independent support column and is extreme. The point (1/2, 1/2, 0) has two identical support columns and is the midpoint of (1, 0, 0) and (0, 1, 0).

The same algebra identifies the dimension of feasible motions on a fixed positive support: they are null vectors of A_J. It also explains degeneracy after a basis is chosen. A vertex may have fewer positive variables than the number of independent equations, so some of its basic variables can be zero. Positive support independence is a property of the point; which extra zero coordinates enter a basis is a representation choice. Confusing those statements obscures both uniqueness and simplex behavior. For the related linear-programming definitions and proof context, see [Standard-form geometry and finite optima](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=5); [Bases, dictionaries and reduced costs](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=8). The independent-support criterion concerns positive coordinates, rather than the printed number of active rows.

06

Basic feasible solutions and redundant rows

Assume A has m independent rows. Any independent set of its columns extends to m independent columns because its column space has dimension m. For an extreme feasible point, the support criterion provides such an independent set. Extend it to a basis matrix B and set all other variables to zero. The equalities imply x_B=B^-1 b; the added basis coordinates are exactly zero when they were outside the positive support. This is a basic feasible solution.

Conversely, if B is nonsingular and B^-1 b>=0, the point with x_N=0 is feasible. Its positive support is a subset of the independent basis columns, so it is extreme. Thus basic feasible solutions and extreme points coincide under the full-row-rank convention, although several different bases may represent one degenerate point. There are finitely many bases, and therefore finitely many such points, even if the feasible polyhedron is unbounded.

Before using this language on a rank-deficient matrix, perform consistent row reduction on the augmented system [A|b]. A row combination that produces 0=btilde with btilde!=0 proves infeasibility and cannot be discarded as harmless redundancy. A row 0=0 can be deleted; the remaining independent equations have the same solution set. Column independence and the recovered original equalities should still be checked against their saved transformation, especially after numerical rank decisions.

When m=0, the only basic point under this convention is the zero vector in the nonnegative orthant. A zero column is not an independent support generator; its associated variable can vary without affecting Ax. This limiting case is consistent with the rank test and the later bounded-objective argument. The theorem is about exact rank. A nearly dependent floating-point matrix requires a conditioning analysis rather than a silent replacement of exact independence by a convenient tolerance. For the related linear-programming definitions and proof context, see [Bases, dictionaries and reduced costs](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=8). Consistent rank reduction and nonnegative basic values are retained before a basis is called feasible.

07

Why a finite LP optimum is attained

Take any feasible x of a nonempty standard-form LP and suppose c^T x is bounded below on the whole feasible set. If its positive-support columns are dependent, choose nonzero d supported there with Ad=0. When d has both positive and negative components, both orientations reach a finite nonnegative-boundary point. Choose an orientation e among d and -d with c^T e<=0, then increase its step until the first positive supported coordinate becomes zero.

If a null vector on the support has just one sign, orient it as d>=0. The entire ray x+t d, t>=0 is feasible. Boundedness below forces c^T d>=0; otherwise that ray alone would send the objective to -infinity. Therefore the opposite direction -d has nonpositive objective change and reaches a finite boundary point. In every case support can be reduced without increasing the objective and without introducing any positive coordinate outside the current support.

Repeat until the remaining support columns are independent. The support size falls at each step, so this procedure stops after finitely many reductions at a basic feasible point z with c^T z<=c^T x. There are finitely many feasible bases after consistent rank reduction. Choose the one with the least objective among that finite nonempty collection. Since every feasible x admits a basic point no more expensive, that least basic value is the global infimum and is attained.

No boundedness of F or compactness assumption entered the proof; boundedness of the objective in its chosen direction did. A constant objective on an unbounded feasible standard-form set is covered. A feasible unbounded-below problem is deliberately excluded. An original problem with free directions can be converted to standard form and mapped back, so the attained original optimum need not itself be a vertex of the original set. This is the precise replacement for the informal claim that every LP optimum lies at a corner. For the related linear-programming definitions and proof context, see [Standard-form geometry and finite optima](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=5); [Bases, dictionaries and reduced costs](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=8). Support reduction followed by a minimum over finitely many basic candidates establishes attainment without assuming compactness.

08

Recession directions and unboundedness

For standard form, a recession direction is d with Ad=0 and d>=0: if x0 is feasible, then x0+t d is feasible for every t>=0. Conversely, a vector that preserves nonnegativity along such a ray for all t must have no negative component, and the equalities force Ad=0. Along the ray the objective is c^T x0+t c^T d. A strictly negative slope is therefore an exact unboundedness certificate, provided a feasible base point is also supplied.

A vector d alone does not certify that the original feasible set is nonempty. For example, an inconsistent equality system can share null directions with a feasible one. A solver status unbounded should therefore be interpreted with its primal feasibility evidence and ray, in the original variable convention. The zero vector cannot be a strictly improving ray. A direction with zero slope only records alternative feasible motions and says nothing by itself about whether another direction improves the objective.

For finite-dimensional LP there is also a converse: if a feasible minimization is unbounded below, a strictly improving nonnegative null direction exists. One proof uses the finite-cone alternative developed below. A dual feasible y would give the finite lower bound b^T y, so no such y exists. Separating c from range(A^T)+R_+^n then gives d with Ad=0, d>=0, c^T d<0. We will explicitly derive that separation from Farkas rather than assume it for arbitrary convex sets.

This converse is special to the polyhedral linear setting. A nonlinear objective can tend to -infinity without a linear recession rate, and a finite unattained nonlinear infimum does not obey the basic-optimum theorem. Under an exact affine transformation, a standard-form ray maps to a valid original motion; free-variable splitting may also produce zero-image rays, but their objective slope is zero when the transformation is correct. A strictly negative transformed slope must therefore survive the objective recovery. For the related linear-programming definitions and proof context, see [Feasibility alternatives and separation](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=12); [Weak and strong LP duality](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=15). An improving ray requires both a feasible base point and a strictly negative objective slope.

09

A finitely generated cone is closed

Let C={sum_j alpha_j a_j: alpha_j>=0} for finitely many vectors a_j. First reduce any representation to independent active generators. If its positive-support generators are dependent, choose a nonzero coefficient direction d on that support with sum_j d_j a_j=0. Flip its sign if necessary so at least one d_j>0. Subtract t d from the coefficient vector, where t is the smallest alpha_j/d_j over positive d_j. All coefficients stay nonnegative and at least one active coefficient becomes zero.

Negative components of d only increase their already active coefficients; coordinates outside the support are unchanged. The represented vector is unchanged because the generator combination of d is zero. Iteration ends with a linearly independent support. The empty support represents 0, so that case is included. This reduction uses nonnegative coefficients and finite generation; it is not the statement that every cone or every linear image of a closed set is closed.

Now take a convergent sequence v_k in C with limit v. Choose an independent-support representation for each v_k. There are finitely many possible supports, so some subsequence uses one fixed support J. If J is empty, the subsequence and limit are zero. Otherwise A_J has a continuous left inverse on its column space, for example (A_J^T A_J)^-1 A_J^T. The coefficient vectors on that subsequence consequently converge to the left inverse applied to v.

Each coefficient limit is nonnegative, and continuity gives v=A_J alpha with alpha>=0. Thus v lies in C, and C is closed. Convexity follows directly by adding nonnegative coefficient representations. This elementary closedness proof justifies the nearest-point separator used next and prevents an unnoticed appeal to a separation theorem with an unverified closure hypothesis. The finite number of supports is used for existence, not presented as an efficient numerical enumeration algorithm. For the related linear-programming definitions and proof context, see [Feasibility alternatives and separation](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=12). The finite-generator closure argument supplies the exact closedness premise used by the separator.

10

Farkas alternative by nearest-point separation

Consider C={Az: z>=0}. The preceding finite-generator proof makes C a closed convex cone containing 0. If b is outside C, a nearest point u in C exists: restrict a minimizing sequence to a sufficiently large closed ball about b, extract a convergent subsequence, and use closedness. Put r=b-u, which is nonzero. For every v in C, the segment u+t(v-u) is feasible for 0<=t<=1, and differentiating its squared distance from b at t=0 gives r^T(v-u)<=0.

Use v=0 and v=2u to obtain r^T u=0. The same inequality then gives r^T v<=0 for every v in C. Set y=-r. Since each column a_j belongs to C, we have A^T y>=0. Also b=u+r, so b^T y=-r^T u-||r||^2=-||r||^2<0. This produces the required certificate rather than merely saying that a separating plane exists.

The two alternatives cannot both hold. If Az=b with z>=0, and A^T y>=0, then b^T y=z^T A^T y>=0, contradicting b^T y<0. If the nonnegative equation has no solution, b is outside C and the projection argument supplies such a y. Exactly one alternative therefore holds. Reversing the sign of y gives a common equivalent convention with A^T y<=0, b^T y>0; mixing the two conventions would invalidate the test.

This proof is finite-dimensional and uses the closedness of a finitely generated cone. In more general infinite-dimensional settings, a nonclosed range can obstruct this exact strong alternative, so the hypotheses matter. Computationally, a certificate is checked by matrix multiplication and a strict scalar inequality. Its existence proof does not imply that an approximate y with one negative entry in A^T y is already valid; any tolerance or rational reconstruction must preserve the asserted inequalities. For the related linear-programming definitions and proof context, see [Feasibility alternatives and separation](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=12). The nonnegative equality-form alternative uses nonnegative column products and a strictly negative right-hand product.

11

Deriving the standard dual

For min c^T x subject to Ax=b, x>=0, take an arbitrary real multiplier y for the equality and form L(x, y)=c^T x+y^T(b-Ax)=b^T y+(c-A^T y)^T x. The equality multiplier is free in sign because an equality can be used in either direction. For every primal-feasible x, L(x, y)=c^T x, so the infimum of L over the larger set x>=0 is a lower bound on the primal objective.

Write s=c-A^T y. If every s_j>=0, the infimum over x>=0 is b^T y, attained at x=0 for this unconstrained Lagrangian minimization. If some s_j<0, letting that coordinate grow makes L tend to -infinity. Thus the best informative Lagrangian bound is max b^T y subject to A^T y<=c. The slack vector s is called the dual slack or reduced-cost vector when y comes from a basis.

The point x=0 used to compute the Lagrangian infimum need not satisfy Ax=b; it is not being claimed as a feasible primal decision. Duality works precisely because it minimizes a relaxed expression over a larger set. Nor is a numerical multiplier inferred from any convenient gradient automatically dual feasible. Its inequalities must be checked against every primal variable column, including slacks and split free-variable columns.

The units also follow from this derivation. If row i measures resource units and the objective measures currency, y_i has currency per resource unit, so y_i b_i is comparable with the objective. A row sign change or scale change alters the multiplier convention. The standard dual is therefore safest to derive from the exact chosen primal form, then map back to the original constraints rather than memorize an inequality pattern without its minimization and domain assumptions. For the related linear-programming definitions and proof context, see [Weak and strong LP duality](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=15). Equality multipliers are free, and the minimization dual supplies lower bounds.

12

Weak duality and the exact gap

Let x be primal feasible and y dual feasible, with s=c-A^T y>=0. Then c^T x-b^T y=c^T x-y^T Ax=x^T s. Every summand x_j s_j is nonnegative, so b^T y<=c^T x. A feasible primal value is an upper bound on the minimum; a feasible dual value is a lower bound. If they coincide, neither side can improve and both points are optimal, without any iterative convergence argument.

For arbitrary x and y, the exact algebra is c^T x-b^T y=x^T(c-A^T y)+y^T(Ax-b). Primal equality feasibility Ax=b guarantees that the residual term is zero; without it, the term may be zero or have either sign and cannot in general be discarded. If x is nonnegative but equality-infeasible, its reported objective can lie below the true minimum. If y violates its dual inequalities, its objective can lie above the minimum. A small gap between two such infeasible numbers is not a valid optimality certificate.

For a genuinely feasible pair with gap g>=0, the unknown optimum pstar satisfies b^T y<=pstar<=c^T x. Hence the primal suboptimality is at most g and the dual shortfall is at most g. An absolute gap and a relative gap answer different questions, especially when values are near zero or change units. A certificate should report the exact bounds or an explicitly justified error interval rather than rely on a scale-dependent status label.

Weak duality requires no full-rank assumption and no existence of optimum points. It holds whenever the displayed pair is feasible. A single dual feasible vector rules out primal unboundedness below; one primal feasible vector rules out dual unboundedness above. These are consequences of a valid finite bound. They do not say that one side is feasible whenever the other is infeasible; that stronger status analysis needs the finite-cone alternative and strong-duality argument. For the related linear-programming definitions and proof context, see [Mixed signs and complementary slackness](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=18). The residual term is retained until primal equality feasibility has actually been established.

13

Strong duality from feasible directions

Suppose the primal is feasible and bounded below. The basic-optimum theorem supplies an attained optimizer xstar. Let J be its zero coordinates and I its positive coordinates. A vector d is locally feasible in the forward direction if Ad=0 and d_J>=0: for sufficiently small t>0, the positive coordinates in I remain nonnegative, while the zero coordinates move nonnegatively. Optimality therefore gives c^T d>=0 for every such d.

Apply Farkas to the equation Mz=c, z>=0, where M consists of the columns of A^T, -A^T, and the coordinate vectors e_j for j in J. If this equation were infeasible, Farkas would give d with M^T d>=0 and c^T d<0. The first two column blocks imply Ad=0; the coordinate columns imply d_J>=0. This contradicts the local feasible-direction inequality. Thus c=A^T y+s for a real y and s>=0 supported only on J.

The constructed y is dual feasible. Since s_I=0 and xstar_J=0, we obtain s^T xstar=0. Consequently c^T xstar=b^T y. Weak duality now proves that y attains the dual maximum and that the two finite optimum values are equal. This establishes strong duality and dual attainment from finite-generation geometry, not from an assumed differentiability condition or a numerical limit.

No strict primal feasibility or Slater-type interior assumption was needed for this LP argument. Degenerate optima, zero columns and redundant consistent equations are allowed; rank reduction was used only in the earlier basic-point existence proof. Conversely, the conclusion has explicit feasibility and boundedness hypotheses. If one side has no feasible point, the construction of xstar is unavailable. A nonlinear or infinite-dimensional analogue requires its own assumptions and cannot inherit this theorem simply because its notation contains multipliers. For the related linear-programming definitions and proof context, see [Feasibility alternatives and separation](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=12); [Weak and strong LP duality](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=15). The finite optimum and dual certificate are attained under the stated feasible, bounded-below LP hypotheses.

14

Complementary slackness as a certificate

For any primal/dual feasible pair, the gap is the finite sum sum_j x_j s_j with x_j, s_j>=0. It is zero exactly when each product x_j s_j is zero. Strong duality makes zero gap equivalent to both points being optimal. Thus complementary slackness is a necessary and sufficient optimality test when feasibility of both sides is already established. It is not a replacement for that feasibility check.

If x_j>0, complementarity forces s_j=0, so the corresponding dual inequality is tight. If s_j>0, it forces x_j=0. The converses need not hold: a zero primal variable may also have zero slack, and a tight dual inequality does not force its primal variable positive. Those possibilities describe degeneracy and alternative optima. Solving only the equalities suggested by one guessed active set may miss or wrongly exclude valid optimal points.

For an original inequality row, its slack is a standard-form variable. Applying the same coordinate complementarity condition to that slack gives the usual row statement: the multiplier times the unused resource is zero, with signs interpreted in the chosen minimization convention. A nonzero price therefore requires a tight corresponding row. A tight row can still have zero price, for example when it is redundant or when another resource determines the marginal limitation.

A dual price can certify the highlighted primal cornerBudget and first box constraint bind; The objective on the highlighted feasible point is 10. The displayed dual price yields the same bound.A dual price can certify the highlighted primal corner-0.705.7-0.282.28Feasible polygon edgesSupporting objective leveloptimumPrimal optimumFirst allocation horizontally · second allocation vertically
The objective on the highlighted feasible point is 10. The displayed dual price yields the same bound.

Multiplying each resource bound by its nonnegative price gives an upper bound for every primal allocation. The two column inequalities ensure it bounds the original objective. At the provided pair the price complementarity and equality of objectives certify both optima.

Exact primal and dual certificate
QuantityExact result
Primal allocation(2, 2)
Primal constraint slacks(0, 0, 1)
Primal objective10
Dual inequalitiesp+u≥c₁, p+v≥c₂ with p,u,v≥0
One dual price (p,u,v)(2, 1, 0)
Aᵀ price(3, 2)
Price × slack by row(0, 0, 0)
Dual objective Bp+Uu+Vv10
Duality gap0
Optimal dual choicesThe displayed prices attain the optimum.
Exact inputs and supporting calculations
Declared inputs
ParameterValue
c[3,2]
B4
U2
V3

Complementarity can help recover an optimizer from a known feasible dual vector by setting variables with positive slack to zero and solving the remaining primal constraints. The resulting system must still have a nonnegative feasible solution; the process is a certificate construction, not a guarantee that every arbitrary dual vector is optimal. Conversely, a proposed primal point can restrict possible multipliers. The exact gap remains the simplest final check because it combines all complementarity products in one independently verifiable identity. For the related linear-programming definitions and proof context, see [Mixed signs and complementary slackness](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=18). Complementary products characterize optimality only together with primal and dual feasibility.

15

A checkable infeasibility certificate

For the standard constraints Ax=b, x>=0, a Farkas vector y satisfies A^T y>=0 and b^T y<0. Were a feasible x to exist, we would have b^T y=x^T A^T y>=0, which is impossible. This is an infeasibility certificate involving only the original matrix, right-hand side and the supplied multiplier. The objective c does not appear because no objective can repair an empty feasible set.

As a small example, let the two rows both be x1+x2 while the right-hand sides are 1 and 2. With y=(1, -1), the combined left-hand coefficient is zero and the combined right-hand side is -1. Thus A^T y=(0, 0)>=0 and b^T y=-1<0. The vector with the opposite sign gives b^T y=1 and is not a certificate in this convention, despite also annihilating A. A strict sign is doing real work.

When inequalities and bounds were transformed to standard form, the certificate can be mapped back through those same row combinations and slack columns. In an original <= system, this often appears as a nonnegative weighted sum of constraints producing an impossible constant inequality. The sign pattern follows from the transformation, not from an arbitrary preference that all multipliers should be positive. Free variables and equalities must keep their distinct sign rules.

The right-hand side lies on the forbidden sideA negative paired right-hand side; All nonnegative column mixtures obey q·y≥0. The target b has b·y=-1.The right-hand side lies on the forbidden side-0.8406.84-0.4693.819Extremal rays of the allowed RHS coneSeparating line with q·y=0bRequired right-hand side bFirst RHS coordinate · second RHS coordinate
All nonnegative column mixtures obey q·y≥0. The target b has b·y=-1.

If Ax=b with x≥0, then b·y=x·(Aᵀy)≥0 under the stated column condition. A strict negative b·y contradicts the equality. A candidate with b·y=0 proves no infeasibility; in the feasible case the exact x checks both rows directly.

Exact Farkas sign check
QuantityExact result
Candidate y(2, -1)
Aᵀy(1, 0)
b·y-1
Infeasibility certificateYes; all column products nonnegative and b·y negative
Feasible x when presentNone
Exact inputs and supporting calculations
Declared inputs
ParameterValue
A[[1,1],[1,2]]
b[1,3]
y[2,-1]

An approximate certificate needs a justified margin. If a computed A^T y has small negative components, nonnegative x can amplify them without limit when no variable bound is known. Merely printing a tiny residual does not restore the contradiction. Exact rational checking, interval enclosures with a strict negative right-hand margin, or a separately proved variable-bound correction can make the claim rigorous. Until such a check is established, the numerical vector is evidence to investigate rather than a proved infeasibility result. For the related linear-programming definitions and proof context, see [Feasibility alternatives and separation](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=12). The infeasibility certificate is checked against the original transformed-back system and its exact signs.

16

The four status combinations

With the standard primal-dual pair, the both-feasible case has finite equal attained optima. Indeed, each feasible side supplies a finite bound on the other, then primal attainment and strong duality apply. If the primal is feasible and unbounded below, the dual must be infeasible by weak duality. If the dual is feasible and unbounded above, the primal must be infeasible by the same argument. These are exclusions, not a claim that infeasibility on one side determines a unique status on the other.

To prove the recession-ray converse, observe that dual feasibility is the representation c in range(A^T)+R_+^n. This is a finitely generated cone using both signs of the columns of A^T plus all positive coordinate generators. If the dual is infeasible, Farkas separates c from that cone and supplies d with Ad=0, d>=0, c^T d<0. Therefore, if a primal base point is also feasible, the ray through it certifies unboundedness below. Without that base point, the same d does not distinguish an empty primal.

Both programs can be infeasible. Take A=[0], b=1, c=-1. The primal asks 0x=1 with x>=0, which is impossible; the dual asks 0y<=-1, also impossible. For a different example, Ax=b given by x=-1, x>=0 is infeasible but, with c=1, the dual max -y subject to y<=1 is feasible and unbounded above. Thus an infeasible primal can have either an infeasible or an unbounded feasible dual.

These possibilities exhaust the exact standard LP cases once finite feasibility and the preceding theorems are used. A numerical report such as infeasible or unbounded can mean that a presolve reduction has not distinguished two cases; it is not a new mathematical status. Request or construct the corresponding original-system certificate. An uncertain floating-point result should preserve that uncertainty rather than be promoted to the exact four-case classification without feasible points, rays or separating multipliers. For the related linear-programming definitions and proof context, see [Weak and strong LP duality](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=15). Dual infeasibility alone does not identify a feasible unbounded primal.

17

A basis dictionary

Choose m independent columns of a full-row-rank A and write A=[B N] after a saved column permutation. The equality Bx_B+Nx_N=b gives x_B=B^-1 b-B^-1 N x_N. Define bbar=B^-1 b and D=B^-1 N. The dictionary x_B=bbar-Dx_N is algebraically equivalent to the equalities, and x_N=0 is a feasible basic point exactly when bbar>=0.

Substitution into the objective gives c^T x=c_B^T B^-1 b+(c_N^T-c_B^T B^-1 N)x_N. Set y=B^-T c_B and r_N=c_N-N^T y. Then c^T x=b^T y+r_N^T x_N. For basic columns, B^T y=c_B, so their dual slacks are zero. These equations derive both the basis multiplier and the reduced costs, including their signs for a minimization dictionary.

The displayed inverses express a mathematical identity. A numerical implementation generally solves systems with factorizations instead of explicitly forming a dense B^-1. Reusing a factorization changes computational cost, not the exact dictionary meaning. Every pivot changes which columns form B; variable indices, permutations and original slack identities must therefore be retained. A printed tableau without that mapping is insufficient for an original-model certificate.

A feasible dictionary says only that its current basic point is primal feasible. Its reduced costs may still be negative, allowing an improving entering variable. A dual-feasible dictionary has r_N>=0 and zero basic slacks; it need not have bbar>=0. The distinction supports the primal and dual simplex methods respectively. When both conditions hold, the same dictionary provides a feasible primal point and a feasible y with equal objective, which is already a complete optimality certificate. For the related linear-programming definitions and proof context, see [Bases, dictionaries and reduced costs](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=8); [Weak and strong LP duality](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=15). The dictionary, multiplier and reduced costs use a consistent column ordering and minimization convention.

18

Reduced costs and an optimal basis

For a basis B, let x_N=0, x_B=B^-1 b>=0 and y=B^-T c_B. Its basic dual slacks are zero and its nonbasic slacks are r_N=c_N-N^T y. If r_N>=0, y is dual feasible. The dictionary objective at the basic point is b^T y, so weak duality gives equality of feasible bounds and proves optimality. This is a sufficient certificate from one feasible basis; no examination of every feasible point is required.

A negative reduced cost means that increasing that nonbasic variable would reduce the dictionary objective per unit, provided the basic nonnegativity constraints allow a positive increase. At a nondegenerate basic point every basic value is positive, so a sufficiently small positive increase is feasible. At a degenerate point a zero basic variable can block that direction immediately. Therefore an optimal point can be represented by a feasible basis whose reduced costs include a negative component.

For example, minimize -x-y subject to x+y+s1=0 and x+s2=1, all variables nonnegative. The only possible x, y are zero, so the slack basis is already optimal. Its dictionary objective is -x-y, with both nonbasic reduced costs negative, but its first basic value is zero and any increase is blocked. A zero-step pivot can lead to a different basis with a valid nonnegative reduced-cost certificate for the same optimum point.

The distinction matters when interpreting simplex output or reconstructing multipliers. An optimal primal point alone does not make the multiplier from an arbitrary representing basis dual feasible. A correct optimality check uses an actually feasible dual vector, or a basis whose reduced costs have the required signs. Degeneracy changes the representation and algorithmic path; it does not weaken the exact feasibility and equal-value conditions of a primal-dual certificate. For the related linear-programming definitions and proof context, see [Bases, dictionaries and reduced costs](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=8); [Mixed signs and complementary slackness](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=18). A sufficient optimal-basis certificate is distinguished from an arbitrary representation of an optimal degenerate point.

19

The ratio test and a primal pivot

Use a primal-feasible dictionary x_B=bbar-Dx_N, with bbar>=0, and choose a nonbasic index j with r_j<0. Starting at x_N=0, increase x_j=t while keeping the other nonbasic coordinates zero. Then x_B=bbar-t D_: j and the objective is z0+t r_j. A row with D_ij>0 imposes t<=bbar_i/D_ij; rows with zero or negative coefficients impose no upper bound for t>=0.

If no D_ij>0 exists, the vector with entering component 1, basic components -D_: j and other nonbasic components 0 is nonnegative and lies in the null space of A. Its cost is r_j<0, so the feasible basic point plus this ray proves unboundedness. If some positive coefficient exists, the largest feasible step is theta=min_{i: D_ij>0} bbar_i/D_ij. At least one basic component reaches zero while no component becomes negative.

Choose a minimizing row i and exchange its basic column for column j. In the transformed coordinates B^-1 A, the entering column has nonzero ith component D_ij, so the new basis determinant is the old basis determinant times that nonzero pivot, up to the saved ordering convention. Thus the replacement columns are independent. Solving the pivot row and substituting into the others gives another exact dictionary for the same equality system.

Positive feasible pivotA positive leaving-variable step; The ratio test stops at t=2. The upper and lower panels show different quantities. The panels stop plotting at the feasible endpoint. Blank larger t values are infeasible in this dictionary.Positive feasible pivot-1.19709.747-0.3993.249Achieved improvement over feasible steps6Achieved Δz=6Only feasible t · achieved objective improvement-2.49804.798-0.3993.249Feasible first basic variableFeasible second basic variablet=2Leaving variable at t=2Entering variable t≥0 · current basic values
The ratio test stops at t=2. The upper and lower panels show different quantities. The panels stop plotting at the feasible endpoint. Blank larger t values are infeasible in this dictionary.

A positive coefficient a_j causes x_B,j to decrease along the entering direction, so it supplies a ratio bound b_j/a_j. A nonpositive coefficient imposes no forward bound. The step is the smallest eligible ratio. If the step is zero, the new basis need not change the feasible point or the objective; if no ratio exists, the positive reduced cost gives an improving ray.

Exact ratio test and objective certificate
QuantityExact result
Eligible ratios by row3, 2
Chosen endpoint2
Leaving rowRow 2
Basic values at chosen endpoint(1, 0)
Reduced cost r3
Exact improvement6
StatusPositive feasible pivot
Exact inputs and supporting calculations
Declared inputs
ParameterValue
b[3,4]
a[1,2]
r3

The objective change is theta r_j<=0. It is strictly negative only if theta>0; ties in the ratio test can make several coordinates zero and degeneracy can make theta=0. A ratio test with the wrong sign would move outside the nonnegative feasible region. In finite precision, the minimum comparison and feasibility tolerances need separate controls, but those implementation issues do not alter this exact algebraic proof or the ray certificate in the no-positive-coefficient case. For the related linear-programming definitions and proof context, see [Bases, dictionaries and reduced costs](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=8). The ratio test includes zero steps and a separate unbounded-ray case.

20

Degeneracy and zero progress

A basic feasible solution is degenerate when at least one component of bbar is zero. If an entering column has a positive coefficient in such a zero row, the ratio test gives a zero step. The entering variable and leaving basic variable are both zero at the new point, so the coordinates and objective remain exactly unchanged even though the set of basic columns changes. A basis is an algorithmic representation, not the physical allocation itself.

In the example x+y+s1=0, x+s2=1 with objective -x-y, the slack basis has bbar=(0, 1). Let x enter. Its column in the two equations is (1, 1), so the ratios are 0 and 1 and s1 leaves at theta=0. The new dictionary is x=-y-s1 and s2=1+y+s1; the objective becomes s1. At y=s1=0 it describes the same feasible point x=y=0, s2=1, now with reduced costs 0 and 1.

This single pivot demonstrates stalling, not a cycle: to prove cycling one would have to exhibit a repeated basis in a sequence under a specified pivot rule. Nevertheless, zero objective change removes the usual strict-improvement argument for finite termination. Since there are finitely many bases, an arbitrary tie policy could revisit a basis unless an anti-cycling rule excludes it. Repeating the same status statement is not mathematical progress just because a basis label changed.

Degeneracy is compatible with a unique primal optimum, nonunique optima, unique multipliers or nonunique multipliers; none of those conclusions follows from a zero basic value alone. A solver can preserve feasibility and exact certificates while changing its tie policy. In a lesson or saved computation, retain the entering/leaving indices, ratio values and coordinate recovery so the distinction between a zero pivot step, a numerical near-zero and an actual repeated basis remains reviewable. For the related linear-programming definitions and proof context, see [Bases, dictionaries and reduced costs](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=8). Changing a degenerate basis can leave the physical point and objective unchanged.

21

Finite anti-cycling by symbolic perturbation

One theoretical anti-cycling device perturbs the right-hand side while keeping A and c fixed. Start with a feasible basis B0 and replace b by b(epsilon)=b+B0(epsilon, epsilon^2, ..., epsilon^m)^T. Its initial basic values are B0^-1 b+(epsilon, epsilon^2, ..., epsilon^m)^T, strictly positive for epsilon>0. For any other nonsingular basis C, each basic coordinate is a polynomial in epsilon with constant term (C^-1 b)_i and higher coefficients from row i of C^-1 B0.

No such coordinate polynomial is identically zero: the row of the invertible matrix C^-1 B0 is nonzero. There are finitely many bases and coordinates, so there is an epsilon0>0 such that none vanishes for 0<epsilon<epsilon0, and all their signs are fixed throughout a smaller such interval. Hence every feasible basic point of the perturbed problem is nondegenerate. Any negative-reduced-cost ratio pivot then has a strictly positive step and strictly decreases the perturbed objective.

There are finitely many bases, so a strictly improving pivot sequence cannot revisit one and must terminate at an optimal basis or a certified improving ray. In the feasible bounded-below case, the already-proved dual theorem supplies a dual feasible vector for A, c, which remains a finite lower bound for every perturbed b; an improving ray is impossible. Along epsilon tending to zero, choose a subsequence with one fixed terminal basis C. Its basic points converge to C^-1 b>=0, while its dual-feasible basis multiplier is independent of epsilon. Equality of the limiting objectives proves original optimality.

Symbolic or lexicographic perturbation implements the sign hierarchy without choosing a numerically tiny floating number and hoping it is small enough. This argument is an existence and finite-termination proof for the stated pivot setting; it is not a polynomial bound on the number of pivots or a recommendation to physically perturb measured data. The final unperturbed constraints and recovered certificate still require checking. Other established anti-cycling rules can serve the same purpose with their own proofs. For the related linear-programming definitions and proof context, see [Resolving simplex degeneracy](https://web.mit.edu/15.053/www/AMP-Appendix-B.pdf#page=25); [Bases, dictionaries and reduced costs](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=8). Symbolic perturbation proves finite progress; it is not an arbitrary numerical data change or a polynomial pivot bound.

22

Phase I feasibility

To find an initial feasible basis, first multiply any equality row with negative right-hand side by -1, recording the diagonal sign matrix S. Write Atilde=SA, btilde=Sb>=0. Introduce one nonnegative artificial variable a_i per row and solve the auxiliary LP min sum_i a_i subject to Atilde x+a=btilde, x>=0, a>=0. The artificial basis x=0, a=btilde is feasible, and the auxiliary objective is bounded below by zero.

The basic-optimum theorem gives an attained auxiliary minimum. If the original system has a feasible x, then the auxiliary pair (x, 0) is feasible with value zero. Conversely, a feasible auxiliary point with sum_i a_i=0 has each a_i=0 and therefore Atilde x=btilde. Since S is invertible, it recovers Ax=b. Thus zero attained auxiliary optimum is equivalent to original feasibility; it is not enough merely to observe a small positive numerical objective.

If the auxiliary optimum alpha is positive, strong duality supplies an auxiliary dual y with Atilde^T y<=0, y<=1 and btilde^T y=alpha>0. Set z=-y. Then Atilde^T z>=0 and btilde^T z=-alpha<0. The original-system certificate is Sz, because A^T Sz=Atilde^T z and b^T Sz=btilde^T z. This derives a Farkas certificate from phase I and keeps every row-sign transformation explicit.

At zero auxiliary optimum, artificial variables can remain basic at value zero. They must be removed or their redundant transformed rows identified before a basis for the original problem is declared. Phase I decides feasibility, not the cost optimum of the original c. Phase II restores that original objective, including any retained constant, at an original-variable feasible basis. Algorithm choices, iteration limits or a status label do not replace the exact zero-or-certificate distinction in this mathematical construction. For the related linear-programming definitions and proof context, see [Feasibility alternatives and separation](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=12); [Weak and strong LP duality](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=15). The auxiliary nonnegative minimum is attained, and a positive value can be converted to an original-system Farkas certificate.

23

Removing zero artificial variables

Suppose phase I has value zero and a basic artificial variable a_i remains with basic value zero. In its dictionary row, a_i=-sum_j D_ij x_Nj because bbar_i=0. If some original nonbasic variable has D_ij!=0, it may be exchanged with that artificial column. The zero point in those two coordinates remains unchanged, so the pivot is a zero-step basis change with no loss of feasibility. The nonzero pivot guarantees the new basis is nonsingular.

This exchange does not require the positive-step sign used in a primal improvement ratio test: its purpose is to remove a zero artificial coordinate while preserving the same feasible point. Other basic values remain unchanged at all nonbasic variables zero. Preserve the objective separately, then recompute the original reduced costs when phase II starts. Treating this cleanup as a strict objective improvement would confuse it with the degeneracy issue just discussed.

If every original nonbasic coefficient in the artificial row is zero, then every original basic coefficient there is zero as well: those basic columns have their unit entries in different rows. Therefore that row of the transformed original coefficient matrix is entirely zero, and its transformed right side is also zero. It is a consistent redundant equation, which can be deleted together with the artificial basis coordinate. A nonzero right side would instead signal inconsistency and cannot be removed.

The conclusion is about a row after invertible tableau transformations, not necessarily one obviously duplicated printed constraint. Save the row-combination map so the original system can still be verified. Numerical near-zero coefficients are not exact zero rows without an error analysis. After all such cleanup, the remaining original basis represents the same original feasible point on an independent equation system, and the standard basis and duality formulas apply with the reduced rank. For the related linear-programming definitions and proof context, see [Bases, dictionaries and reduced costs](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=8); [Feasibility alternatives and separation](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=12). A zero artificial coordinate is removed by a valid zero-step exchange or a proved consistent redundant equation.

24

One dual-simplex pivot

Start with x_B=bbar-Dx_N and objective z=z0+r^T x_N, where r>=0 but some basic row i has bbar_i<0. To make that row nonnegative, at least one nonbasic variable must have D_ij<0. If every D_ij>=0, the row gives x_Bi=bbar_i-sum_j D_ij x_Nj<0 for every x_N>=0. In original coordinates, the ith row of B^-1 is a Farkas multiplier with A^T y>=0 and b^T y=bbar_i<0.

When negative row coefficients exist, choose entering j minimizing theta=r_j/(-D_ij) over D_ij<0. Solve the pivot row for x_j=(bbar_i-x_Bi-sum_{k!=j}D_ik x_k)/D_ij. Its new basic value bbar_i/D_ij is positive. The new reduced cost of the leaving variable is -r_j/D_ij=theta>=0. For another nonbasic k, the new reduced cost is r_k-r_j D_ik/D_ij=r_k+theta D_ik.

If D_ik>=0, the last expression is nonnegative immediately. If D_ik<0, the minimum-ratio choice gives theta<=r_k/(-D_ik), again making the expression nonnegative. Thus the pivot preserves dual feasibility while exchanging the negative basic coordinate. Its objective constant changes by r_j bbar_i/D_ij>=0, so the dual lower bound does not decrease. Other basic values may still be negative; one pivot is not a proof that primal feasibility has been fully restored.

Repeat only under a valid dual-simplex pivot and anti-cycling policy until primal feasibility is reached or a Farkas row is found. The derivation proves the sign and ratio rule and the certificate in the no-candidate case; it does not assert that arbitrary choices in degenerate iterations always terminate. Once bbar>=0 and reduced costs remain nonnegative, the dictionary supplies the same exact primal-dual optimality certificate as the ordinary simplex conclusion. For the related linear-programming definitions and proof context, see [The dual-simplex pivot](https://people.orie.cornell.edu/dpw/orie6300/Lectures/lec15.pdf#page=1). Dual feasibility is preserved by the ratio over negative row coefficients; other primal-infeasible rows may remain.

25

Right-hand-side sensitivity within a basis

Let B be a primal-feasible, dual-feasible basis for Ax=b, x>=0. Replace b by b+delta b while keeping A and c fixed. Its new basic point is x_B(delta)=B^-1(b+delta b), x_N=0. The basis multiplier y=B^-T c_B and all reduced costs depend on A, c and B, not on b. They therefore remain dual feasible under this right-hand-side change.

Whenever B^-1(b+delta b)>=0, the new basic point is primal feasible as well. Equality of its objective with (b+delta b)^T y proves that it is optimal and that v(b+delta b)-v(b)=y^T delta b exactly. This is a finite affine identity on the basis-feasibility region, not only a first-order Taylor approximation. A zero component on the boundary permits a change of optimal basis and potentially a change of slope.

For a scalar perturbation delta b=t h, the admissible interval is obtained from the finitely many inequalities (B^-1 b)_i+t(B^-1 h)_i>=0. Each nonzero coefficient gives one endpoint restriction; zero coefficients either preserve a feasible row or reveal inconsistency of the assumed base. Intersect the restrictions, including equality at degenerate boundaries. The interval may be one-sided, unbounded or a single point.

The basis price is an exact local slopeThe old basis remains feasible; The old basis is feasible for [−2,∞). At t=-1 its prediction is 7 and the actual optimum is 7.The basis price is an exact local slope-1.47011.97-4.653.354Old affine basis predictionActual reoptimized valuet=-1t=−4t=−2Selected actual optimumRight-hand-side parameter t · optimal objective
The old basis is feasible for [−2,∞). At t=-1 its prediction is 7 and the actual optimum is 7.

The reduced costs of the nonbasic slacks stay fixed. The basis remains optimal as long as both basic variables remain nonnegative. Outside that interval the affine formula can be infeasible. For the actual optimum put x₂=min(b₁+td₁,b₂+td₂) because its payoff per first resource is higher, then assign remaining first resource to x₁.

Exact basis and reoptimization
QuantityExact result
Basic formula B⁻¹(b+td)(b₁+td₁−b₂−td₂, b₂+td₂)
Original prices B⁻ᵀ(1,3)(1,2)
Reduced costs for the two slacks−1, −2
Feasible basis interval[−2,∞)
Old basic solution and value(1, 2) / 7
Actual primal and slacks(1, 2) / (0, 0)
Actual optimal prices (one choice)(1, 2)
Actual objective7
Sensitivity at selected tOld basis slope 1 is valid.
Actual feasibility and optimal valuet≥−4; 3(4+t) on [−4,−2], then 8+t on [−2,∞).
Exact inputs and supporting calculations
Declared inputs
ParameterValue
b[4,2]
d[1,0]
t-1

A multiplier outside this region remains a valid dual lower-bound vector for the changed right side, but need not give the exact new value. Changes in A or c require new feasibility or reduced-cost checks; the same price cannot be extrapolated blindly. Physical interpretation also needs consistent units and a fixed model. A shadow price measures the change of the modeled optimal objective under its specified resource perturbation, not an unconditional forecast of a market price or engineering operating outcome. For the related linear-programming definitions and proof context, see [Bases, dictionaries and reduced costs](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=8); [Perturbation bounds and sensitivity](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=263). The exact affine price formula holds within the region where the same basis remains feasible.

26

The value function and shadow prices

Fix A and c and assume their common dual feasible set Y={y: A^T y<=c} is nonempty. For every feasible right-hand side b, a vector in Y gives a finite lower bound, so the primal optimum v(b) is finite and attained. Strong duality gives v(b)=sup_{y in Y} b^T y. Each term is affine in b, and a supremum of affine functions is convex. Directly, mixing optimizers for two feasible right-hand sides gives a feasible point at their convex combination and the defining convexity inequality.

The representation also extends with v(b)=+infinity at infeasible b under this common-dual-feasibility assumption. Farkas then gives z with A^T z>=0, b^T z<0. For any y0 in Y, the vectors y0-t z remain in Y for t>=0, and b^T(y0-t z) tends to +infinity. The supremum consequently has the same infeasible value. Without the nonempty Y premise, this argument cannot be asserted from a formal supremum over an empty set.

If ystar is optimal at a feasible b, then for any feasible bnew, weak duality gives v(bnew)>=bnew^T ystar=v(b)+ystar^T(bnew-b). This is the subgradient inequality, also valid trivially at infeasible bnew with value +infinity. It says that an optimal multiplier supports the value function from below. It need not be the unique subgradient or a two-sided derivative, and the value need not stay on that affine supporting plane for a finite perturbation.

Within a stable optimal-basis region, the previous exact sensitivity formula provides such affine equality. At a boundary, different optimal multipliers can support different neighboring pieces. A shadow price is therefore a conditional marginal statement tied to a specified right-hand-side direction and fixed coefficients. Checking its applicable interval matters as much as computing the multiplier, particularly when a capacity becomes inactive, a new bottleneck appears or the perturbed problem becomes infeasible. For the related linear-programming definitions and proof context, see [Weak and strong LP duality](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=15); [Perturbation bounds and sensitivity](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=263). An optimal multiplier is a supporting subgradient, with explicit common-dual-set and feasibility qualifications.

27

Cost ranges and normal cones

Keep A, b and a feasible basis B fixed, but vary the cost vector c. Its basic point x_B=B^-1 b does not move. It is certified optimal whenever the basis multiplier y(c)=B^-T c_B satisfies c_N-N^T y(c)>=0. These are finitely many linear inequalities in c, describing a closed polyhedral cone of costs for which that basis certificate works. On its boundary one or more reduced costs vanish.

For a nondegenerate vertex, the feasible small directions associated with nonbasic variables show that these reduced-cost inequalities are also necessary for this basis to be optimal. At a degenerate point, the entire set of costs making the point optimal can be larger than the certificate cone of one selected basis. It is more accurately described by the normal-cone condition c^T(z-x)>=0 for every feasible z, using a minimization-oriented normal convention. Several representing bases can cover its valid cost directions.

For max p x+q y under x+y<=4, 2x+y<=6, x, y>=0, the both-active vertex is (2, 2). Convert to min -p x-q y and use its two resource slacks as nonbasic variables. The row multipliers are y1=p-2q and y2=q-p, which must be nonpositive because their slack columns have zero costs. Thus q<=p<=2q gives an optimal certificate. In the strict interior the unused-resource reduced costs are positive, forcing both rows active at every optimum.

On p=q>0, the objective is p(x+y), so all feasible points on the top edge x+y=4 between (0, 4) and (2, 2) are optimal. A zero reduced cost exposes an alternative direction here because a positive step is available. In a degenerate model the same zero alone would not prove a distinct point exists. Cost sensitivity therefore needs both the sign certificate and the feasible geometry, rather than an inference that every zero reduced cost necessarily creates a new allocation. For the related linear-programming definitions and proof context, see [Bases, dictionaries and reduced costs](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=8); [Mixed signs and complementary slackness](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=18). Cost changes require the actual reduced-cost inequalities; a boundary tie can create an optimal edge.

28

Nonunique prices at a kink

Consider min x subject to x>=b, x>=0. Its unique primal optimizer is xstar=max(b, 0), and v(b)=max(b, 0). For the >= row, use lambda>=0 and minimize x+lambda(b-x) over x>=0. Dual feasibility is 0<=lambda<=1, and the dual objective is b lambda. This one-variable example keeps the original inequality convention visible instead of hiding the bound in a sign change.

For b>0, the unique optimal multiplier is lambda=1; for b<0, it is lambda=0. At b=0, every lambda in [0, 1] is dual optimal while the primal optimizer is still uniquely x=0. The value has left derivative 0 and right derivative 1 there, so it has no ordinary two-sided derivative. Every optimal multiplier nevertheless obeys the supporting inequality v(bnew)>=v(0)+lambda bnew.

This example separates four concepts: uniqueness of the primal decision, uniqueness of a dual representation, differentiability of the value, and strictness of complementarity. At b=0 neither variable positivity nor unused-resource positivity selects one multiplier. A report containing one optimal lambda is a valid lower-bound certificate but does not identify a unique marginal response to all possible signed changes of b.

If a perturbation direction h is specified, the appropriate one-sided derivative can be determined from the neighboring affine pieces or the optimal multiplier set; one cannot substitute an arbitrary member of that set for every directional derivative. For this example h>0 gives directional slope h and h<0 gives zero along positive step size. The units and the direction of resource change must accompany any economic interpretation of a price at such a kink. For the related linear-programming definitions and proof context, see [Perturbation bounds and sensitivity](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=263). A value-function kink separates one-sided derivatives from a nonunique optimal multiplier set.

29

Signs for mixed constraints and variables

Derive signs from a lower-bounding Lagrangian for minimization. For a row a_i^T x>=b_i, use lambda_i>=0 in lambda_i(b_i-a_i^T x), which is nonpositive at a feasible x. For a <= row, use lambda_i<=0 with the same expression, again nonpositive. For an equality lambda_i is free and its contribution is zero. Thus L(x, lambda)<=c^T x on the primal feasible set, with equality subject to row complementarity.

After collecting variable coefficients s=c-A^T lambda, the infimum over a nonnegative coordinate is finite exactly when s_j>=0. For a nonpositive coordinate it requires s_j<=0, because letting x_j tend to -infinity would otherwise send s_j x_j to -infinity. For a free coordinate it requires s_j=0. In every allowed case the coordinate infimum contributes zero after any fixed bound offsets have been transformed correctly.

This produces a mixed-form dual without guessing: row directions determine multiplier signs and variable domains determine dual row directions. A free primal variable corresponds to an equality in the dual, not two unrelated inequalities after its split representation is recombined. Equality constraints do not acquire nonnegative prices by default. Converting a maximization problem requires its own direction reversal or a prior negation to this minimization convention.

Complementarity follows from the gap decomposition into products of these sign-compatible row and variable slacks. A valid certificate must retain every domain restriction, including lower/upper bounds that carry their own multipliers if they were not absorbed into the variable definition. A table of dual signs can summarize the result, but the Lagrangian derivation explains which convention that table uses and prevents the common error of importing a maximization inequality pattern into a minimization model. For the related linear-programming definitions and proof context, see [Mixed signs and complementary slackness](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=18). Constraint directions and variable domains determine different dual signs and equalities.

30

Scaling and reversible presolve

Multiply an original row by a positive factor alpha. Its feasible inequality or equality is unchanged, but its multiplier must become lambda/alpha to preserve the same weighted row contribution. If the whole objective is additionally multiplied by beta>0, the corresponding multiplier is beta lambda/alpha and the certified objective bound scales by beta. The multiplier changes numerically because its units changed; the physical resource tradeoff after conversion is the same.

For an invertible equality-row transformation Anew=SA, bnew=Sb, a dual vector ynew maps back to yorig=S^T ynew. Then A^T yorig=Anew^T ynew and b^T yorig=bnew^T ynew, so feasibility and the objective bound agree. A positive diagonal variable rescaling x=Tz changes the coefficient slack to T^T(c-A^T y); its nonnegative sign is preserved. General variable substitutions need their actual domain map, not this diagonal shortcut.

Presolve can eliminate fixed variables, substitute equalities, delete proved redundant rows or tighten bounds. Each operation needs a recovery rule for the primal decision and, if a dual certificate is required, the corresponding original-row and bound multipliers. Deleting a row because it looks numerically similar or choosing a finite big bound without proof can change the feasible set. Removing a fixed variable also changes the retained objective constant; dropping that constant corrupts value and gap comparisons.

Scaling can improve numerical conditioning and tolerance interpretation, but it cannot turn an approximate constraint violation into exact feasibility. A residual measured in scaled row units must be converted back before its physical significance is judged. Postsolve verification evaluates the original A, b, c and original bounds using the recovered vectors. This is compatible with efficient presolve: retain the exact transformations instead of rebuilding the model or silently accepting a certificate expressed only in an undocumented reduced system. For the related linear-programming definitions and proof context, see [Weak and strong LP duality](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=15); [Bases, dictionaries and reduced costs](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=8). Row units, objective units and fixed-variable constants are restored before certificate values are compared.

31

Minimum-cost network flow potentials

For a directed network, use incidence A with +1 at the tail of each arc and -1 at its head. A flow f>=0 satisfies Af=b, where positive b is supply and negative b is demand. With no upper arc capacities, the minimum-cost LP is min c^T f. Its dual has node potentials pi and inequalities pi_tail-pi_head<=c_arc. Adding a common constant to all potentials on a connected component does not change these inequalities or the bound when that component has balanced total supply.

The reduced arc cost is s_arc=c_arc-(pi_tail-pi_head). A feasible flow and potentials with s>=0 have gap sum_arc f_arc s_arc. They are optimal when every used arc has zero reduced cost. An unused arc may also have zero reduced cost; the certificate does not establish uniqueness. A negative-cost directed circulation, if present in the uncapacitated network, can be added in arbitrary nonnegative amount to a feasible flow and gives an unbounded ray.

Capacities 0<=f<=u change the dual. Introduce z>=0 for the upper bounds and require c-A^T pi+z>=0. Then b^T pi-u^T z is a lower bound, with gap f^T(c-A^T pi+z)+z^T(u-f). Thus a saturated used arc may have a negative raw reduced cost compensated by z; the uncapacitated used-arc equality rule cannot simply be transplanted to a capacitated flow. Finite capacities also limit negative-cycle improvement.

The potentials are algebraic certificates of the stated cost model and conservation law. Travel times, energy losses, congestion and indivisible shipments may require extra constraints or nonlinearity. Preserve the arc orientation and units when interpreting a potential drop. A network drawing alone does not prove that the matrix has the chosen incidence signs, that every component is balanced or that a feasible shipment exists; those are explicit inputs to the certificate. For the related linear-programming definitions and proof context, see [Flow conservation and network incidence](https://math.mit.edu/~goemans/18433S15/flowscuts.pdf#page=1); [Weak and strong LP duality](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=15). Min-cost potentials are derived from the same outgoing-positive incidence convention, including capacity-bound corrections when needed.

32

Network total unimodularity

A matrix is totally unimodular when every square subdeterminant is 0, +1 or -1. To prove this for a directed incidence matrix, inspect an arbitrary square submatrix. A zero column makes its determinant zero. A column with exactly one nonzero entry has that entry +1 or -1; expansion along it reduces the determinant, up to sign, to a smaller square subdeterminant. This gives an induction on size.

In the remaining case every selected column has its two incidence entries present. Their column sums are zero, so the sum of the selected rows is the zero row and the determinant is zero. These cases cover every square submatrix. Appending unit rows or unit columns preserves total unimodularity by the same determinant expansion, which accommodates ordinary integer lower/upper bounds and their slack variables after the appropriate sign and offset transformations.

The full incidence matrix has dependent rows: the total balance on each connected component is zero. Delete a suitable redundant row per component only after verifying that its b entries sum to zero. Every nonsingular basis of the resulting matrix has determinant +1 or -1. With integer b, its inverse is an integer adjugate divided by that unit determinant, so every basic feasible flow is integral. If a finite optimum exists, there is an integral optimal basic flow.

This is an existence statement about vertices and optimal vertices, not a claim that all feasible continuous flows are integral. Convex combinations of two integer flows are often fractional. Arbitrary additional side constraints can destroy total unimodularity; a determinant of magnitude 2 is already a warning. Integer input data alone do not imply integrality without this or another suitable structure. Algorithmic floating-point output still needs feasibility and integer recovery checks before it is called an exact shipment certificate. For the related linear-programming definitions and proof context, see [Total unimodularity and integral vertices](https://math.mit.edu/~goemans/18433S15/polyhedral.pdf#page=13); [Flow conservation and network incidence](https://math.mit.edu/~goemans/18433S15/flowscuts.pdf#page=1). Integer vertices require the stated incidence structure, integral data and feasible optimum; fractional mixtures are still permitted.

33

Maximum flow and a cut certificate

On a finite directed network with distinct source and sink, consider a feasible flow with finite capacities 0<=f_e<=u_e. Then the residual graph has a forward arc of capacity u_e-f_e when that is positive and a reverse arc of capacity f_e when positive. A residual source-to-sink path can carry the minimum residual capacity along that finite path, a strictly positive amount. Adding on forward arcs and subtracting on reverse arcs preserves intermediate conservation and strictly increases the flow value.

If no such path exists, let S be the nodes reachable from the source in the residual graph; the sink is outside S. An original arc from S to its complement must be saturated, otherwise its positive forward residual would reach the next node. An original arc entering S from outside must carry zero flow, otherwise its reverse residual would leave S. Summing conservation over S therefore gives flow value=sum_{e: S->outside}u_e, the capacity of that cut.

Every feasible flow has value at most any source-sink cut capacity: net flow leaving the cut equals its value, forward flows are at most capacity and backward flows are nonnegative. Thus equality proves both maximum flow and minimum cut. With finite capacities, a maximum exists because the feasible box with conservation is compact; its residual graph cannot have an augmenting path. This proves the equality theorem without assuming that an arbitrary path-selection algorithm terminates in finitely many steps for arbitrary real capacities.

A feasible flow equals the capacity of an explicit cutThe source cut certifies five units; The source side is {s}. The marked cut has capacity 5 and the directed feasible flow value is 5.A feasible flow equals the capacity of an explicit cut3/32/22/23/31/2sabtExact flow/capacity on each arc · orange arcs cross the cut
The source side is {s}. The marked cut has capacity 5 and the directed feasible flow value is 5.

Every listed flow is between zero and capacity. The two intermediate conservation equalities make the source and sink totals agree. A residual search cannot reach t after augmentation. The displayed cut upper-bounds every feasible flow and has capacity equal to this flow, proving maximality. Each original direction has residual capacity c−f. The reverse direction has residual capacity f, which is the amount of current flow that can be cancelled.

Exact flow and cut certificate
QuantityExact result
Conservation at a3 = 2 + 1
Conservation at b2 + 1 = 3
Source-side residual reachability{s}
Sink not reachable by a positive residual pathYes
Total flow / cut capacity5 / 5
One valid augmentation sequences→a→t: 2; s→b→t: 2; s→a→b→t: 1
Exact inputs and supporting calculations
Declared inputs
ParameterValue
cap[3,2,2,3,2]
Complete directed flow/capacity certificate
ArcFlowCapacityCrosses selected cutForward residualReverse residual
s→a33Yes03
s→b22Yes02
a→t22No02
b→t33No03
a→b12No11

If capacities are nonnegative integers and augmentation starts at zero, integrality is preserved and every augment raises the value by at least 1. The finite outgoing source capacity then gives finite termination, but that bound depends on capacity magnitude rather than its bit length. With irrational capacities, an unrestricted augmenting-path policy needs additional analysis. The cut certificate itself remains valid in either case and can be checked independently of how the final flow was found. For the related linear-programming definitions and proof context, see [Residual paths and a cut certificate](https://math.mit.edu/~goemans/18433S15/flowscuts.pdf#page=4). The selected theorem distinguishes a cut certificate from finite termination of an arbitrary augmenting-path policy.

34

Transportation and assignment integrality

A transportation model has nonnegative shipments x_ij, row sums equal to supplies r_i, and column sums equal to demands d_j. Its total supply and demand must agree for feasibility. Multiply every demand equation by -1: each shipment column then has one +1 in its supply row and one -1 in its demand row. The constraint matrix is a bipartite directed incidence matrix, so the preceding total-unimodularity proof applies after consistent redundant-row removal.

With integer nonnegative supplies and demands, every basic feasible shipment is integral. The feasible set is bounded because 0<=x_ij<=r_i for each route, and it is closed. If it is nonempty, a linear cost therefore attains its minimum, and an optimal basic point can be chosen integral. Additional forbidden routes preserve the incidence-column structure, but unrelated coupling constraints may destroy the integrality conclusion and must be analyzed separately.

For the square assignment relaxation with every row and column sum 1, an integral nonnegative feasible matrix has exactly one 1 in each row and column and zeros elsewhere: it is a permutation matrix. Thus a linear assignment cost has an optimal permutation whenever the full finite assignment model is feasible. For n>=2, the matrix with all entries 1/n is nevertheless a valid fractional feasible point; for n=1 it is the integral matrix [1]. Integrality of vertices is not integrality of every point, and tied costs can make fractional mixtures optimal too.

The transportation dual uses free row and column potentials alpha_i, beta_j with alpha_i+beta_j<=c_ij and bound sum_i r_i alpha_i+sum_j d_j beta_j. Feasible shipments and potentials are optimal when every positive shipment uses a tight route. The potentials have a gauge freedom: adding a constant to all alpha and subtracting it from all beta leaves both inequalities and the balanced objective unchanged. A negative individual potential is therefore compatible with a valid exact certificate. For the related linear-programming definitions and proof context, see [Total unimodularity and integral vertices](https://math.mit.edu/~goemans/18433S15/polyhedral.pdf#page=13); [Flow conservation and network incidence](https://math.mit.edu/~goemans/18433S15/flowscuts.pdf#page=1); [Mixed signs and complementary slackness](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=18). Transportation and assignment inherit the structural integrality proof and keep equality multipliers free in sign.

35

Interior barrier certificates for LP

For mu>0, consider minimizing c^T x-mu sum_j log x_j subject to Ax=b and x>0. This is a different auxiliary objective on the strict positive part of the original feasible set. Assume an attained minimizer x(mu) exists there. Its first derivative must vanish along every equality-feasible direction, so c-mu/x belongs to range(A^T). Hence there is a real y with c-A^T y=s, where s_j=mu/x_j>0.

The original x(mu) is primal feasible and y is dual feasible. Their gap is x(mu)^T s=sum_j mu=n mu. Weak duality therefore bounds original primal suboptimality by n mu. The gap is exact for this primal-dual pair, but it is generally larger than the actual distance of the primal objective from the unknown optimum. Complementarity is perturbed to x_j s_j=mu rather than already equal to zero.

The barrier Hessian is diagonal with entries mu/x_j^2>0, so it is strictly positive along every nonzero equality-feasible direction. Thus an attained barrier minimizer is unique in x on that affine domain. As mu decreases, any computed exact central point has the displayed original-LP gap bound; this conclusion does not require claiming that a particular numerical method has reached the exact point. An inexact stationarity residual needs an additional certificate correction.

Existence must not be skipped. If an original constraint forces x_j=0, the full positive domain is empty even when the LP has an obvious optimum. Even strict feasibility alone is insufficient for barrier attainment: the LP min 0 over x>=0 is well posed, but its barrier -mu log x tends to -infinity as x grows. Facial reduction, embedding or stronger well-posedness conditions can support other methods; they are not implicit assumptions that rescue the unqualified formula. The n mu statement applies only to an actual positive stationary minimizer under the stated premises. For the related linear-programming definitions and proof context, see [Logarithmic barriers and central points](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=576); [Dual bounds from a central point](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=580); [Mixed signs and complementary slackness](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=18). The barrier gap belongs to an actual positive stationary minimizer and bounds, rather than equals, its unknown primal suboptimality.

36

Continuous relaxation and integer decisions

Let Fint be an integer-restricted subset of the continuous feasible set F. For minimization, inf_F c^T x<=inf_Fint c^T x because the relaxation permits more decisions. Any continuous dual feasible vector is therefore a lower bound for the integer problem as well. A feasible integer decision gives an upper bound. These bounds remain useful even when the continuous optimizer is fractional.

For example, maximize x+y under 2x+2y<=3, x, y>=0. The continuous optimum is 3/2, attained on the feasible top segment. With x, y integers, the maximum is 1. Equivalently, min -x-y has continuous value -3/2 and integer value -1. An exact continuous dual certificate establishes the lower bound -3/2 for the integer minimization, but it does not make a fractional point an admissible shipment.

In this particular example, the integer objective itself is an integer, so the certified lower bound -3/2 can be rounded upward to -1; an integer feasible point with cost -1 then proves integer optimality. Such rounding needs a proved objective lattice. For an arbitrary real cost vector, rounding a relaxation bound to the next integer is unjustified. More generally, branching, cuts or a special integral structure must close the relaxation gap.

Complementary slackness describes optimal feasible points of the continuous primal-dual pair. It does not replace the missing integrality restriction. Total unimodularity with integral right-hand sides supplies one special reason the continuous optimum can be chosen integral; most added logical or coupling constraints do not preserve it. Keep the original discrete decisions visible when interpreting a high-accuracy continuous solve, including any post-rounding feasibility changes. For the related linear-programming definitions and proof context, see [Total unimodularity and integral vertices](https://math.mit.edu/~goemans/18433S15/polyhedral.pdf#page=13); [Weak and strong LP duality](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=15). A continuous lower bound remains useful for integer decisions without making a fractional decision admissible.

37

Dualizing a polyhedral robust row

Let the uncertainty set U={a in R^n: Ha<=h} be nonempty and bounded, with H, h fixed independently of the decision x. For fixed x, the worst linear coefficient contribution is the support value sigma_U(x)=max_{a in U} x^T a. Closedness and boundedness give attainment and finiteness. The mixed-form LP dual is min h^T lambda subject to H^T lambda=x, lambda>=0; the equality is required because the uncertain vector a is free in sign before its explicit rows are imposed.

Strong LP duality and attainment give equality of those two values. Therefore sigma_U(x)<=beta is equivalent to the existence of lambda>=0 with H^T lambda=x and h^T lambda<=beta. One direction uses weak duality for any such lambda; the reverse uses an attained optimal uncertainty dual. Lower-dimensional U causes no Slater difficulty for this finite LP theorem. An empty uncertainty set would need a different interpretation and is explicitly excluded.

For a centered box a=ahat+delta, |delta_j|<=r_j, the support is ahat^T x+sum_j r_j|x_j|, obtained by choosing each endpoint according to the sign of x_j. If x>=0, this reduces to the upper coefficient vector. Coupled uncertainty constraints generally do not permit choosing every coordinate maximum simultaneously. The extended dual formulation preserves those couplings and remains linear when H, h and beta are fixed and x enters the displayed equality affinely.

A simplex support value uses a nonnegative dual priceFirst direction is worst; The dual price is η=3. The maximizing vector is (2, 0) and gives 6. The budget binds in the maximizing direction.A simplex support value uses a nonnegative dual price-0.2802.28-0.282.28Feasible uncertainty triangleworstWorst allowed uncertainty vectorUncertainty u₁ horizontally · u₂ vertically
The dual price is η=3. The maximizing vector is (2, 0) and gives 6. The budget binds in the maximizing direction.

Dualizing the single budget inequality gives one nonnegative price η. Its two column conditions bound each x_i. Maximizing over the nonnegative triangle gives Γ max(0,x₁,x₂), achieved by one selected vertex. When both are negative the zero uncertainty vector is feasible and attains the worst value without spending the budget.

Exact worst-case and dual row
QuantityExact result
Maximizing u(2, 0)
Uncertainty budget used2
Dual feasibilityη≥0, η≥x₁, η≥x₂
Least feasible η3
Worst value u·x6
Dual value Γη6
Gap0
Signed support values at (0,0), (Γ,0), (0,Γ)0, 6, 2
Exact inputs and supporting calculations
Declared inputs
ParameterValue
x[3,1]
gamma2

If U is unbounded, the support may be +infinity for a given x, so a finite certificate cannot be asserted without checking finiteness. Arbitrarily truncating U changes the robust feasible set. If uncertainty data depend on x, the proposed dual constraints can become bilinear and may no longer define an LP. The robust reformulation is exact for its stated uncertainty model; it does not validate that the model covers all physical uncertainties or probability events of interest. For the related linear-programming definitions and proof context, see [Weak and strong LP duality](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=15); [Mixed signs and complementary slackness](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=18). The uncertainty LP has its own domain and a nonempty bounded set; dual attainment supplies the existential robust certificate.

38

Residual bounds with declared variable bounds

For any real y, write s=c-A^T y and its negative part nu_j=max(-s_j, 0). Suppose every relevant primal feasible x satisfies x>=0 and ||x||_1<=M, with M proved rather than guessed. Since x^T s>=-x^T nu>=-M||nu||_infinity, the quantity L=b^T y-M||nu||_infinity is a rigorous lower bound on the minimum. This follows from Ax=b and does not require y to be exactly dual feasible.

The bound M must apply to the feasible scope containing an optimum. It may cover all of F, or a rigorously restricted objective sublevel known to contain an optimum through an incumbent argument. Without such control, a tiny negative slack can multiply an arbitrarily large variable and destroy the claimed lower bound. If nu=0, the correction vanishes and ordinary weak duality is recovered. A relative violation alone cannot replace its dimensional variable bound.

For a purported upper bound, the primal decision must actually be feasible. If an approximate xhat can be repaired to a proved feasible xbar with ||xbar-xhat||<=rho, then c^T xbar<=c^T xhat+||c||_* rho by the dual-norm inequality. The repair map and rho require their own proof; small row residuals do not automatically supply them in an inconsistent or ill-conditioned system. Alternatively, checking the recovered exact feasible xbar directly gives its objective upper bound.

Combining a valid feasible upper bound U with the corrected lower bound L certifies suboptimality at most U-L. Keep arithmetic enclosures, original units and the bound scope explicit. A floating-point solver can propose the vectors efficiently, but feasibility, strict inequalities and correction margins must survive the final verification. These finite error bounds supplement exact LP duality; they do not convert every small displayed primal-dual residual into an exact or physically meaningful optimum. For the related linear-programming definitions and proof context, see [Mixed signs and complementary slackness](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=18); [Perturbation bounds and sensitivity](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=263). A negative-slack correction needs a proved variable bound, and an objective upper bound needs a feasible point or justified repair.

39

Postsolve and physical interpretation

A certificate from a transformed LP must be read through its recovery map. If original decisions are x=Tz+x0, substitute the recovered z into the original constraints and evaluate the original objective c^T(Tz+x0)+c0. Restore row signs, scales, eliminated variables and objective constants. For projected slack formulations, check that the recovered x lies in the original domain; there may be several auxiliary z for the same original x.

Map dual row and bound multipliers through the saved transformations, or construct an independent lower bound directly on the original formulation. A recovered feasible point with original objective U and a valid original lower bound L gives the same conditional statement pstar in [L, U]. Equality is exact optimality of that LP. A reported bound from differently scaled costs cannot be compared with U until its units and constant offset are made consistent.

This mathematical certificate is conditional on the model. For a fixed common feasible set, if modeled and physical objective functions differ uniformly by at most eta, and a modeled feasible point has modeled suboptimality at most g, the physical suboptimality is at most g+2eta by inserting and subtracting the two modeled objective values. If the physical feasible set changes, that conclusion no longer follows: the proposed point might violate a missing safety or capacity condition. Uniform objective error does not repair feasibility error.

In engineering, economics and computing, the useful output is therefore both a decision and its checkable scope: the exact constraints, objective convention, valid bounds, and any uncertainty or relaxation assumptions. A dual price can explain a modeled bottleneck and an integer/network certificate can justify a combinatorial allocation, but neither removes those assumptions. Preserve the original problem alongside its efficient representation so future changes can be assessed by their affected constraints and certificates instead of repeating an entire completed derivation. For the related linear-programming definitions and proof context, see [Weak and strong LP duality](https://ocw.mit.edu/courses/6-854j-advanced-algorithms-fall-2008/908fe54d659623efadda2d033b895caf_notes_lp.pdf#page=15); [Perturbation bounds and sensitivity](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=263). The certificate proves the stated LP in original units; physical and uncertainty assumptions remain part of its scope.

Explore feasible decisions, prices and exact optimization certificates. Each case shows the condition that makes its bound or status valid.

A primal allocation and dual prices certify an optimum

Budget and first box constraint bind

A dual price can certify the highlighted primal cornerBudget and first box constraint bind; The objective on the highlighted feasible point is 10. The displayed dual price yields the same bound.A dual price can certify the highlighted primal corner-0.705.7-0.282.28Feasible polygon edgesSupporting objective leveloptimumPrimal optimumFirst allocation horizontally · second allocation vertically
The objective on the highlighted feasible point is 10. The displayed dual price yields the same bound.

Multiplying each resource bound by its nonnegative price gives an upper bound for every primal allocation. The two column inequalities ensure it bounds the original objective. At the provided pair the price complementarity and equality of objectives certify both optima.

Exact primal and dual certificate
QuantityExact result
Primal allocation(2, 2)
Primal constraint slacks(0, 0, 1)
Primal objective10
Dual inequalitiesp+u≥c₁, p+v≥c₂ with p,u,v≥0
One dual price (p,u,v)(2, 1, 0)
Aᵀ price(3, 2)
Price × slack by row(0, 0, 0)
Dual objective Bp+Uu+Vv10
Duality gap0
Optimal dual choicesThe displayed prices attain the optimum.
Exact inputs and supporting calculations
Declared inputs
ParameterValue
c[3,2]
B4
U2
V3

A signed separation certifies infeasibility

A negative paired right-hand side

The right-hand side lies on the forbidden sideA negative paired right-hand side; All nonnegative column mixtures obey q·y≥0. The target b has b·y=-1.The right-hand side lies on the forbidden side-0.8406.84-0.4693.819Extremal rays of the allowed RHS coneSeparating line with q·y=0bRequired right-hand side bFirst RHS coordinate · second RHS coordinate
All nonnegative column mixtures obey q·y≥0. The target b has b·y=-1.

If Ax=b with x≥0, then b·y=x·(Aᵀy)≥0 under the stated column condition. A strict negative b·y contradicts the equality. A candidate with b·y=0 proves no infeasibility; in the feasible case the exact x checks both rows directly.

Exact Farkas sign check
QuantityExact result
Candidate y(2, -1)
Aᵀy(1, 0)
b·y-1
Infeasibility certificateYes; all column products nonnegative and b·y negative
Feasible x when presentNone
Exact inputs and supporting calculations
Declared inputs
ParameterValue
A[[1,1],[1,2]]
b[1,3]
y[2,-1]

The same reduced-cost sign can lead to three different pivot outcomes

A positive leaving-variable step

Positive feasible pivotA positive leaving-variable step; The ratio test stops at t=2. The upper and lower panels show different quantities. The panels stop plotting at the feasible endpoint. Blank larger t values are infeasible in this dictionary.Positive feasible pivot-1.19709.747-0.3993.249Achieved improvement over feasible steps6Achieved Δz=6Only feasible t · achieved objective improvement-2.49804.798-0.3993.249Feasible first basic variableFeasible second basic variablet=2Leaving variable at t=2Entering variable t≥0 · current basic values
The ratio test stops at t=2. The upper and lower panels show different quantities. The panels stop plotting at the feasible endpoint. Blank larger t values are infeasible in this dictionary.

A positive coefficient a_j causes x_B,j to decrease along the entering direction, so it supplies a ratio bound b_j/a_j. A nonpositive coefficient imposes no forward bound. The step is the smallest eligible ratio. If the step is zero, the new basis need not change the feasible point or the objective; if no ratio exists, the positive reduced cost gives an improving ray.

Exact ratio test and objective certificate
QuantityExact result
Eligible ratios by row3, 2
Chosen endpoint2
Leaving rowRow 2
Basic values at chosen endpoint(1, 0)
Reduced cost r3
Exact improvement6
StatusPositive feasible pivot
Exact inputs and supporting calculations
Declared inputs
ParameterValue
b[3,4]
a[1,2]
r3

A shadow price is valid only while its basis remains feasible

The old basis remains feasible

The basis price is an exact local slopeThe old basis remains feasible; The old basis is feasible for [−2,∞). At t=-1 its prediction is 7 and the actual optimum is 7.The basis price is an exact local slope-1.47011.97-4.653.354Old affine basis predictionActual reoptimized valuet=-1t=−4t=−2Selected actual optimumRight-hand-side parameter t · optimal objective
The old basis is feasible for [−2,∞). At t=-1 its prediction is 7 and the actual optimum is 7.

The reduced costs of the nonbasic slacks stay fixed. The basis remains optimal as long as both basic variables remain nonnegative. Outside that interval the affine formula can be infeasible. For the actual optimum put x₂=min(b₁+td₁,b₂+td₂) because its payoff per first resource is higher, then assign remaining first resource to x₁.

Exact basis and reoptimization
QuantityExact result
Basic formula B⁻¹(b+td)(b₁+td₁−b₂−td₂, b₂+td₂)
Original prices B⁻ᵀ(1,3)(1,2)
Reduced costs for the two slacks−1, −2
Feasible basis interval[−2,∞)
Old basic solution and value(1, 2) / 7
Actual primal and slacks(1, 2) / (0, 0)
Actual optimal prices (one choice)(1, 2)
Actual objective7
Sensitivity at selected tOld basis slope 1 is valid.
Actual feasibility and optimal valuet≥−4; 3(4+t) on [−4,−2], then 8+t on [−2,∞).
Exact inputs and supporting calculations
Declared inputs
ParameterValue
b[4,2]
d[1,0]
t-1

A feasible flow and a cut of equal value prove maximality

The source cut certifies five units

A feasible flow equals the capacity of an explicit cutThe source cut certifies five units; The source side is {s}. The marked cut has capacity 5 and the directed feasible flow value is 5.A feasible flow equals the capacity of an explicit cut3/32/22/23/31/2sabtExact flow/capacity on each arc · orange arcs cross the cut
The source side is {s}. The marked cut has capacity 5 and the directed feasible flow value is 5.

Every listed flow is between zero and capacity. The two intermediate conservation equalities make the source and sink totals agree. A residual search cannot reach t after augmentation. The displayed cut upper-bounds every feasible flow and has capacity equal to this flow, proving maximality. Each original direction has residual capacity c−f. The reverse direction has residual capacity f, which is the amount of current flow that can be cancelled.

Exact flow and cut certificate
QuantityExact result
Conservation at a3 = 2 + 1
Conservation at b2 + 1 = 3
Source-side residual reachability{s}
Sink not reachable by a positive residual pathYes
Total flow / cut capacity5 / 5
One valid augmentation sequences→a→t: 2; s→b→t: 2; s→a→b→t: 1
Exact inputs and supporting calculations
Declared inputs
ParameterValue
cap[3,2,2,3,2]
Complete directed flow/capacity certificate
ArcFlowCapacityCrosses selected cutForward residualReverse residual
s→a33Yes03
s→b22Yes02
a→t22No02
b→t33No03
a→b12No11

A linear-program dual removes the inner worst-case problem

First direction is worst

A simplex support value uses a nonnegative dual priceFirst direction is worst; The dual price is η=3. The maximizing vector is (2, 0) and gives 6. The budget binds in the maximizing direction.A simplex support value uses a nonnegative dual price-0.2802.28-0.282.28Feasible uncertainty triangleworstWorst allowed uncertainty vectorUncertainty u₁ horizontally · u₂ vertically
The dual price is η=3. The maximizing vector is (2, 0) and gives 6. The budget binds in the maximizing direction.

Dualizing the single budget inequality gives one nonnegative price η. Its two column conditions bound each x_i. Maximizing over the nonnegative triangle gives Γ max(0,x₁,x₂), achieved by one selected vertex. When both are negative the zero uncertainty vector is feasible and attains the worst value without spending the budget.

Exact worst-case and dual row
QuantityExact result
Maximizing u(2, 0)
Uncertainty budget used2
Dual feasibilityη≥0, η≥x₁, η≥x₂
Least feasible η3
Worst value u·x6
Dual value Γη6
Gap0
Signed support values at (0,0), (Γ,0), (0,Γ)0, 6, 2
Exact inputs and supporting calculations
Declared inputs
ParameterValue
x[3,1]
gamma2

Worked examples

Resource allocation and its dual

Minimize 3x+2y subject to x+y>=4, 2x+y>=5, x, y>=0. Derive the dual and find an exact optimal pair.

  1. For minimization with >= rows, the dual multipliers u, v are nonnegative. Minimizing 3x+2y+u(4-x-y)+v(5-2x-y) over x, y>=0 gives inequalities u+2v<=3 and u+v<=2. Thus the dual is max 4u+5v under those two inequalities and u, v>=0. Its signs come from the original domain and row directions.
  2. The point x=1, y=3 satisfies x+y=4 and 2x+y=5, and has cost 9. The dual point u=v=1 satisfies both cost inequalities as equalities and has value 4+5=9. Weak duality brackets the unknown minimum between the same numbers, so both points are optimal. No enumeration of an unbounded feasible polygon is needed for this certificate.
  3. Uniqueness follows from the row complementarity conditions. Both dual multipliers are positive, so every optimal primal point must satisfy both resource equalities. Their difference gives x=1, then y=3. The other feasible corner candidates (0, 5) and (4, 0) have costs 10 and 12, but those comparisons are illustrations rather than the essential proof of the global lower bound.
  4. The multipliers have cost per unit of their respective right-hand-side resources. They give exact value changes only while a compatible optimal basis remains feasible under a proposed perturbation. The certificate assumes continuous nonnegative allocations and fixed coefficients. An integer or uncertain-resource variant must retain those additional restrictions rather than reuse the point as an unconditional physical optimum.

The unique primal optimum is (x, y)=(1, 3), value 9; the >=-row dual has (u, v)=(1, 1), value 9.

Free variables and a lower bound

Convert min 2u+v subject to u-v<=3, -u+v=1, v>=-1, with u free, to nonnegative equality standard form. Preserve the objective offset and recover the exact optimum.

  1. The lower bound v>=-1 gives w=v+1>=0, and the free variable u is uplus-uminus with both parts nonnegative. Substitute into u-v<=3 to obtain uplus-uminus-w<=2; add slack s>=0. The equality -u+v=1 becomes -uplus+uminus+w=2. The right side 2 retains the constant from v=w-1; dropping it would define a different feasible set.
  2. The objective is 2uplus-2uminus+w-1. The constant -1 must be restored after any standard-form optimization that stores just the linear coefficient vector. To solve directly in original variables, the equality says v=u+1. The bound then says u>=-2, and the other inequality becomes -1<=3, which is always satisfied along that equality.
  3. The original objective along feasible decisions is 2u+(u+1)=3u+1, so its minimum is attained at u=-2, v=-1 with value -5. A representing standard point is uplus=0, uminus=2, w=0, s=4. Substitution checks both equality right sides 2 and the transformed objective -5. Adding a common positive amount to uplus, uminus gives other representing pairs for the same original optimum.
  4. This nonunique split representation does not imply nonunique physical decisions: the original u, v are uniquely determined at the optimum. Keep the inverse map u=uplus-uminus, v=w-1 and the objective offset with the saved formulation. The example also shows why a row that becomes a constant true inequality is redundant only after its actual equality substitution has been performed and checked.

Set u=uplus-uminus, v=w-1; standard rows are uplus-uminus-w+s=2 and -uplus+uminus+w=2, with all new variables nonnegative and objective 2uplus-2uminus+w-1. The original optimum is (u, v)=(-2, -1), value -5.

Two primal simplex pivots

Starting with slack basis, solve min -3x-2y subject to x+y+s1=4, 2x+y+s2=6, all variables nonnegative. Show the two dictionaries and a dual certificate.

  1. Initially s1=4-x-y, s2=6-2x-y and z=-3x-2y. Let x enter because its reduced cost is -3. The ratios are 4/1=4 and 6/2=3, so s2 leaves at x=3. The new dictionary is x=3-y/2-s2/2 and s1=1-y/2+s2/2, with z=-9-y/2+3s2/2. Its basic point is x=3, s1=1.
  2. Now y has reduced cost -1/2. With s2=0, increasing y is limited by the x row at 6 and by the s1 row at 2. Therefore s1 leaves at y=2. Solving gives y=2-2s1+s2 and x=2+s1-s2. The objective is z=-10+s1+s2. All basic values at nonbasic slacks zero are nonnegative and both reduced costs are 1.
  3. For the standard matrix columns x=(1, 2), y=(1, 1), s1=(1, 0), s2=(0, 1), take equality multipliers pi=(-1, -1). Their column products are -3, -2, -1, -1, which are <= the costs -3, -2, 0, 0. Thus pi is dual feasible. Its value 4(-1)+6(-1)=-10 equals the primal cost, independently confirming optimality.
  4. Positive slack reduced costs force s1=s2=0 at any optimum. The remaining two equalities then give x=y=2, so the original allocation is unique. This exact calculation is a two-pivot demonstration, not a general claim that simplex always takes few pivots. A floating tableau would still need the original-row feasibility and cost check illustrated by the exact certificate.

The pivots reach (x, y)=(2, 2), s1=s2=0, value -10; standard equality multipliers (-1, -1) certify the result.

A zero-step pivot

For min -x-y subject to x+y+s1=0, x+s2=1, all variables nonnegative, start with basis s1, s2 and let x enter. Explain its ratio step, new dictionary and optimality.

  1. The initial slack basis is s1=0-x-y and s2=1-x, so its basic values are 0 and 1. Entering x has coefficients 1 in both constraint rows. The ratio test gives min(0/1, 1/1)=0, so s1 leaves without increasing x. This is a valid nonsingular pivot because the pivot coefficient is 1, despite the zero step.
  2. Solve the first row for x=-y-s1 and substitute into s2=1-x to obtain s2=1+y+s1. The objective -x-y becomes s1. At y=s1=0 the coordinates are exactly the same as before: x=0, y=0, s1=0, s2=1. Only the basis representation changed. The new reduced costs are 0 for y and 1 for s1.
  3. Nonnegativity in x=-y-s1 forces y=s1=0, and then x=0, s2=1. Hence the feasible original decision is unique and the objective 0 is optimal. The initial negative reduced costs did not provide a positive feasible improving step. This explicitly demonstrates why optimality of a degenerate point and dual feasibility of an arbitrary representing basis are different statements.
  4. One zero-step pivot is not itself a cycling example. It removes a negative-cost representation here and terminates at an optimal dictionary. To assess another sequence, retain its entering/leaving columns and repeated bases rather than infer cycling from equal successive objective values alone. An anti-cycling policy addresses that distinct possibility while preserving the exact feasible point and certificate.

The ratio step is 0; s1 leaves and the new dictionary is x=-y-s1, s2=1+y+s1, z=s1. The unique feasible x, y are 0, 0 and the optimum is 0.

An inconsistent pair of equations

For x1, x2>=0 and x1+x2=1, x1+x2=2, produce and verify a Farkas certificate with the stated >=0, <0 sign convention.

  1. The standard equality matrix has two identical rows (1, 1), while b=(1, 2). Choose y=(1, -1). Then each column dot product is 1-1=0, so A^T y=(0, 0), which satisfies the nonnegative side of the stated Farkas convention. The right-hand product is 1-2=-1, strictly negative.
  2. If a nonnegative feasible x existed, we would have -1=b^T y=y^T Ax=(A^T y)^T x=0. This direct contradiction verifies the certificate. In this example the equality rows themselves are inconsistent even without nonnegativity, but the same certificate is valid for the nonnegative standard system requested.
  3. The opposite vector -y also annihilates A, but its right-hand product is +1 and it does not meet b^T y<0. A convention using <=0 and >0 would reverse both signs together. A check should preserve the exact convention rather than declare any annihilating vector a certificate.
  4. No objective is needed and no optimum value is assigned as if the feasible set were nonempty. For minimization the extended value is +infinity. The short vector and its two exact products are sufficient mathematical evidence; repeatedly running an optimization method on the same inconsistent pair would add no new proof.

y=(1, -1) gives A^T y=(0, 0)>=0 and b^T y=-1<0, so the system is infeasible.

A primal ray and an infeasible dual

Minimize -x1 subject to x1-x2=1, x1, x2>=0. Give a feasible base point, an unbounded ray and the contradictory dual inequalities.

  1. The point x0=(1, 0) is nonnegative and satisfies x1-x2=1. The direction d=(1, 1) is nonnegative and has Ad=1-1=0. Hence x(t)=(1+t, t) is feasible for every t>=0. Its cost -x1=-1-t tends to -infinity, proving feasible unbounded minimization rather than infeasibility.
  2. The single equality multiplier lambda is free. Its dual inequalities from columns 1 and -1 are lambda<=-1 and -lambda<=0, so lambda>=0. These conditions cannot both hold. The formal dual objective is lambda, but no dual feasible point exists from which a finite lower bound could be obtained.
  3. The ray needs its feasible base point. Reporting d=(1, 1) alone would leave open whether the equality right side admits any nonnegative x. Reporting a growing numerical sequence without Ad=0 and the sign check would likewise omit the exact reason it stays feasible. Here all three ingredients are explicit: base feasibility, recession feasibility and a negative objective slope.
  4. This is consistent with weak duality: a dual feasible lambda would bound -1-t below by the fixed number lambda for all t, which is impossible. The LP status is therefore paired with its own exact certificate on each side. It is not inferred from a solver failing to converge or from reaching a large iteration limit.

x0=(1, 0), d=(1, 1) give cost -1-t along a feasible ray; the dual requires lambda<=-1 and lambda>=0 and is infeasible.

All complementary optimal pairs

For min x+y subject to x+y>=1, x, y>=0, derive the dual and describe every primal and dual optimum. Explain why tight dual inequalities do not imply unique primal variables.

  1. For the >= constraint use lambda>=0. The Lagrangian is lambda+(1-lambda)(x+y), whose infimum over x, y>=0 is finite exactly when lambda<=1. Thus the dual is max lambda subject to 0<=lambda<=1. Its unique optimum is lambda=1 and its bound is 1.
  2. Every feasible primal point has objective x+y>=1. All nonnegative points on x+y=1 attain that lower bound, so the entire line segment from (1, 0) to (0, 1) is optimal. There are no other optima because any strictly larger sum gives a larger cost. Both the primal optimum set and the dual optimum set are now fully characterized.
  3. At lambda=1, both variable slacks 1-lambda vanish. Complementarity with the positive row multiplier forces x+y=1, but it imposes no requirement that x or y separately be positive. The endpoints with one zero coordinate are as valid as interior mixtures. A tight dual inequality is therefore not the converse of positive primal usage.
  4. The primal and dual conclusions have different uniqueness properties: many optimal allocations share one dual price. This is compatible with strong duality because that theorem equates optimum values, not the dimensions or uniqueness of optimum sets. A numerical method selecting one point on the segment has not shown the other allocations are excluded.

Every primal optimum has x, y>=0, x+y=1; the unique dual optimum is lambda=1, with value 1.

A complete right-hand-side sensitivity curve

For min -3x-2y subject to x+y<=4+t, 2x+y<=6, x, y>=0, find the range of t for which the both-active basis stays feasible, then derive the global extended-real value as a function of t.

  1. Solving the two active equations x+y=4+t and 2x+y=6 gives x=2-t, y=2+2t. Nonnegativity is equivalent to t<=2 and t>=-1. The objective there is -3(2-t)-2(2+2t)=-10-t. The multipliers (-1, -1) remain dual feasible independently of t, and their bound is exactly -10-t throughout this basis-feasibility interval.
  2. For t<-4, the first right side is negative and contradicts x+y>=0, so the feasible set is empty. For -4<=t<=-1, set x=4+t, y=0. Then 2x<=6 and the first row is tight. Multipliers (-3, 0) are dual feasible for the <= minimization rows and give bound -3(4+t)=-12-3t, equal to this primal cost. Hence this left-hand branch is optimal.
  3. For t>=2, set x=0, y=6. It satisfies x+y<=4+t and the second row tightly. Multipliers (0, -2) are dual feasible because their x-column value -4 is <=-3 and their y-column value -2 equals its cost. Their bound is -12, equal to the proposed cost. At t=-1 and t=2 the neighboring formulas agree, as they must for the same feasible optimal point.
  4. The slopes on the three finite branches are -3, -1 and 0, which increase as expected for a convex minimization value function. The central shadow price -1 is exact only while its basis remains feasible. Extrapolating it beyond the interval would miss the change of limiting resource or the eventual infeasibility at t<-4. The piecewise certificates prove every branch without numerical sampling.

The both-active basis is feasible for -1<=t<=2 and has value -10-t. Globally v(t)=+infinity for t<-4; -12-3t for -4<=t<=-1; -10-t for -1<=t<=2; and -12 for t>=2.

A minimum-cost three-node network

Send supply 2 from node 1 to satisfy demand 1 each at nodes 2 and 3. Arcs 1->2, 1->3, 2->3 have costs 1, 4, 1 and no capacities. Use outgoing-positive incidence to find an optimal flow and node potentials.

  1. Node balances with outgoing-positive incidence are f12+f13=2, -f12+f23=-1 and -f13-f23=-1. The last is redundant because total supply is zero. Put tau=f12; then f13=2-tau and f23=tau-1. Nonnegativity gives 1<=tau<=2, which describes all feasible flows in this acyclic network.
  2. The cost is tau+4(2-tau)+(tau-1)=7-2tau. It is strictly decreasing over the interval, so tau=2 gives flows (2, 0, 1) and cost 3. This also shows uniqueness in the original flow variables. There is no upper capacity constraint to introduce additional bound multipliers.
  3. Choose pi=(2, 1, 0). Its potential drops on the three arcs are 1, 2, 1, which are <= costs 1, 4, 1. The supply-weighted bound is 2*pi1-pi2-pi3=4-1=3. The used arcs 1->2 and 2->3 have tight inequalities; the unused direct arc has positive reduced cost 2. The gap sum f_e s_e is zero.
  4. Adding a common constant to the three potentials leaves the same bound because 2-1-1=0. Their absolute levels are not unique physical prices. The cost saving here arises from the modeled indirect route and fixed linear costs; capacity, loss or congestion changes would need their own rows and certificates rather than a reuse of these unconstrained potentials.

The unique optimum is (f12, f13, f23)=(2, 0, 1), cost 3; potentials (pi1, pi2, pi3)=(2, 1, 0) give the same bound.

A two-by-two transportation certificate

Supplies are (2, 1), demands (1, 2), and the cost matrix is [[1, 3], [2, 1]]. Parameterize the feasible flows, solve the LP and give row/column dual potentials.

  1. Let tau=x11. Row and column balances give x12=2-tau, x21=1-tau and x22=tau. Nonnegativity gives 0<=tau<=1. These equations preserve both total supply 3 and total demand 3, and cover every feasible shipment. The cost is tau+3(2-tau)+2(1-tau)+tau=8-3tau.
  2. The slope is negative, so tau=1 uniquely minimizes cost. The resulting matrix has row sums 2, 1 and column sums 1, 2, and its cost is 1+3+0+1=5. It is integral, consistent with the incidence structure and integer balances, although intermediate tau values give perfectly valid fractional continuous shipments.
  3. For the dual, take alpha=(3, 1), beta=(-2, 0). The sums alpha_i+beta_j are [[1, 3], [-1, 1]], entrywise <= the cost matrix [[1, 3], [2, 1]]. The bound is 2*3+1*1+1*(-2)+2*0=5. Every positive shipment uses a tight route, and the unused route (2, 1) has slack 3.
  4. The negative column potential is valid because equality multipliers are free and have the usual gauge shift. It is not evidence of a negative shipment or cost. Checking the row/column sign convention and all four inequalities is the meaningful dual validation; the exact equal objective supplies the global certificate.

The unique optimum is [[1, 1], [0, 1]], cost 5; row potentials (3, 1) and column potentials (-2, 0) certify it.

A rational central-path point

For min x1 subject to x1+x2=1, x1, x2>=0, take mu=3/8. Find the positive barrier minimizer and a dual feasible y with s_j=mu/x_j. Compare its exact duality gap with the actual primal suboptimality.

  1. Set x1=z, x2=1-z with 0<z<1. The barrier objective is z-(3/8)(log z+log(1-z)). Its derivative is 1-(3/8)/z+(3/8)/(1-z). At z=1/4 it is 1-3/2+1/2=0. The second derivative is (3/8)/z^2+(3/8)/(1-z)^2>0, and the objective tends to +infinity at both endpoints, so this is the unique minimizer.
  2. The equality multiplier y must give c-A^T y=(1-y, -y)=mu/x. At the computed point, mu/x=(3/2, 1/2), so y=-1/2. Both slacks are positive and the point is primal feasible. Its dual value is b*y=-1/2, while its original linear objective is 1/4. These values concern the original LP, not the logarithmic auxiliary objective.
  3. The gap is 1/4-(-1/2)=3/4. Independently, x1*s1+x2*s2=3/8+3/8=3/4=2mu. The exact LP optimum is 0 at (0, 1), so the barrier point has actual primal suboptimality 1/4, strictly less than its 3/4 primal-dual bound. The general n mu gap should not be mislabeled the exact distance to the optimum.
  4. The limiting optimum lies on a boundary where the full barrier is not defined, but every positive central point is feasible for the original nonnegative LP. This example has a barrier minimizer because its equality-feasible positive interval is bounded and its boundary logs diverge. Other LPs need their own existence check; the stationarity calculation does not by itself establish a central path for an arbitrary model.

x=(1/4, 3/4), y=-1/2, s=(3/2, 1/2) is the unique barrier point; gap 3/4=2mu, while its primal suboptimality is 1/4.

A robust row with coupled uncertainty

Let U={a>=0: a1<=2, a2<=2, a1+a2<=3}. For x>=0, reduce sup(a in U) a^T x<=6 to explicit inequalities and to an existential dual certificate. Verify the boundary decision x=(2, 2).

  1. The uncertainty polygon has vertices (0, 0), (2, 0), (2, 1), (1, 2), (0, 2). Because x>=0, each lower corner is componentwise dominated by one of (2, 1), (1, 2). A linear function on this compact polygon attains its maximum at a vertex, so its support is max(2x1+x2, x1+2x2). The robust upper bound 6 is exactly the pair of displayed linear inequalities.
  2. Alternatively, maximize x1*a1+x2*a2 over a>=0 with upper rows a1<=2, a2<=2, a1+a2<=3. Its dual minimizes 2lambda1+2lambda2+3lambda3 with lambda>=0 and lambda1+lambda3>=x1, lambda2+lambda3>=x2. Here the uncertain a variables are explicitly nonnegative, so the dual column conditions are inequalities rather than the equality used for a free uncertain vector.
  3. The uncertainty primal is nonempty and bounded, so strong duality and dual attainment apply. Therefore the support is <=6 exactly when some such dual lambda has objective <=6. For x=(2, 2), choose lambda1=lambda2=0, lambda3=2. Both dual column inequalities are tight and its objective is 6. A feasible uncertainty point (2, 1) also gives a^T x=6, so the support value is exactly 6.
  4. This certificate retains the coupled constraint a1+a2<=3. Replacing uncertainty by the unattainable simultaneous corner (2, 2) would give a different and more restrictive row 2x1+2x2<=6. The choice of uncertainty model therefore matters independently of solving its LP accurately. The dual extension is an exact reformulation of the stated polygon, not an empirical proof that the polygon captures every possible resource coefficient.

For x>=0, the robust row is equivalent to 2x1+x2<=6 and x1+2x2<=6. It also admits lambda>=0 with lambda1+lambda3>=x1, lambda2+lambda3>=x2 and 2lambda1+2lambda2+3lambda3<=6. At x=(2, 2), lambda=(0, 0, 2) certifies equality.

Try it yourself

  1. Give a linear program on the entire real line with an attained finite optimum but no extreme point, and explain why this does not contradict the standard-form basic-optimum theorem.

    Show the answer and reasoning

    Minimize 0 over x in R. Every x is optimal, value 0, and no point is extreme; the nonnegative split formulation still has the basic optimum (0, 0).

    Take the entire real line as feasible set and the constant objective 0. Every real x is feasible and has cost 0, so the finite minimum is attained. For any x, the distinct feasible points x-1 and x+1 have midpoint x. Hence no feasible point is extreme. A finite attained optimum does not force an extreme point in an arbitrary original free-variable formulation. Convert x=u-v with u, v>=0. The transformed problem has no equality rows and objective 0 on the nonnegative orthant. Its zero vector is a basic feasible point under the rank-zero convention and maps to original x=0. Thus the standard-form basic-optimum theorem still has exactly the kind of representative it asserts. The map is not one-to-one, and a standard-form extreme point need not map to an original extreme point. The theorem guarantees an optimal recovered decision, not preservation of every geometric property under projection. Auxiliary-variable representations must therefore be distinguished from the original physical feasible set. This example does not involve an unattained infimum or unbounded-below objective. Its feasible set is unbounded, but the objective is constant and bounded below. Keeping those three facts separate prevents the incorrect inference that an unbounded feasible line must make every minimization problem unbounded.

  2. For x1+x2+x3=1, x>=0, compare (1, 0, 0) with (1/2, 1/2, 0) using the independent-support criterion and an explicit convex decomposition.

    Show the answer and reasoning

    (1, 0, 0) is extreme; the half-and-half point is not and equals one-half (1, 0, 0) + one-half (0, 1, 0).

    The single equality row is A=(1, 1, 1), of rank 1. At x=(1, 0, 0), the positive support contains only the first column, which is nonzero and hence independent. The support criterion proves this point extreme. It is a basic feasible point with the first column as its basis. At z=(1/2, 1/2, 0), the positive support has two identical columns 1 and 1. They are dependent, with coefficient direction (1, -1, 0) in the null space. Small positive and negative steps along that direction preserve nonnegativity and the equality. Therefore z is not extreme. Explicitly, z=(1/2)(1, 0, 0)+(1/2)(0, 1, 0). The two endpoints are distinct feasible points, so this is the required nontrivial convex decomposition. It also shows that positive entries alone do not make a point basic; independence of their corresponding columns is the relevant test. If a linear objective ties between the first two unit vectors, then z is also optimal, but still not extreme. Optimality and extremality are separate properties. The existence of an optimal vertex in the standard-form theorem does not require every optimal feasible point to be a vertex.

  3. For arbitrary x, y with x>=0, derive c^T x-b^T y=x^T(c-A^T y)+y^T(Ax-b). Explain which term is guaranteed to vanish under primal equality feasibility and why it cannot be discarded in general before then.

    Show the answer and reasoning

    The exact gap is x^T(c-A^T y)+y^T(Ax-b); the second term is guaranteed to vanish when Ax=b, but may also vanish without equality feasibility.

    Add and subtract y^T Ax in c^T x-b^T y. This gives c^T x-y^T Ax+y^T Ax-y^T b=x^T(c-A^T y)+y^T(Ax-b). The identity holds for arbitrary real x, y with compatible dimensions; no feasibility assumption was used in the algebra. If x>=0 and c-A^T y>=0, the first term is nonnegative. If Ax=b, the second term is zero and ordinary weak duality follows. If Ax!=b, that residual term may be negative, and the displayed objective of x can lie below the valid dual bound. Nonnegativity of x alone is insufficient. For example, minimize x subject to x=1, x>=0 has dual y<=1. Take y=1 and the infeasible nonnegative x=0. Then c-A^T y=0 but y^T(Ax-b)=-1, so the alleged gap is -1. The exact identity diagnoses the missing equality feasibility instead of contradicting weak duality. A norm estimate can bound the residual contribution by the appropriate dual norm of y times ||Ax-b||, but that does not make x feasible. A rigorous upper bound still needs a feasible point or a proved repair. Record residual units and their multiplier scaling when using such an estimate.

  4. For the inconsistent equations x1+x2=1 and x1+x2=2, compare y=(1, -1) and its negative under A^T y>=0, b^T y<0.

    Show the answer and reasoning

    For y=(1, -1), A^T y=0 and b^T y=-1, so it certifies infeasibility. Its negative gives b^T y=+1 and fails the stated strict sign.

    Here A has both rows (1, 1) and b=(1, 2). For y=(1, -1), the two entries of A^T y are 1-1=0. The required nonnegative coefficient inequality holds. The right-hand product is 1-2=-1<0, so this vector meets both parts of the stated Farkas convention. For -y=(-1, 1), the coefficient product is still zero, but b^T(-y)=-1+2=1. It fails the condition b^T y<0. An annihilator of the matrix is not automatically an infeasibility certificate with the chosen orientation. The strict inequality fixes the direction of separation. The contradiction for the valid vector is immediate: if Ax=b with x>=0, then -1=b^T y=x^T A^T y=0. The nonnegativity inequality would be enough in a more general example, even when A^T y is not identically zero. This instance is especially simple because the equality inconsistency is exact. A version of Farkas written A^T y<=0, b^T y>0 would accept the reversed vector. Both formulations are correct when their two signs are reversed together. The exercise is about preserving one complete convention through a certificate, not choosing whichever half of either version makes a proposed vector look plausible.

  5. Write primal min -x subject to 0x=1, x>=0 and derive its standard dual. Prove that both are infeasible.

    Show the answer and reasoning

    The primal 0x=1 is infeasible; its dual max y subject to 0y<=-1 is also infeasible.

    The standard primal has scalar A=0, b=1, c=-1 and x>=0. No real x satisfies 0x=1, so the feasible set is empty regardless of the objective coefficient. Its minimization extended value is +infinity. This is infeasibility, not a feasible ray sending its cost to -infinity. The equality multiplier y is free, and the standard dual is max b y=y subject to A^T y=0<=c=-1. The inequality 0<=-1 is false for every y. Thus its feasible set is also empty. There is no dual vector to evaluate and no feasible dual unboundedness claim. This does not violate strong duality because the hypothesis of a feasible finite optimum is absent. Weak duality is an implication for feasible pairs; there are no such pairs here. The theorem never states that one program must be feasible simply because the other is infeasible. The example is useful for interpreting an ambiguous infeasible-or-unbounded numerical status. Exact certificates distinguish the possibilities; one cannot infer primal feasibility or a ray merely from dual infeasibility. Retain the equality and cost signs when classifying both programs.

  6. Explain exactly how min c^T x and max -c^T x have the same optimizers, how their optimum values are related, and why multiplying an objective by a negative number without reversing direction changes the problem.

    Show the answer and reasoning

    Minimizers of c^T x are maximizers of -c^T x on the same feasible set, with opposite finite optimum values; negative scaling without direction reversal usually changes the optimizers.

    For any two feasible points x, z, the inequality c^T x<=c^T z is equivalent to -c^T x>=-c^T z. Thus a point minimizing the first expression maximizes the second, and conversely. On a common feasible set the finite best values obey max(-c^T x)=-min(c^T x), with the obvious corresponding attainment statement. Keeping minimization while negating the objective reverses every comparison instead. On the interval 0<=x<=1, min x is attained uniquely at 0 while min -x is attained uniquely at 1. This is a different choice problem. A negative multiplier cannot be treated like a harmless positive change of cost units. The value relation can also be stated with infimum and supremum in the extended reals. An empty minimization feasible set has infimum +infinity and the corresponding empty maximization has supremum -infinity. An unbounded-below infimum maps to an unbounded-above supremum of the negated objective. Neither situation supplies an attained finite optimizer. When converting a maximization model to the standard minimization duality convention, retain the final sign conversion on objective bounds and gaps. Feasible decisions remain the same, but lower and upper bounds exchange their roles after negation. The saved original direction is part of a certificate, not a formatting detail.

  7. Start from x+s1=1, x+s2=1, x, s1, s2>=0 and objective min -x. Let x enter. Show the ratio tie, the two possible new bases and the same degenerate primal optimum.

    Show the answer and reasoning

    Both ratios are 1. Either slack can leave; the bases (x, s2) and (s1, x) represent the same optimum x=1, s1=s2=0.

    The initial slack dictionary is s1=1-x and s2=1-x, with objective -x. Entering x has positive coefficients 1 in both rows, so both ratios are 1. The maximal feasible step is theta=1, at which both slacks become zero. The objective falls from 0 to -1. If s1 leaves, solve x=1-s1 and substitute to get s2=s1. The basis variables x, s2 have values 1 and 0 at nonbasic s1=0, and the objective is -1+s1. The basis is degenerate because s2 is basic and zero. The nonnegative reduced cost supplies an optimal dictionary. If s2 leaves instead, the equations become x=1-s2, s1=s2 and the objective -1+s2. This second basis also has a zero basic slack and represents exactly the same original coordinates. The choice resolves a basis tie, not a choice between different optimal allocations. The feasible original interval is 0<=x<=1, so x=1 is the unique optimum. A tied leaving ratio need not mean a zero pivot step: here the step is positive but the resulting basic point is degenerate. This distinction keeps ratio ties, degenerate points and objective stalling from being conflated.

  8. Apply phase I to x1-x2=-1, x>=0. Show the row sign change, an initial artificial basis and a pivot that reaches auxiliary value zero.

    Show the answer and reasoning

    Flip the row to -x1+x2=1; phase I uses -x1+x2+a=1, min a. Pivot x2 in, a out to get x1=0, x2=1, a=0 and auxiliary optimum 0.

    Multiplying x1-x2=-1 by -1 gives -x1+x2=1 with nonnegative right side. Introduce a>=0 and minimize a subject to -x1+x2+a=1, x1, x2>=0. The initial artificial basis has x1=x2=0, a=1 and auxiliary objective 1. Its dictionary is a=1+x1-x2 and objective z=1+x1-x2. The reduced cost of x2 is -1. Increasing x2 with x1=0 reduces a until x2=1, a=0, so a leaves at the positive ratio 1. The new equality is x2=1+x1-a. At x1=a=0, this gives the original feasible point x1=0, x2=1. The auxiliary cost is zero, which is globally minimal because a>=0. Thus the original constraints are feasible. The saved sign reversal recovers 1st-variable minus 2nd-variable=-1 exactly. No original cost objective was specified in this exercise, so zero phase-I optimum does not claim an original cost minimum. After artificial cleanup, a separate original objective could be installed for phase II. Keeping these purposes separate avoids treating every successful feasibility pivot as completion of an optimization problem.

  9. A dictionary is xB=-1+x1-x2 with all variables nonnegative and objective z=2x1+3x2. Perform a dual-simplex pivot, write the new objective and give the optimal primal point.

    Show the answer and reasoning

    Enter x1 and let xB leave. The new dictionary is x1=1+xB+x2, z=2+2xB+5x2; the optimum is x1=1, x2=xB=0, value 2.

    Write the row as xB=-1-((-1)x1+1x2), so its basic value is -1 and its D coefficients are -1 and 1. The reduced costs 2 and 3 are nonnegative, so the dictionary is dual feasible but primal infeasible. Only x1 has a negative row coefficient and can repair this row in the dual-simplex rule. The ratio for that candidate is r1/(-D1)=2. Solving the equality gives x1=1+xB+x2. Substitute into the objective 2x1+3x2 to obtain z=2+2xB+5x2. Both new nonbasic reduced costs are nonnegative, and the new basic value 1 is nonnegative. At xB=x2=0, the primal point has x1=1 and satisfies xB=-1+x1-x2=0. Every feasible point in the new dictionary has objective at least 2 because its remaining coefficients are nonnegative. Thus the lower bound is attained and the point is optimal. The objective constant increased from 0 to 2 while dual feasibility was retained; this is not a violation of minimization progress because the initial basis was not primal feasible. The original equality and all nonnegative domains, not a comparison with the infeasible initial point, determine the valid final optimum.

  10. For max p x+q y subject to x+y<=4, 2x+y<=6, x, y>=0, find the inequalities on (p, q) for which (x, y)=(2, 2) is optimal and describe the tie on p=q>0.

    Show the answer and reasoning

    The vertex (2, 2) is optimal exactly when q<=p<=2q. For p=q>0, every point on x+y=4 between (0, 4) and (2, 2) is optimal.

    Convert the objective to min -p x-q y and use basis x, y for the two tight resource rows. The equality multipliers solve pi1+2pi2=-p and pi1+pi2=-q, so pi2=q-p and pi1=p-2q. The nonbasic resource slack costs are zero, so their dual slacks require pi1<=0 and pi2<=0. This gives q<=p<=2q. These conditions suffice by primal-dual equality at the feasible point (2, 2). They are also necessary here. Moving a small amount along the edge toward (0, 4) changes (x, y) by (-epsilon, epsilon), so maximality requires q-p<=0. Moving along the other active edge toward (3, 0) changes (x, y) by (epsilon, -2epsilon), so maximality requires p-2q<=0. Both directions are actually feasible for small positive epsilon. When p=q>0, the objective is p(x+y), whose upper bound is 4p. The feasible points on x+y=4 obey 2x+y=x+4<=6, so 0<=x<=2 and y=4-x. Every such point attains 4p. This is the segment from (0, 4) to (2, 2); points with a smaller sum cannot tie because p>0. The inequalities also imply q>=0; when q=0 they force p=0 and every feasible point is optimal. Inside q<p<2q, both resource-slack reduced costs are positive and force their rows tight, so (2, 2) is unique. At the other positive boundary p=2q, the second resource edge ties instead. These boundary qualifications accompany the cost interval rather than a blanket uniqueness claim.

  11. For min x subject to x>=b, x>=0, derive the value v(b), the dual interval and every optimal multiplier at b=0. Compare left and right derivatives.

    Show the answer and reasoning

    v(b)=max(b, 0); the dual is max b lambda with 0<=lambda<=1. At b=0, all lambda in [0, 1] are optimal; left/right derivatives are 0 and 1.

    Primal feasibility is x>=max(b, 0). Because the objective is x, the unique optimal decision is xstar=max(b, 0), and its cost is the same expression. This conclusion holds for every real b, including negative b where the explicit bound x>=0 is the active restriction. For the >= row use lambda>=0. The Lagrangian over x>=0 is lambda b+(1-lambda)x, which has a finite infimum exactly when lambda<=1. Thus the dual maximizes b lambda on [0, 1]. It selects lambda=1 for b>0 and lambda=0 for b<0. At b=0 the dual objective is zero throughout the interval. At zero, the value function is continuous but has left derivative 0 and right derivative 1. No single two-sided derivative exists. Nevertheless every lambda in [0, 1] is a subgradient because max(bnew, 0)>=lambda bnew for every real bnew. This verifies the exact supporting inequality without assuming differentiability. The primal optimizer at b=0 is uniquely zero, so unique primal decisions do not imply unique prices. A chosen optimal multiplier remains a valid bound, but it should not be reported as a universal marginal derivative at this kink. The direction of a perturbation and the relevant active-resource regime determine the appropriate local prediction.

  12. A minimization problem has a >= resource row with multiplier lambda. Multiply that row by 7 and then multiply the whole objective by 3. Determine the transformed multiplier and show the objective bound is consistent.

    Show the answer and reasoning

    The transformed named-row multiplier is 3lambda/7; its contribution is (3lambda/7)(7b)=3lambda b, consistent with the tripled objective.

    For a minimization >= row a^T x>=b, the multiplier lambda>=0 contributes lambda b to the dual bound. Replacing the row by 7a^T x>=7b leaves its feasible set unchanged. To preserve the same weighted linear expression, its new multiplier before objective scaling is lambda/7. Multiplying the whole objective by 3 scales all original dual multipliers by 3, including the already row-adjusted one. Therefore the named row multiplier becomes 3lambda/7. Its sign remains nonnegative because both scaling factors are positive. Other unchanged rows receive the ordinary factor 3. The transformed contribution is (3lambda/7)(7b)=3lambda b, and its coefficient contribution is (3lambda/7)(7a)=3lambda a. Thus both the objective bound and dual coefficient comparison have exactly the required cost scale. The ratio is explained by the algebra and by cost-per-resource units. This does not mean the physical marginal resource value changed by an unexplained numerical factor. The printed row unit changed and the cost unit was rescaled. Converting the multiplier back restores the original interpretation. A negative row scale would also reverse its inequality and require a separate sign transformation; that is outside this positive-scale calculation.

  13. Solve x1+x2=1, x1-x2=0, x>=0. Compute the determinant and explain the fractional basic point despite an integer right-hand side.

    Show the answer and reasoning

    The unique basic point is (1/2, 1/2). The determinant is -2, so the integer coefficient matrix is not totally unimodular.

    The equalities x1+x2=1 and x1-x2=0 give x1=x2, then 2x1=1. Hence the unique feasible point is x1=x2=1/2, which is nonnegative. Both variables are basic because the two-by-two coefficient matrix is nonsingular. Its determinant is 1*(-1)-1*1=-2. Total unimodularity requires every square determinant to be 0, +1 or -1, so this single subdeterminant disproves it. The inverse has half-integer coefficients, consistent with the fractional solution from an integer right-hand side. Integer entries and full rank alone are not enough for the integral-basis conclusion. The incidence proof used unit determinants, which forced an integer inverse by the adjugate formula. Here division by 2 is exactly the obstruction. Nothing in ordinary continuous feasibility forbids the fractional point. If the same variables were required to be integers, the feasible set would be empty, not an approximately feasible rounding of (1/2, 1/2). Rounding either coordinate would violate at least one original equality. The example distinguishes continuous LP geometry from a separate integer decision model and shows why the structural hypothesis must be checked.

  14. A three-node directed network has source 1, sink 3, and capacities c12=2, c13=1, c23=1. Find a maximum flow and a matching minimum cut.

    Show the answer and reasoning

    A maximum flow is (f12, f13, f23)=(1, 1, 1), value 2. The cut S={1, 2}, T={3} has capacity c13+c23=2.

    Set f12=1, f13=1, f23=1. Every arc respects its capacities 2, 1, 1, and node 2 conserves flow because its incoming and outgoing amounts are both 1. The source sends total 2 and the sink receives 2, so this is a feasible source-sink flow of value 2. For S={1, 2}, the arcs leaving S are 1->3 and 2->3 with total capacity 1+1=2. Flow conservation and the capacity inequalities bound every feasible source-sink flow by this cut capacity. The displayed flow attains it, so it is maximum and the cut is minimum. The source-only cut has capacity 2+1=3, which is not the limiting cut. The unused unit on 1->2 cannot raise the value because the onward 2->3 arc is already saturated. This illustrates why unused capacity on one arc does not by itself imply an augmenting path all the way to the sink. In the residual graph of this flow, the source can reach node 2 through the remaining forward capacity 1, but neither direct route into node 3 has positive residual capacity. Thus the reachable set is exactly {1, 2}, recovering the same cut. The certificate does not depend on which augmenting paths were used to construct the flow.

  15. Parameterize every nonnegative two-by-two matrix with all row and column sums 1. Identify the extreme points and explain why integrality of optimal vertices does not exclude fractional feasible matrices.

    Show the answer and reasoning

    Every feasible matrix is [[t, 1-t], [1-t, t]], 0<=t<=1. The only extreme points are the two permutation matrices; all 0<t<1 points are fractional feasible mixtures.

    Let t=x11. The first row sum gives x12=1-t; the first column gives x21=1-t; the remaining row gives x22=t. The final column equation is then automatic. Nonnegativity is exactly 0<=t<=1, so this parameterization describes the entire feasible assignment relaxation. At t=1, the matrix is the identity; at t=0, it is the off-diagonal permutation. Any 0<t<1 matrix is t times the identity plus (1-t) times the off-diagonal matrix, a nontrivial convex combination. Hence it is not extreme. The two endpoints are extreme because their scalar parameter lies at an endpoint of the feasible interval. For any linear cost matrix, the objective is affine in t and attains a minimum at an endpoint. If its slope is zero, every t is optimal, including the fractional matrices. Thus the existence of an integral optimal vertex does not imply that every optimal point, or every feasible point, is integral. An algorithm returning the half-and-half matrix for a tied continuous problem has not violated total unimodularity; it has selected an optimal convex combination. If a discrete assignment is needed, one can select an optimal endpoint here. That recovery uses this exact structure and must not be assumed for an arbitrary integer-restricted LP.

  16. For min x subject to x=0, x>=0, explain why the LP is solved but its full logarithmic barrier has no feasible point. State the appropriate scope limitation on the barrier gap argument.

    Show the answer and reasoning

    The original LP has the unique solution x=0, value 0, but no x>0 satisfies its equality, so its full logarithmic barrier has empty feasible domain.

    The equality x=0 together with x>=0 gives the singleton feasible set {0}. The objective is x, so its unique minimum is 0. This is an exact feasible finite LP, not an infeasibility or unboundedness case. A full logarithmic barrier for the nonnegative coordinate requires x>0 and includes -mu log x. No such point satisfies x=0. The barrier feasible domain is empty for every mu>0, and log 0 is not a finite objective value. The assumption of an attained positive barrier point fails before any stationarity calculation. The n mu gap derivation remains correct under its stated positive-point and stationarity hypotheses; it simply has no point to which it applies here. Strong LP duality itself does not require this interior and still holds for the original singleton problem. An equality multiplier y=1 gives dual slack 0 and bound 0, matching the primal optimum. One can reduce the known face by eliminating the forced-zero coordinate, or use a method that explicitly handles this structure. That is a different auxiliary representation with a saved recovery rule. It is not justified to insert a small positive x and declare original equality feasibility merely to make a logarithm available.

  17. For min x subject to x>=1, x>=0, an output is xhat=999/1000. Give its residual and explain why its objective is not a feasible upper bound. Repair it and provide an exact matching dual lower bound.

    Show the answer and reasoning

    The violation is 1/1000. The infeasible cost 999/1000 is not an upper bound; repair to x=1, cost 1, with dual lambda=1 giving lower bound 1.

    The proposed xhat=999/1000 is nonnegative but violates x>=1. In the >= row, the signed surplus is xhat-1=-1/1000 and the positive violation is 1/1000. The exact optimum of this simple LP cannot be less than 1 because every feasible objective equals a variable at least 1. Therefore the reported objective 999/1000 is below the true minimum and cannot serve as a feasible upper bound. Calling its violation small does not change this direction. In another choice of row units the same physical error could have a different printed magnitude, so a bare tolerance is not a feasibility proof. Repair to xbar=max(xhat, 1)=1. It is exactly feasible and gives upper bound 1. The >= row dual is 0<=lambda<=1 with objective lambda; choose lambda=1 for lower bound 1. Equality of the certified bounds proves optimality of the repaired point. The repair moved the variable by 1/1000 and the objective by the same amount because its cost coefficient is 1. For a general model a repair and its error bound need separate reasoning and may be costly or impossible. This exercise isolates why a proposed objective and an actually feasible upper bound are distinct records.

  18. Let U={a>=0} in one dimension and x>=0. Determine when sup(a in U) ax<=1 holds, and show why a finite arbitrary cap on a would change the robust feasible set.

    Show the answer and reasoning

    The robust feasible set is {x=0}. For x>0 the support is +infinity; any positive finite uncertainty cap M would instead allow 0<=x<=1/M.

    If x=0, then ax=0 for every a>=0, so the support is 0 and the robust inequality holds. If x>0, choose a arbitrarily large; ax grows without bound and its supremum is +infinity. Under the stated x>=0 domain, these two cases exhaust all decisions. Replacing the uncertainty set by 0<=a<=M with 0<M<infinity gives support Mx for x>=0. Its robust feasible set is then 0<=x<=1/M, which includes positive points excluded by the original unbounded uncertainty model. No finite positive M is an exact harmless computational substitute. If M=0, the truncated support is identically zero and every x>=0 passes, also a different model. The issue is mathematical scope, not the number of digits used for a large bound. A proved physical cap can define a deliberately new uncertainty assumption, but it cannot be invented merely to make a bounded solver subproblem. The support maximization has nonnegative variable a and no upper rows. Its formal dual feasibility condition is 0>=x, with value 0 when satisfied. Combining that condition with x>=0 again yields x=0. For x>0, no finite dual support certificate exists, consistent with the unbounded primal support rather than a failure of the finite LP duality theorem.

What to carry forward

  • Primal feasibility gives an objective upper bound for minimization; dual feasibility gives a lower bound.
  • A finite standard-form optimum is attained, but the original free-variable feasible set need not have vertices.
  • Farkas vectors, improving rays and equal feasible objective bounds certify different LP statuses.
  • Complementary slackness requires both sides feasible; zero reduced cost does not imply positive use or uniqueness.
  • A basis change can be a zero step, and finite termination needs a valid rule rather than repeated status labels.
  • Shadow prices are conditional on their perturbation regime and may be subgradients at a kink.
  • Network structure can guarantee an integral optimal vertex while fractional feasible mixtures remain possible.
  • Barriers, robust duals and approximate certificates retain their existence, domain, norm-bound and physical-model assumptions.

References

Sources for the concepts and teaching approaches in this article.

  1. Michel X. Goemans4 sources
    1. Total unimodularity and integral verticesMichel X. GoemansPrimary · PDFmath.mit.eduRead source
    2. Flow conservation and network incidenceMichel X. GoemansPrimary · PDFmath.mit.eduRead source
    3. Residual paths and a cut certificateMichel X. GoemansPrimary · PDFmath.mit.eduRead source
  2. Resolving simplex degeneracyMIT 15.053 teaching materialsPrimary · PDFweb.mit.eduRead source
  3. The dual-simplex pivotDavid P. Williamson; scribe Emily FischerPrimary · PDFpeople.orie.cornell.eduRead source
  4. Stephen Boyd and Lieven Vandenberghe3 sources
    1. Perturbation bounds and sensitivityStephen Boyd and Lieven VandenberghePrimary · PDFstanford.eduRead source
    2. Logarithmic barriers and central pointsStephen Boyd and Lieven VandenberghePrimary · PDFstanford.eduRead source
    3. Dual bounds from a central pointStephen Boyd and Lieven VandenberghePrimary · PDFstanford.eduRead source