OR Chapter Three
OR Chapter Three
Introduction
It gets its name from its application to problems involving transporting products
from several origins (factories) to several destinations (markets). The two common
objectives of such problems either minimize the cost of shipping n units to m
destinations or maximize the profit of shipping n units to m destinations.
Transportation problem is an especial type of linear programming problem. Though
every linear programming problem can be solved by simplex method, there are
more than one solution methods (northwest-corner method, least cost method and
Vogel’s approximation method) of transportation problem, which are
computationally more efficient than the Simplex method.
The transportation model deals with a special class of linear programming
problem in which the objective is to transport a homogeneous commodity from
various origins or factories to different destinations or markets at a total minimum
cost. The transportation problem typically deal with a special class of linear
programming problem in which the objective is to “transport” or distribute a single
commodity from several ‘sources’ (also called origins or supplies or capacity
centers) to different ‘destinations’ (also such as demands or requirement (enters) at
a minimum total cost.
Assignment problems are special class of linear programming problems which
involve determining most efficient assignment of people to Projects, jobs to
machines, salespersons to territories, contracts to bidders, classes to rooms and so on
in one-to-one basis. The desired objective is most often to minimize total costs or
time required to perform the tasks at hand.
Check that the solution is feasible or not: m + n-1; m=3 and n=4, 3+ 4-1= 6 cells
occupied (Feasible solution). The total transportation cost of the initial feasible
solution derived by the NWCM is:
Answer: X11 =80, X12 =20, X22 =100, X23 =10, X 33=50 Total cost =$270
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.
a) Develop an initial feasible solution using least-cost method & compute the total
cost.
From/To A B C D Supply
F1 2 2 0 4 25
F2 5 9 8 3 25
F3 6 4 3 2 10
Demand 20 15 20 5 60/60
Four different dress makers are submitted the tenders, who undertake
to supply not more than the quantities indicated below:
Determine how many orders of each dress type should be ordered from
the dress makers so as to minimize the total order cost using
a. NWCM b. LCM, & c. VAM.
Factory X 6 6 6 4 10,000
Y 4 2 4 5 8000
Y 5 6 7 8 9000
Demand 9000 8000 6000 4000 27000
1 8 12 -2 6
2 13 4 3 10
3 0 7 11 8
Determine How many shirts of each type to produce in each plant so that profit is
maximized using:
a) NWCM
b) LPM
c) VAM
d) Which method(s) generates the largest profit ?
10/18/2024 OR LECTURE SLIDE 35
3.3. O P T I M A L I T Y T E S T S
Once an initial solution is available, the next step is to check its optimality. An optimal
solution is one in which there is no opportunity cost. That is, there is no other set of
transportation routes (allocations) that will reduce the total opportunity cost. Thus we have
to evaluate each unoccupied cell (represents unused route) in the transportation table in terms
of opportunity cost.
The purpose of the optimality test is to see if the proposed solution just generated can
be improved or not. The solution to be checked for optimality must be non-degenerate i.e. the
No of occupied cells must be m + n-1.
The Procedure for testing optimality is analogous to that of the Simplex method. A
distinction is made between basic variables, those associated with occupied cells & non-basic
variables, those associated with the empty cells.
For each empty cell, the effect of changing it to an occupied cell is examined. If any of
these changes are favorable, the solution is not optimal & a new solution must be designed. A
favorable change means an increase in the value of the objective function in maximization
problems or a decrease in minimization problems.
Optimum solution to a TP can be obtained by using the following two methods.
These methods are much simpler compared to simplex method of an LPP.
A. Stepping stone Method
B. Modified Distribution method (MODI Method)
Because none of these Cell evaluators 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
10/18/2024 OR LECTURE SLIDE 43
2. Consider the following TP and i) find basic initial feasible solution by applying
North West Corner rule ii) test the optimality of the solution by using stepping stone
method. Warehouse D E F G Supply
Factory
A 42 48 38 37 16,000
B 40 49 52 51 15,000
C 39 38 40 43 19,000
Demand 8,000 9,000 11,000 22,000 50,000
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?
Q2: Consider the following transportation problem solve it by LCM and test its
optimality using stepping stone method.
Weekly bus travel cost per student from each of the five districts to each of the four schools
is provided in the table below:
TV 12 7 10 10
Radio 10 9 12 10
Magazine 14 12 9 12
(a) Formulate the above as a transportation problem, and find the initial feasible
solution using LPM.
(b) Test the optimality of the solution obtained above using MODI
method.
Solution: V1=12 V2=7 V3= 10 V4=10
Age group Exposu
Media 13-18 19-25 26- re
U1=0 35 level
TV 12 15 40
36
million
Radio 30
U2=2 7 15 10
million
Magazine 10 10
12 20
U3 =2
million
Desire 10
35 9 10
25 12 20
20 10
10 95 million
d millio
14 20 millio
12 millio
9 millio
exposu n n n n
10/18/2024 re OR LECTURE SLIDE 63
Total
profit=1,200*15,000,000+7,00*15,000,000+1,000*10,000,000+9,00 10,000,00
*
+1200*20,000,000 +1400*20,000,000 = 99,500,000,000.
Occupied cell test:Cell cost (Cij =Ui +Vj)
Optimality
C11 = U1 + V1 🢣 12 = 0 + V1, V1=12
C12 = U1 + V2 🢣 7 = 0 +V2, V2= 7
C14 = U1 + V4 🢣 10 = 0 +V4 , V4 =10
C 22 = U2 + V2 🢣 9 = U2 + 7, U2 = 2
C23 = U2 + V3 🢣 12= 2 + V3, V3 = 10
C31 = U3 + V1 🢣 14 = U3 + 12, U3= 2
Un occupied cell Opportunity cost [ Kij= Cij –(Ui
+Vj)] C13 = 10 – ( U1+V3) = 10 - ( 0 +10) = 0
C21 = 10 – (U2 +V1) = 10 – (2 + 12) = - 4
C24 = 10 – (U2 +V4) = 10 – ( 2 + 10) = -2
C32 = 12 - (U3 +V2) = 12 - (2 +7) = 3 (greatest
positive
C33 = 9 - (U3 + V3) =9– (2 + 10) = -3
C34 = 12 - (U3 + V4) = 12 - ( 2 + 10) = 0
Reallocation of 15 million exposure
U1=0
TV 12 30 7 10 10 10 40 million
U3 = Magazine 14 5 12 15 9 12 20 million
2 Desire 35 25 20 10 90 million
d million million million million
exposu
re
V1 =12 V2= 10 V3= 13 V4= 10
Occupied cell Cell cost (Cij =Ui +Vj)
C11 = U1 + = 12 = 0 + V1, V1 = 12
V1 C14 = U1 + = 10 = 0 + V4, V4 = 10
V4 C22 = U2 + = 9 = U2 + 10, U2 = -1
V2 C23 = U2 + = 12= -1 + V3, V3 = 13
V3 C31 = U3 + = 14 = U3 + 12 ,U3 = 2
V1 C32 = = 12 = 2 +V2, V2=
Reallocation
U3 + V2 of 5 million exposures
10/18/2024 OR LECTURE SLIDE 65
Un occupied cell Opportunity cost [ Kij= Cij –(Ui
+Vj)] C12 = 7 - (U1 +V2) 🢣 7- (0 +10)
= -3
C13 = 10 – ( U1 +V3 🢣 10 - ( 0 +13) = -3
C24
C21 ==1010– –( (U2 +V4)🢣🢣10
U2+V1) 10- ( -1+12)
– (-1 +10)==-1
1(greatest improvement
(U3 +V3) 🢣 9 – ( 2+13) = - 6
= 9 – C33
potential)
C34 = 12 – (U3 +V4) 🢣 12 – (2 +10) = 0
Second improved
table Age group Exposure
Media 13-18 19 25 26-35 36 level
U1 = -
0 TV 12 35 7 10 10 5 40 million
Radio 10 9 5 12 20 10 5 30 million
U2 = 0
U3 = 3 Magazine 14 12 20 9 12 2 million
0
Desired 35 25 20 10 90 million
exposure million million million million
V1= 12 V2= 9 V3= 12 V4= 10
10/18/2024 OR LECTURE SLIDE 66
Occupied cell Cell cost (Cij =Ui
+Vj) C11 = U1 +V1 = 12= 0 +V1, V1=12
C14 = U1 +V4 = 10 = 0 + V4, V4 =10
C22 = U2 + V2 = 9 = 0 + V2, V2 =9
C23 = U2 +V3 = 12 = 0 +V3, V3 =12
C24 = U2 +V4 = 10 = U2 + 10, U2
=0 C32 = U3 +V2 = 12 = U3 + 9 ,U3
=3
Unoccupied cell cell evaluator [ Kij= Cij – (ui
+vj) C12 = 7 – ( U1 + V2) = 7- ( 0 + 9) =-2
C21 == 10
C13 10 –- ( U1
U2 ++V1)
V3) == 10
10--(0
( 0+12)
+ 12)=-2
=-2
C31 = 14 – ( U3 +V1) = 14- ( 3+12) = -1
C33 = 9 – ( U3 + V3) = 9 - ( 3 +12) = - 6
C34 = 12 – ( U3 + V4) = 12- (3 + 10) = -1
Now the solution is optimal since all cell evaluators are negative.
Total profit obtained = 1,200*35,000,000 + 1,000 *5,000,000 + 900* 5,000,000
+1,200 * 20,000,000 + 1,000 * 5,000,000 + 1,200 * 20,000,000 = 104,500,000,000
From the factories, the shirts are transported to five warehouses located in five
different regions. The warehouses in turn supply to the distributors and the
retailers. The monthly demand of shirts (in thousand) from the warehouses is as
follows:
I 6 3 4 2 5
II 11 7 5 10 9
III 10 7 1 2 8
IV 12 10 5 3 5
How many shirts are to be produced, in which factory, and how are these to be
dispatched to the warehouse so that the total cost involved in transportation is
minimized.
(a) Use the LCM and VAM Method to get an initial feasible solution.
(b)Check if the solution obtained by LCM above is an optimal allocation and if not,
then find the optimal solution using stepping stone method.
Q2. The Purchase Manager, Mr. Alemu, of the State Road Transport Corporation
must decide on the amount of fuel that should be bought from three possible
vendors. The corporation refuels its buses regularly at the four depots within the
area of its operations. The oil companies have said that they can furnish up to the
following amounts of fuel during the coming month: 275,000 liters by oil company
1; 550,000 liters by oil company 2; and 660,000 liters by oil company 3. The required
amount of the fuel is 206, 250 liters by depot 1; 316, 250 liters at depot 2; 426, 2500
litres at depot 3; and 536, 250 litres at depot 4.
10/18/2024 OR LECTURE SLIDE 69
When the transportation costs are added to the bid price per liter supplied, the
combined cost per liter for fuel from each vendor, servicing a specific depot, is as
under:
Company1 Company2 Company3
Depot 1 25 24.75 24.25
Depot 2 25 25.50 26.75
Depot 3 24.50 26 25
Depot 4 25.50 26 24.50
(a) Use LCM and VAM Method to get an initial feasible solution.
(b)Check if the solution obtained by LCM above is an optimal allocation and if not,
then find the optimal solution using MODI method.
Q3. A company has four manufacturing plants and five warehouses. Each plant
manufactures the same product, which is sold at different prices in each warehouse
area. The cost of manufacturing and cost of raw materials are different in each plant
due to various factors. The capacities of the plants are also different. The relevant
data is given in the following table:
A 4 7 4 3 30 8,000
B 8 9 7 8 32 12,000
C 2 7 6 10 28 14,000
D 10 7 5 8 34 7,000
E 2 5 8 9 30 9,000
a) Use LPM and VAM Method to get an initial feasible solution.
b) Check if the solution obtained by LPM above is an optimal allocation and if
not, then find the optimal solution using stepping stone method.
C. Unacceptable Allocations
In some cases, an origin-destination combination may be unacceptable. This may be due to
weather factors, equipment breakdowns, labor problems, or skill requirements, road hazards
(snow, flood, etc.), traffic regulations, etc., may arise that either prohibit, or make
undesirable, certain combinations (routes) and then it is not possible to transport goods
from certain sources to certain destination.
If there are some unacceptable allocations in a given transportation problem, solve such
kinds of problem, by assign a cost 10 times the largest cost in the table and then it will
be
uneconomical to transport to that cell. Then do as usual. (Initial feasible solution by
NWCM/LCM/VAM and optimal solution by stepping stone /MODI).
10/18/2024 OR LECTURE SLIDE 77
Example
Assign the programmers to the programs in such a way that the total
computer time is minimum.
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
2. 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.
🢣 No need of performing column operation since there are at least one in each
zero row.
Since the number of lines(4) 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) 2 in this case among all uncovered elements by the
lines and subtract it from all entries in the uncovered cells.
10/18/2024 OR LECTURE SLIDE 93
b. Add the same smallest entry to those cells in which lines intersect (cells with two lines
on them).
c. Cells with one line through them are unchanged to the improved
table
Table: After improvement
A I7 0 8 1 II 11 III
IV V
B 0 4 13 1 1
C 0 0 2
1 5 0
D 0 2 0 0 2
E 3 3 4 0 6
Since the number of lines equals to the number of rows/columns, the solution is
optimal.
Table: Optimal assignments
In order to perform the assignment process successfully we have to give priority
for row or column having single zero first to assign. The pattern of assignments
among jobs and employees with respective time (in hours) is given below:
Example3: A lead draftsman has five drafting tasks to accomplish and five idle
draftsmen. Each draftsman is estimated to require the following number of hours
for each task.
Tasks/activities
D A B C D E
r
a 1 60 50 100 85 95
t 2 65 45 100 75 90
s
m 3 70 60 110 97 85
e 4 70 55 105 90 93
n
5 60 40 120 85 97
Total cost = Total hours x rate per hour = 365 x 150 = 54,750 Birr
r
Determine the minimum cost assignment of subcontracts to bidders, assuming that each
bidder can receive
s only one contract.
Q2. A solicitors’ firm employs typists on hourly piece-rate basis for their daily work. There
are five typists and their charges and speed are different. According to an earlier
understanding only one job was given to one typist and the typist was paid for a full hour,
even if he worked for a fraction of an hour. Find the least cost allocation/assignment for the
following data:
10/18/2024 OR LECTURE SLIDE 98
Typist Rate per No. of pages Job No. of
hour(in birr) typed per hour pages
A 150 12 P 200
B 160 14 Q 180
C 130 8 R 150
D 140 10 S 300
E 140 11 T 190
Q3. An automobile dealer wishes to put four repairmen to four different jobs. The
repairmen have somewhat different kinds of skills and they exhibit different levels of
efficiency from one job to another. The dealer has estimated the number of man-hours that
would be required for each job-man combination. This is given in matrix form in the
following table: Find the optimal assignment that will result in minimum man hours
needed.
C1 C2 C3 C4 C5
L
L1 120 110 115 30 36
o
c L2 125 100 95 30 16
a L3 155 90 135 60 50
t
i
L4 160 140 150 60 60
o
L5 190 155 165 90 85
n
s
Solution :The first assignment must be B-1, because B-1 is the only 0 that appears in a single
row or column. Having made that assignment, there are two choices for the remaining two
rows, and two choices for the remaining two columns. This results in two possible solutions,
as shown:
Assignment
Job to Machine or Job to Machine
A 2 A 3
B 1 B 1
C 3 C 2
Operator Machine
A B C D
1 4 5 0
16
2 1 0 0 2
3 0 0 2 12
4 0 0 1 10
1 D 64
2 C 58
3 A 58
4 B 60 / Total
cost=240
c. Yes! Alternative optimal
assignment Operators Machine Cost
1 D 64
2 C 58
3 B 56
4 A 62 / Total cost =
240
I II III IV
A 0 7 14 21
B 12 17 22 27
C 12 17 22 27
D 18 22 26 30
Since the number of lines drawn are not equal to the number of rows and /
or columns an improvement is possible
Since the number of lines drawn are not equal to the number of rows and /
or columns an improvement is possible
I II III
A 2 4 7
IV
B 0 0 0 1
C 0 0 0 1
D 1 0 0
Since the number of lines drawn are equal to the number of rows and /
or columns optimal assignment is possible
10/18/2024 OR LECTURE SLIDE 109
The pattern of two alternative optimal assignments among territories
and salesmen with respective sale is given below:
Assignment set I Assignment set II
A I 42 A I 42
B III 20 B II 25
C II 25 C III 20
D IV 22 D IV 12
Exercise: A marketing manager has five salesmen and five sales districts.
Considering the capabilities of the salesmen and the nature of districts, the
marketing manager estimates that the sales per month (in hundred Birr) for
each salesman in each district would be as follows:
Solution : To balance the problem, we add a dummy row (person) with a zero
relocation cost to each city.
Dummy 0 0 0 0
Dummy 0 0 0 0
Dummy 0 0 0 100
Number of lines are not equal to number of rows or columns, so keep
improving
10/18/2024
11/22/202 e OR LECTURE SLIDE 11
117
The total minimum cost and optimal assignments made are as
follows: Machine Location Cost
M1 A 900
M2 B 900
M3 E 700
M4 D 700
M5( Dummy) C 0
Total cost 32,000
u D 55 64 48 66
P 1 2 3 4
r A 49 60 45 61
o B 55 63 45 49
d C 55 67 53 70
u D 58 65 54 68
10/18/2024
c OR LECTURE SLIDE 11
119
Q2. A city corporation has decided to carry out road repairs on four main arteries
of the city.. The corporation has floated tenders and five contractors have sent in
their bids. In order to expedite work, one road will be awarded to only one
contractor. Cost of repairs in million birr is given below.
C Road
o R1 R2 R3 R4
n C1 9 14 19 15
t C2 7 17 20 19
r C3 9 18 21 18
C4 10 12 18 19
a
C5 10 15 21 16
c
t
10/18/2024
11/22/202 OR LECTURE SLIDE 12
120
Q3. A large oil company operating a number of drilling platforms in a Sea is
forming a high speed rescue unit in order to cope with emergency situations that
may occur. The rescue unit comprises 6 personnel who, for reasons of flexibility,
undergo the same comprehensive training program. The six personnel are assessed
as to their suitability for various specialist tasks and the marks they received in the
training program are given in the following table:
Trainee number
Specialist task
I II III IV V VI
Unit leader 21 5 21 15 15 28
Helicopter pilot 30 11 16 8 16 4
First Aid 28 2 11 16 25 25
Drilling technology 19 16 17 15 19 8
Firefighting 26 21 22 28 29 24
Communication 3 21 21 11 26 26
Based on the marks awarded, what role should each of the trainees be given in the
rescue unit?
Assign the tasks for maximizing total effectiveness. Critically examine whether the
decision of the manager to assign task 3 to employee D was correct.
Tasks
A B C D
C 1 4 7 7 6
l
e 2 - 8 7 4
r 3 3 - 5 3
4 6 6 4 2
k
s
Clerk 2 cannot be assigned to task A and clerk 3 cannot be assigned to
task
B. Find all the optimum assignment schedules that minimize the total
time needed to complete the tasks.