These feasible potentials give the lower bound on every assignment cost. An assignment using only equality edges attains this bound and is optimal by weak duality and complementary slackness.
Lagrange dual function 2026-10-06
The Lagrange dual function is the infimum of a Lagrangian over its primal variables. It is concave in the multipliers, even before convexity of the primal problem is assumed. Maximizing it over sign-compatible multipliers gives a lower bound on a minimization problem by weak duality; appropriate convex qualifications give strong duality.
Lagrangian duality 2026-10-06
For a minimization problem, the infimum of the optimization Lagrangian over its primal variables gives a lower bound for each allowable multiplier. Maximizing these lower bounds is the Lagrangian dual problem. Weak duality always holds; strong duality requires further hypotheses and holds for feasible bounded linear programs.
For the linear program maximizing with , , a vector with proves for every feasible . If a feasible attains that bound, it is optimal. This is weak duality written as a directly checkable certificate; adding nonnegative multiples of constraints suffices to verify it. The equivalent reversed-inequality certificate applies to a minimization program.
Write the top row as . The bottom row is then , and nonnegativity becomes
The feasible set is a hexagon in this plane. Its six vertices, hence all basic feasible solutions of this transportation problem, are
There are four independent constraints; each displayed support consists of four cells forming a transportation spanning tree, so each is a nondegenerate basic solution. Conversely, a basic feasible solution is a vertex, so the hexagon enumeration is exhaustive.
For any feasible , the proposed dual inequalities give
If equality holds on every cell with , this last quantity equals . Hence for every feasible . This is weak duality with complementary slackness.
The Northwest corner method first allocates three units to , then two to , one to and four to :
Choose , , . Equality holds on its four occupied cells. The other inequalities are and . Thus implies that minimizes .
The last printed clause changes from minimization to maximization. To answer that wording, use the transportation simplex algorithm for maximization, equivalently minimize the negative costs. There are only two possible entering cells at :
  • Entering increases and by , and decreases and by . The maximal feasible step is , reaching and increasing by .
  • Entering increases and , and decreases and . Here , reaching and changing by .
Put . On the feasible hexagon,
If , this expression is maximized by taking , so is a global maximizer. If , the feasible vertex has objective larger than , so is not a maximizer. Nor can ever be one: comparison with requires , while comparison with the vertex requires . Therefore one pivot to a maximizer is possible exactly when , by entering . Its reduced cost for maximization is ; the other reduced cost is , so the improving pivot is unambiguous.
If “transportation algorithm” is required to retain the preceding minimization objective, no such step can reach a maximizer: every minimizing step is nonincreasing, whereas the feasible point always has . If the final word was intended to be “minimizes”, the corresponding genuinely improving one-pivot condition would instead be ; at , is already optimal and a zero-cost pivot is possible. These distinctions preserve the printed maximization request without silently altering it.
Write the primal in the form with and . Its dual linear program is with and . Indeed, nonnegative combinations of the primal inequalities give , which is weak duality. The specific dual is
The four dual inequalities correspond, in order, to the four primal variables.
For any feasible primal vector, twice the second constraint plus one third of the third gives
Since ,
The vector is feasible and attains this bound. It is optimal, by this direct inequality proof of weak duality, without assuming the simplex method or a duality theorem. Equality forces and both positively weighted constraints tight, so it also proves uniqueness.
Use the maximizing-dual convention. For the perturbation function , define
The primal problem is ; the Lagrangian dual problem is . The sign convention makes the dual marginal concave for jointly convex data; some formulations negate to express a minimization problem.
The central convex perturbation duality calculation is
The last inequality is weak duality. A sufficient finite-dimensional condition for strong duality with dual attainment is: is jointly proper and convex, is proper with finite, and is finite on a neighborhood of zero. More generally suffices.
Indeed continuity of a convex function on the interior of its domain gives a supporting subgradient , so
Therefore and the dual maximum is attained. This qualification establishes equality and dual attainment; it does not by itself establish a primal minimizer.
The feasible point makes the second and third constraints tight; the first has left side two. Its objective is .
To prove optimality from first principles, multiply each of the second and third inequalities by and add. For every nonnegative feasible ,
This is an explicit weak duality bound, proved here simply by adding inequalities. The displayed point attains it, so
Equality forces and both contributing constraints tight, proving uniqueness as well.
The same weak duality certificate gives the upper bound for every feasible point. Keep and solve the tight second and third constraints:
These are nonnegative precisely when their numerators are nonnegative. The remaining first-constraint slack is . All three are positive for sufficiently small perturbations, so the point is feasible and attains the bound. This illustrates linear programming sensitivity within a fixed optimal basis:
More generally this expression is valid throughout the region specified by those three feasibility inequalities.
With , the conditions reduce to
The endpoints are included. Outside this interval the bound cannot be attained: its equality conditions require exactly the point above, which then has a negative or violates the first constraint. Whenever feasible, the problem attains a maximum because the first constraint and nonnegativity bound all coordinates, so its value is strictly smaller outside the interval. For it is infeasible. Thus the range is exact, not just a sufficient neighborhood.