Operation Research
Operation Research
1 3 2 6 45
2 4 2 4 40
3 8 7 7 85
4 6 5 4 65
Minimum 800 200 700
Requirement
Solution:
Solution:
X1 X2 X3
Solution:
Let X1, X2, X3, X4, X5, X6 number of nurses to be appointed for
period 1,2,3,4,5,6 respectiveley.
Constrains
X1 + X2 > =7
X2 + X3 > =15
X3 + X4 > =8
X4 + X5 > =20
X5 + X6 > =6
X6+ X1 > =2
B 60/Minute 75/Minute
The machines can be run for 8-hours per day,5 days a week, Profit
on 8 ounce bottle is 15 paise and on 16 ounce bottle is 25 paise.
Weekly production of the drink cannot exceed 300000 ounces
and the market can obserb 25000 eight ounce bottle and 7000
sixteen ouce bottles per week. The planner wishes to maximize
his profit,of course,to all the production and marketing
constrains. Formulate Linear programming model.
Solution
3 x = 3x
*
1000 1000
1 y
* y =
1000 1000
3y
3x
66 hrs Hours constrain
1000 1000
X>=0, Y>=0
Linear Programming
Q1) A firm can produce 3 types of cloth A,B,C. 3 kinds of wool required for it,
Red wool,green wool, and blue wool.
One unith length of type A cloth needs 2 yards of red Wool and 3 yards of blue
wool.one unit of length of type B cloth need 3 yard of red wool, 2 yards of
green wool and 2 yards of blue wool. One unit of type c cloth needs 5 yards of
green wool and 4 yards of blue wool. The firm has a stock of only 8 yards of red
wool, 10 yads of green wool,and 15 yards of blue wool. It is assumed that the
income obtained from one unit length of type A cloth is Rs 3, of type B cloth is
Rs.5, of type C cloth is Rs. 4. Formulate the problem as a linear programming
problem
Solution:
M1 2 8 2 940 Min/day
M3 2 5 -- 430 Min/day
M1 2 8 2 940 Min/day
M3 2 5 -- 430 Min/day
One Monitor Type A require 28 hour for assemble, So X monitor requires X* 28=28 X
One Monitor Type B require 42 hour for assemble, So Y monitor requires Y*42= 42 Y
Similarly
One Monitor Type A require 12 hour for inspection, So X monitor requires X* 12=12 X
One Monitor Type B require 6 hour for assemble, So Y monitor requires Y*6=6 Y
Available hour in assemble department =4800 12X+6Y<=4800[ Inspection dept. hour constrain]
Assume that 1 monitor require 1 chip of any type X number of Type A require X number of chip, Y
number of type B requires Y number of chip
Solution: Zmax-3X1-4X2=0
X1+X2+S1=4
X1-X2+S2=2
Basic
X1 X2 S1 S2 ZMax RHS Ratio=
variable
S1
1 1 1 0 0 4 =4
2
S2 1 -1 0 1 0 2 = −2
−1
ZMax -3 -4 0 0 1 0
X2 = *[ 1, 1, 1, 0, 0, 4]
X2 = [ 1, 1, 1, 0, 0, 4]
= 1 1, 1, 1, 0, 0, 4 + 1, -1, 0, 1, 0, 2
= 1, 1, 1, 0, 0, 4 + 1, -1, 0, 1, 0, 2
= 2 0 1 1 0 6
= 4 1, 1, 1, 0, 0, 4 + -3, -4, 0, 0, 1, 0
= 4, 4, 4, 0, 0, 16 + -3, -4, 0, 0, 1, 0
= 1 0 4 0 1 16
Basic
X1 X2 S1 S2 ZMax RHS Ratio=
variable
X2 1 1 1 0 0 4
S2 2 0 1 1 0 6
ZMax 1 0 4 0 1 16
1X2= 4 1ZMax=16
X2=4 ZMax= 16
Verification:
Problem No 4 Page 1 of 5
Simplex Method
= -2, 4, 0, 0, 0, 1, 0, 12
= − ,1, 0, 0, 0, , 0, 3
Key element for S1 = -1
New row S1 = -Key *NPR+ Old row
= -(-1) , 1, 0, 0, 0, , 0, 3 + 3, -1, 3, 1, 0, 0, 0, 7
= 1 , 1, 0, 0, 0, , 0, 3 + 3, -1, 3, 1, 0, 0, 0, 7
= − , 1, 0, 0, 0, , 0, 3 + 3, -1, 3, 1, 0, 0, 0, 7
= , 0 3 1 0 0 10
Problem No 4 Page 2 of 5
Simplex Method
= +4, -3+3, 0+8, 0+0, 0+1, − +0, 0+0, -9+10
S2 = , 0, 8, 0, 1, − , 0, 1
= -(-3) , 1, 0, 0, 0, , 0, 3 + 1, -3, 2, 0, 0, 0, 1, 0
= 3 , 1, 0, 0, 0, , 0, 3 + 1, -3, 2, 0, 0, 0, 1, 0
= − , 3, 0, 0, 0, , 0, 9 + 1, -3, 2, 0, 0, 0, 1, 0
= − , 0 2 0 0 1 9
S2 11 0 8 0 1 3 0 1 1 = 1*11 =11
−
2 4 2 2
X2 1 1 0 0 0 1 0 3 3 = -6
− −
2 4
Zmax 1 0 2 0 0 3 1 9
−
2 4
Problem No 4 Page 3 of 5
Simplex Method
Pivoting Element [P.E] = Intersting of row and column =
= , 0, 8, 0, 1, , 0, 1
= , 0, 8, 0, 1, , 0, 1
NPR = X1 = 1, 0, , 0, , , 0,
Key Element of X2 = −
New row X2 = - Key * NPR +Old row
= 1, 0, , 0, , − , 0, + − , 1, 0, 0, 0, , 0, 3
= 1, 0, , 0, , − , 0, + − , 1, 0, 0, 0, , 0, 3
= , 0, , 0, , − , 0, + − , 1, 0, 0, 0, , 0, 3
= 0 1 0 0
Problem No 4 Page 4 of 5
Simplex Method
16 2 3 2
X1 1 0 0 − 0
11 11 22 11
8 1 8 34
X2 0 1 0 0
11 11 44 11
30 1 30 100
Zmax 0 0 0 1
11 11 44 11
Problem No 4 Page 5 of 5
Simplex Method
= x [-1, 2, 1, 0, 0, 0, 8]
= ,1, , 0, 0, 0, 4
= -2 ,1, , 0, 0, 0, 4 + 1, 2, 0, 0, 1, 0, 12
= 1, -2, -1, 0, 0, 0, -8 + 1, 2, 0, 0, 1, 0, 12
= [2, 0, -1, 0, 1, 0, 4]
= -(-2) 1, , 0, 0, 0, 4 + -1,-2, 0, 0, 0, 1, 0
= 2 , 1, , 0, 0, 0, 4 + -1,-2, 0, 0, 0, 1, 0
= -2, 0, 1, 0, 0, 1, 8
PC
S2 0 0 1 1 0 0 11
LV S3 2 0 -1 0 1 0 4 2
zmax -2 0 1 0 0 1 8
Pivoting element [P.E] =2
X1 = *[2, 0,−1, 0, 1, 0, 4]
X1= [ 1, 0, ,0, , 0, 2]
Key element of x2 =
= 1, 0, , 0, , 0, 2 + , 1, , 0, 0, 0, 4
= , 0, 0, , 0,1 + , 1, , 0, 0,0, 4
= 0 , 1, , 0, , 0, 5
= 2 1, 0, , 0, , 0, 2 + -2, 0, 1, 0, 0, 1, 8
= 2, 0, -1, 0, 1, 0, 4, + -2, 0, 1, 0, 0, 1, 8
= 2-2, 0+0, -1+1, 0+0, 1+0, 0+1, 4+8
= 0 0 0 0 1 1 12
= x 4, 2, 1, 0, 1, 0, 35
= , , , , , ,
NPR = x2 = 2, 1, , 0, , 0,
Key Element of S1 is 1
New Row[NR] S1 = -Key x NPR +Old row
= [-1 0 1 0 ]
= [6 0 -1 0 2 1 70 ]
Simplex Table
P.E
S1 -1 0 1 1 -1 0 1 = * =1
2 2 2 1
2
X2 2 1 1 0 1 0 35 = * =35
2 2 2 1
2
zmax 6 0 -1 0 2 1 70 -71
Pivoting Element = [P.E] = Intersect of Row column =
X3 = x [ old row]
= 1 −1, 0, , 1, , 0,
= 2 -1, 0, , 1, , 0,
= -2, 0, 1, 2, -1, 0, 1
Key Element of X2 =
=− -2, 0, 1, 2, -1, 0, 1 + 2, 1, , 0, , 0,
= 1, 0, ,-1, , 0, + 2, 1, , 0, , 0,
Transportation Problem
S1 S2 S3 S4 Available
Production
Unit
P1 6 4 1 5 14
P2 8 9 2 7 16
P3 4 3 6 2 5
Demand 6 10 15 4
Solution:
Allotment for the above problem using Matrix minima method
Production S1 S2 S3 S4 Available
Unit
P1 6 4 14 1 5 14
P2 6 8 9 9 1 2 7 16
P3 4 1 3 6 4 2 5
Demand 6 10 15 4
T.T.C:- 14 * 1 + 6 * 8 + 9 * 9 + 15 * 2 + 1 * 3 + 4 * 2
14 + 48 + 81 + 30 + 3 + 8
= 156
m= Number of rows=3
n=Number of columns=4
m+n–1
3+4-1 = 6
Page 1 of 8
UV Method
U .V Method
Ui
7 8 1 7
0 1
Vj Cij = (ui + vj)
1 8 9 2
-5 3 2
7 8 1 7 6 – (7+0) 4 – (8 + 0)
5 – 7 = -2 > 0 7 – 8 = -1 > 0
False False
Negative Negative
4 – (-5 + 7) 6 – (-5 + 1)
Modi Method
Choose Maximum Negative cell (Here 1st row second column)
+Ө Min 14 – Ө , 9 – Ө
14 - Ө
4 9–Ө =0
1
6 9- Ө 1+ Ө Ө=9
8
9
2
1 4
3 2
6 9 5 1
4 5
6 10
8 9 2 7
4 1 3 6 4 2
T.T.C = 9 * 4 + 5 * 1 + 6 * 8 + 10 * 2 + 1 * 3 + 4 * 2
= 36 + 5 + 48 + 20 + 3 + 8
= 120
UV method
6 9 5 1
4 5 14 M+N–1
6 10 3 +4 –1
8 9 2 7 16
5 = 6
4 1 3 6 4 2
6 10 15 4
Page 3 of 8
UV Method
Cij = ui + vj
Ui
7 4 1 3
Vj
0 4 1
1 8 2
-1 3 2
Cij = ui + vj
2 = ui +(-1)
2= ui -1
ui = 3
7 4 1 3
0 6 5
1 9 7
-1 4 6 Cij – ( ui + vj ) > 0
6 – (0 + 7) 5 – (3 + 0)
6– 7=-1>0
False, 5–3=2>0
Negative
4 – (-1 + 7)
9 – (4 + 1) 7 – (1 + 3) 4–6=-2>0
9–5=4>0 7–4=3>0 False, Negative
6 – (-1 + 1)
= 6 Page
> 0 4 of 8
UV Method
Modi Method
Min 6- Ө , 5 – Ө , 1 - Ө
9+Ө
5- Ө
4 1–Ө =0
1 Ө=1
6-Ө
10+ Ө
8
8
2
+Ө 1-Ө 4
2
4 3
6 10 4 4 1 5 14
5 8 9 11 2 7 16
5
1
4 3 6 4 2
6 10 15 4
T.T.C = 10 * 4 + 4 * 1 + 5 * 8 + 11 * 2 + 1 * 4 + 4 * 2
= 40 + 4 + 40 + 22 + 4 + 8
= 118
Page 5 of 8
UV Method
U V method
6 10 4 4 1 5 14 M+N–1
5 8 9 11 2 7 16 3+4–1
5 =6
1
4 3 6 4 2
6 10 15 4
1 8 2
-3 4 2
-3 3 6 9 – (1 + 4) 7 – (1 + 5)
9–5=4>0 7–6=1>0
Page 6 of 8 3 – (-3 + 4) 6 – (-3 + 1)
3 – (1) = 2 > 0 6 – (-2) = 8 > 0
UV Method
Modi Method
+Ө 10
4-Ө
6 Min 4–Ө,5–Ө
4
1
4–Ө=0
5-Ө 11+ Ө
Ө=4
8
2
1 4
4 2
4 6 10 4 1 5 14
1 8 9 15 2 7 16
5
1
4 3 6 4 2
6 10 15 4
T.T.C = 4 * 6 + 10 * 4 + 1 * 8 + 15* 2 + 1 * 4 + 4 * 2
= 24 + 40 + 8 + 30 + 4 + 8
= 114
Page 7 of 8
UV Method
UV method
Ui
6 4 0 4
Vj
0 6 4 M+N–1
2 8 2 3+4–1
-2 4 2 =6
6 4 0 4
2 9 7
-2 3 6
1 – (0 + 0) 5 – (0 + 4) 9 – (2 + 4) 7 – (2 + 4)
3 – (-2 + 4) 6 – (-2 + 0)
Production
Maddur K.R Nagar N. Gudu P. Pura Available Penalty
unit
Mysuru 6 4 1 5 14
C. H. Nagar 8 9 2 7 16
Mandya 4 3 6 2 5
Demand 6 10 15 4
Production
Maddur K.R Nagar N. Gudu P. Pura Available Penalty
Unit
Mysuru 6 4 1 5 14 3
C. H. Nagar 8 9 2 7 16 5
Mandya 4 3 6 2 5 1
Demand 6 10 15 4
Penalty 2 1 1 3
Production
Maddur K.R Nagar N. Gudu P. Pura Available Penalty
Unit
Mysuru 6 4 1 5 14
2
C. H. Nagar 8 9 15 7 16 1 5
Mandya 4 3 6 2 5
Demand 6 10 15 0 4
Penalty
Production
Maddur K.R Nagar N. Gudu P. Pura Available Penalty
Unit
Mysuru 6 4 X 1 5 14 1
2
C. H. Nagar 8 9 15 7 16 1 1
Mandya 4 3 X 6 2 5 1
Demand 6 10 15 0 4
Penalty 2 1 X 3
Production
Maddur K.R Nagar N. Gudu P. Pura Available Penalty
Unit
Mysuru 6 4 X 1 5 14
2
C. H. Nagar 8 9 15 7 16 1
2
Mandya 4 3 X 6 4 5 1
Demand 6 10 15 0 4 0
Penalty 3
Production
Maddur K.R Nagar N. Gudu P. Pura Available Penalty
Unit
Mysuru 6 4 X 1 X 5 14 2
2
C. H. Nagar 8 9 15 X 7 16 1 1
2
Mandya 4 3 X 6 4 5 1 1
Demand 6 10 15 0 4 0
Penalty 2 1 X X
Production
Unit
Maddur K.R Nagar N. Gudu P. Pura Available Penalty
4
Mysuru 6 10 X 1 X 5 14 4 2
2
C. H. Nagar 8 9 15 X 7 16 1
2
Mandya 4 3 X 6 4 5 1
Demand 6 10 0 15 0 4 0
Penalty
Production
Maddur K.R Nagar N. Gudu P. Pura Available Penalty
Unit
4
Mysuru 6 10 X 1 X 5 14 4 6
2
C. H. Nagar 8 X 9 15 X 7 16 1 8
2
Mandya 4 X 3 X 6 4 5 1 4
Demand 6 10 0 15 0 4 0
Penalty 2 X X X
Production
Maddur K.R Nagar N. Gudu P. Pura Available Penalty
Unit
4
Mysuru 6 10 X 1 X 5 14 4
2
1 8 15
C. H. Nagar X 9 X 7 16 1 0 8
2
Mandya 4 X 3 X 6 4 5 1 0
Demand 6 5 10 0 15 0 4 0
Penalty
Production
Maddur K.R Nagar N. Gudu P. Pura Available Penalty
Unit
4
Mysuru 6 10 X 1 X 5 14 4 6
2
C. H. Nagar 1 8 X 9 15 X 7 16 1 0 X
2
Mandya 4 X 3 X 6 4 5 1 4
Demand 6 5 10 0 15 0 4 0
Penalty 2 X X X
Production
Unit
Maddur K.R Nagar N. Gudu P. Pura Available Penalty
6 4
Mysuru 4 10 X 1 X 5 14 4 0 6
8 2
C. H. Nagar 1 X 9 15 X 7 16 1 0
2
Mandya 4 X 3 X 6 4 5 1
Demand 6 5 1 10 0 15 0 4 0
Penalty
Production
Unit
Maddur K.R Nagar N. Gudu P. Pura Available Penalty
6 4
Mysuru 4 10 X 1 X 5 14 4 0 X
8 2
C. H. Nagar 1 X 9 15 X 7 16 1 0 X
2
Mandya 4 X 3 X 6 4 5 1 4
Demand 6 5 1 10 0 15 0 4 0
Penalty 4 X X X
Production
Unit
Maddur K.R Nagar N. Gudu P. Pura Available Penalty
6 4
Mysuru 4 10 X 1 X 5 14 4 0
8 2
C. H. Nagar 1 X 9 15 X 7 16 1 0
4 2
Mandya 1 X 3 X 6 4 5 1 0 4
6 5 1
Demand 10 0 15 0 4 0
0
Penalty 4