Transportation Problem

Work in progress. This note is still being written and incomplete.

1 min read Last updated Fri Aug 28 2026 11:38:57 GMT+0000 (Coordinated Universal Time)

Minimizes the cost of shipping a single commodity from mm supply points to nn demand points, given a per-unit shipping cost cijc_{ij} for every supply-demand pair.

minimize z=i=1mj=1ncijxij\text{minimize } z = \sum_{i=1}^{m} \sum_{j=1}^{n} c_{ij} x_{ij}

Subject to:

  • j=1nxijai\sum_{j=1}^{n} x_{ij} \le a_i for every supply point ii (supply capacity)
  • i=1mxijbj\sum_{i=1}^{m} x_{ij} \ge b_j for every demand point jj (demand requirement)
  • xij0x_{ij} \ge 0

Balanced Transportation Problem

Total supply equals total demand: iai=jbj\sum_i a_i = \sum_j b_j. Every constraint becomes an equality.

Necessary and Sufficient Condition for Feasibility

A feasible solution exists iff the problem is balanced.

Unbalanced Transportation Problem

Total supply and demand differ. Add a dummy supply point (if demand exceeds supply) or a dummy demand point (if supply exceeds demand) with 0 shipping cost, absorbing the excess, to rebalance it.

Maximization Transportation Problem

Convert to an equivalent minimization problem by negating every cost cijc_{ij} (or subtracting each from the largest cost in the matrix), then solve as usual.

Restricted Transportation Problem

A route is prohibited (e.g. no road between a supply and demand point). Assign it a very large cost MM, which drives xijx_{ij} to 0 in any optimal solution.

Was this helpful?