All revision notes topics

Transportation problemsEdexcel A-Level Further Maths: Revision notes

Section 1

The transportation problem

A transportation problem moves a single product from mm sources (supplies) to nn destinations (demands) at a unit cost CijC_{ij} for each route, to minimise the total cost. Everything is shown in a transportation tableau: one row per source, one column per destination, with each cell showing the cost and the quantity sent. The problem is balanced when total supply equals total demand. A solution is a set of non-negative quantities satisfying every supply and demand. The cells that carry a quantity are occupied; the others are unoccupied. If the problem is not balanced add a dummy location (see below). A non-degenerate basic solution has exactly m+n−1m+n-1 occupied cells.

Key termstransportation problembalancedoccupied cell
Exam tip

Check totals first: if supply and demand differ, balance the problem before doing anything else.

Section 2

The north-west corner method

This gives an initial basic feasible solution without looking at costs. Start at the top-left (north-west) cell and send as much as possible, the smaller of the supply and the demand. Cross out the row or column that is used up, and move to the next cell (right if the row has stock left over, down if the column still needs stock). Repeat until everything is allocated. Example: supplies 20, 30, 25 and demands 15, 35, 25. W1S1 =min⁡(20,15)=15=\min(20,15)=15, W1S2 =5=5, W2S2 =30=30, W3S3 =25=25. With costs 4, 6, 3 and 2 per unit, the cost is 60+30+90+50=£23060+30+90+50=£230. Check each row and column total, and that the solution has m+n−1m+n-1 occupied cells.

Key termsnorth-west corner methodinitial basic feasible solution
Common mistake

Choosing cells by cost. The north-west corner method ignores costs; it only gives a start.

Exam tip

Tick off each row and column total as you go.

Section 3

Degeneracy and dummy locations

Degeneracy: if a solution has fewer than m+n−1m+n-1 occupied cells, it is degenerate. In the example above only 4 cells are occupied, because W2 and S2 ran out at the same time. To continue, place a quantity of 0 (sometimes written ε\varepsilon) in an unoccupied cell, chosen so that shadow costs can still be found (no closed loop of occupied cells), until there are m+n−1m+n-1 cells. Dummy locations: if supply exceeds demand, add a dummy destination taking the surplus; if demand exceeds supply, add a dummy source supplying the shortfall. All costs to or from a dummy are 0. A quantity sent to or from a dummy is not real: it is unused stock or an unmet demand.

Key termsdegeneracydummy
Common mistake

Giving dummy routes a cost other than 0.

Section 4

Shadow costs and improvement indices

To test whether a solution is optimal, find shadow costs RiR_i (one per source) and KjK_j (one per destination) so that for every occupied cell Ri+Kj=Cij,R1=0.R_i+K_j=C_{ij},\qquad R_1=0. The improvement index of each unoccupied cell is Iij=Cij−Ri−Kj.I_{ij}=C_{ij}-R_i-K_j. It is the change in total cost per unit if that cell is brought in. If every Iij≥0I_{ij}\ge0 the solution is optimal. If some are negative, the most negative cell is the entering cell. Example: occupied costs S1D1 4, S1D2 3, S2D2 5, S2D3 6, S3D3 4 give R=(0,2,0)R=(0,2,0) and K=(4,3,4)K=(4,3,4). For S2D1 (cost 5): I=5−2−4=−1<0I=5-2-4=-1<0, so it should enter.

Key termsshadow costimprovement indexentering cell
Common mistake

Using Ri+Kj−CijR_i+K_j-C_{ij} (the opposite sign) and so choosing the wrong cell.

Exam tip

Fill in shadow costs in order, starting from R1=0R_1=0 and following the occupied cells.

Section 5

The stepping-stone method

