Transportation Problem
Transportation Problem
LINEAR PROGRAMMING
TRANSPORTATION PROBLEM
One important application of linear programming is in the area of physical distribution (transportation) of goods and services from several supply centres to several demand centres.
The objective is to determine the number of units of an item (commodity or product) which should be shipped from an origin to destination in order to satisfy the demanded quantity of goods and services at each destination centre, within the limited quantity of goods or services available at each supply centre, at the minimum transportation cost and/or time. The commodity transported from sources to destinations is a homogeneous commodity.
Demand Center 1/ Destination 1 Supply Center 1 / Source 1 Supply Center 2 / Source 2 Supply Center 3 / Source 3
Supply
c1
c2
c3
Demand
b1
b2
b3
b4
The transportation costs (in Rupees) per unit between factories and warehouses are given in the table below:
D1 S1 S2 S3 Demand 19 70 40 5 D2 30 30 8 8 D3 50 40 70 7 D4 10 60 20 14 Capacity 7 9 18 34
Now, let us formulate this transportation problem as a Linear Programming model to minimise the total transportation cost. Model Formulation
Let xij = number of units of the product to be transported from factory i (i=1,2,...m) to warehouse j (j = 1,2, ..., n) The objective function is: Minimize Z = 19 x11 + 30x12 + 50x13 + 10x14 + 70x21 + 30x22 + 40x23 + 60x24 + 40x31 + 8x32 + 70x33 + 20x34 (Z = Total transportation cost)
Demand constraints
x11 + x21 + x31 = 5 x12 + x22 + x32 = 8 x13 + x23 + x33 = 7 x14 + x24 + x34 = 14
Non-negativity condition
xij for i and j
The above LP model has (m x n) = 3 x 4 = 12 decision variables. And The above LP model has (m + n 1) = 3 + 4 -1 = 6 constraints. Where m is the number of rows and n is the number of columns in the general transportation table.
m i= 1
n CijXij j= 1
= ai; i = 1, 2, m (supply conditions) Sigma i=1 to m xij = bi; j = 1, 2, n (demand conditions) And Xij for all i and j
That is, the total capacity (or supply) must equal total requirement (demand). Any feasible solution for a transportation problem must have exactly (m+n-1) nonnegative basic variables (or allocations) xij satisfying rim conditions.
ai =
Sigma j=1 to n
bi
D2
Dn
Supply a1
X11
X11
X11
...
X11
:
Sm c11
:
c11 X11
:
... c11 X11 b2 ... ...
X11 bn
Total supply = Total demand
Demand bj
b1
Remarks
1. When the total supply equals total demand, the problem is called a balanced transportation problem, otherwise an unbalanced transportation problem. 2. When the number if positive allocations (values of the decision variable xij) at any stage of the feasible solution is less than the (m+n1), the solution is said to be degenerate, otherwise non-degenerate.
Warehouse (Demand)
Factory (Supply)
Cell
Total Requirement
(bi) Our aim is to satisfy demand using the available supply. Two possibilities exit: 1. Satisfy demand completely (bi moves into the cell) 2. Finish available stock and satisfy demand to the extent possible (aj moves into the cell).
Step 2:
a) If allocation made in step 1 is equal to the supply available at first source (a1, in first row), then move vertically down to cell (2,1) in the second row and first column and apply step 1 again, for next allocation.
b) If allocation made in step 1 equal to the demand of the first destination (b1 in first column), then move horizontally to the cell (1,2) in the first row and second column and apply Step 1 gain for next allocation.
Step 3:
Continue the procedure step by step till an allocation is made in the south-east corner cell of the transportation table.
D1
19 30
D2
50
D3
10
D4
Supply
S1
70
5
30
2
40 60
S2
40 8
6
70
3
20
S3 Demand 5 8
4 7
14 14
18
34
Step 1: Select the cell with the lowest unit cost in the entire transportation table and allocate as much as possible to this cell and eliminate (line out) that row or column in which either supply or demand is exhausted. If both a row and column are satisfied simultaneously, only one may be crossed out. In case the smallest unit cost is not unique, then select the cell where maximum allocation can be made.
Step 2: After adjusting the supply and demand for all uncrossed-out rows and columns repeat the procedure with the next lowest unit cost among the remaining rows and columns of the transportation table and allocate as much as possible to this cell and eliminate (line out) that row and column in which either supply or demand is exhausted. Step 3: Repeat the procedure until the entire available supply at various sources and demand at various destinations is satisfied.
D1
19 30
D2
50
D3
10
D4
Supply
S1
70 30 40 60
7 7
S2
40
2
8 70
7
20
S3
Demand
3 5
8 8 7
7 14
18
34
Total Cost = (7x10) + (2x70) + (7x40) + (3x40) + (8x8) + (7x20) = Rs. 814
Step 1: Calculate the penalties for each row/column by taking the difference between the smallest and next smallest unit transportation cost in the same row/column. This difference indicated the penalty or extra cost which has to be paid if one fails to allocate to the cell with the minimum transportation cost. Step 2: Select the row/column with the largest penalty and allocate as much as possible in the cell having the least cost in the selected row/column satisfying the rim conditions. If there is a tie in the values of the penalties, it can be broken by selecting the cell where maximum allocation can be made.
Step 3: Adjust the supply and demand and cross out the satisfied row/column. If a row and a column are satisfied simultaneously, only one of them is crossed out and the remaining row/column is assigned a zero supply (demand). Any row/column with zero supply or demand should not be used in computing future penalties. Step 4: Repeat steps 1 to 3 until the entire available supply at various sources and demand at various destinations are satisfied.
D1
19 30
D2
50
D3
10
D4
Supply
Row differences
9 9 40 40
S1
70
5
30 40 60
7 10 20 20 20
S2
40 8 70
7
20
9 12 20 50 -
S3
Demand
8 5 21 21 8 22 7 10 10
10 14 10 10
18
34
Column differences
10
10
10
50
2.
Make sure that the number of occupied cells is exactly equal to m+n-1, where m is the number of rows and n is the number of columns.
4.
5.
Assign plus (+) and minus (-) signs alternatively on each corner cell of the closed path just traced, beginning with the plus sign at unoccupied cell to be evaluated. Add the unit transportation costs associated with each of the cell traced in the closed path. This will give net change in terms of cost.
Distribution Centers
D A 4 3 3 6 5 9 E
450
F 8 2 6
350
G 6 5 5
250 250
Plant
B C
50
350
Demand
400
450
350
500
Initial basic feasible solution : 6 X 450 + 6 X 250 + 3 X 50 + 2 X 350 + 3 X 350 + 5 X 250 = 7350
Distribution Centers
D A 4+ 3 3+1
E 6 5 9
450
F 8 2 6
350
G 65 5+
251 249
Plant
B C
50
349
Demand
400
450
350
500
The increase in the transportation cost per unit quantity of reallocation is +4 6 + 5 3 = 0. This indicates that every unit allocated to route AD will neither increase nor decrease the transportation cost. Thus, such a reallocation is unnecessary.
Choose another unoccupied cell. The cell BE is empty so allocate one unit to it. Now draw a closed path from BE as shown below in table
Distribution Centers
D A 4 33+ 65 9 E
249
F 8 2 6
350
G 6+ 5 5249 251
Plant
B C
49
+1
351
Demand
400
450
350
500
The increase in the transportation cost per unit quantity of reallocation is +5 6 + 6 5 + 3 3 = 0. This indicates that every unit allocated to route BE will neither increase nor decrease the transportation cost. Thus, such a reallocation is unnecessary.
We must evaluate all such unoccupied cells in this manner by finding closed paths and calculating the net cost change as shown below.
Unoccupied cells CE CF AF BG Increase in cost per unit of reallocation +9 5 + 6 6 = 4 +6 3 + 3 2 = 4 +8 6 + 5 3 + 3 2 =5 +5 5 + 3 3 = 0 Remarks Cost Increases Cost Increases Cost Increases Neither increase nor decrease
Since all the values of unoccupied cells are greater than or equal to zero, the solution obtained is optimal. Minimum transportation cost is: 6 X 450 + 6 X 250 + 3 X 50 + 2 X 350 + 3 X 350 + 5 X 250 = Rs. 7350
MODI Method
Example
D1 S1 S2 S3 Demand
19 70 40 30 30 8
D2
50 40 70
D3
10 60 20
D4
Capacity 7 9 18
14
34
1.
D2
30 50
D3
10
7
D4
2
Supply
Plant
S2
S3
70
40
30
8
8
40
70
60
20
9
18
10
Demand
14
34
Here, m + n - 1 = 6. So the solution is not degenerate. Thus, an optimal solution can be obtained. The transportation cost at this stage is Rs.779
2. In order to calculate the values of uis (i-1,2,3,) and vjs (j=1,2,3,) for each occupied cell, we must arbitrarily assign v4=0 to simplify calculations.
Distribution Centers D1 S1 Plant S2 S3
Demand
D2
5
D3
50 40
7
D4
10 60 20
2
Supply
ui
u1 = 10 u2 = 60 u3 = 20
19 70 40
30 30 8
8
7 9 18
70
10
5
V1 = 9
8
V2 = -12
7
V3 = -20
14
V4 = 0
34
vj
2. The opportunity cost for each of the unoccupied cell is determined by using the relation dij = cij (ui + vj).
dij = cij (ui+vj)
Distribution Centers D1 S1 Plant S2 S3
Demand
D2
30
+32
D3
50
+60
D4
10
7 2
Supply
ui
u1 = 10 u2 = 60 u3 = 20
19 70
7 9 18
30
+1 -18
40
8
60 20
40
+21
70
+70
10
5
V1 = 9
8
V2 = -12
7
V3 = -20
14
V4 = 0
34
vj
According to the optimality condition for cost minimizing transportation problem, the current solution is not optimal, since the opportunity cost of the unoccupied cell are not all zero or positive. The value of d22 = -18 in cell (S2, D2) is indicating that the total transportation cost can be reduced in multiple of 18 by shifting an allocation to this cell.
Distribution Centers D1 S1 Plant S2 S3
Demand
D2
30
+32
D3
50
+60
D4
10
7 2
Supply
ui
u1 = 10 u2 = 60 u3 = 20
19 70
7 9 18
30
+1 -18
40
8
60 20
40
+21
70
+70
10
5
V1 = 9
8
V2 = -12
7
V3 = -20
14
V4 = 0
34
vj
Step 4:
Construct a closed-path (or loop) for the unoccupied cell with largest negative opportunity cost. Start the closed path with the selected unoccupied cell and mark plus sign (+) in this cell. Trace a path from this cell, along the rows (or columns) to an occupied cell, mark the corner with minus sign (-) and continue down the column (or row) to an occupied cell and mark the corner with plus sign (+) etc. Close the path back to the selected unoccupied cell.
A closed-loop(path) is traced along row S2 to an occupied cell (S3, D2). A plus sign is placed cell (S2, D2) and minus sign in cell (S3, D2). Now take3 a right-angle turn and locate an occupied cell in column D4. An occupied cell (S3, D4) exists at row S3, and a plus sign is placed in this cell. Continue the process and complete the closed path.
Distribution Centers D1 S1 Plant S2
19 70
+1
5
D2
30
+32
D3
50
+60
D4
10
7 2
Supply
ui
u1 = 10 u2 = 60
7 9
30
(+1)
40
-18
8
60
(-1)
S3
Demand
40
+21
8
(-1)
70
+70
20
10 (+1)
18
u3 = 20
5
V1 = 9
8
V2 = -12
7
V3 = -20
14
V4 = 0
34
vj
Step 5:
Select the smallest quantity amongst the cells marked with minus sign on the corners of the closed loop. Allocate this value to the selected unoccupied cell and add it to other occupied cells marked with plus sign and subtract it from the occupied cells marked with minus sign.
In order to maintain feasibility, examine the occupied cell with minus sign at the corners of closed loop, and select the one that has the smallest allocation. This determines the maximum number of units that can be shifted along the closed path.
Distribution Centers D1 S1 Plant S2
19 70
+19
5
D2
30
+32
D3
50
+42
D4
10
7 2
Supply
ui
u1 = 0 u2= 32
7 9
30
40
60
+18
S3
Dema nd
40
+11
70
+52
20
12
18 34
u3 = 10
5
V1 = 19
8
V2 = -2
7
V3 = 8
14
V4 = 10
vj
Since each dij is positive, the current basic feasible solution is optimal with minimum transportation cost. Transportation cost: (5x19) + (2x10) + (2x30) + (7x40) + (6x8) + (12x20) = Rs.743
Degeneracy
If the basic feasible solution of a transportation problem with m origins and n destinations has fewer than m + n 1 positive xij (occupied cells), the problem is said to be a degenerate transportation problem. Degeneracy can occur at two stages:
At the initial solution During the testing of the optimal solution
To resolve degeneracy, we make use of an artificial quantity (d). The quantity d is assigned to that unoccupied cell, which has the minimum transportation cost.
Example
Distribution Centers 1 A Plant B C Demand
2
4 3
2
2
6 2
3
2
4 1
4
4
3 0
Supply
900
800
500
400
For calculation purposes, the value of d is assumed to be zero. The use of d is illustrated in the following example.
Example
Distribution Centers 1 A Plant B C Demand
2
4 3
900
2
2
6 2
100
3
2
4 1
500
4
4
3 0
400
Supply
700
900
800
500
400
An initial basic feasible solution is obtained by VAM. Number of basic variables = m + n 1 = 3 + 4 1 = 6 Since number of basic variables is less than 6, therefore, it is a degenerate transportation problem.
Example
Distribution Centers 1 A Plant B C Demand
2
4 3
900
2
2
6 2
100
3
2
4 1
500
4
4
3 0
400
Supply
700
900
800+d
500
400
To resolve degeneracy, we make use of an artificial quantity(d). The quantity d is assigned to that unoccupied cell, which has the minimum transportation cost. The quantity d is so small that it does not affect the supply and demand constraints. In the above table, there is a tie in selecting the smallest unoccupied cell. In this situation, you can choose any cell arbitrarily. We select the cell C2 as shown in the following table.
The cell B1 is having the maximum improvement potential, which is equal to -2. The maximum amount that can be allocated to B1 is 700 and this will make the current basic variable corresponding to cell B2 non basic. The improved solution is shown in the following table.
Example
Distribution Centers 1 A Plant B C Demand
2
4 3
200
2
2
6 2
d 800
3
2
4 1
500
4
4
3 0
400
Supply
700
900
800
500
400
The optimal solution is 2 X 200 + 2 X 800 + 4 X 700 + 2 X d + 1 X 500 + 0 X 400 = 5300 + 2d. Notice that d is a very small quantity so it can be neglected in the optimal solution. Thus, the net transportation cost is Rs. 5300
i=
j=
But in certain situations, the total supply is not equal to the total demand. Thus, the transportation problem with unequal supply and demand is said to be unbalanced transportation problem.
Total supply < total demand. To solve the problem, we introduce an additional row with transportation cost zero indicating the unsatisfied demand.
The total demand is 1000, whereas the total supply is 800. Total supply < total demand. To solve the problem, we introduce an additional row with transportation cost zero indicating the unsatisfied demand.
Plant W1 A
50
Warehouse W2 17
450
Supply W3 26 16
50
28 19
250
12 0 250
0
200
0 500
250