Practice: The Transportation Model

Recognition · Interpretation

For the problem with supplies ( 30 , 40 , 30 ) , demands ( 35 , 25 , 40 ) and costs ( 8 6 10 9 12 13 14 9 16 ) , filling the cheapest cell first gives a feasible plan costing 1070 . The optimum costs 985 . Which statement accounts for the gap?

2 hints available, least help first.

Hint 1: Retrieval cue

Which cells does the cheapest-cell rule leave for Shop 3, once Depot A's stock has been committed?

Hint 2: Concept cue

Compare what each plan pays to serve Shop 3, and ask what the early saving on ( A , 2 ) cost later.

Direct application · Classification

Three depots hold 30 , 40 and 30 units. Three shops require 35 , 25 and 30 units. To write this as a balanced transportation model, a dummy demand point is added. How many units of demand does it carry?

Enter the value. It is checked against the answer and the precision this task asks for.

2 hints available, least help first.

Hint 1: Retrieval cue

Add the supplies; add the demands. Which total is larger?

Hint 2: Concept cue

The dummy absorbs the difference, so that the two totals agree.

Representation translation · Interpretation · Explanation

A 3 × 3 transportation problem has the optimal plan

x ∗ = ( 0 0 30 35 0 5 0 25 5 ) .

(a) Describe this plan as a flow on the bipartite network: which arcs carry flow, and what each node emits or absorbs.

(b) The plan uses five of the nine routes. Account for the number five from the network reading, not by counting the filled cells.

(c) A colleague proposes adding a sixth route to the plan while keeping it feasible. Say what the network reading predicts will happen, and what that corresponds to in the table.

(d) Name one question the table answers more directly than the network, and one the network answers more directly than the table.

Write your answer, then compare it with the worked solution.

2 hints available, least help first.

Hint 1: Retrieval cue

How many nodes does the bipartite graph have, and how many edges does a spanning tree on that many nodes carry?

Hint 2: Concept cue

Ask what happens to a tree when one more edge is added between nodes it already connects.

Compare with the worked solution

Comparing does not record a result. Judging your own written answer cannot show that you can do this without help.

(a) As a flow. Five arcs carry flow: A → 3 with 30 , B → 1 with 35 , B → 3 with 5 , C → 2 with 25 , C → 3 with 5 . The left nodes emit 30 , 40 and 30 ; the right nodes absorb 35 , 25 and 40 . Checking node by node: A emits 30 on its single arc; B emits 35 + 5 = 40 ; C emits 25 + 5 = 30 . Shop 1 absorbs 35 ; Shop 2 absorbs 25 ; Shop 3 absorbs 30 + 5 + 5 = 40 . (b) Why five. A basis is a spanning tree of the bipartite graph. The graph has m + n = 3 + 3 = 6 nodes, and a spanning tree on 6 nodes has 5 edges. So a basic plan uses m + n − 1 = 5 arcs. The count comes from the tree structure, not from the grid: it is one fewer than the number of nodes, which is also why one of the six equality constraints is redundant. The five arcs here do form a tree: A → 3 , B → 3 , C → 3 , B → 1 , C → 2 connect all six nodes with no cycle. (c) Adding a sixth arc. In a graph, adding an edge to a spanning tree creates exactly one cycle. So the sixth route completes a unique closed loop through arcs already carrying flow. Flow can then be pushed around that loop, increased on some arcs, decreased on others, while every node's balance is preserved, so the plan stays feasible but is no longer basic. In the table this is the closed loop the transportation simplex traces: entering a cell and alternately adding and subtracting a quantity around a rectangle-like path of filled cells. The network reading explains why such a loop exists and why it is unique, which the table presents as a rule to follow. (d) What each answers directly. The table answers feasibility and cost more directly: balance is a comparison of two margin totals, checking a plan is m + n additions along rows and columns, and the whole cost structure is visible at once for comparing routes. The network answers structural questions more directly: why a basis has m + n − 1 arcs, why adding an arc creates exactly one cycle, and how the model extends to transshipment through intermediate nodes or capacities on individual arcs. The table has no natural place to record an intermediate point.

A complete answer does each of these:

  • reads both representations

Recognition · Error diagnosis

Two depots hold 10 units each. Three shops need 10 , 5 and 5 units. Unit shipping costs are

( 6 3 5 8 2 6 ) ,

with rows for depots and columns for shops.

A learner fills the cheapest cell first throughout: 5 units on ( B , 2 ) at cost 2 , then 5 on ( A , 3 ) at 5 , then 5 on ( A , 1 ) at 6 , then 5 on ( B , 1 ) at 8 , for a total of 105 . They report this as the minimum.

Which response identifies the error?

2 hints available, least help first.

Hint 1: Retrieval cue

Check first whether total supply equals total demand, then compare the two plans' costs.

Hint 2: Concept cue

Once depot A's stock goes to shop 3, which depot must serve the rest of shop 1, and at what cost?

Construction · Integration · Explanation

