UNIHIVE

Study Hub UNIPORT ENG 401

ENG 401 · Engineering Mathematics VI (Mathematical Modelling and Operation Research)

Transportation and assignment problems

Allocating supply to demand at least cost, and assigning jobs to machines.

Our notes

2 min read

The 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 1Site 2Site 3Supply
Depot A46850
Depot B53770
Demand304050120

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 1Job 2Job 3
M1927
M2643
M3581
  1. Row reduction (subtract each row's minimum): M1 (−2): 7, 0, 5. M2 (−3): 3, 1, 0. M3 (−1): 4, 7, 0.
  2. Column reduction (column minimums 3, 0, 0): column 1 becomes 4, 0, 1.
  3. Matrix: M1: 4, 0, 5; M2: 0, 1, 0; M3: 1, 7, 0.
  4. 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

Watch

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.

All ENG 401 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.