Professional Documents
Culture Documents
AIBS
Transportation Problem
AIBS
Description
A transportation problem basically deals with the problem, which aims to find the best way to fulfill the demand of n demand points using the capacities of m supply points. While trying to find the best way, generally a variable cost of shipping the product from one supply point to a demand point or a similar constraint should be taken into consideration.
3
AIBS
AIBS
Transportation tableau
A transportation problem is specified by the supply, the demand, and the shipping costs. So the relevant data can be summarized in a transportation tableau. The transportation tableau implicitly expresses the supply and demand constraints and the shipping cost between each demand and supply point.
5
AIBS
Plant 1
Plant 2
$8
$9
$6
$12
$10
$13
$9
$7
35
50
Plant 3 Demand
(Million kwh)
$14 45
$9 20
$16 30
$5 30
40
Transportation Tableau
6
AIBS
Solution
1. Decision Variable: Since we have to determine how much electricity is sent from each plant to each city; Xij = Amount of electricity produced at plant i and sent to city j
AIBS
2. Objective function
Since we want to minimize the total cost of shipping from plants to cities; Minimize Z = 8X11+6X12+10X13+9X14 +9X21+12X22+13X23+7X24 +14X31+9X32+16X33+5X34
AIBS
3. Supply Constraints
Since each supply point has a limited production capacity; X11+X12+X13+X14 <= 35 X21+X22+X23+X24 <= 50 X31+X32+X33+X34 <= 40
AIBS
4. Demand Constraints
Each demand point has a demand ; X11+X21+X31 >= 45 X12+X22+X32 >= 20 X13+X23+X33 >= 30 X14+X24+X34 >= 30
10
AIBS
5. Sign Constraints
Since a negative amount of electricity can not be shipped all Xijs must be non negative; Xij >= 0 (i= 1,2,3; j= 1,2,3,4)
11
AIBS
AIBS
AIBS
Xij = number of units shipped from supply point i to demand point j i m j n min cijXij
i 1 j 1
j n
X
i 1
i m
ij
dj ( j 1,2,...,n)
AIBS
s d
i i 1 j 1
15
AIBS
16
AIBS
17
AIBS
ANOTHER EXAMPLE
MG Auto has three plants in Los Angeles, Detroit and New Orleans, and two major distribution centers in Denver and Miami. The capacities of the three plants during the next quarter are 1000, 1500, 1200 cars.The quarterly demand at the two distribution centers are 2300 and 1400 cars.
18
AIBS
The transportation cost per car on the different routes, rounded to the closest dollar are calculated as given below:
Let xij be defined as the no. of cars shipped from ith source to jth destination.
19
AIBS
Min Z = 80x11 + 215x12 + 100x21 + 108x22 + 102x31 + 68x32 st x11 + x12 <= 1000 x21 + x22 <= 1500 x31 + x32 <= 1200 x11 + x21 + x31 x12 + x22 >= 2300 +x32 >= 1400
20
AIBS
D2 c12
x12
Dn c1n
x1n
a1 Availability a2 am
c21
x21
c22
x22
c2n
x2n
cm1
xm1
cm2
xm2
cmn
xmn
21
Om
b1
b2
bn Requirement
AIBS
22
AIBS
AIBS
According to the explanations in the previous AIBS slide we can set x11=3 (meaning demand of demand point 1 is satisfied by supply point 1).
5 6 2 3 3 5 2 3 2 6 2 X 5 2 3
25
After we check the east and south cells, we saw that we can go east (meaning supply point 1 still has capacity to fulfill some demand).
3 2 X 6 2 X
3
AIBS
3
2 3
3
X 3 2
3
26
AIBS
After applying the same procedure, we saw that we can go south this time (meaning demand point 2 needs more supply by supply point 2).
3 2 3 2 X 1 2 X 3 X 2 3 2 1 X 3 X X 2 X X X 2
27
AIBS
Finally, we will have the following bfs, which is: x11=3, x12=2, x22=3, x23=2, x24=1, x34=2
2 3 2 1 2
X X X
28
AIBS
SHORTCOMINGS OF NWC METHOD The Northwest Corner Method does not utilize shipping costs. It can yield an initial bfs easily but the total shipping cost may be very high. The minimum cost method uses shipping costs in order come up with a bfs that has a lower cost.
29
AIBS
AIBS
An example for Minimum Cost Method Step 1: Select the cell with minimum cost.
2 3 5 6 5 2 1 3 5 10 3 8 4 6
15
12
6
31
AIBS
12
32
AIBS
Step 3: Find the new cell with minimum shipping cost and cross-out row 2
2 3 5 6 5 2 2 3 8 8 4 6 15 1 3 5 X
10
6
33
AIBS
Step 4: Find the new cell with minimum shipping cost and cross-out row 1
2 5 2 2 3 8 8 4 6 15 1 3 5 X 3 5 6 X
6
34
AIBS
Step 5: Find the new cell with minimum shipping cost and cross-out column 1
2 5 2 2 3 5 X X 4 6
35
6 X
1 8 8
5 X
10
AIBS
Step 6: Find the new cell with minimum shipping cost and cross-out column 3
2 5 2 2 3 5 X X 8
6 X
5 X
8 4 X
36
AIBS
Step 7: Finally assign 6 to last cell. The bfs is found as: X11=5, X21=2, X22=8, X31=5, X33=4 and X34=6
2 5 2 2 3 5 X X 8 8 4 X 4 6 X
37
6 X
5 X 6
AIBS
3. Vogels Method
1. 2. Begin with computing each row and column a penalty. The penalty will be equal to the difference between the two smallest shipping costs in the row or column. Identify the row or column with the largest penalty. Find the first basic variable which has the smallest shipping cost in that row or column. Then assign the highest possible value to that variable, and cross-out the row or column as in the previous methods. Compute new penalties and use the same procedure.
38
3. 4.
5.
6.
AIBS
15
78-15=63
15 15-6=9
5 80-7=73
5 78-8=70
39
AIBS
Step 2: Identify the largest penalty and assign the highest possible value to the variable.
Supply 6 5 15 80 78 15 78-15=63 7 8 5 8-6=2 Row Penalty
15 15-6=9
X _
5 78-8=70
40
AIBS
Step 3: Identify the largest penalty and assign the highest possible value to the variable.
Supply 6 5 15 80 7 5 78 15 _ 8 0 _ Row Penalty
15 15-6=9
X _
X _
41
AIBS
Step 4: Identify the largest penalty and assign the highest possible value to the variable.
Supply 6 0 15 5 80 7 5 78 15 _ 8 X _ Row Penalty
15 _
X _
X _
42
AIBS
Step 5: Finally the bfs is found as X11=0, X12=5, X13=5, and X21=15
Supply 6 0 15 15 Demand Column Penalty X _ X _ X _
43
Row Penalty _
7 5 80 5
8 X 78
EXAMPLE
TRANSPORTATION PROBLEM S1 S2 S3 10 12 4 2 7 14 20 9 16 11 20 18
AIBS
15 25 10
5 15 Demand
15
15
44
AIBS
Other examples
North DWest2 corner Rule D D3 D4 1
S1 10 S2 S3 15 5 10 25 12 7 9 20 5 15 5 10 4 14 16 18 10 5 15 Demand 15 15 2 20 11
The starting basic solution is x11 = 5, x12 = 10, x22 = 5, x23 = 15, x24 = 5, x34 = 10. The associated cost of the schedule is Z = 10 5 + 2 10 + 7 5 + 9 15 + 20 5 + 18 10 = 520. 45
Supply
AIBS
S1 10
S2 12
S3 4
5
2 15 20 11 0 15 7 9 15 2010 25 14 16 18
5
Supply
10
The starting basic solution is x12 = 15, x14 = 0, x23 = 15, x24 = 10, x31 = 5, x34 = 5. The associated cost of the schedule is Z = 2 15 + 11 0 + 9 15 + 20 10 + 46 4 5 + 18 5 = 475.
5 15 Demand
15
15
AIBS
S1 10 S2 12
2 7
15 0
20 9 16
15
11
15
15 8 9
10 25 2 2 11
Supply
20
S3 4 5 14
5 15
18 5 10
15
10 2 2
6 5 7 7 Demand7 7 2 The starting basic solution is x12 = 15, x22 = 0, x23 = 15, x24 = 10, x31 = 5, x34 = 5.
The associated cost of the schedule is Z = 2 15 + 7 0 + 9 15 + 20 10 + 47 4 5 + 18 5 = 475.
AIBS
Step 3 : For all the occupied (basic) variables xij solve the system of equations ui + vj = cij, starting with some ui = 0 and entering successively the values ui and vj on the transportation table. Step 4 : Compute the net evaluations cij zij = cij (ui + vj) for all the nonbasic cells and enter them in the corresponding cells. Step 5 : Examine the sign of each cij zij . If all cij zij >=0 then the current bfs is optimal . Otherwise select the unoccupied cell having the smallest negative net evaluation to enters the basic. Allocate an unknown quantity
to this cell .
48
AIBS
D1
D2
D3
D4
5- 5
10
10+
10
20
(16)
11
(-4)
15 u1 = 0
u2 = 5
Supply
2
3
12
20 5+
10 5 v1=10 15 v2=2
v15 3=4 v15 4=15 u2 + v4 = 20
49
u3 + v4 = 18
AIBS
Step 6 : Allocate a quantity to that cell and alternately subtract and add to and from the transition cells of the loop in such a way that the rim requirements remain satisfied. Step 7 : Assign a max value to in such a way that the value of one basic variable becomes zero and other basic variable remains non negative. The basic cell whose allocation has been reduced to zero , leaves the basis. The new values of the variable will remain nonnegative if x11 = 5 - 0 x22 = 5 - 0 x34 = 10 - 0 The maximum value of can be 5. Step 8: return to step 3 and repeat the procedure until an optimum basic feasible solution is obtained.
50
AIBS
10
20
(16)
11
(-4)
15 u1 = 0
u2 = 5
u3 = 3
Supply
2
3
12
15 10- 10 25
20
15=2 15 v =15 15 v2 v3=4 4 Demand Because each unit shipped through route (3,1) reduces the shipping cost
by 9(=c13 - u3+ v1), the total cost associated with the schedule is 9* 5 =45 less than the previous schedule. Thus the new cost is Z = 475.
51
AIBS
3 5 10
10
(13) (10) 5
20
(16) 15
11
10
15 u1 = 0
The starting basic solution is x12 = 5, x14 = 10, x22 = 10, x23 = 15, x31 = 5, x34 = 5. The associated cost of the schedule is Z = 435
52
Supply
2
3
12
4
7
14
20
(4)
25
10
u2 = 5
u3 = 7
(5) 16 (5) 18 5
AIBS
a b
i 1 i j1
Two Possibilities:
(1) Supply is less than the demand. Add a fictitious source with availability
b a
j1 j i 1
Assign zero cost of transportation from this source to any destination. Solve as usual TP.
53
AIBS
a b
j1
Assign zero cost of transportation from each source to that destination. Solve as usual TP.
Prohibited Routes.
If there is a restriction on the routes available for transportation , we assign a very large cost element M to each of such routes which are not available.
54
AIBS
S1
800 500
S2 4
a
i 1
5
2200
S3 8
400
4
400
4
800
900
b
j1
2500
500 400
55
AIBS
S1 S2 S3
D1 5 4 400 8
D2 8 7 4 400
0
D3 6 7 6 200
0
300
D4 6 6 100 6 300
0
v4=5
u1 = 0 u2 = 1 u3 = 1
SF 0
300 u4 = -5
AIBS
Maximization Problem
To solve a transportation problem where the objective is to maximize the total value or profit. All the values of the profit matrix are subtracted from the highest profit value in the matrix. After that the optimal solution is obtained as for the minimization problems. Finally the value of the objective function is determined with reference to the original profit matrix. If a maximization type of TP is unbalanced, then a dummy source or destination is introduced first and then it is converted into a minimization TP.
57
AIBS
X Y Z
A 180
Market A B C 12 18 6 8 7 10 14 3 11
B 320 C 100 D 400
D 25 18 20
Availability at warehouses:
X : 200
Y :500 Z :300
58
AIBS
X Y Z
u1 = 0
u2 = 11
u3 = 15
(-6)
v3= -1 v4=-4 v2=7 The optimal solution is: x12 = 200, x22 = 120, x23 = 100, x24 = 280, x31 = 180, x34 = 120. Z = 15,400 59
v1 = -4
180 320
100 400
AIBS
Unique vs Multiple Solutions: A transportation problem is optimal when all cij zij are greater than , or equal to zero. If all nonbasic cells are strictly positive, then it is unique.
If some cell has cij zij = 0 for a nonbasic cell, then multiple solutions exist i.e there exist a transportation pattern other than the one obtained which can satisfy all the rim requirements for the same cost.
Trace a closed loop beginning with the cell having cij zij = 0 and get the revised solution in the same way as a solution is improved.
60