D2 1.1 - The north-west corner method

D2 1.1 - The north-west corner method

You will read a transportation table, use the north-west corner method to obtain an initial basic feasible allocation, and calculate its cost without confusing quantities sent with unit costs.

Costs, supplies, demands and allocations

Could an algorithm send stock along a route costing 88 pounds per unit while a route costing 33 is still unused? The north-west corner method can. Its first job is to satisfy supplies and demands; finding the cheapest solution comes later.

You already know

A total cost is a unit cost multiplied by the quantity sent. A non-negative quantity can be zero. No earlier Decision Mathematics option content is needed for this lesson.

Rows represent supply points and columns represent demand points. In the following table, the middle entries are costs in pounds per unit, while the margins give quantities.

Supply pointPPQQRRSupply
AA886610102020
BB9977442525
CC3344223030
Demand151535352525

The total supply and demand are both 7575. This is a balanced transportation problem: all available stock can be assigned while meeting every demand exactly.

Feasible transportation allocation

An allocation specifies a non-negative quantity sent from each source to each destination. For a balanced exact-demand problem, each row sum equals that source's supply and each column sum equals that destination's demand.

The entry 66 in cell AQAQ is a cost, not an instruction to send six units. If an allocation sends 55 units there, its contribution to total cost is 6×5=306\times5=30 pounds.

[DIAGRAM: asset_name: Costs and allocations are separate tables; asset_slug: 9fm0-d2-180-costs-and-allocations; caption: Unit costs describe routes; allocations describe how many units are sent.; description: Two clearly labelled three-by-three tables with rows A,B,C and columns P,Q,R: left costs8,6,10;9,7,4;3,4,2, right allocations15,5,blank;blank,25,blank;blank,5,25, with supplies20,25,30 and demands15,35,25.]
Unit costs describe routes

Key idea

Check units first. Costs belong to routes; allocations must add to the supplies and demands. A feasible allocation is not automatically a minimum-cost allocation.

Use the same cell to distinguish all three quantities.

Following the north-west corner rule

Begin with the top-left cell of the table in its given row and column order. Allocate as many units as possible there, then update the remaining supply and demand before moving.

North-west corner method

At the current upper-left available cell, allocate the smaller of the remaining row supply and column demand. If the column demand is met, move right. If the row supply is exhausted, move down. If both are exhausted together, mark both complete, discard that row and column, and continue at the next north-west available cell. Continue until all supply and demand are assigned.

Use the original table order: do not sort costs or jump to a cheap cell. Each allocation finishes at least one remaining row or column. The resulting staircase is an initial basic feasible solution: it gives a starting allocation for a later improvement algorithm.

Not in the formula booklet: learn it.

Worked example 1: a complete allocation trace

Question. Apply the north-west corner method to supplies A:20,B:25,C:30A:20,B:25,C:30 and demands P:15,Q:35,R:25P:15,Q:35,R:25, in that order.

Plan. At each cell take the smaller remaining margin, then cross off the completed row or column.

CellAllocationRemaining row supplyRemaining column demandNext action
APAPmin⁡(20,15)=15\min(20,15)=155500Move right
AQAQmin⁡(5,35)=5\min(5,35)=5003030Move down
BQBQmin⁡(25,30)=25\min(25,30)=250055Move down
CQCQmin⁡(30,5)=5\min(30,5)=5252500Move right
CRCRmin⁡(25,25)=25\min(25,25)=250000Complete

Why send only 55 units from AA to QQ? The 1515 already sent to PP used part of AA's original supply; use the remainder, not 2020 again.

Answer. The non-zero allocations are

AP=15, AQ=5, BQ=25, CQ=5, CR=25AP=15,\ AQ=5,\ BQ=25,\ CQ=5,\ CR=25

All other cells are empty, representing no shipment.

Check. Row totals are 20,25,3020,25,30; column totals are 15,35,2515,35,25. All allocations are non-negative.

Worked example 2 transfers 55 units of available stock from BB to AA. Total supply and all demands remain unchanged.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account