Mathematical optimization Created 2026-09-24 Updated 2026-09-24
Mathematical optimization studies extrema under constraints.
Network reduced cost 2026-10-06
With the tail-positive incidence convention, a network edge's reduced cost is . For uncapacitated minimum-cost flow, dual feasibility requires and complementary slackness requires . A negative non-tree reduced cost identifies an improving graph cycle pivot in the network simplex algorithm. This sign convention differs from the row-column potentials of a transportation problem.
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.
A transportation problem minimizes subject to nonnegative shipments, prescribed row supplies, and prescribed column demands.
One optimal shipment table is
which has the required row sums and column sums and costs .
For an optimality certificate, take row potentials and column potentials . Their sums equal costs in occupied cells and do not exceed any cost:
The dual value is , so linear programming duality proves optimality.
A transportation problem chooses nonnegative shipments from suppliers to consumers so that row sums equal supplies and column sums equal demands, while minimizing .
The north-west corner rule gives
It has positive cells and its support contains no cycle, so it is a nondegenerate basic feasible solution.
A degenerate basic feasible solution is
Its five positive cells form a forest with two balanced components; adding one zero cell that joins the components completes a basis of six cells. Thus at least one basic variable is zero.
The stated plan is
Its six positive cells form a spanning tree of the supplier--consumer bipartite graph, so it is basic and feasible. Taking , the basic-cell equations give
The complete matrix of reduced costs is
The negative entry proves that the plan is not optimal.
Enter cell . The alternating cycle is
and the step is . The new plan is
whose cost is , down from . New potentials are
and the reduced-cost matrix is
Every reduced cost is nonnegative, so the transportation optimality criterion shows that
The zero reduced cost in cell also indicates an alternative optimum.