Operation Research
Operation Research
Getting Started
The transportation problem is a special type of linear programming problem where the
objective is to minimize the cost of distributing a product from a number of sources or origins to a number
of destinations.
A firm has 3 factories located at A, E, and K which produce the same product. There are four
major product district centers situated at B, C, D, and M. Average daily product at A, E, K is 30, 40, and 50
units respectively. The average daily requirement of this product at B, C, D, and M is 35, 28, 32, 25 units
respectively. The cost in Rs. of transportation per unit of product from each factory to each district centre is
given below:
Factories B C D M Supply
A 6 8 8 5 30
E 5 11 9 7 40
K 8 9 7 13 50
Demand 35 28 32 25
The problem is to determine the name of product, no. of units of product to be transported from each
factory to various district centres at minimum cost .
Factories B C D M Supply
K x31 x 32 x 33 x 34 50
Demand 35 28 32 25
Xij = No. of unit of product transported from ith factory to jth district centre.
subject to :
x11 + x12 + x13 + x14 = 30
x21 + x22 + x23 + x24 = 40
x31 + x32 + x33 + x34 = 50
x11 + x21 + x31 = 35
x12 + x22 + x32 = 28
x13 + x23 + x33 = 32
x14 + x24 + x34 = 25
xij 0
Feasible condition:
Total supply = total demand.
Or ai = bj.
The North West corner rule is a method for computing a basic feasible solution of a
transportation problem where the basic variables are selected from the North – West corner ( i.e., top left
corner ).
Steps
1. Select the north west (upper left-hand) corner cell of the transportation table and allocate as many
units as possible equal to the minimum between available supply and demand requirements, i.e.,
min(s1, d1).
2. Adjust the supply and demand numbers in the respective rows and columns allocation.
3. If the supply for the first row is exhausted then move down to the first cell in the second row.
4. If the demand for the first cell is satisfied then move horizontally to the next cell in the second
column.
5. If for any cell supply equals demand then the next allocation can be made in cell either in the next
row or column.
6. Continue the procedure until the total available quantity is fully allocated to the cells as required.
Example:
Retail shops
Factories 1 2 3 4 Supply
1 3 5 7 6 50
2 2 5 8 2 75
3 3 6 9 2 25
Demand 20 20 50 60
Solution:
Table 1
Retail shops
Factories 1 2 3 4 Supply
1 3 20 5 20 7 10 6 50
2 2 5 8 40 2 35 75
3 3 6 9 2 25 25
Demand 20 20 50 60
Starting from the North west corner, we allocate x11 = 20. Now demand for the first column is satisfied,
therefore, eliminate that column.
Proceeding in this way, we observe that x12 = 20, x13 = 10, x23 = 40, x24 = 35, x34 = 25.
Steps
2. If there are two or more minimum costs, select the row and the column corresponding to the lower
numbered row.
3. If they appear in the same row, select the lower numbered column.
4. Choose the value of the corresponding xij as much as possible subject to the capacity and
requirement constraints.
Example:
Retail shops
Factories 1 2 3 4 Supply
1 3 5 7 6 50
2 2 5 8 2 75
3 3 6 9 2 25
Demand 20 20 50 60
Solution:
Table 1
Retail shops
Factories 1 2 3 4 Supply
1 3 5 20 7 30 6 50
2 2 20 5 8 2 55 75
3 3 6 9 20 25 25
Demand 20 20 50 60
We observe that c21 =2, which is the minimum transportation cost. So, x21 = 20.
Proceeding in this way, we observe that x24 = 55, x34 = 5, x12 = 20, x13 = 30, x33 = 20.
Steps
1. Identify the boxes having minimum and next to minimum transportation cost in each row and write
the difference (penalty) along the side of the table against the corresponding row.
2. Identify the boxes having minimum and next to minimum transportation cost in each column and
write the difference (penalty) against the corresponding column
3. Identify the maximum penalty. If it is along the side of the table, make maximum allotment to the
box having minimum cost of transportation in that row. If it is below the table, make maximum
allotment to the box having minimum cost of transportation in that column.
4. If the penalties corresponding to two or more rows or columns are equal, select the top most row
and the extreme left column.
Example:
Consider the transportation problem presented in the following table:
Destination
Origin 1 2 3 4 Supply
1 20 22 17 4 120
2 24 37 9 7 70
3 32 37 20 15 50
Solution:
Table 1
Destination
1 20 22 40 17 4 120 80 13
2 24 37 9 7 70 2
3 32 37 20 15 50 5
The highest penalty occurs in the second column. The minimum cij in this column is c 12 (i.e., 22). Hence,
x12 = 40 and the second column is eliminated.
Table 2
Destination
1 20 22 40 17 4 80 120 13
2 24 37 9 7 70 2
3 32 37 20 15 50 5
Penalty 4 - 8 3
The highest penalty occurs in the first row. The minimum cij in this row is c14 (i.e., 4). So x14 = 80 and the
first row is eliminated.
Final table
Now we are assuming that you can calculate the values yourself.
Destination
2 24 10 37 9 30 7 30 70 2 2 2 17 24 24
3 32 50 37 20 15 50 5 5 5 17 32 -
4 15 8 3
4 - 8 3
8 - 11 8
Penalty
8 - - 8
8 - - -
24 - - -
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.
A degenerate basic feasible solution in a transportation problem exists if and only if some partial sum of
availability’s (row(s)) is equal to a partial sum of requirements (column(s)).
Example:
Dealers
Factory 1 2 3 4 Supply
A 2 2 2 4 1000
B 4 6 4 3 700
C 3 2 1 0 900
Solution:
Here, S1 = 1000, S2 = 700, S3 = 900
R1 = 900, R2 = 800, R3 = 500, R4 = 400
To resolve degeneracy, we make use of an artificial quantity(d). The quantity d is so small that it does not
affect the supply and demand constraints.
Degeneracy can be avoided if we ensure that no partial sum of s i (supply) and rj (requirement) are the
same. We set up a new problem where:
si = si + d i = 1, 2, ....., m
rj = rj
rn = rn + md
Table 1
Dealers
Factory 1 2 3 4 Supply
Substituting d = 0.
Table 2
Dealers
Factory 1 2 3 4 Supply
B 4 6 700 40 3 700
To find the optimum solution, you can use any one of the following:
MODI Method.
Example:
Warehouses
Plant W1 W2 W3 Supply
A 28 17 26 500
B 19 12 16 300
Solution:
The total demand is 1000, whereas the total supply is 800.
Total demand > total supply.
So, introduce an additional row with transportation cost zero indicating the unsatisfied demand.
Warehouses
Plant W1 W2 W3 Supply
A 28 17 26 500
B 19 12 16 300
Now, solve the above problem with any one of the following methods:
Try it yourself.
A firm has three factories X, Y and Z. It supplies goods to four dealers spread all over the country. The
production capacities of these factories are 200, 500 and 300 per month respectively.
Factory A B C D Capacity
X 12 18 6 25 200
Y 8 7 10 18 500
Z 14 3 11 20 300
Solution:
Maximization transportation problem can be converted into minimization transportation problem by
subtracting each transportation cost from maximum transportation cost.
Here, the maximum transportation cost is 25. So subtract each value from 25.
Table 1
Factory A B C D Capacity
X 13 7 19 0 200
Y 17 18 15 7 500
Z 11 22 14 5 300
Now, solve the above problem by any one of the following methods:
Try it yourself.
Steps
Step 1
Determine an initial basic feasible solution using any one of the following:
Step 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.
Step 3
Select an unoccupied cell.
Step 4
Beginning at this cell, trace a closed path using the most direct route through at least three occupied cells
used in a solution and then back to the original occupied cell and moving with only horizontal and vertical
moves. The cells at the turning points are called "Stepping Stones" on the path.
Step 5
Assign plus (+) and minus (-) signs alternatively on each corner cell of the closed path just traced, starting
with the plus sign at unoccupied cell to be evaluated.
Step 6
Compute the net change in the cost along the closed path by adding together the unit cost figures found in
each cell containing a plus sign and then subtracting the unit costs in each square containing the minus
sign.
Step 7
Check the sign of each of the net changes. If all the net changes computed are greater than or equal to
zero, an optimum solution has been reached. If not, it is possible to improve the current solution and
decrease the total transportation cost.
Step 8
Select the unoccupied cell having the most negative net cost change and determine the maximum number
of units that can be assigned to a cell marked with a minus sign on the closed path corresponding to this
cell. Add this number to the unoccupied cell and to all other cells on the path marked with a plus sign.
Subtract this number from cells on the closed path marked with a minus sign.
Step 9
Repeat the procedure until you get an optimum solution.
Example 1:
Consider the following transportation problem (cost in rupees)
Depot
Factory D E F G Capacity
A 4 6 8 6 700
B 3 5 2 5 400
C 3 9 6 5 600
Requirement 400 450 350 500 1700
Solution:
First, find out an initial basic feasible solution by Matrix Minimum Method
Table 1
Depot
Factory D E F G Capacity
B 3 50 5 2 350 5 400
Table 2
The cell AD (4) is empty so allocate one unit to it. Now draw a closed path from AD.
This indicates that every unit allocated to route AD will neither increase nor decrease the transportation
cost. Thus, such a reallocation is unnecessary.
Table 3
Choose another unoccupied cell. The cell BE is empty so allocate one unit to it.
Now draw a closed path from BE
This indicates that every unit allocated to route BE will neither increase nor decrease the transportation
cost. Thus, such a reallocation is unnecessary.
CE +9 – 6 + 6 – 5 = 4 Cost Increases
CF +6 – 3 + 3 – 2 = 4 Cost Increases
AF +8 – 6 +5 – 3 + 3 – 2 = 5 Cost Increases
Distributor
Factory D E F Supply
A 2 1 5 10
B 7 3 4 25
C 6 5 3 20
Requirement 15 22 18 55
Solution:
First, find out an initial basic feasible solution by Matrix Minimum Method.
Table 1
Distributor
Factory D E F Supply
A 2 1 10 5 10
B 7 13 3 12 4 25
C 62 5 3 18 20
Requirement 15 22 18 55
The cell AD (2) is empty so allocate one unit to it. Now draw a closed path.
Table 2
The increase in the transportation cost per unit quantity of reallocation is:
+ 2 – 1 + 3 – 7 = - 4.
AF +5 – 1 + 3 – 7 + 6 – 3 = 3 Cost
Increases
CE +5 - 3 + 7 – 6 = 3 Cost
Increases
BF +4 – 7 + 6 – 3 = 0 Cost
Increases
This indicates that the route through AD would be beneficial to the company. The maximum amount that
can be allocated to AD is 10 and this will make the current basic variable corresponding to cell AE non
basic.
Table 3
Distributor
Factory D E F Supply
A 2 10 1 5 10
B 73 3 22 4 25
C 62 5 3 18 20
Requirement 15 22 18 55
Since the reallocation in any other unoccupied cell cannot decrease the transportation cost, the minimum
transportation cost is:
2 * 10 + 7 * 3 + 3 * 22 + 6 * 2 + 3 * 18 = Rs.173
STEPS
Step 1
Determine an initial basic feasible solution using any one of the three methods given below:
Step 3
Compute the opportunity cost using cij – ( ui + vj ).
Step 4
Check the sign of each opportunity cost. If the opportunity costs of all the unoccupied cells are either
positive or zero, the given solution is the optimum solution. On the other hand, if one or more unoccupied
cell has negative opportunity cost, the given solution is not an optimum solution and further savings in
transportation cost are possible.
Step 5
Select the unoccupied cell with the smallest negative opportunity cost as the cell to be included in the next
solution.
Step 6
Draw a closed path or loop for the unoccupied cell selected in the previous step. Please note that the right
angle turn in this path is permitted only at occupied cells and at the original unoccupied cell.
Step 7
Assign alternate plus and minus signs at the unoccupied cells on the corner points of the closed path with
a plus sign at the cell being evaluated.
Step 8
Determine the maximum number of units that should be shipped to this unoccupied cell. The smallest
value with a negative position on the closed path indicates the number of units that can be shipped to the
entering cell. Now, add this quantity to all the cells on the corner points of the closed path marked with
plus signs and subtract it from those cells marked with minus signs. In this way an unoccupied cell
becomes an occupied cell.
Step 9
Repeat the whole procedure until an optimum solution is obtained.
Example:
A company is spending Rs. 1000 on transportation of its units from these plants to four distribution
centres. The supply and requirement of units, with unity cost of transportation are given as:
Distribution centres
D1 D2 D3 D4 Supply
P1 19 30 50 12 7
Plants P2 70 30 40 60 10
P3 40 10 60 20 18
Requirement 5 8 7 15
Solution:
Now, solve the above problem by Matrix Minimum Method.
Table 1
Distribution centres
D1 D2 D3 D4 Supply
P1 19 30 50 12 7 7
Plants P2 70 3 30 40 7 60 10
P3 40 2 10 8 60 20 8 18
Requirement 5 8 7 15
Substituting u1 = 0, we get
u1 + v4 = c14 0 + v4 = 12 or v4 = 12
u2 + v4 = c24 u2 + 12 = 60 or u2 = 38
u2 + v3 = c23 38 + v3 = 40 or v3 = 2
u3 + v4 = c34 u3 + 12 = 20 or u3 = 8
u3 + v2 = c32 8 + v2 = 10 or v2 = 2
u3 + v1 = c31 8 + v1 = 40 or v1 = 32
Table 2
Distribution centres
D1 D2 D3 D4 Supply ui
P1 19 30 50 12 7 7 0
Plants P2 70 3 30 40 7 60 10 38
P3 40 2 10 8 60 20 8 18 8
Requirement 5 8 7 15
vj 32 2 2 12
Table 3
Distribution centres
D1 D2 D3 D4 Supply ui
–13 28 48
P1 19 30 50 12 7 7 0
Plants P2 70 3 –10
30 40 7 10
60 10 38
P3 40 2 10 8 50
60 20 8 18 8
Requirement 5 8 7 15
vj 32 2 2 12
Table 4
Choose the smallest negative value from opportunity cost (i.e., –13). Now draw a closed path from P1D1 .
Choose the smallest value with a negative position on the closed path(i.e., 2), it indicates the number of
units that can be shipped to the entering cell. Now, add this quantity to all the cells on the corner points of
the closed path marked with plus signs and subtract it from those cells marked with minus signs. In this
way an unoccupied cell becomes an occupied cell.
Table 5
Distribution centres
D1 D2 D3 D4 Supply ui
P1 19 2 28
30 61
50 12 5 7 0
Plants P2 70 3 –23
30 40 7 –3
60 10 51
13
P3 40 10 8 63
60 20 10 18 8
Requirement 5 8 7 15
vj 19 2 –11 12
Distribution centres
D1 D2 D3 D4 Supply ui
P1 19 5 8
30 28
50 12 2 7 0
33
Plants P2 70 30 3 40 7 30
60 10 18
23
P3 40 10 5 40
60 20 13 18 –2
Requirement 5 8 7 15
vj 19 12 22 12
Since all the current opportunity costs are non–negative, this is the optimum solution.
So the minimum transportation cost is:
19 * 5 + 12 * 2 + 30 * 3 + 40 * 7 + 10 * 5 + 20 * 13 = Rs. 799