A brewery supplies three bars from two breweries. Brewery P can supply 80 kegs this week and brewery Q can supply 50 . The bars need 60 , 45 and 40 kegs. Delivery costs per keg are:

Bar 1Bar 2Bar 3
P476
Q859

A bar that is short buys from a wholesaler instead, at a premium over the brewery price of £3 per keg for Bar 1, £6 for Bar 2 and £2 for Bar 3.

(a) Write the transportation model for this situation, stating what each variable counts.

(b) Test the balance condition and say what it implies.

(c) Restore balance, stating which side the dummy goes on, how large it is, and what each of its cost entries means. Say what setting them all to zero would assert.

(d) The supplies, demands and the shortfall are all whole numbers of kegs. State what this guarantees about the optimal plan, and name one change to the situation that would remove the guarantee.

Write your answer, then compare it with the worked solution.

3 hints available, least help first.

Hint 1: Retrieval cue

Total the supplies and total the demands before writing anything else.

Hint 2: Concept cue

The dummy goes on whichever side is short. Ask what a unit shipped from or to the dummy represents in the brewery's week.

Hint 3: Strategy cue

For the dummy's costs, ask what actually differs between a keg delivered and a keg not delivered. The brewery price is paid in both cases.

Compare with the worked solution

Comparing does not record a result. Judging your own written answer cannot show that you can do this without help.

(a) The model. Let x i j be the number of kegs delivered from brewery i ∈ { P , Q } to bar j ∈ { 1 , 2 , 3 } this week.

min 4 x P 1 + 7 x P 2 + 6 x P 3 + 8 x Q 1 + 5 x Q 2 + 9 x Q 3

subject to the supply family

x P 1 + x P 2 + x P 3 = 80 , x Q 1 + x Q 2 + x Q 3 = 50 ,

the demand family

x P 1 + x Q 1 = 60 , x P 2 + x Q 2 = 45 , x P 3 + x Q 3 = 40 ,

and x i j ≥ 0 . (b) Balance. Total supply is 80 + 50 = 130 ; total demand is 60 + 45 + 40 = 145 . They differ, so no x satisfies both families at once and the model as written is infeasible. This is structural: summing the supply equations and summing the demand equations both give the total shipped, so the two totals must agree for any feasible plan to exist. (c) Restoring balance. Demand exceeds supply by 145 − 130 = 15 kegs, so the shortage is on the supply side and a dummy supply point of 15 kegs is added. Shipping from the dummy to bar j represents j going short by that many kegs and buying from the wholesaler. Its cost entries are the premiums: 3 to Bar 1, 6 to Bar 2, 2 to Bar 3. These are the right numbers because the brewery price is paid either way; what differs between serving a keg and not serving it is the premium. Setting all three to zero would assert that going short costs nothing. The model would then be indifferent about which bar is left unserved, and would choose to short whichever bar is most expensive to deliver to, here Bar 3 from Q at 9, or Bar 1 from Q at 8, regardless of what the shortfall actually costs the business. Since the premiums differ substantially ( 6 for Bar 2 against 2 for Bar 3), zeros would produce a materially wrong plan. (d) Integrality. The supplies ( 80 , 50 , 15 ) and demands ( 60 , 45 , 40 ) are integers, and the constraint matrix of a transportation problem is totally unimodular. Each variable appears in exactly one supply constraint and one demand constraint, with coefficient 1 in both. Every basic feasible solution is therefore integral, so the optimal plan delivers whole kegs with no integrality constraint imposed and nothing to round. A change that would remove the guarantee: a constraint linking several routes, such as a limit on the total number of kegs leaving P and Q together on Monday deliveries. That adds a row whose column entries fall outside the supply/demand split, breaking the structure that gives total unimodularity, and whole-keg answers would then need an integer program. (Per-route capacities such as x P 1 ≤ 50 would not break it; simple bounds preserve total unimodularity.) A second acceptable answer: quoting delivery by the lorry-load rather than per keg makes the objective nonlinear in x , so the model is not a transportation problem at all.

A complete answer does each of these:

  • writes both constraint families
  • tests balance
  • restores balance correctly
  • reads both representations
  • scopes the integrality guarantee
Practice data

Your practice record is stored in this browser only. Clearing it removes every answer and every scheduled review, and cannot be undone.

Results update as you type. Use the up and down arrow keys to move between results, Enter to open one, and Escape to close.

Type to search.

Settings

Appearance

Interface density

Your record

Your progress is stored in this browser and nowhere else: an identifier, the answers you have given, the mastery states and review schedule derived from them, and the lesson you last opened. Clearing it makes you a new learner on this device. It cannot be undone, and it will not affect your appearance or density settings.

Focus timer

Focus--minutes remaining

Phase

Kept in this browser only, and used to label the session in your own history.

Today

Nothing recorded yet. Finish a focus session and it will appear here.

Settings

Focus sessions between long breaks.

Sessions you are aiming for in a day.

Notifications

Your history

Sessions are stored in this browser and nowhere else. They are not evidence and never reach your mastery record.