A Level Further Mathematics · Chapter 71 · Decision Mathematics · Decision 2
Warehouses must supply shops at the least total cost, and a table of costs and a few careful moves lead straight to the cheapest plan.
Supermarkets, car makers and aid agencies all move goods from several sources to several destinations. This chapter finds the cheapest plan by starting with any sensible allocation and improving it, one route at a time, until no cheaper change remains.
In this chapter · jump to a section
Start here
Your route through this chapter
By the end of this chapter you will be able to:
- set up a transportation table and balance it with a dummy where needed
- find an initial solution by the north-west corner method and deal with degeneracy
- calculate shadow costs and improvement indices
- use the stepping-stone method to move goods and find θ
- iterate to an optimal solution and recognise when it is reached
- formulate a transportation problem as a linear programme
Time: three sessions, about 4 hours, plus the practice ladder and the exam workshop.
You need first: linear programming and the simplex algorithm, especially the idea of improving a solution step by step.
The big idea
The big idea
A transportation problem has suppliers with fixed amounts available, customers with fixed amounts required, and a cost for sending one unit along each route. The aim is to meet every demand at the least total cost.
This chapter uses three depots, A, B and C, supplying three shops, X, Y and Z. The unit costs, in pounds, and the amounts are shown below.
| X | Y | Z | Supply | |
|---|---|---|---|---|
| A | 8 | 7 | 4 | 30 |
| B | 12 | 3 | 6 | 40 |
| C | 6 | 9 | 12 | 20 |
| Demand | 20 | 45 | 25 | 90 |
The cheapest plan, found later in the chapter, costs £375. It sends almost everything along the cheap routes AZ, BY and CX. The starting plan from the north-west corner method costs £605, so the improvements save £230.
Sources and destinations
Each supplier, or source, has a fixed supply, and each customer, or destination, has a fixed demand. Goods can travel along any route from a source to a destination, at a known cost per unit.
The transportation table
The table has one row per source and one column per destination. Each cell holds the unit cost of its route, and later the number of units sent. Supplies are written at the ends of the rows and demands at the feet of the columns.
A special linear programme
A transportation problem is a linear programme with a special structure. That structure allows a faster method than the general simplex algorithm, working directly on the table. The method still moves from vertex to vertex, improving the cost each time.
The plan of attack
First balance the problem so supply equals demand. Then find an initial allocation. Then calculate improvement indices, and if any is negative, move goods around a loop to reduce the cost. Repeat until every index is zero or positive.
Why transportation problems matter
Logistics costs are a large part of many businesses' expenses. Even small percentage savings on transport can be worth millions. The method in this chapter, or its computer versions, is used daily to plan deliveries.
Units and costs
Supplies and demands are counted in units, such as pallets or tonnes. Costs are per unit, so the cost of sending 10 units along a route costing £4 is £40. The total cost is the sum over every route used.
Reading a problem in words
Transportation questions are often set in context: factories and warehouses, farms and markets, or power stations and towns. Identify the sources, the destinations, the amounts and the costs, and draw up the table before doing anything else.
Costs that are not per unit
If a question gives a total cost for a full load, convert it to a cost per unit before building the table. The method needs costs that scale with the amount sent. Mixing totals and unit costs gives meaningless results.
Section 1
Setting up and balancing
Balanced problems
A problem is balanced when total supply equals total demand. The depots supply units and the shops need , so this problem is balanced. The methods of this chapter need a balanced table.
Common mistake: forgetting to add a dummy row or column when total supply and total demand are not equal. The methods only work when supply equals demand. Excess supply goes to a dummy destination, and excess demand comes from a dummy source, with zero costs.
Balancing and the north-west corner
- Supply minus demand
- 5
- Cost of the initial solution
- 605
- Occupied cells
- 6 of 6 needed
Figure 71.1 changes C's supply. When supply exceeds demand, a dummy column appears to absorb the difference.
Excess supply
If supply exceeds demand, add a dummy destination whose demand is the excess. Units sent to it are simply not sent anywhere. Its costs are zero, because nothing is actually transported.
Excess demand
If demand exceeds supply, add a dummy source whose supply is the shortfall. Units from it represent demand that cannot be met. Its costs are zero, unless a penalty for unmet demand is given.
Reading a dummy in the answer
Units allocated to a dummy destination stay in the depot. Units allocated from a dummy source are shortages at the shop. State these clearly in the final answer, because they matter to the business.
Large costs as a penalty
Using M for a prohibited route works because any index involving M is hugely positive, so that route never enters. If the route is somehow in the starting solution, it will have a very negative index elsewhere driving it out.
Prohibited routes
Sometimes a route cannot be used, for example because of a road closure. Give it a very large cost, such as M, so the method never chooses it. Treat M as larger than any other cost when calculating indices.
Maximisation problems
If the table shows profits rather than costs, subtract every entry from the largest entry to turn it into a cost table. Minimising the new costs then maximises the original profits. This trick appears in allocation problems too.
Checking the table
Before starting, check that each row has the right supply and each column the right demand, and that the totals match. A slip here spoils every later step, and it is easy to catch now.
Where to put the dummy
A dummy destination becomes an extra column on the right; a dummy source becomes an extra row at the bottom. Placing it at the edge means the north-west corner method reaches it last, which matches the idea that it takes whatever is left over.
Dummies and the final plan
Read allocations to a dummy carefully. If the dummy shop receives 5 units from depot C, then C keeps 5 units. If a dummy depot sends 5 units to a shop, that shop is short by 5. Both are useful information for a manager.
Worked example 1: an unbalanced problem
Depot C's supply rises to 25. Balance the problem.
| Working | Reason |
|---|---|
| Supply , demand 90 | Compare the two totals |
| Excess supply of 5 | Supply exceeds demand by 5 |
| Add a dummy shop with demand 5 and zero costs | The dummy absorbs the extra supply |
Shortages from a dummy source
When demand exceeds supply, the dummy source's allocations show which shops go short. A manager might prefer to share shortages fairly, which the cheapest plan does not guarantee. Penalty costs on dummy routes can steer the shortages.
Worked example 2: what the dummy changes
Explain why the cheapest cost for the unbalanced problem is still £375.
| Working | Reason |
|---|---|
| The dummy route costs nothing | No goods actually travel |
| The 5 extra units stay at a depot | They are allocated to the dummy |
| The real shipments match the balanced optimum, £375 | Spare supply simply stays put |
Check yourself. For the original supplies 30, 40 and 20, is the problem balanced?
Show the answer
Supply is and demand is . The totals are equal, so the problem is balanced and needs no dummy.
The aim of a starting solution
A starting solution need only be feasible: it must meet every supply and demand. It does not need to be cheap. The improvement method will do the work of reducing the cost, so speed and simplicity matter more than quality here.
Section 2
The north-west corner method
Building an initial solution
Start in the top-left, or north-west, cell. Allocate as much as possible: the smaller of the remaining supply in its row and the remaining demand in its column. Then move right if the column is satisfied, or down if the row is used up.
Common mistake: leaving fewer than m + n − 1 occupied cells instead of placing a zero to deal with degeneracy. The later steps need exactly occupied cells. If a row and column are satisfied at the same time, place a 0 in an adjacent cell to keep the count right.
Following the method
For the depots and shops, AX takes 20, using all of X's demand. Move right: AY takes 10, using up A. Move down: BY takes 35, completing Y. Move right: BZ takes 5, using up B. Move down: CZ takes 20.
Cost of the initial solution
Multiply each allocation by its cost and add. Here . This is the starting cost, which later steps will reduce.
Why the method ignores costs
The north-west corner method uses only supplies and demands, never costs. It is quick and always gives a valid allocation, but rarely a cheap one. Its job is simply to give the improvement method a starting point.
Counting occupied cells
A table with rows and columns needs occupied cells. The depots and shops need , and the north-west corner gives exactly 5. With a dummy column, cells are needed.
Degeneracy
If an allocation uses up a row and a column at once, the method moves diagonally and one fewer cell is occupied. The solution is degenerate. Place a 0 in one of the cells next to the last allocation to restore the count.
Why the count matters
Shadow costs come from equations, one for each occupied cell. With cells there are just enough equations to find every shadow cost once one is fixed. With fewer, some shadow costs cannot be found.
Other starting methods
Other methods, such as choosing the cheapest cells first, often give better starting solutions. This chapter uses the north-west corner method, which is the one exam questions ask for, but any valid starting allocation can be improved.
Writing the allocations clearly
Write each allocation in its cell, larger than the cost, and leave empty cells blank. Some books circle allocations; others put costs in a corner. Any clear convention is fine as long as costs and amounts cannot be confused.
Checking the totals
After the north-west corner method, add each row and each column of allocations. Every row should total its supply and every column its demand. If any total is wrong, an allocation has been misplaced.
Degeneracy in practice
Degeneracy is common in small exam problems, because supplies and demands are often round numbers that match up. Always count the occupied cells after the initial solution and after every iteration, and add zeros where needed.
Moving through the table
The north-west corner method always moves right or down, never left or up. It visits at most cells on its way from the top-left to the bottom-right corner. That is exactly why it produces the right number of occupied cells when there is no degeneracy.
Worked example 3: the initial solution
Use the north-west corner method on the depots and shops, and find the cost.
| Working | Reason |
|---|---|
| AX 20, AY 10, BY 35, BZ 5, CZ 20 | Fill from the top-left corner |
| Five cells occupied, as | The solution is not degenerate |
| Cost | Multiply and add each route |
Why degeneracy causes trouble
With too few occupied cells, the shadow cost equations cannot all be solved: at least one or is left undetermined. Then some improvement indices cannot be calculated, and the method stalls. A zero allocation supplies the missing equation.
Where to place the zero
Place the zero in an empty cell that allows every shadow cost to be found. In the north-west corner method, the cell to the right of, or below, the last allocation usually works. It must not create a closed loop of occupied cells.
Worked example 4: counting cells with a dummy
For the unbalanced problem with a dummy shop, how many cells must be occupied, and does the north-west corner achieve this?
| Working | Reason |
|---|---|
| 3 rows and 4 columns | Including the dummy column |
| cells needed | This is the non-degenerate count |
| AX, AY, BY, BZ, CZ, C to dummy: 6 cells | The count is satisfied |
Check yourself. A table has 4 sources and 5 destinations. How many cells must be occupied?
Show the answer
The count is occupied cells, including any zeros placed to deal with degeneracy.
The meaning of an index
An improvement index answers a single question: if one unit is sent along this unused route, how much does the total cost change? A negative answer is a saving, a positive answer is an extra cost, and zero means no change.
Section 3
Shadow costs and improvement indices
Shadow costs
Give each row a shadow cost and each column a shadow cost , so that equals the cost of every occupied cell. Set and solve the equations one cell at a time.
Common mistake: calculating an improvement index as u + v − cost instead of cost − u − v, which reverses its sign. The index is the change in total cost per unit moved into an empty cell. It is cost minus minus , so a negative index means a saving.
Shadow costs and improvement indices
- Shadow costs u
- 0, −4, 2
- Shadow costs v
- 8, 7, 10
- Total cost
- 605
- Entering cell
- AZ
Figure 71.2 shows the shadow costs and improvement indices at each iteration, with the entering cell highlighted.
Finding the shadow costs
From and AX costing 8, . From AY, . Then BY gives , BZ gives , and CZ gives .
Improvement indices
For each empty cell, the improvement index is its cost minus minus . It measures how much the total cost changes for each unit sent along that route. Write the indices in the empty cells, in brackets.
The indices for the initial solution
AZ: . BX: . CX: . CY: . Two indices are negative, so the solution can be improved.
The entering cell
The cell with the most negative index enters the solution, because each unit sent there saves the most. Here AZ, with index , enters. If all indices are zero or positive, the solution is optimal.
Why the indices work
Moving one unit into an empty cell forces changes around a loop of occupied cells. The shadow costs are set up so that the net change in cost around the loop equals the improvement index. This saves tracing every loop.
Zero indices
An index of zero means sending goods along that route would not change the cost. At the optimum, a zero index shows there is another plan with the same cost. The problem then has more than one optimal solution.
Derivation: the improvement index equals the cost change around the loop
Moving one unit into empty cell adds its cost and then alternately subtracts and adds costs of occupied cells around the loop. Each occupied cost equals for its row and column, and these cancel in pairs around the loop, leaving
So the change in total cost per unit moved is
which is the improvement index.
An order for finding shadow costs
Work outwards from . Each occupied cell in a row with a known gives a ; each occupied cell in a column with a known gives a . Keep going until every and is known.
Negative shadow costs
Shadow costs can be negative, as shows. They are not real prices, just numbers chosen to make the equations work. Only the improvement indices, which combine them with the costs, have a direct meaning.
Setting u₁ = 0
Any one shadow cost can be fixed arbitrarily, because adding a constant to every and subtracting it from every leaves all the sums unchanged. Choosing is the usual convention and keeps answers comparable with mark schemes.
Shadow costs as prices
Shadow costs can be thought of as prices: is a charge for sending from source and a charge for delivering to destination . An index is negative when a route's real cost is below the sum of these charges.
Worked example 5: shadow costs
Find the shadow costs for the north-west corner solution.
| Working | Reason |
|---|---|
| ; , | From the occupied cells AX and AY |
| ; | From the cells BY and BZ |
| From the occupied cell CZ |
Ties between negative indices
If two cells share the most negative index, either may enter. The final optimal cost will be the same, though the route to it may differ. State which cell you chose and continue.
A sanity check on the indices
Occupied cells always have index zero, because there. If you calculate a non-zero index for an occupied cell, a shadow cost is wrong. This quick check catches most arithmetic slips.
Indices in a larger table
A table with 4 rows and 5 columns has 20 cells, 8 of them occupied, so 12 indices must be calculated each iteration. Set them out systematically, row by row, so none is missed.
Worked example 6: improvement indices
Calculate the improvement indices and choose the entering cell.
| Working | Reason |
|---|---|
| AZ , BX | Subtract both shadow costs from the cost |
| CX , CY | The other two empty cells |
| AZ enters, with the most negative index | It saves the most per unit |
Check yourself. What is the improvement index for the cell CX in the initial solution?
Show the answer
CX costs 6, with and . Its index is , so sending goods from C to X would save £4 per unit.
What θ represents
θ is the largest amount that can be moved into the entering cell without any allocation becoming negative. Moving less than θ would still lower the cost, but not by as much. So the full θ is always moved.
Section 4
The stepping-stone method
The route
Starting from the entering cell, find a closed route that moves alternately along rows and columns, turning only at occupied cells. Mark the entering cell +, the next −, and so on alternately around the route.
Common mistake: taking θ as the largest allocation in a cell marked − instead of the smallest, which makes an allocation negative. Every − cell loses θ units. If θ exceeds the smallest − allocation, that cell would become negative, which is impossible.
Choosing θ
- Correct θ
- 5
- Total cost
- 587
- Least allocation
- 2
Figure 71.3 moves goods around the route into AZ. The cost falls as θ grows, until a − cell would go negative at θ = 5.
Finding the route
For the entering cell AZ, the route is AZ, AY, BY, BZ and back to AZ. It turns at the occupied cells AY, BY and BZ. Each row and each column on the route contains exactly one + and one −.
Proof: the total cost falls by θ times the index
Moving θ units around the route for an empty cell with index changes the cost of each cell on the route by . Adding these changes and using the derivation above gives
so
A negative index and a positive θ therefore always lower the cost.
Choosing θ
θ is the smallest allocation in the cells marked −. On the route for AZ, the − cells are AY with 10 and BZ with 5. So θ is 5.
Moving the goods
Add θ to every + cell and subtract θ from every − cell. The cell whose allocation drops to zero leaves the solution. Row and column totals stay correct, because each has one + and one −.
The new cost
The total cost falls by θ times the magnitude of the improvement index. Moving 5 units into AZ saves , so the cost falls from 605 to 575. Checking this with the new table catches arithmetic slips.
Routes in larger tables
In larger tables the route may have six, eight or more cells. It still alternates between rows and columns and turns only at occupied cells. There is always exactly one such route for each empty cell in a non-degenerate solution.
Routes that skip cells
A route may pass over occupied cells without turning at them. It turns only where it needs to, at occupied cells that let it change direction. Cells passed over are not part of the route and do not change.
Drawing the route
Draw the route on the table with straight lines between the turning cells, and mark each turning cell + or −. Start with + at the entering cell. Examiners look for these signs as evidence of the method.
Routes for every empty cell
Every empty cell has its own stepping-stone route through the occupied cells. Only the entering cell's route is needed in each iteration, but finding routes for other cells is good practice and can check an index.
Worked example 7: the route and θ
Find the stepping-stone route for AZ and the value of θ.
| Working | Reason |
|---|---|
| Route AZ +, AY −, BY +, BZ − | Alternate along rows and columns |
| − cells hold 10 and 5 | AY and BZ lose goods |
| Take the smallest minus allocation |
Which cell leaves
The − cell whose allocation falls to zero leaves the solution and becomes empty. Here BZ drops from 5 to 0 and leaves. The entering cell AZ takes its place, so the number of occupied cells stays at five.
Interpreting the move
In words, the move sends 5 more units from A to Z and 5 fewer from A to Y. B then sends 5 more to Y and stops sending to Z. Every depot still sends its supply and every shop still gets its demand.
Worked example 8: the improved solution
Carry out the move and find the new cost.
| Working | Reason |
|---|---|
| AZ 5, AY 5, BY 40, BZ leaves | Add or subtract θ around the route |
| New table: AX 20, AY 5, AZ 5, BY 40, CZ 20 | Five occupied cells remain |
| Cost | Each unit moved saves 6 pounds |
Check yourself. If only 3 units were moved into AZ instead of 5, what would the total cost be?
Show the answer
Each unit saves 6, so moving 3 units saves 18. The cost would be , but moving the full 5 units saves more.
A cycle of steps
Each iteration repeats the same four steps: shadow costs, improvement indices, stepping-stone route, and the move of θ units. Laying out each iteration in the same order makes the work easier to follow and to mark.
Section 5
Iterating to the optimum
Recalculating after each move
After each move, recalculate the shadow costs and the improvement indices for the new table. The indices change, because the occupied cells have changed. Then choose the next entering cell, if any index is negative.
Common mistake: emptying both cells when two − cells tie for θ, leaving too few occupied cells. Only one cell should leave the solution. If two − cells reach zero together, keep a 0 in one of them so that cells stay occupied.
The second iteration
For the new table, the shadow costs are and . The indices are BX 8, BZ 6, CX and CY . CX has the most negative index, so it enters.
Checking each new table
After every move, check three things. Every row and column must still total correctly, there must be occupied cells, and the new cost must equal the old cost plus θ times the index. Any failure points to an arithmetic slip.
A tie for θ
The route for CX is CX +, CZ −, AZ +, AX −. The − cells hold 20 and 20, a tie. Moving θ = 20 empties both; keep a 0 in AX so that five cells remain occupied.
Is the optimum unique?
If every index at the optimum is strictly positive, the optimal plan is unique. If some index is zero, there are other plans with the same cost. Here all indices are positive, so £375 is achieved only by this plan.
Optimality
After the second move, the indices are BX 8, BZ 6, CY 4 and CZ 10, all positive. No change can reduce the cost, so the solution is optimal at £375.
Reading the optimal plan
The optimal table sends 5 from A to Y, 25 from A to Z, 40 from B to Y and 20 from C to X. The 0 in AX is kept only to deal with degeneracy, and it means nothing is sent there.
How many iterations?
There is no fixed number of iterations: it depends on the starting solution and the costs. Each iteration lowers the cost or keeps it the same, so the method always finishes. Exam problems usually need two or three.
Watching the cost fall
The first iteration saved 30 and the second saved 200. Savings vary because they depend on both the index and θ. A small index with a large θ can save more than a large index with a small θ.
When an index is zero at the optimum
At the optimum, if an empty cell has index zero, moving goods into it would not change the cost. Carrying out that move gives a different plan with the same cost. Exam questions sometimes ask for such an alternative optimum.
Worked example 9: the second iteration
Find the entering cell and θ for the second iteration.
| Working | Reason |
|---|---|
| ; | Shadow costs from the new table |
| CX index , the most negative | CX becomes the entering cell |
| Route CX +, CZ −, AZ +, AX −; θ = 20 | A tie between AX and CZ |
Presenting the final answer
Write the final table, state the cost, and describe the plan in words: which depot sends how much to which shop. Mention any dummy allocations. This turns a table of numbers into a decision someone can act on.
Computational effort
Each iteration needs the shadow costs, the indices for every empty cell, and one route. For a table with rows and columns there are empty cells, so the indices are the main work.
Worked example 10: the optimal solution
Complete the move and confirm optimality.
| Working | Reason |
|---|---|
| CX 20, AZ 25, AX 0, CZ leaves | Keep a zero in AX for degeneracy |
| Cost | Each unit moved saves 10 pounds |
| New indices 8, 6, 4, 10, all positive | So the solution is optimal |
Check yourself. How many iterations were needed to reach the optimum from the north-west corner solution?
Show the answer
Two iterations were needed: AZ entered first, then CX. After the second, every improvement index was positive, so the solution was optimal.
Why formulate at all?
Writing a transportation problem as a linear programme shows that it is a special case of a general method. It also lets computer solvers handle extra conditions, such as limits on individual routes, that the table method cannot easily include.
Section 6
Formulating as a linear programme
Decision variables
Let be the number of units sent from source to destination . There is one variable for every route, so a table with sources and destinations has variables.
Common mistake: using one variable for each source or destination instead of one for every route. The decisions are how much to send along each route. A variable for each depot cannot say where its goods go.
The objective
Minimise the total cost , adding the cost of every route times the amount sent. For the depots and shops this has nine terms, such as and so on.
Equations or inequalities?
For a balanced problem, every supply and demand is met exactly, so equations can replace the inequalities. For an unbalanced problem, use for supply and for demand, or add a dummy first and then use equations.
Supply constraints
Each source cannot send more than it has: , and similarly for B and C. For a balanced problem, these can be written as equations.
Demand constraints
Each destination must receive what it needs: , and similarly for Y and Z. Again, for a balanced problem these can be equations.
Non-negativity
Every , since goods cannot be sent backwards along a route. Together with the supply and demand constraints, this completes the linear programme.
Why use the special method?
The linear programme has nine variables and six constraints here, and could be solved by the simplex algorithm. The stepping-stone method exploits the special structure, making each iteration much quicker by hand.
Comparing with a greedy plan
A natural guess is to fill the cheapest cells first: BY at 3, then AZ at 4, then CX at 6. Here that greedy idea happens to give the optimal plan. It does not always, which is why the improvement indices are needed to prove optimality.
Worked example 11: checking optimality
The optimal table has AX 0, AY 5, AZ 25, BY 40 and CX 20. Confirm that it meets every supply and demand.
| Working | Reason |
|---|---|
| A: ; B: 40; C: 20 | Each depot sends its supply |
| X: ; Y: ; Z: 25 | Each shop gets its demand |
| Cost | Matches the optimal cost |
Why integer solutions come for free
When all supplies and demands are whole numbers, the stepping-stone method always produces whole-number allocations. This is because θ is always an existing allocation. So transportation problems never need the integer search of linear programming.
Transportation and network flows
A transportation problem can be drawn as a network, with sources on one side, destinations on the other, and a directed edge for each route. This links it to the flow problems studied later in Decision Mathematics, where capacities on edges also matter.
Counting constraints
The linear programme has one supply constraint for each source and one demand constraint for each destination, in all, plus non-negativity. For the depots and shops that is six main constraints and nine non-negativity conditions.
Worked example 12: the linear programme
Formulate the depots and shops problem as a linear programme.
| Working | Reason |
|---|---|
| Variables for 9 routes | One for every route |
| Minimise | Total cost over all routes |
| Supply rows ; demand columns | Add non-negativity for every route |
Check yourself. How many decision variables does a problem with 4 sources and 5 destinations have?
Show the answer
There is one variable for every route, so the problem has decision variables.
Reference
Results in this chapter
| Result | What it says | When to use it | In the formula booklet? |
|---|---|---|---|
| Add a dummy if supply ≠ demand | Balancing | Before starting | No, learn it |
| occupied cells | Non-degenerate solution | Checking a solution | No, learn it |
| in occupied cells | Shadow costs | Each iteration | No, learn it |
| Improvement index | Choosing the entering cell | No, derive it | |
| θ = least − allocation | Amount moved | Stepping-stone method | No, learn it |
| All indices ≥ 0 | Optimal solution | Stopping | No, learn it |
Reasoning
Modelling task: supplying building sites
The situation
A builders' merchant has three yards, A, B and C, holding 30, 40 and 20 tonnes of sand. Three building sites, X, Y and Z, need 20, 45 and 25 tonnes. Delivery costs per tonne, in pounds, are those in the big idea. The merchant wants to plan the deliveries as cheaply as possible.
Assumptions
Costs are proportional to the tonnes sent along each route, with no fixed charge for using a route. Lorries can carry any amount, and every yard can reach every site. Supplies and demands are fixed for the week.
These assumptions make the plan a balanced transportation problem with three sources and three destinations.
The model
The north-west corner method gives an initial plan costing £605. Two iterations of the stepping-stone method bring the cost down to £375, with every improvement index positive.
Results
The merchant should send 5 tonnes from A to Y, 25 from A to Z, 40 from B to Y and 20 from C to X. This costs £375, a saving of £230 on the initial plan.
Evaluating the model
Real deliveries use whole lorries, so the cost may jump in steps rather than rise smoothly with tonnes. A route used for only 5 tonnes might cost as much as a full load. The model would then need a fixed cost per lorry.
The model also ignores time: some sites may need sand urgently. Adding delivery deadlines would turn this into a scheduling problem as well as a transportation problem.
Your turn
Yard C finds 5 more tonnes of sand, so its supply rises to 25. How should the merchant change the plan, and what is the new cost?
Show a model answer
Supply now exceeds demand by 5, so a dummy site absorbs the extra 5 tonnes at zero cost. The real deliveries are unchanged, and the cost stays at £375, with 5 tonnes remaining at a yard.
Practice
Practice ladder
Rung 1: Recall and fluency
Q1. Write down the cost of the north-west corner solution for the depots and shops.
Worked solution to Q1
The allocation is AX 20, AY 10, BY 35, BZ 5 and CZ 20. Multiplying by the costs and adding gives pounds.
Q2. State the excess supply when C's supply is 25 instead of 20.
Worked solution to Q2
Total supply becomes , while demand is still 90. The excess supply is 5, which a dummy destination absorbs.
Q3. Give the number of occupied cells needed when a dummy column is added to the depots and shops table.
Worked solution to Q3
With the dummy, the table has 3 rows and 4 columns. A non-degenerate solution needs occupied cells.
Rung 2: Application
Q4. Determine the shadow costs for the north-west corner solution.
Worked solution to Q4
Setting , the occupied cells AX and AY give and . Then BY gives , BZ gives and CZ gives . So and , found one occupied cell at a time.
Q5. Identify the entering cell for the north-west corner solution, giving its index.
Worked solution to Q5
The indices of the empty cells are AZ , BX 8, CX and CY 0. The most negative is AZ, with index , so AZ enters.
Q6. Calculate θ for the entering cell AZ and the new total cost.
Worked solution to Q6
The route is AZ +, AY −, BY +, BZ −, and the − cells hold 10 and 5, so θ = 5. The cost falls by , from 605 to 575.
Rung 3: Analysis
Q7. Starting from the north-west corner, find the optimal cost after the stepping-stone method finishes.
Worked solution to Q7
The first iteration brings in AZ, lowering the cost to 575. The second brings in CX with θ = 20, saving 200, so the optimal cost is 375.
Q8. Explain how you know the table AX 0, AY 5, AZ 25, BY 40, CX 20 is optimal.
Worked solution to Q8
Its shadow costs give improvement indices of 8, 6, 4 and 10 for the empty cells. None is negative, so no move can reduce the cost and the table is optimal.
Q9. Calculate the number of decision variables in the linear programme for the depots and shops.
Worked solution to Q9
There is one variable for each route from a depot to a shop. With 3 depots and 3 shops, that gives variables.
Rung 4: Stretch
Q10. A student takes θ = 10 for the route into AZ. Explain what goes wrong.
Worked solution to Q10
BZ holds only 5, so subtracting 10 leaves it at , which is impossible. θ must be the smallest − allocation, 5.
Q11. A student calculates indices as . Which cell would they choose to enter, and why is this wrong?
Worked solution to Q11
With the sign reversed, BX shows , so the student would bring in BX. In fact BX has index 8, so sending goods there would raise the cost by 8 per unit.
Q12. With C's supply at 25 and a dummy column added, deduce the optimal cost.
Worked solution to Q12
The dummy absorbs the extra 5 tonnes at zero cost, and the real routes can be used exactly as before. The optimal cost is therefore still 375.
Exam practice
Exam technique and worked answer workshop
How these questions are marked
M1 marks go to a correct method: north-west corner allocation, solving for shadow costs, calculating indices, and finding the stepping-stone route. A1 marks go to correct allocations, indices, θ and costs. B1 marks go to statements such as balancing, degeneracy and optimality.
Always show the shadow costs and every improvement index, mark the route with + and −, and state θ. After each iteration, write the new table in full and its cost.
Exam question 1 (6 marks · Paper 4 · about 8 minutes)
Use the north-west corner method to find an initial solution for the depots and shops, and calculate its cost. State why the solution is not degenerate. (6)
Mark scheme for exam question 1
Starts at AX with 20 M1
AY 10, BY 35 A1
BZ 5, CZ 20 A1
Cost calculation M1
Cost 605 A1
Five cells, equal to B1
Exam question 2 (7 marks · Paper 4 · about 10 minutes)
For the north-west corner solution, calculate the shadow costs and the improvement index of every empty cell. Hence state the entering cell. (7)
Mark scheme for exam question 2
, , M1 A1
, , A1
Index formula cost − u − v M1
AZ −6, BX 8 A1
CX −4, CY 0 A1
AZ enters B1
Exam question 3 (6 marks · Paper 4 · about 8 minutes)
Use the stepping-stone method to bring AZ into the solution. Give the route, the value of θ, the new table and its cost. (6)
Mark scheme for exam question 3
Route AZ, AY, BY, BZ M1
Signs + − + − A1
θ = 5 A1
New table AX 20, AY 5, AZ 5, BY 40, CZ 20 M1 A1
Cost 575 A1
Exam question 4 (7 marks · Paper 4 · about 10 minutes)
Starting from the table found in exam question 3, complete the stepping-stone method to find the optimal solution and its cost, explaining how you know it is optimal. (7)
Mark scheme for exam question 4
New shadow costs M1
CX index −10, enters A1
Route CX, CZ, AZ, AX M1
θ = 20, zero kept in AX A1
Optimal table A1
All indices positive B1
Cost 375 A1
Exam question 5 (5 marks · Paper 4 · about 7 minutes)
Depot C's supply rises to 25. Explain how the problem must be adapted before the north-west corner method is used, and state the optimal cost. (5)
Mark scheme for exam question 5
Supply 95, demand 90 B1
Add a dummy column M1
Dummy demand 5, costs 0 A1
Six cells needed B1
Optimal cost still 375 A1
Exam question 6 (5 marks · Paper 4 · about 7 minutes)
In the second iteration, the − cells AX and CZ both hold 20. Explain what is meant by degeneracy and how it is handled here. (5)
Mark scheme for exam question 6
θ = 20 empties both cells M1
Only four cells would be occupied A1
Five needed, B1
Keep a 0 in one cell M1
Zero placed in AX A1
Exam question 7 (6 marks · Paper 4 · about 8 minutes)
Formulate the depots and shops problem as a linear programme, defining your variables and stating the objective and constraints. (6)
Mark scheme for exam question 7
units from depot to shop B1
Minimise total cost M1
Correct objective with nine terms A1
Supply constraints M1
Demand constraints A1
B1
Exam question 8 (5 marks · Paper 4 · about 7 minutes)
A student moves 10 units around the route into AZ. Find the least allocation that results, and explain the error in choosing θ. (5)
Mark scheme for exam question 8
BZ becomes M1
Least allocation −5 A1
Negative allocation impossible B1
θ must be the least − allocation M1
θ = 5 A1
Annotated model answer: exam question 2
Set . From AX and AY, and . M1 A1. From BY, ; from BZ, ; from CZ, . A1.
The improvement index is cost − u − v. M1. AZ gives and BX gives . A1. CX gives and CY gives . A1. The most negative is AZ, so AZ enters. B1.
Annotated model answer: exam question 4
With AX 20, AY 5, AZ 5, BY 40 and CZ 20, the shadow costs are and . M1. CX has index , the most negative, so it enters. A1. The route is CX +, CZ −, AZ +, AX −. M1.
Both − cells hold 20, so θ = 20, and a 0 is kept in AX to avoid degeneracy. A1. The new table is AX 0, AY 5, AZ 25, BY 40, CX 20. A1. Its indices are 8, 6, 4 and 10, all positive, so it is optimal, B1, with cost 375. A1.
Connections
Synoptic link
Linear programming and the simplex algorithm introduced the ideas of vertices, improvement and optimality tests; the stepping-stone method is a specialised simplex algorithm for transportation tables. The improvement indices play the role of the objective row.
Allocation problems, next, are transportation problems in which every supply and demand is 1. The Hungarian algorithm used there is quicker still for that special case.
Synoptic question 1. Explain how the improvement indices in a transportation table play the same role as the objective row in a simplex tableau.
Answer to synoptic question 1
Both measure the change in the objective per unit increase in a non-basic variable. A negative value shows an improving move, and when none is negative, the current solution is optimal.
Recap
Recap and next step
- Balance the table with a dummy row or column, with zero costs, if supply and demand differ.
- The north-west corner method gives a starting allocation; it must have occupied cells.
- Shadow costs satisfy in occupied cells, starting from .
- Improvement indices show the cost change per unit moved into an empty cell.
- Move θ, the least − allocation, around the stepping-stone route; repeat until no index is negative.
- As a linear programme, there is one variable per route, with supply and demand constraints.
Next chapter: Allocation problems, which assign workers to tasks one-to-one at the least cost.
For your exam board
This chapter covers Pearson Edexcel A Level Further Mathematics (9FM0) Decision Mathematics 2 section 1: transportation problems, balancing with dummies, the north-west corner method, degeneracy, shadow costs, improvement indices, the stepping-stone method, and formulating transportation problems as linear programmes. It is assessed on Paper 4D, Decision Mathematics 2. Similar content appears in AQA (7367) and OCR (H245) discrete options.