Chapter 3
Chapter 3
Distribution cost consists of mainly the transportation cost of items from its production
(manufacturing) center to the warehouses. Transportation techniques are designed to minimize
the distribution costs. In order to identify products, it is necessary to work out per unit
distribution cost of each product. We also know the production capacity of each product in each
factory is not fixed. The holding capacity of a warehouse or potential sales in each marketing
center is again a fixed quality which cannot be exceeded.
The characteristics of transportation problem are as follows:
1. A limited supply of one commodity is available at certain sources or origins.
2. There is a demand for the commodity at several destinations
3. The quantities of supply at each source and the demand at each destination are constant.
4. The shipping or transportation costs per unit from each source to each destination are
assumed to be constant.
5. No shipments are allowed between sources or between destinations. All supply and demand
quantities are given in whole number or integers.
6. The problem is to determine how many units shipped from each source to each destination so
that all demands are satisfied at the minimum total shipping costs.
Plant 2 70 30 40 60 9
Plant 3 40 8 70 20 18
8 7 14 34
Demand 5
Note: NWCM does not consider the cost factor for allocation.
Exercise:
1. Determine an initial basic feasible solution to the following transportation problem using
NWCM. Compute the total cost for this solution
Destination
A B C Supply
S1 2 7 14 5
S2 3 3 1 8
S3 5 4 7 7
S4 1 6 2 14
Demand 7 9 18
Answer: X11=5, X21=2, X22=6, X32=3, X33=4, X43=14, and Total cost =$102
Note:
1. Total Supply= Total demand ===> Balanced TP
2. Total Supply ≠ total demand ===> Unbalanced TP
3. Convert the unbalanced TP into a balanced TP by using dummy destination/dummy source.
* If total Supply > Total demand, then create a fictitious or artificial destination called
dummy destination
i.e: total Supply > Total demand===> Add dummy column
* Excess demand (Supply < demand)
- Add a dummy source
- Add a dummy row
Note: the cost of “shipments” to the dummy is usually set at zero ==> No real cost
Example
Develop an initial feasible solution using NWCM
_______________________________________________________________
Required
Develop the initial feasible solution using NWCM & compute the total cost for this solution.
B. THE LEAST- COST METHOD (LCM) or
(LARGEST- PROFIT) METHOD
LCM is the method used a minimum cost in the allocation. It begins a solution by sequentially
assigning to the ratios or cells with the minimum cost as many units as possible. The first
allocation be made to the cell with the lowest cost (the highest profit in a maximization case)
The Least- Cost Method yields not only an initial feasible solution but also one that is close to
optimal in small problems.
Example
[Link] that a firm has three factories / sources of supply /& four warehouses/point of
demand/. The firm's production capacity at the three factories, the demand for the four
destination centers located at various regions & the cost of shipping each unit from the
factories to the warehouses through each route is given as follows:
Destinations
Factory
W1 W2 W3 W4 Capacity
F1 3 2 7 6 5000
F2 7 5 2 3 6000
F3 2 5 4 5 2500
Demand 6000 4000 2000 1500 13500
Required:
a. Develop an initial feasible solution using NWCM & Compute the total cost
b. Develop an initial feasible solution using least-cost method & compute the total cost.
Solution:
Initial feasible solution
b.
Factory
W1 W2 W3 W4 Capacity
3 2 7 6
F1 5000
1000 4000
7 5 2 3
F2 6000
2500 2000 1500
2 5 4 5
F3 2500
2500
Demand 6000 4000 2000 1500 13500
Routes Units Unit Total
From To Shipped X Cost =Cost
F1 W1 1000 3 $ 3000
A B C D Supply
S1 1 5 3 3 34
S2 3 3 1 2 15
S3 0 2 2 4 12
S4 2 7 2 4 19
demand 21 25 17 17
C. VOGEL'S
APPROXIMATION METHOD (VAM)
Or
Warehouse
A B C D Supply Row difference or Row
penalty
or opportunity cost
2 2 - - - -
Operational Research Page 12
2 2 2 2 5 0
Factor F1 2 2 0 4
25
y
5 20
F2 5 9 8 3
25
15 5 5
F3 6 4 3 2
10
10
Demand 20 15 20 5 60
Column difference 3 2
3 1
or Column penalty
or opportunity cost 3 2 -
1
1 5 -
1
0 0 -
0
m= 3, n=4 ==> 3+4-1 =6 Occupied cells (feasible)
The transportation cost associated with this solution is:
Total cost= 5x2 + 20x0+15x5x9 =+95x3+10x4= $185
2. A dairy firm has three plants located in different regions. The daily milk production at each
plant is as follows:
Plant 1: 6 million liters.
Plant 2: 1 million liters, &
Plant 3: 10 million liters
Each day the firm must fulfill the needs of its four distribution centers. Minimum
requirement at each center is as follows.
Distribution center 1: 7 million liters
" " 2: 5 " "
" " 3: 3 " "
" " 4: 2 " "
Cost of shipping one million liters form each plant to each distribution center is given in the
following table in hundreds of dollars.
Distribution Center
D1 D2 D3 D4
P1 2 3 11 7
Plant P2 1 0 6 1
P3 5 8 15 9
1 3 5 6
3 5 4 2
3 - 4 2
0 - 0 0
F1 4 2 8 100
F2 5 1 9 200
F3 7 6 3 200
DD 50 150 300 500
Solution
Initial feasible solution
Project Project Projec SS
A B t
C
F1 4 2 8 100
50 50
F2 5 1 9 200
100 100
F3 7 6 3 200
200
DD 50 150 300 500
m=3, n=3==> 3+3-1=5(Non-degenerate
solution)
The negative value for cell (F1, C) indicates an improved solution is possible. For each unit we
can shift into that cell, the total cost will decrease by $2. The next question is how many units
can be reallocated into that cell while retaining the balance of supply and demand for that table?
The Stepping- stone path for cell (F1, C) is:
The + Signs in the path indicate units to be added, the - signs indicate units to be subtracted. The
limit on subtraction is the smallest quantity in a negative position along the cell path. There are
two quantities in negative positions, 50 and 100. Because 50 is the smaller quantity, that amount
will be shifted in the following manner: Subtract 50 units from each cell on the path with a -
sign and add 50 units to the quantity of each cell with a + sign in it.
With each iteration (new solution), it is necessary to evaluate the empty cells to see if further
improvements is possible.
The distribution plan after reallocation of 50 units is:
A B C SS
F1 4 2 8 100
50 50
F2 5 1 9 200
150 50
F3 7 6 200
3
DD 50 150 200
300 500
Table: Test of optimality
Unoccupied cells Cell evaluators
Because none of these no is negative, this is an optimal solution. Therefore, the total cost for the
distribution plan is:
The total transportation cost = $ (50x4 +50x8 150x1+50x9 +200x3) = $1,800
2. Consider the following TP
Destination
R S T Ss
A 1 2 3 100
B 4 1 5 110
Origin
21
dd 80 120 60 0
260
Note: Include the dummy cells to select the opportunity cost under VAM problems.
b. Test of optimality.
Table: Test of optimality
Unoccupied cells Cell evaluators
+4-1+2-1= +4
(B,R)
+5-1+2-3= +3
(B,T)
+0-1+3-0= +2
(D,R)
+0-2+3-0= +1
(D,S)
Since none of the cell evaluators is negative, the above feasible solution is optimal.
Thus, accordingly the distribution is as follows
A Supplies 80 units to warehouse R
A supplies 10 units to warehouse S
A Supplies 10 units to warehouse S
C Supplies 50 units to warehouse T
B Supplies 110 units to warehouse S
B 9 11 4 15
C 20 14 8 55
Dema 25 50 45 120
nd
a. Develop an initial feasible solution using the NWCM. And compute the total cost for this
solution.
b. Evaluate the solution using the stepping-stone method. Is the solution optimal? Explain.
c. What is the total cost for the optimal solution?
Steps 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 a plus sign(+)
in this cell, trace a path along the rows( or columns) to an unoccupied 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(+) and minus(-) alternatively. Close the path back to the selected unoccupied cell.
Step 5 select the smallest quantity amongst the cells marked with minus sign on the corners
of closed loop. Allocate this value to the selected unoccupied cell and add it to other occupied
cells marked with plus signs and subtract it from the occupied cells marked with minus signs.
Step 6 obtain a new improved solution by allocating units to the unoccupied cell according
to step 5 and calculate the new total transportation cost.
Step 7 test the revised solution further for optimality. The procedure terminates when all d ij
≥0, for unoccupied cells.
Remarks: the loop starts and ends at the selected unoccupied cell. It consists of successive
horizontal and vertical (connected) lines whose end points must be occupied cells, except for a
end point associated with entering unoccupied cell. This means that every corner element of the
loop must be an occupied cell. It is immaterial whether the loop is traced in a clockwise or anti
clock wise direction. However, for a given solution only one loop can be constructed for each
unoccupied cell.
Example:
1. Obtain an optimal solution to the transportation problem by MODI method given below:
Remark:
Conventionally, we begin by assigning a value of zero as the index for row 1 (U1=0). Once row
index has been established, it will enable us to compute column index numbers for all occupied
cells in that row. Similarly, once a column index number has been determined, index numbers
for all rows corresponding to occupied cells in that column can be determined.
Consider the initial feasible solution of the given example by NWCM as shown below
Initial solution, NWCM
Example
1. Solve the following transportation problem.
1 2 Supp
1 3 3 ly
50
2 4 6 30
Dema
50 30 80
nd
Solution:
Using NWCM and MODI, the initial solution is:
1 2 Supply Ui
3 3
1 50 U1=0
50
4 6
2 30 U2=3
30
Demand 50 30 80
Vj V1=3 V2=3
Cij= Ui + Vj
==>C11= U1 +V1==>3=0+ V1==> V1=3, U1=0 by convention
==>C12= U1 +V2==>3=0 +V2==> V2=3
==>C22= U2 +V2==>6= U2+3==> U2= 3
==>C33= U3 +V3==>3= U3+8 ==> U3= -5
Note: m=2 and n=2==>2+2-1=3==>Occupied cells=2< 3 (Degeneracy)
1 2 Supply Ui
3 3
1 50 U1=0
20 30
4 6
2 30 U2=1
30
Demand 50 30 80
Vj V1=3 V2=3
Cij= Ui + Vj
==>C11=U1+V1==>3=0+V1==>V1=3, U1=0 by convention
==>C21= U2+V1==>4= U2+3==> U2=3
==>C12= U1 +V2==>3= 0+ V2==> V2= 3
Warehouse L p Q
location
A 7 10 5
B 12 9 4
C 7 3 11
D 9 5 7
Because of rail road construction, shipments are temporarily from warehouse at city A to L
Cigarette Company.
A. Find the optimum distribution for XYZ Tobacco Company.
B. Are there multiple optimum solutions? If there are alternative optimum solutions,
identify them.
Service
Team Z1 Z2 Z3
Supply
Servic Z1 Z2 Z3 ====>
e S1 20 15 31 1
S1 20 15 31
S2 17 16 33 1
S2 17 16 33
S3 18 19 27 1
S3 18 19 27
Demand 1 1 1
If the number of lines drawn (or total assignment) is equal to the number of rows (or columns),
the current solution is the optimal solution, otherwise go to step 6
Step 6 develop the new revised opportunity cost table
a) From among the cells are not covered by any line, choose the smallest element. Call this
value k
b) Subtract k from every element in the cell not covered by a line
c) Add k to every in the cell covered by the two lines, i.e. intersection of two lines
d) Elements in cells not covered by one line remain unchanged
(Estimated time in
1 120 minute)
100 80
2 80 90 110
3 110 140 120
Assign the programmers to the programs in such a way that the total computer time is minimum.
Solution:
Steps 1 and 2:
a. Perform row reduction
The minimum time element in row 1, 2, and 3 is 80, 80 and 110 respectively. Subtract those elements
from all elements in their respective row. The reduced time matrix is:
Table: After row reduction
A B C
-80 1 40 20 0
-80 2 0 10 30
Operational Research Page
-110 31 3 0 30 10
b. Column reduction
Since column B has no one ‘0’, perform also column reduction. The minimum time element in columns
A, B and C is 0, 10 and 0 respectively. Subtract these elements from all elements in their respective
column to get the reduced time matrix.
Table: After column reduction
A B C
1 40 10 0
2 0 0 30
3 0 20 10
Step 3: make assignment in the opportunity cost matrix
a. In l assignment, start with row/column having one zero and cancel the alternative zeros(x)
Table: Test of optimal assignment
A B C
1 40 10 00
2 0 00 30
3 0
0 20 10
b. Count the number of occupied cells
If the number occupied cells are equal to the number of rows/columns, the optimal solution is obtained.
The pattern of assignment among programmers and programs with their respective time (in minute) is
given below:
Programmer Program Time (in minutes)
1 C 80
2 B 90
3 A 110
Total time=280 minutes
3.A
department has five employees with five jobs to be performed. The time (in hours) each man will take to
perform each job is given in the effectiveness matrix.
Employees
I II III IV V
A 10 5 13 15 16
Jobs
B 3 9 18 13 6
D 7 11 9 7 12
7 9 10 4 12
E
How should the jobs be allocated, one per employees, so as to minimize the total man-hours?
Solution:
Table: After row reduction
I II III IV V
A 5 0 8 10 11
B 0 6 15 10 3
C 8 5 0 0 0
D 0 4 2 0 5
3 5 6 0 8
E
Since the number of lines less than the number of rows/columns, an improvement is possible.
Step 4. Improve the present opportunity cost table
This is done by the following operations;
a. Select the smallest entry (element) among all uncovered elements by the lines and subtract it from all
entries in the uncovered cells. this cell is 2
b. Add the same smallest entry to those cells in which lines intersect (cells with two lines them).
c. Cells with one line through them are unchanged to the improved table
I II III IV V
A 7 0 8 12 11
0
B 00 4 13 10 1
C 10 5 0 2 00
D 0 2 0 0 3
0
E 3 3 4 0 6
Since the number of assigned cells equals to the number of rows/columns, the solution is optimal.
E IV 4
3. A manager has prepared the following table, which shows the costs for various
combinations of job-machine assignments:
Machine
(Cost in ’000s))
A B C
1 20 15 31
Job 2 17 16 33
3 18 19 27
a. What is the optimal (minimum-cost) assignment for this problem?
b. What is the total cost for the optimum assignment?
Solution:
Table: After row reduction Table: After column reduction
A B C A B C
-15 1 5 0 16 1 5 00 7
-16 2 1 0 17 2 1 0 8
-18 3 0 1 9 3 0 1 0
0
Table: optimal
A B C
1 4 0 0 6
2 00 0 7
3 0 2 00
2. The foreman of a machine shop wants to determine a minimum cost matching for operators and
machines. The foreman has determined hourly cost for of four operators for the four machines, as shown
in the following cost table.
Machine
(Estimated cost in $)
A B C D
1 70 80 75 64
55 52 58 54
Operator
2
3 58 56 64 68
4 62 60 67 70
Required:
A B C D
A B C D 1 4 16 5 0
1 6 16 11 0
2 1 0 0 2
2 3 0 6 2
3 0 0 2 12
3 2 0 8 12
4 0 0 1 10
4 2 0 7 10 Table: Optimal
Assignments
A B C D
1 4 16 5 0
2 1 0 0 2
3 0 0 2 12
4 0 0 1 10
a. Optimal Assignment b.
Operator Machine Cost(in $)
4 A 62
3 B 56
2 C 58
1 D 64
Total cost =$240
c. Yes!
Operator Machine Cost(in $)
1 D 64
2 C 58
3 A 58
4 B 60
Total cost=$240
Alternative optimal assignment
Example
1.A company has four territories open, and four salesmen available for an assignment. The territories are
not equally rich in their sales potential. Based on the past performance, the following table shows the
annual sales (in $) that can be generated by each salesman in each territory. Find the optimal
assignment and the maximum expected total sales.
Territory
I II III IV
Salesmen
A 42 35 28 21
B 30 25 20 15
C 30 25 20 15
D 24 20 16 12
Solution:
Convert maximization problem into minimization problem by subtracting all elements from the highest
element (i.e 42)
Thus, the equivalent cost table is:
I II III IV I II III IV
A 0 7 14 21 A 0 3 6 9
B 12 17 22 27 B 0 1 2 3
C 12 17 22 27 C 0 1 2 3
D 18 22 26 30 D 0 0 0 0
B 0 0 0 1
Operational
C 0 Research
0 0 1 Page 37
D 2 1 0 0
The pattern of two alternative optimal assignments among territories and salesmen with respective sale is
given below:
S1 26 14 10 12 9
S2 31 27 30 14 16
S3 15 18 16 25 30
S4 17 12 21 30 25
S5 20 19 25 16 10
Solution
To balance the problem, we add a dummy row (person) with a zero relocation cost to each city.
City
C1 C2 C3 C4(Gambela)
C1 C2 C3 C4
C1 C2 C3 C4
P1 0 300 400 200
P1 100 0 100 0
P2 0 1,100 800 300
P2 0 700 400 0
P3 0 500 1800 1000
P3 0 100 1400 700
Dummy 0 0 0 0
Dummy 400 0 0 100
Location
A B C D E
M1 9 11 15 10 11
Machine M2 12 9 - 10 9
M3 - 11 14 11 7
M4 14 8 12 7 8
M2 12 9 M 10 9
M3 M 11 14 11 7
M4 14 8 12 7 8
M5 0 0 0 0 0
A B C D E
0
M1 2 6 1 2
Table: Optimal assignment
3 0 M 1 0
M2
M3 M 4 7 4
0
Operational Research Page 40
M4 7 1 5 0 1
M5
0
The total minimum cost ($) and optimal assignments made are as follows: