Transportation Problem
Transportation Problem
[email protected]
March 13, 2023
Transportation Problem
2
Let us illustrate this by considering a transportation problem faced
by Foster Generators.
• This problem involves the transportation of a product from
three plants to four distribution centers. Foster Generators
operates plants in Cleveland, Ohio; Bedford, Indiana; and York,
Pennsylvania.
3
• The firm distributes its generators through four regional
distribution centers located in Boston, Chicago, St. Louis, and
Lexington.
4
The network representation of the foster generators problem.
5
figure 6.1
Transportation Problem cont..
6
• The amount of the supply is written next to each origin node,
and the amount of the demand is written next to each destination
node.
7
• For Foster’s transportation problem, the objective is to
determine the routes to be used and the quantity to be shipped via
each route that will provide the minimum total transportation
cost.
• The cost for each unit shipped on each route is given in the
table below and is shown on each arc in the figure.
Table 6.1
8
Transportation cost per unit for the foster generators transport
problem
9
Transportation Problem cont...
10
• Transportation Cost for units shipped from Cleveland
11
• Transportation problems need constraints because each origin has
a limited supply and each destination has a demand requirement.
• With the total number of units shipped from the Cleveland plant
expressed as x11 + x12 + x13 + x14 , the supply constraint for the
Cleveland plant is:
12
• With three origins (plants), the Foster transportation problem
has three supply constraints.
• Given the capacity of 6000 units at the Bedford plant and 2500
units at the York plant, the two additional supply constraints are;
13
• With the four distribution centers as the destinations, four
demand constraints are needed to ensure that destination demands
will be satisfied:
14
• Combining the objective function and constraints into one model
provides a 12-variable, 7-constraint linear programming formulation
of the Foster Generators transportation problem:
15
• Comparing the linear programming formulation to the network in
Figure 6.1 leads to several observations. All the information
needed for the linear programming formulation is on the network.
• Each node has one constraint, and each arc has one variable.
The sum of the variables corresponding to arcs from an origin node
must be less than or equal to the origin’s supply, and the sum of
the variables corresponding to the arcs into a destination node
must be equal to the destination’s demand.
16
• The solution to the Foster Generators problem (see Figure 6.2)
shows that the minimum total transportation cost is $39,500. The
values for the decision variables show the optimal amounts to ship
over each route.
• For example, with x11 =3500 units, which should be shipped from
Cleveland to Boston, and with x12 =1500 units to be shipped from
Cleveland to Chicago. Other values of the decision variables
indicate the remaining shipping quantities and routes.
17
The solution for the foster generators transportation problem
18
Transportation Problem
19
Transportation Problem
20
Remark
21
Mathematical Formulation
22
Diagram
23
The linear programming model representing the transportation
problem is given by
Pm Pn
Minimize Z= i=1 j=1 cij xij
24
The given transportation problem is said to be balanced if
Pm Pn
i=1 ai = j=1 bj
25
Definitions
26
Definitions
27
Optimal Solution
28
• The cells in the transportation table can be classified as
occupied cells and unoccupied cells. The allocated cells in the
transportation table is called occupied cells and empty cells and
the empty cells in a transportation table is called unoccupied cells.
• The improved solution of the initial basic feasible solution is
called optimal solution which is the second stage of the solution,
that can be obtained by MODI (modified distribution method).
29
North West Corner Rule
The steps involved in this method for finding the initial solution are
as follows
Step 1 starting with the cell at the upper left corner (North west)
of the transportation matrix we allocate as much as possible so
that either the capacity of the first row is exhausted or the
destination requires of the first column is satisfied ie.
x11 = min(a1 , b1 ).
Step 2 if b1 > a, we move down vertically to the second row and
make the second allocation of magnitude x22 = min(a2 , b1 − x11 )
in the cell (2,1).
30
if b1 < a1 , move right horizontally to the second column and make
the second allocation of magnitude x12 = min(a1 , x11 − b1 ) in the
cell (1,2)
if b1 = a1 there is a tie for the second allocation, we make the
second allocations of magnitude
Step 3 Repeat steps 1 and 2 moving down towards the lower right
corner of the transportation table until all the rim requirements are
satisfied.
31
Example
32
Solution
P P
Since ai = 34 = bj there exist a feasible solution to the
transportation problem. We obtain initial feasible solution as
follows.
The first allocation is made in cell (1,1) with the magnitude being
x11 = min(5, 7) = 5. The second allocation is made in the cell
(2,1) also with magnitude x21 = min(8, 7 − 5) = 2 and so on.
33
hence we get the initial basic feasible solution to the given
transportation problem as;
x11 = 5;x21 = 2;x22 = 6;x32 = 3;x33 = 4;x43 = 14
34
Total cost= 2×5+3×2+3×6+3×4+4×7+2×14
= 10+6+18+12+28+28
=102
35
Least Cost or Matrix Minima Method
The steps involved in this method for finding the initial solution are
as follows
Step 1 Determine the smallest cost in the cost matrix of the
transportation table. Let it be Cij . Allocate xxij = min(a1 , bj ) in
the cell (i,j).
Step 2 if xij = ai cross off the i th row of the transportation table
and decrease bj by ai . Then go to step 3.
if xij = bj cross off the j th column of the transportation table and
decrease ai by bj . Go to step 3.
if xij = ai = bj cross off either the i th row or the j th column but
not both.
36
Step 3 Repeat steps 1 and 2 for the resulting reduced
transportation table until all the rim requirements are satisfied.
Whenever the minimum cost is not unique, make an arbitrary
choice among the minima.
37
Example
38
Solution
P P
Since ai = 24 = bj , there exist a feasible solution to the
transportation problem using the steps in the least cost method.
The first allocation is made in the cell (3,1) with the magnitude
x31 = 4. Which satisfies the demand at the destination D1 and we
delete this column from the table as it is exhausted. The second
allocation is made in the cell (2,4) with magnitude x24 = 6. Since
it satisfies the demand at the destination D4 , it is deleted from the
table. From the reduced table the other allocations are done
similarly.
39
The solution is given by x12 = 6; x23 = 2; x24 = 6; x31 = 4; x33 = 6
40
Since the total number of occupied cell=5<m+n-1 we get a
degenerate solution.
41
Vogel’s Approximation Method(VAM)
The steps involved in this method for finding the initial solution are
as follows
Step 1 Find the penalty cost, namely the difference between the
smallest and next smallest costs in each row and column.
Step 2 Among the penalties as found in step(1) choose the
maximum penalty. If this maximum penalty is more than one
choose any one arbitrarily.
Step 3 In the selected row or column as by step(2) find out the
cell having the least cost. Allocate to this cell as much as possible
depending on the capacity and requirements.
42
Step 4 Delete the row or column which is fully exhausted. Again
compute the column and row penalties for the reduced
transportation table and then go to step(2). Repeat the procedure
until all the rim requirements are satisfied.
NB If the column is exhausted, the there is change in row penalty
and vice versa.
43
Example
44
Solution
P P
Since ai = bj = 950 we say the problem is balanced and there
is a feasible solution to the problem.
First we find the row and the column penalty PI as the difference
between the least and the next least cost. The maximum penalty is
5, now we choose the first column arbitrarily. In this column
choose the cell having the least cost name (1,1). Allocate to this
cell with minimum magnitude (ie. min(250,200)=200). This
exhausts the first column so we delete it. Then there is is a change
in row penalty PI and column penalty pII remains the same.
Continuing like this manner gives the remaining allocations.
45
Allocation 1
46
Allocation 2
47
Allocation 3
48
Allocation 4
49
Allocation 5
50
Allocation 6
51
Initial basic feasible solution
52
Optimality Test
• Once the initial basic feasible solution has been computed, the
next step in the problem is to determine whether the solution
obtained is optimum or not.
• Optimality test can be conducted to any initial basic feasible
solution of a transportation problem provided such allocations has
exactly m+n-1 non negative allocations. Where m is the number
of origins and n is the number of destinations. Also these
allocations must be in independent positions.
To perform this optimality test, we shall discuss the modified
distribution method (MODI).
53
MODI Method
54
Step 3 For each empty (unoccupied) cell, we find the sum u, and
v written in the bottom left corner of that cell.
Step 4 Find out for each empty cell the net evaluation value
∆ij = ci,j − (ui + vj) and which is written at the bottom right
corner of that cell. This step gives the optimality conclusion.
1. If all ∆ij > 0 (ie. all the net evaluation value) the solution is
optimum and a unique solution exist.
2. if ∆ij ≤ 0 then the solution is optimum, but an alternate
solution exists.
3. If at least one ∆ij < 0, the solution is not optimum. In this
case we go to the next step, to improve the total
transportation cost.
55
Step 5 Select the empty cell having the most negative value of
∆ij . From this cell we draw a closed path by drawing horizontal
and vertical lines with the corner cells occupied. Assign sign + and
- alternatively and find the minimum allocation from the cell
having negative sign. This allocation should be added to the
allocation having positive sign and subtracted from the allocation
having negative sign.
Step 6 The above step yield a better solution by making one (or
more) occupied cell as empty and one empty cell as occupied. For
this new set of basic feasible allocations repeat from the step(2)
till an optimum basic feasible solution is obtained.
56
Example
57
From the table above we see that the number of non-negative
independent allocations is 6=m+n-1=3+4-1
hence, the solution is non-degenerate basic feasible.
∴ the initial transportation cost
=11×13+3×14+4×23+6×17+17×10+18×9
=Rs 711
58
To find the optimal solution we apply Modi method in order to
determine the optimum solution. We determine a set of numbers
ui and vj for each row and column, with ui + vj = cij for each
occupied cell. To start with we give u2 = 0 as the 2nd row has the
minimum number of allocations.
59
u2 = 0
u2 + v1 = c21 = 17, 0 + v1 = 17
v1 = 17
u2 + v3 = c23 = 14, 0 + v3 = 14
v3 = 14
u2 + v4 = c24 = 14, 0 + v4 = 23
v4 = 23
u1 + v4 = c14 = 13, u1 = 13 − 23
u1 = −10
u3 + v3 = c33 = 18, u3 = 18 − 14
u3 = 4
u3 + v2 = c32 = 17, v2 = 17 − 4
v2 = 13
Now we have u1 = −10, u2 = 0, u3 = 4, v1 = 17, v2 = 13,
v3 = 14,and v4 = 23.
60
New Table
61
Now we find the of ui and vj for each empty cell and enter at the
bottom left corner of that cell.
62
Next we find the net evaluations ∆ij = Cij − (ui + vj) for each
unoccupied cell and enter at the bottom right corner of that cell.
63
Since all ∆ij > 0 the solution is optimal and unique. The optimum
solution is given by
x14 = 11, x21 = 6, x23 = 3, x24 = 4, x32 = 10, x33 = 9
The min. transportation cost is =
11×13=17×6+3×14+4×23+10×17+9×18
=Rs 711
64
Degeneracy in Transportation problem
65
The cells containing ϵ are treated like other occupied cells and
degenerate is removed by adding one (more) accordingly. For this
modified solution, we adopt the steps involved in MODI method
till an optimum solution is obtained.
66
Example
67
The initial transportation cost is
= 10×2+4×10+5×1+10×3+1×30=Rs 125
To find the optimal solution(MODI method) we sue the
above table to apply the MODI method. To start with we realise
that there is a maximum of 2 allocations in more than one row and
column, so we choose arbitrarily column 1, and assign a number 0
to this column (ie. v1 = 0). The remaining numbers can be
obtained as follows.
68
v1 = 0
u1 + v1 =2 u1 + 0 = 2, u1 = 2
u2 + v1 =4 u2 + 0 = 4, u2 = 4
u2 + v2 =1 4 + v2 = 1, v2 = −3
u3 + v 2 =3 u3 − 3 = 3, u3 = 6
u3 + v 3 =1 6 + v3 = 1, v3 = −5
69
New table
70
We find the sum of ui and vj for each empty cell and write it at
the bottom left corner of that cell. Find the net evaluations
∆ij =cij − (ui + vj) for each empty cell and enter at the bottom
right corner of the cell.
71
The solution is not optimal as the cell (3,1) has a negative ∆ij
value. We improve the allocation by making this cell (3,1) as an
allocated cell. We draw a closed path from this cell and assign sign
+ and - alternatively.
From the cell having negative sign we find the minimum allocation,
thus min(10,10)=10. Hence, we get two occupied cell (2,1),(3,2)
which becomes empty and cell (3,1) becomes occupied and this
results in a degenerate solution.
Thus, number of allocated cells=4 < m + n − 1 = 5
We get degeneracy. To resolve we add the empty cell (1,2) and
allocate ϵ > 0. This cell namely (1,2) is added as it satisfies the
two steps for resolving the degeneracy.
72
Degeneracy
73
We assign a number 0 to the first row, namely u1 = 0 we get the
remaining numbers as follows.
u1 = 0
u1 + v1 = 2, 0 + v1 = 2,
v1 = 2
u3 + v1 = 1, u3 + 2 = 1,
u3 = −1
u1 + v2 = 2, 0 + v2 = 2,
v2 = 2
u2 + v2 = 1, u2 + 2 = 1,
u2 = −1
u3 + v3 = 1, −1 + v3 = 1,
v3 = 2
u1 = 0, u2 = −1, u3 = −1, v1 = 2, v2 = 2, v3 = 2
74
New table
75
Next we find the sum ui and vj for the empty cell and enter at the
bottom left corner of that cell and also the net ∆ij = cij − (ui + vj )
for each empty cell and enter at the bottom right corner of the cell.
76
The modified solution is given in the following table. This solution
also optimal and unique as it satisfies the optimality condition that
all ∆ij >0
x11 = 10; x22 = 15; x33 = 30; x12 = ϵ; x31 = 10;
Total cost= 10×2+2×ϵ+15×1+10×1+30×1
=75+2ϵ
=Rs 75
77
Problem Variations
78
Total Supply Not Equal to Total Demand
79
CASE II: m n
P P
i=1 ai > j=1 bj
If the total supply is greater than the total demand then the
unbalanced transportation is problem can be converted into a
balanced one by adding a dummy destination (column) with zero
cost.The excess supply is entered as a rim requirement for the
dummy destination.
80
Example
81
P
Since the total demand bj = 215 is greater than the total
P
ai = 195 the problem is an unbalanced transportation problem.
We convert this into a balanced transportation problem by
introducing a dummy origin O4 with cost zero and giving supply
equal 215 − 195 = 20 units. Hence, we have the converted
problem as follows
82
83
Initial Solution table
84
There are 7 independent non-negative allocations equal to m+n-1.
hence, the solution is a non-degenerate one.
The total transportation
cost=6×65+5×1+5×30+2×25+4×25+7×45+20×0
=Rs 1010
85
To find the optimal solution we apply the MODI method to the
table above to get
86
sum of ui + vj
87
cij − (ui + vj )
88
Since not all ∆ij > 0 the solution is not optimal and cell (3,1) has
the most negative value of ∆ij we modify the solution by adding
and subtracting the min allocation given by the min (65,30,25).
While doing this the occupied cell (3,3) becomes empty.
89
90
New allocation
91
As the number of independent allocations are equal to m+n-1 we
check for optimality. First ui and vj values.
92
sum of ui and vj
93
cij − (ui + vj )
94
Since all ∆ij ≥ 0 the solution is optimal and an alternate solution
exists as ∆ij = 0. Therefore, the optimum allocation is given by
x11 = 40, x12 = 30, x22 = 5, x23 = 50, x31 = 25, x43 = 10 and
x14 = 20
The optimum transportation cost is
= 6×40+1×30+5×5+2×50+10×25+7×45+0×20
=Rs 960
95
Maximization Objective Function
96
Route Capacities or Route Minimums
• With x31 denoting the amount shipped from York to Boston, the
route capacity constraint for the York–Boston route would be
x31 ≤ 1000
97
Unacceptable Routes
98
A General Linear Programming Model
s.t.
Pn
j=1 xij ≤ si i= 1, 2,..., m Supply
Pm
i=1 xij = dj j= 1, 2,..., n Demand
xij ≥ 0 for all i and j.
99