Improves an initial basic feasible solution of a transportation problem to optimality.
Dual of a Transportation Problem
1 dual variable per supply point () and per demand point (). For every basic (occupied) cell:
UV (MODI) Method
- Set (or any starting value) and solve the equations for the occupied cells.
- For every unoccupied cell, compute the opportunity cost .
- If every , the solution is optimal. Stop.
- Otherwise, the most negative marks the entering cell.
Loop in a Transportation Table
A closed path of occupied cells (plus the entering cell) that alternates horizontal and vertical moves, turning only at occupied cells, and returns to the entering cell. Exactly one such loop exists for a given entering cell in a non-degenerate BFS.
- Alternate and signs around the loop, starting with at the entering cell.
- The minimum allocation among cells is shifted around the loop: added at cells, subtracted at cells.
- The cell with the minimum allocation leaves the basis (becomes 0/unoccupied).
Repeat the UV method on the new solution until every .
Alternate Optimal Solution
Occurs when an unoccupied cell has at optimality. Any allocation along its loop gives another solution with the same optimal cost.