Skip to content

Transportation Problem

Definition

The transportation problem chooses shipments xij≥0x_{ij}\ge0 from plants ii to distribution centres jj to minimize total transport cost. With unit costs cijc_{ij}, plant capacities sis_i, and required deliveries djd_j, a formulation is

min⁡∑i∑jcijxij,∑jxij≤si for every i,∑ixij=dj for every j.\begin{gathered} \min\sum_i\sum_j c_{ij}x_{ij},\\ \sum_jx_{ij}\le s_i\ \text{for every }i,\\ \sum_ix_{ij}=d_j\ \text{for every }j. \end{gathered}

The demand constraints can also be written as ∑ixij≥dj\displaystyle \sum_ix_{ij}\ge d_j: when every unit cost cijc_{ij} is positive, an optimal plan never delivers more than required, so both versions have the same optimal solutions.


Interpretation

The transportation problem decides how much to send along each route from origins with limited supply to destinations with given demand, so that the total transport cost is as small as possible. Each decision variable xijx_{ij} is the amount on one route, and every unit on that route costs cijc_{ij}.

Two plants with supplies 30 and 20 joined to three customers with demands 15, 20 and 15, with the shipments used in the optimal plan labelled by amount and unit cost.

The plants P1P_1 and P2P_2 have supplies 3030 and 2020, and the customers need 1515, 2020 and 1515. The thick edges are the routes in use, labelled amount @ unit cost: P1P_1 sends 1515 to C1C_1 and 1515 to C3C_3, and P2P_2 sends 2020 to C2C_2, for a total cost of 125125. Each customer receives exactly its demand, and the thin routes carry nothing.

Every variable appears in exactly two constraints, the supply constraint ∑jxij≤si\displaystyle \sum_jx_{ij}\le s_i of its origin and the demand constraint of its destination. Supplies use ≤\le because a plant need not use all of its capacity. Adding the demand constraints shows that a feasible plan needs total supply at least total demand, and since every route may be used, this is also enough. When capacity exceeds demand, as in the week 2 data in the Examples, some capacity stays unused.

The model is an ordinary linear program, solvable with the simplex method or Excel Solver. The same bookkeeping returns later in the assignment problem, where every supply and every demand equals 11.


Key Results

  • The decision variables are shipment quantities on routes.
  • Plant capacities are upper bounds rather than mandatory production amounts.
  • With positive unit costs, allowing deliveries above demand (≥dj\ge d_j instead of =dj=d_j) cannot improve the optimum.

Examples

The diagram is a separate balanced illustration with total supply and demand both 50. Its unit costs are 2,3,12,3,1 from P1P_1 to C1,C2,C3C_1,C_2,C_3 and 5,4,85,4,8 from P2P_2. Green-edge labels mean shipment quantity @ unit cost; their total is 15⋅2+15⋅1+20⋅4=12515\cdot2+15\cdot1+20\cdot4=125. The plan is optimal: moving one unit of a customer's delivery from P2P_2 to P1P_1 saves 5−2=35-2=3 for C1C_1, 4−3=14-3=1 for C2C_2 and 8−1=78-1=7 for C3C_3, so P1P_1's 30 units go to C3C_3 (15) and then C1C_1 (15), and P2P_2 supplies C2C_2. Because total supply equals total demand, every plant here also ships its full supply. For a feasible transportation LP with integer supplies and demands, an integral optimal shipment plan exists.

  • Week 2 course data: three plants with capacities 5,000, 6,000 and 2,500 (13,500 in total) serve destinations whose demands total 12,000, so at least 1,500 units of capacity stay unused; with the course's unit costs the optimal cost is 35,000.

Prerequisites

Sources

Aliases: transportation model, Hitchcock problem Symbols: sum

Last updated: 20 October 2026 03:02