To bring a cell in, trace a closed loop that starts and ends at the entering cell and turns only at occupied cells, with alternating ++ and −- signs starting with ++ at the entering cell. Let θ\theta be the smallest quantity in a −- cell: it is added to the ++ cells and subtracted from the −- cells. A −- cell that falls to 0 is the exiting cell. Example: quarries A, B, C and sites X, Y, Z. Entering cell CX has I=−2I=-2. Loop: CX (+)(+), CZ (−)(-), BZ (+)(+), BY (−)(-), AY (+)(+), AX (−)(-). The minus cells hold 30, 35 and 20, so θ=20\theta=20 and AX exits. The cost falls by 20×2=£4020\times2=£40 from £540 to £500. Then recalculate shadow costs and indices. Repeat until no index is negative.

Key termsstepping-stone methodexiting cell
Common mistake

Taking θ\theta from a ++ cell. It is always the smallest quantity in the −- cells.

Exam tip

Check that each row and column total is unchanged after the move.

Section 6

Formulating as a linear program

Let xij≥0x_{ij}\ge0 be the amount sent from source ii to destination jj. For a balanced problem:

  • Objective: minimise ∑Cijxij\sum C_{ij}x_{ij}.
  • Supply constraints: for each source, ∑jxij=si\sum_j x_{ij}=s_i (row sums).
  • Demand constraints: for each destination, ∑ixij=dj\sum_i x_{ij}=d_j (column sums). For two depots P, Q and a dummy D supplying 30, 40, 10 to shops X, Y, Z needing 20, 25, 35: minimise 3xPX+5xPY+4xPZ+6xQX+2xQY+7xQZ3x_{PX}+5x_{PY}+4x_{PZ}+6x_{QX}+2x_{QY}+7x_{QZ} with xPX+xPY+xPZ=30x_{PX}+x_{PY}+x_{PZ}=30 and so on. There are mnmn variables and m+nm+n constraints, but only m+n−1m+n-1 are independent, which is why a basic solution has m+n−1m+n-1 occupied cells.
Key termslinear programming formulation
Exam tip

Dummy cells carry zero cost, so they vanish from the objective but stay in the constraints.

That's the notes covered.

Carry on to the next subtopic.

Exam questions on Transportation problems

  1. A company has three warehouses W1, W2 and W3 holding 20, 30 and 25 units of stock, and three shops S1, S2 and S3 needing 15, 35 and 25 units. The cost (£ per unit) of sending stock is: from W1, S1 £4, S2 £6, S3 £8; from W2, S1 £5, S2 £3, S3 £7; from W3, S1 £9, S2 £6, S3 £2. The north-west corner method is used to find an initial solution.
    Calculate the total cost of the north-west corner solution.2 marks
  2. In a transportation problem the sources are S1, S2 and S3 and the destinations are D1, D2 and D3. The occupied cells have unit costs S1D1 £4, S1D2 £3, S2D2 £5, S2D3 £6 and S3D3 £4. The unoccupied cells have unit costs S1D3 £8, S2D1 £5, S3D1 £9 and S3D2 £8. Shadow costs RiR_i (sources) and KjK_j (destinations) are found from Ri+Kj=CijR_i+K_j=C_{ij} for occupied cells with R1=0R_1=0, and the improvement index of an unoccupied cell is Iij=Cij−Ri−KjI_{ij}=C_{ij}-R_i-K_j.
    Find the improvement indices of the other three unoccupied cells. State whether the current solution is optimal and, if not, which cell should enter.2 marks
  3. Three quarries A, B and C supply 25, 45 and 30 tonnes of gravel to three building sites X, Y and Z, which need 20, 40 and 40 tonnes. The cost (£ per tonne) is: from A, X £3, Y £4, Z £9; from B, X £6, Y £6, Z £7; from C, X £2, Y £6, Z £6. The current solution sends 20 tonnes from A to X, 5 from A to Y, 35 from B to Y, 10 from B to Z and 30 from C to Z, at a total cost of £540.
    Using RA=0R_A=0, find the shadow costs RBR_B, RCR_C, KXK_X, KYK_Y and KZK_Z, and hence find the improvement index of the unoccupied cell CX.3 marks
See the full worksheet

Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).