ENG 401 · Engineering Mathematics VI (Mathematical Modelling and Operation Research)
Our notes
2 min readThe transportation problem
Ship goods from sources (supplies sᵢ) to destinations (demands dⱼ) at least total cost, with cost cᵢⱼ per unit. Balanced when total supply = total demand; otherwise add a dummy row or column at zero cost.
Worked example
Two depots supply three sites (trucks; cost in ₦ thousands per truck):
| Site 1 | Site 2 | Site 3 | Supply | |
|---|---|---|---|---|
| Depot A | 4 | 6 | 8 | 50 |
| Depot B | 5 | 3 | 7 | 70 |
| Demand | 30 | 40 | 50 | 120 |
North-west corner start: A-1: 30; A-2: 20; B-2: 20; B-3: 50.
Cost = 120 + 120 + 60 + 350 = 650.
Least-cost start: cheapest cell B-2 (3): 40. Next A-1 (4): 30. Site 3 needs 50: A sends its last 20, B its last 30.
Cost = 40 × 3 + 30 × 4 + 20 × 8 + 30 × 7 = 120 + 120 + 160 + 210 = 610.
Optimality test (MODI method)
For basic cells, uᵢ + vⱼ = cᵢⱼ. Set u_A = 0.
- A-1: v₁ = 4. A-3: v₃ = 8. B-3: u_B = 7 − 8 = −1. B-2: v₂ = 3 − (−1) = 4.
For empty cells, the reduced cost = cᵢⱼ − uᵢ − vⱼ:
- A-2: 6 − 0 − 4 = 2.
- B-1: 5 − (−1) − 4 = 2.
None negative: 610 is optimal.
Check: 4 basic cells = m + n − 1 = 2 + 3 − 1 = 4, as required. And supplies: A 30 + 20 = 50, B 40 + 30 = 70; demands 30, 40, 50 met.
The assignment problem
Assign n jobs to n machines (or people), one each, at least total cost or time.
Hungarian method: worked example
Times (hours):
| Job 1 | Job 2 | Job 3 | |
|---|---|---|---|
| M1 | 9 | 2 | 7 |
| M2 | 6 | 4 | 3 |
| M3 | 5 | 8 | 1 |
- Row reduction (subtract each row's minimum): M1 (−2): 7, 0, 5. M2 (−3): 3, 1, 0. M3 (−1): 4, 7, 0.
- Column reduction (column minimums 3, 0, 0): column 1 becomes 4, 0, 1.
- Matrix: M1: 4, 0, 5; M2: 0, 1, 0; M3: 1, 7, 0.
- Assign zeros, one per row and column: M1 → Job 2; M3 → Job 3; M2 → Job 1.
Total = 2 + 6 + 1 = 9 hours.
Check by listing all 6 assignments: 14, 20, 9, 10, 21, 16. The minimum is 9. Correct.
If the zeros cannot cover an assignment, draw the fewest lines covering all zeros, subtract the smallest uncovered number from uncovered cells, add it at intersections, and repeat.
Uses in engineering
Allocating trucks or pipelines from depots to sites, crews to jobs, machines to tasks.
Exams usually ask
- Find an initial solution by north-west corner and least cost, then test with MODI.
- Solve an assignment problem by the Hungarian method.
Common mistake
Forgetting to balance supply and demand before starting.
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Transportation theory (mathematics)
(opens en.wikipedia.org in a new tab)
Wikipedia, Transportation theory (mathematics), CC BY-SA 4.0 · licence
-
Assignment problem
(opens en.wikipedia.org in a new tab)
Wikipedia, Assignment problem, CC BY-SA 4.0 · licence
-
Hungarian algorithm
(opens en.wikipedia.org in a new tab)
Wikipedia, Hungarian algorithm, CC BY-SA 4.0 · licence
Watch
-
Best pick Transportation Problem//Least Cost Method// Vogels Approximation Method & North west Corner Method
13 min · ≈ 59 MB · about ₦33
(opens youtube.com in a new tab)
-
Unbalanced | VAM | Transportation Problem | Vogel's Approximation Method In case of Tie | Kauserwise
14 min · ≈ 63 MB · about ₦35
(opens youtube.com in a new tab)
-
Operations Research: Solving the Transportation Problem Using the Northwest Corner Method
6 min · ≈ 27 MB · about ₦15
(opens youtube.com in a new tab)
-
Vogel's Approximation Method (VAM) Method | Transportation Problem | Easiest Way
35 min · ≈ 158 MB · about ₦89
(opens youtube.com in a new tab)
We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.