Module II
Module II
Transportation Problem
28-10-2022 4
Prof. Shankarappa Kalgudi
Applications of Transportation Problems
• It is used to compute transportation routes in such a way as to
minimize transportation cost for finding out locations of
warehouses.
• Minimize shipping costs from factories to warehouses or from
warehouses to retail outlets.
• Determine lowest cost location for new factory, warehouse,
office or other outlet facility.
• Find minimum cost production schedule that satisfies firms
demand and production limitations.
DESTINATIONS (To)
D1 D2 D3 D4 Supply
SOURCES (From)
S1 19 30 50 10 7
S2 70 30 40 60 9
S3 40 8 70 20 18
Demand 5 8 7 14
D1 D2 D3 D4 Supply
SOURCES (From)
S1 19 30 50 10 7
S2 70 30 40 60 9
S3 40 8 70 20 18
Demand 5 8 7 14
D1 D2 D3 D4 Supply
SOURCES (From)
S1 19 30 50 10 7
S2 70 30 40 60 9
S3 40 8 70 20 18
Demand 5 8 7 14
S1 19 30 50 10 7
S2 70 30 40 60 9
S3 40 8 70 20 18
Demand 5 8 7 14
S1 19 30 50 10 10
S2 70 30 40 60 9
S3 40 8 70 20 17
Demand 5 11 6 14
S1 19 30 50 10 10
S2 70 30 40 60 9
S3 40 8 70 20 17
Demand 5 11 6 14
DESTINATIONS (To)
D1 D2 D3 D4 Supply
SOURCES (From)
S1 22 40 40 20 17
S2 60 40 50 50 10
S3 20 18 60 30 18
S4 12 10 16 33 09
Demand 15 18 7 14
S1 22 40 40 20 17
S2 60 40 50 50 10
S3 20 18 60 30 18
S4 12 10 16 33 09
Demand 15 18 7 14
S1 19 30 50 10 7
S2 70 30 40 60 9
S3 40 8 70 20 18
Demand 5 8 7 14
S1 19 30 50 10 7
S2 70 30 40 60 9
S3 40 8 70 20 18
Demand
5 8 7 14
Penalties
P1
P2
P3
P4
S1 19 30 50 10 7
S2 70 30 40 60 9
S3 40 8 70 20 18
Demand
5 8 7 14
O1 6 1 9 3 70
Origins (From)
O2 11 5 2 8 55
O3 10 12 4 7 70
Demand 85 35 50 45
O1 6 1 9 3 70
O2 11 5 2 8 55
O3 10 12 4 7 70
O4 (dummy) 0 0 0 0 20
Demand 85 35 50 45
Penalties
P1
P2
P3
P4
28-10-2022 Prof. Shankarappa Kalgudi 21
Problem no. 7 Find Transportation cost to given transportation problem
Destinations Capacity
D1 D2 D3 D4
S1 11 13 17 14 250
Sources
S2 16 18 14 10 300
S3 21 24 13 10 400
O1 11 13 17 14 250
O2 16 18 14 10 300
O3 21 24 13 10 400
Demand 200 225 275 250
Penalties
P1
P2
P3
P4
D1 D2 D3 D4 Supply
Origin (From)
M = No. of rows = 3
11 13 17 14 250 N= No. of columns = 4
O1
No. of allocations= 6
O2 16 18 14 10 300
O3 21 24 13 10 400
U1= 11 13 17 14
U2= 16 18 14 10
U3= 21 24 13 10
U1= 0 11 13 17 14
Hence, all Δij = Cij – (ui+vj) ≥ 0
U2= 5 16 18 14 10
F2 10 8 7 5
F3 13 3 9 12
F4 4 6 8 3
28-10-2022 Prof. Shankarappa Kalgudi 28
Solution: Formulated Transportation problem will be
Stores Capacity
S1 S2 S3 S4
F1 2 +2 4+2 6+2 11+2 50
Factory
P1
P2
P3
P4
To solve this problem, transform the profits to relative costs. This is done
by subtracting all the elements from the largest element in the matrix.
The solution procedure is same as that of minimization problem but the
total profit is calculated using the PROFIT MATRIX
Wholesaler a b c d e
A 9.5 9.5 9 8.5 8.5 PROFIT
Plant
A 0 0 0.5 1 1 5000
9 9 9.5 8.5 9
Ans: Rs 15500
28-10-2022 Prof. Shankarappa Kalgudi 43
Maximization problem (Problem 13)
F1 F2 F3 F4
S1 34-(3+15+10) 34-(9+18+9) 34-(5+14+12) 34-(4+13+9)
=6 = -2 =3 =8
S2 32-(1+15+10) 32-(7+18+9) 32-(4+14+12) 32-(5+13+9)
=6 = -2 =2 =5
S3 31-(5+15+10) 31-(8+18+9) 31-(3+14+12) 31-(6+13+9)
=1 = -5 =2 =3
28-10-2022 Prof. Shankarappa Kalgudi 46
Converting from
Maximization(Profit) matrix Maximization(Profit) matrix to
F1 F2 F3 F4 minimization (cost) matrix
S1 6 -2 3 8 F1 F2 F3 F4
S1 8-6 8-(-2) 8-3 8-8
S2 6 -2 2 5 =2 = 10 =5 =0
S3 1 -5 2 3 S2 8-6 8-(-2) 8-2 8-5
=2 = 10 =6 =3
S2 2 10 6 3 0 120
S3 7 13 6 5 0 150
P1
P2
P3
P4
P5
28-10-2022 Prof. Shankarappa Kalgudi 49
IBFS Solution by VAM techniques
F1 F2 F3 F4 F5 Demand
S1 2 10 5 0 0 80
S2 2 10 6 3 0 120
S3 7 13 6 5 0 150
M = No. of rows = 3
N= No. of columns = 5
No. of allocations=
3x5
project
project 1 project 2 project 3
Auditor 1 1200 1500 1900
Auditor 2 1400 1300 1200
Auditor 3 1600 1400 1500
Formulate this as transportation problem and find the optimal solution. Also find out
the maximization total billings during next month.
P1 P2 P3 P4 Supply
A1 700 400 0 1900 160 Minimization
A2 500 600 700 1900 160
Matrix
A3 300 500 400 1900 160
Demand 130 140 160 50 480
P1 P2 P3 P4 Ui
A1 700 400 160 0 1900 U1=-400
A2 500 110 600 700 50 1900 U2=100
A3 130 300 30 500 ∆ 400 1900 U3=0
=
28-10-2022 Prof. Shankarappa Kalgudi 58
Minimization problem (Problem 14)
3 11 14 12 10
4 9 9 8 9
Assign the modules to the different programmers in such a way that the total computing time is least
2 8 9 11 7 2
3
3 11 14 12 10
4
4 9 9 8 9
What are the job assignments which will minimize the total cost?
M1 M2 M3 M4
J1 0 1 5 9
J2 0 0 4 6
J3 0 0 0 7
J4 5 0 0 0
D 13 12 14 15
1 2 3 4 1 2 3 4
A 16 10 14 11 A
B 14 11 15 15 B
C 15 15 13 12 C
D 13 12 14 15 D
1 2 3 4 1 2 3 4
A A
B B
C C
D D
M4 14 8 12 7 8
M4 14 8 12 7 8
M5 0 0 0 0 0
(Dummy)
28-10-2022 Prof. Shankarappa Kalgudi 77
Travelling Salesman Problem (TSP)
Assuming a salesman has to visit n cities.
He wishes to start from a particular city, visit each
city once and then return to his starting point.
His objective is to select the sequence in which the
all cities are visited to minimize the total distance or
total travelling time.
These problems can be solved by using Hungarian
method.
28-10-2022 Prof. Shankarappa Kalgudi 78
Problem 1: A travelling salesman has to visit 5 cities. He wishes to
start from a particular city, visit each city once and then return to his
starting point. Cost of going from one city to another is shown below.
You are required to find the least cost route.
To city
A B C D E
A ∞ 4 10 14 2
From City B 12 ∞ 6 10 4
C 16 14 ∞ 8 14
D 24 8 12 ∞ 10
E 2 6 4 16 ∞
B 12 ∞ 6 10 4 B ∞
C 16 14 ∞ 8 14 C ∞
D 24 8 12 ∞ 10 D ∞
E 2 6 4 16 ∞
E ∞
A B C D E
Column A ∞
Minimization B ∞
C ∞
D ∞
E ∞
28-10-2022 Prof. Shankarappa Kalgudi 80
28-10-2022 Prof. Shankarappa Kalgudi 81
Problem 2: A machine operator processes five types of items on his
machine each week and must choose a sequence for them. The setup
cost per change depends on the items presently on the machine and
set-up to be made according to the following table.
To item
A B C D E
A ∞ 4 7 3 4
From item
B 4 ∞ 6 3 4
C 7 6 ∞ 7 5
D 3 3 7 ∞ 7
E 4 4 5 7 ∞
If he processes each type of item once and only once in week, how
should he sequence the items on his machine in order to minimize the
total set-up cost?
28-10-2022 Prof. Shankarappa Kalgudi 82
To item Row Minimization
A B C D E A B C D E
A ∞ 4 7 3 4 A ∞
From item
B 4 ∞ 6 3 4 B ∞
C 7 6 ∞ 7 5 C ∞
D 3 3 7 ∞ 7 D ∞
E 4 4 5 7 ∞
E ∞
A B C D E
Column A ∞
Minimization B ∞
C ∞
D ∞
E ∞
28-10-2022 Prof. Shankarappa Kalgudi 83
aecbda
Problem 3: Solve the travelling salesman problem using the
given data. C12=20, C13=4, C14=10, C23=5, C34=6,
C25=10, C35=6, C45=20 where Cij=Cji of there is no
route between i and j if a value for Cij is not shown.
Ans: 1-4-5-2-3-1
Solution: To city ∞ ∞
1 2 3 4 5 ∞
1
From city
2
3 ∞
4 ∞
5 ∞
28-10-2022 Prof. Shankarappa Kalgudi 84
To city To city
1 2 3 4 5 1 2 3 4 5
1 ∞ 20 4 10 ∞
1 ∞ ∞
From city
From city
2 20 ∞ 5 ∞ 10 ∞ ∞
2
3 4 5 ∞ 6 6 ∞
3
4 10 ∞ 6 ∞ 20
4 ∞ ∞
5 ∞ 10 6 20 ∞
5 ∞ ∞
Row minimization
To city Column Minimization
1 2 3 4 5
1 ∞ ∞
From city
2 ∞ ∞
3 ∞
4 ∞ ∞
5 ∞
28-10-2022
∞ Prof. Shankarappa Kalgudi 85
Solve Assignment Problem