Definition · Potentials and reduced costsGiven a basis of m + n − 1 occupied cells, the potentials uᵢ and vⱼ are the solution of uᵢ + vⱼ = cᵢⱼ over those cells, with one potential fixed arbitrarily. The reduced cost of any cell is c̄ᵢⱼ = cᵢⱼ − uᵢ − vⱼ.
Basic cells have reduced cost zero by construction. If every empty cell has c̄ᵢⱼ ≥ 0 the current plan is optimal; otherwise a cell with c̄ᵢⱼ < 0 enters.
The system is solvable exactly when the occupied cells form a spanning tree, which is why the count mattered so much in “The Transportation Problem”. Connected gives every potential a value; acyclic stops two equations from disagreeing about one of them. Solve it by starting anywhere and walking the tree: each basic cell hands a known u to an unknown v or the other way round.
the north-west start on the three-plant table, basis in bold
D1 D2 D3 D4 u
A [5] [10] . . 0
B . [5] [15] [5] 5
C . . . [10] 3
v 10 2 4 15
check u_A + v_D1 = 0 + 10 = 10 = c ok
u_B + v_D3 = 5 + 4 = 9 = c ok
reduced costs c - u - v on every cell
D1 D2 D3 D4
A 0 0 16 -4
B -3 0 0 0
C -9 9 9 0
most negative: (C, D1) at -9 Dantzig's rule
first negative: (A, D4) at -4 Bland's rule
Fix u_A = 0 and the potentials are u = (0, 5, 3), v = (10, 2, 4, 15). Fix v_D1 = 0 instead and they become u = (10, 15, 13), v = (0, −8, −6, 5) — every one of the seven has moved, by 10. Not one of the twelve reduced costs changes, because each is cᵢⱼ − uᵢ − vⱼ and the shift cancels. The lab has a control for each of the seven and reports the shift each produces: 0, 5, 3, −10, −2, −4, −15.
Taking the cell, and the cycle it closes
The basis is a spanning tree of the rows and columns. Adding one more cell to a spanning tree creates exactly one cycle, and that cycle alternates between moving along a row and moving down a column. Put a plus on the entering cell, then alternate signs round the cycle. Every plus cell gains θ, every minus cell loses it, and the row and column sums are unchanged for every θ.
Example · The staircase, on the first pivot(C, D1) enters with a reduced cost of −9. The cycle the lab computes has six corners: (C,D1)+ (C,D4)− (B,D4)+ (B,D2)− (A,D2)+ (A,D1)−. The rectangle a reader guesses — along row C, up column D1 — would need to turn at (B, D1), and (B, D1) is empty, so the guess is refused and the walk goes further.
θ is the smallest allocation on a minus cell: the minus cells carry 10, 5 and 5, so θ = 5 and (B, D2) leaves. The cost falls from 520 to 475, which is 9 × 5 less.
The lab draws the guess alongside the computed cycle and names the corner that breaks it. On the second pivot of the same run the guess closes and the two agree; on the third, the entering cell's column holds no other occupied cell at all, so there is no rectangle to draw. The guess is not always wrong, which is exactly why it has to be checked.
Degeneracy, and what it does to the cost
Example · A pivot that changes the basis and not the billThe second pivot of the default run brings (A, D4) in, and the smallest allocation on a minus cell is 0 — the zero at (A, D1). So θ = 0: the cell enters, (A, D1) leaves, the basis is different, and the cost stands still at 475.
The run's costs are 520 → 475 → 475 → 435, and an implementation asserting that every iteration is strictly cheaper would fail on the shipped example. Non-increasing is the claim. This is the degeneracy of the simplex course, arriving in a tableau that looks nothing like a simplex tableau.
Three pivots from the north-west start, one from the least-cost start, and both land on 435 at the same plan. The entering rule moves the path and not the destination: on the surplus table, Dantzig's rule takes three pivots from either start while Bland's takes four from one and six from the other, all four finishing at 605.
And the dummy question from “The Transportation Problem” can now be settled with a number. Price the dummy column at ten times the dearest real route — 160 rather than 0 — and re-solve the surplus table. The real shipping bill is 605 either way. Every feasible plan sends the same 10 units to the dummy, so the penalty adds a constant of 1600 to every plan and the cheapest one cannot move. What does move is the least-cost start, from 665 to 635, because that rule reads the cost table; the north-west start does not move at all, because it never reads one.