Professional Documents
Culture Documents
Operations Research
Operations Research
The following
table provides the basic data of the problem:
A market survey indicates that the daily demand for interior paint cannot exceed that for
exterior paint by more than 1 ton. Also, the maximum daily demand for the interior paint is 2
tons.
Nerolac wants to determine the optimum(best) product mix of interior and exterior paints
that maximizes the total daily profit
Decision Variables- x, y
How many days per month the mines should operate to fulfill the company’s
commitment most economically?
Decision Variables- x, y
Let x be the no. of days per month the mine 1 should operate
Let y be the no. of days per month the mine 2 should operate
y 3
4 y≥ 0
1
2 x
Z=15 Increasing direction of Z
Z=5
Z=0
B C
A D
E
O
OABCDEO- Bounded feasible region
A( 0,1) Z(A)= 5 x 0 + 4 x 1= 4
3X1 + 12X2 ≥ 36
20X1 + 10X2 ≥ 100
X1 , X2 ≥ 0
The first constraint 36X1 + 6X2 ≥ 108 can be
represented as follows.
We set 36X1 + 6X2 = 108
When X1 = 0 in the above constraint, we get,
36 x 0 + 6X2 = 108
X2 = 108/6 = 18
Similarly when X2 = 0 in the above constraint, we
get,
36X1 + 6 x 0 = 108
X1 = 108/36 = 3
X2 = 36/12 = 3
Similarly when X2 = 0 in the above constraint, we
get,
3X1 + 12 x 0 = 36
X1 = 36/3 = 12
The third constraint20X1 + 10X2 ≥ 100 can be
represented as follows,
We set 20X1 + 10X2 = 100
When X1 = 0 in the above constraint, we get,
20 x 0 + 10X2 = 100; X2 = 100/10 = 10
Similarly when X2 = 0 in the above constraint,
we get,
20X1 + 10 x 0 = 100
X1 = 100/20 = 5
Point X1 X2 Z = 20X1 + 40X2
0 0 0 0
A 0 18 Z = 20 x 0 + 40 x 18 = 720
B 2 6 Z = 20 x2 + 40 x 6 = 280
Z = 20 x 4 + 40 x 2 = 160*
C 4 2
Minimum
D 12 0 Z = 20 x 12 + 40 x 0 = 240
Min Z=160
X1=4
X2=2
A manufacturer has three machines I, II and III installed in his factory. Machines I
and II are capable of being operated for at most 12 hours whereas machine III
must be operated for atleast 5 hours a day. She produces only two items M and N
each requiring the use of all the three machines. The number of hours required
for producing 1 unit of each of M and N on the three machines are given in the
following table:
Items No. of hours required on machines
I II III
M 1 2 1
N 2 1 1.25
She makes a profit of Rs 600 and Rs 400 on items M and N respectively. How many
of each item should she produce so as to maximise her profit assuming that she
can sell all the items that she produced? What will be the maximum profit?
Let x and y be the number of items M and N respectively.
Total profit on the production =(600 x + 400 y)
From the table, we find that Z is minimum at the point (15, 20).
Hence, the amount of vitamin A under the constraints given in the problem
will be minimum, if 15 packets of food P and 20 packets of food Q are used in
the special diet. The minimum amount of vitamin A will be 150 units.
max z= 20a-20b+30x2
max z= 20x1+30x2
Subject to Constraints
Subject to Constraints
3 a-3b + 3x2 ≤ 36
3 x1 + 3x2 ≤ 36
5 a-5b+2x2 ≤ 50
5 x1 +2x2 ≤ 50
a,b, x2≥ 0
x1 -unrestricted
x2 ≥ 0
Standard Form
max z= 5x+4y+0S1+0S2+0S3+0S4
Subject to Constraints
6x+ 4y +S1=24
x+2y+S2= 6
-x +y +S3= 1
y +S4= 2
x,y, S1,S2,S3,S4 ≥ 0
Basic x y s1 s2 s3 s4 Solution
Z -5 -4 0 0 0 0 0 Z-row
S1 6 4 1 0 0 0 24 S1-row
S2 1 2 0 1 0 0 6 S2-row
S3 -1 1 0 0 1 0 1 S3-row
S4 0 1 0 0 0 1 2 S4-row
y
y
Optimality Condition
Determines the entering variable
S1 6 24 24/6=4
S2 1 6 6/1=6
S3 -1 1 1/(-1)=-1(Ignore)
S4 0 2
1/0=∞ (ignore)
Basic x y s1 s2 s3 s4 Solution Ratio
Z -5 -4 0 0 0 0 0 -
S1 6 4 1 0 0 0 24 24/6= 4
S2 1 2 0 1 0 0 6 6/1=6
S3 -1 1 0 0 1 0 1 (Ignore)
S4 0 1 0 0 0 1 2 (Ignore)
y
Basic x y s1 s2 s3 s4 Solution Ratio
Z -5 -4 0 0 0 0 0 -
S1 6 4 1 0 0 0 24 24/6= 4
S2 1 2 0 1 0 0 6 6/1=6
S3 -1 1 0 0 1 0 1 (Ignore)
S4 0 1 0 0 0 1 2 (Ignore)
Entering
variable
Basic x y s1 s2 s3 s4 Solution
Z -5 -4 0 0 0 0 0
Pivot row S1 6 4 1 0 0 0 24 Leaving
variable
S2 1 2 0 1 0 0 6
S3 -1 1 0 0 1 0 1
S4 0 1 0 0 0 1 2
Pivot
Column
Basic x y s1 s2 s3 s4 Solution
Z 0 -2/3 5/6 0 0 0 20
x 1 2/3 1/6 0 0 0 4
S2 0 4/3 -1/6 1 0 0 2
S3 0 5/3 1/6 0 1 0 5
S4 0 0 1 0 0 1 2
Entering
variable
S4 0 0 1 0 0 1 2 ---
Basic x y s1 s2 s3 s4 Solution
Z 0 0 ¾ ½ 0 0 21
x 1 0 1/4 -1/2 0 0 3
Y 0 1 -1/8 3/4 0 0 3/2
S3 0 0 3/8 -5/4 1 0 5
S4 0 0 1/8 -3/4 0 1 2
max z= 5x+4y
Constraints
6x+ 4y ≤ 24
x+2y≤ 6
-x +y ≤ 1
y≤2
x,y ≥ 0
Standard form or canonical Form
The problem is expressed in equation form as
max z= 5x+4y+0S1+0S2+0S3+0S4
Subject to Constraints
6x+ 4y +S1=24
x+2y+S2= 6
-x +y +S3= 1
y +S4= 2
x,y, S1,S2,S3,S4 ≥ 0
Basic x y s1 s2 s3 s4 Solution
Z -5 -4 0 0 0 0 0 Z-row
S1 6 4 1 0 0 0 24 S1-row
S2 1 2 0 1 0 0 6 S2-row
S3 -1 1 0 0 1 0 1 S3-row
S4 0 1 0 0 0 1 2 S4-row
Entering
variable
Basic x y s1 s2 s3 s4 Solution
Z -5 -4 0 0 0 0 0
S1 6 4 1 0 0 0 24
S2 1 2 0 1 0 0 6
S3 -1 1 0 0 1 0 1
S4 0 1 0 0 0 1 2
Iteration 1 Z 0 -2/3 5/6 0 0 0 20
x 1 2/3 1/6 0 0 0 4
S2 0 4/3 -1/6 1 0 0 2
S3 0 5/3 1/6 0 1 0 5
S4 0 0 1 0 0 1 2
Entering
variable
S4 0 0 1 0 0 1 2 ---
Basic x y s1 s2 s3 s4 Solution
Z 0 0 ¾ ½ 0 0 21
x 1 0 1/4 -1/2 0 0 3
Y 0 1 -1/8 3/4 0 0 3/2
S3 0 0 3/8 -5/4 1 0 5
S4 0 0 1/8 -3/4 0 1 2
Since all the Z Coefficients are Zero or Positive the solution is optimal
The Optimal Solution is
Max Z= 21
X=3
Y= 3/2
Basic X1 X2 X3 s1 s2 s3 Solution
Z -1 3 -3 0 0 0 0
s1 3 -1 2 1 0 0 7
s2 -2 -4 0 0 1 0 12
S3 -4 3 8 0 0 1 10
Entering
variable
Since all the Z Coefficients are Zero or Negative the solution is optimal
The Optimal Solution is
Min Z= -143/5
X1=31/5
X2= 58/5
X3=0
Max Z= 2X1 + 3 X2 + 4X3
Subject to
3X1 + X2 + 4X3≤ 600
2X1 + 4 X2 + 2X3≥480
2X1 + 3 X2 + 3X3=540
X1 ,X2 ,X3≥0
Standard Form
Max Z= 2X1 + 3 X2 + 4X3
Subject to
3X1 + X2 + 4X3+S1= 600
2X1 + 4 X2 + 2X3-S2=480
2X1 + 3 X2 + 3X3=540
X1 ,X2 ,X3, S1, S2≥0
Basic X1 X2 X3 s1 s2 Solution
Z -2 -3 -4 0 0 0
s1 3 1 4 1 0 600
2 4 2 0 -1 480
2 3 3 540
Artificial Variables
Standard Form
Max Z= 2X1 + 3 X2 + 4X3
Subject to
3X1 + X2 + 4X3+S1= 600
2X1 + 4 X2 + 2X3-S2+A1=480
2X1 + 3 X2 + 3X3+A2=540
X1 ,X2 ,X3, S1, S2, A1, A2≥0
Big M Method
Standard Form
Max Z= 2X1 + 3 X2 + 4X3-MA1-MA2
Subject to
3X1 + X2 + 4X3+S1= 600
2X1 + 4 X2 + 2X3-S2+A1=480
2X1 + 3 X2 + 3X3+A2=540
X1 ,X2 ,X3, S1, S2, A1, A2≥0
Basic X1 X2 X3 s1 s2 A1 A2 Solution
Z -2 -3 -4 0 0 M M 0
s1 3 1 4 1 0 0 0 600
A1 2 4 2 0 -1 1 0 480
A2 2 3 3 0 0 0 1 540
Standard Form
Max Z= 2X1 + 3 X2 + 4X3-MA1-MA2
Subject to
3X1 + X2 + 4X3+S1= 600
2X1 + 4 X2 + 2X3-S2+A1=480 A1= -2X1 - 4 X2 - 2X3+S2+480
2X1 + 3 X2 + 3X3+A2=540 A2= -2X1 - 3 X2 - 3X3+540
X1 ,X2 ,X3, S1, S2, A1, A2≥0
Z= 2X1 + 3 X2 + 4X3-MA1-MA2
= 2X1 + 3 X2 + 4X3-M(-2X1 - 4 X2 - 2X3+S2+480 )-M(-2X1 - 3 X2 - 3X3+540)
= X1 ( 2+2M+2M) + X2(3+4M+3M)+X3(4+2M+3M)-MS2+(-480M-540M)
= X1 ( 2+4M) + X2(3+7M)+X3(4+5M)-MS2-1020M
Z - ( 2+4M) X1 - (3+7M) X2 - (4+5M) X3+MS2=-1020M
Basic X1 X2 X3 s1 s2 A1 A2 Solution Ratio
s1 3 1 4 1 0 0 0 600
A1 2 4 2 0 -1 1 0 480
A2 2 3 3 0 0 0 1 540
Max Z= 2X1 + 3 X2 + 4X3
Subject to
3X1 + X2 + 4X3≤ 600
2X1 + 4 X2 + 2X3≥480
2X1 + 3 X2 + 3X3=540
X1 ,X2 ,X3≥0
Standard Form
Max Z= 2X1 + 3 X2 + 4X3
Subject to
3X1 + X2 + 4X3+S1= 600
2X1 + 4 X2 + 2X3-S2=480
2X1 + 3 X2 + 3X3=540
X1 ,X2 ,X3, S1, S2≥0
Standard Form
Max Z= 2X1 + 3 X2 + 4X3-MA1-MA2
Subject to
3X1 + X2 + 4X3+S1= 600
2X1 + 4 X2 + 2X3-S2+A1=480 A1= -2X1 - 4 X2 - 2X3+S2+480
2X1 + 3 X2 + 3X3+A2=540 A2= -2X1 - 3 X2 - 3X3+540
X1 ,X2 ,X3, S1, S2, A1, A2≥0
Z= 2X1 + 3 X2 + 4X3-MA1-MA2
= 2X1 + 3 X2 + 4X3-M(-2X1 - 4 X2 - 2X3+S2+480 )-M(-2X1 - 3 X2 - 3X3+540)
= X1 ( 2+2M+2M) + X2(3+4M+3M)+X3(4+2M+3M)-MS2+(-480M-540M)
= X1 ( 2+4M) + X2(3+7M)+X3(4+5M)-MS2-1020M
Z - ( 2+4M) X1 - (3+7M) X2 - (4+5M) X3+MS2=-1020M
Basic X1 X2 X3 s1 s2 A1 A2 Solution Ratio
s1 3 1 4 1 0 0 0 600
A1 2 4 2 0 -1 1 0 480
A2 2 3 3 0 0 0 1 540
Basic X1 X2 X3 s1 s2 A1 A2 Solution Ratio
s1 3 1 4 1 0 0 0 600 600/1=600
A1 2 4 2 0 -1 1 0 480 480/4=120
A2 2 3 3 0 0 0 1 540 540/3=180
Basic X1 X2 X3 s1 s2 A1 A2 Solution Ratio
Z -(1+M)/2 0 - (5+3M)/2
0 - (3+3M)/4
0 360-
(3+7M)/4
180M
s1 3 1 4 1 0 0 0 600 600/1=600
A1 2 4 2 0 -1 1 0 480 480/4=120(min)
A2 2 3 3 0 0 0 1 540 540/3=180
Z -(1+M)/2 0 - (5+3M)/2
0 - (3+3M)/4 (3+7M)/
4
0 360- --
180M
s1 5/2 0 7/2 1 ¼ -¼ 0 480 480/(7/2)=137
X2 ½ 1 ½ 0 -¼ ¼ 0 120 120/(1/2)=240
A2 ½ 0 3/2 0 ¾ -¾ 1 180 180/(3/2)=120(min)
X2 1/3 1 0 0 -½ ½ - 1/3 60
Standard Form
Min Z= 4X1 + X2
Subject to
3X1 + X2 = 3
4X1 + 3 X2 –S1=6
X1 + 2 X2 +S2=4
X1 ,X2 ,X3, S1, S2≥0
Big M Method
Min Z= 4X1 + X2 +M A1+ MA2
Subject to
3X1 + X2 +A1 = 3
4X1 + 3 X2 –S1+A2=6
X1 + 2 X2 +S2=4
X1 ,X2 ,X3, S1, S2 , A1 , A2 ≥0
Z (7M-4) (4M-1) -M 0 0 0 9M
A1 3 1 0 0 1 0 3
A2 4 3 -1 0 0 1 6
S2 1 2 0 1 0 0 4
Basi X1 X2 s1 s2 A1 A2 Solution Ratio
c
Z (7M-4) (4M-1) -M 0 0 0 9M -
A1 3 1 0 0 1 0 3 3/3=1
(min)
A2 4 3 -1 0 0 1 6 6/4=1.5
S2 1 2 0 1 0 0 4 4/1=4
Basic X1 X2 s1 s2 A1 A2 Solution Ratio
X1 1 1/3 0 0 1/3 0 1
A2 0 5/3 -1 0 -4/3 1 2
S2 0 5/3 0 1 -1/3 0 3
Basic X1 X2 s1 s2 A1 A2 Solution Ratio
Given Constraints
Max Z= 2X1 + 3 X2 + 4X3
Subject to
3X1 + X2 + 4X3+S1= 600
2X1 + 4 X2 + 2X3-S2+A1=480
2X1 + 3 X2 + 3X3+A2=540
X1 ,X2 ,X3, S1, S2, A1, A2≥0
Two Phase Method
Phase 1
Min p= A1+A2
3X1 + X2 + 4X3+S1= 600
2X1 + 4 X2 + 2X3-S2+A1=480 A1= -2X1 - 4 X2 - 2X3+S2+480
2X1 + 3 X2 + 3X3+A2=540 A2= -2X1 - 3 X2 - 3X3+540
X1 ,X2 ,X3, S1, S2, A1, A2≥0
P =A1+A2
P = (-2X1 - 4 X2 - 2X3+S2+480 ) +(-2X1 - 3 X2 - 3X3+540)
P =- 4X1 - 7 X2 - 5X3+S2+1020
P+ 4X1 + 7 X2 + 5X3-S2 =1020
Subject to
3X1 + X2 + 4X3+S1= 600
2X1 + 4 X2 + 2X3-S2+A1=480
2X1 + 3 X2 + 3X3+A2=540
X1 ,X2 ,X3, S1, S2, A1, A2≥0
Basic X1 X2 X3 s1 s2 A1 A2 Solution Ratio
P 4 7 5 0 -1 0 0 1020
s1 3 1 4 1 0 0 0 600
A1 2 4 2 0 -1 1 0 480
A2 2 3 3 0 0 0 1 540
Basic X1 X2 X3 s1 s2 A1 A2 Solution Ratio
P 4 7 5 0 -1 0 0 1020
s1 3 1 4 1 0 0 0 600 600/1=600
A1 2 4 2 0 -1 1 0 480 480/4=120(min)
A2 2 3 3 0 0 0 1 540 540/3=180
Basic X1 X2 X3 s1 s2 A1 A2 Solution Ratio
P 0 0 0 0 0 -1 -1 0
Since, at the optimal Iteration the min p=0 , the given problem
has a solution goto Phase-II
Phase II
Subject to
Basic X1 X2 X3 s1 s2 A1 A2 Solution
P 0 0 0 0 0 -1 -1 0
Z -2 -3 -4 0 0 0
s1 4/3 0 0 1 -3/2 60
X2 1/3 1 0 0 -½ 60
X3 1/3 0 1 0 ½ 120
Max Z= 2X1 + 3 X2 + 4X3
Subject to Constraints
4/3 X1 +S1 -3/2S2=60
1/3 X1 + X2 -1/2 S2=60 X2 = 60 -1/3 X1 +1/2 S2
1/3 X1 +X3 +1/2S2=120 X3 = 120 -1/3 X1 -1/2S2
X1 ,X2 ,X3, S1, S2≥0
Max Z= 2X1 + 3 X2 + 4X3
=2X1+3(60 -1/3 X1 +1/2 S2 )+4(120 -1/3 X1 -1/2S2 )
=X1(2+ {3*-1/3} +{4*-1/3}) + S2(3*1/2-4*1/2)+(3*60+4*120)
Z=-1/3X1 -1/2 S2+ 660
Basic X1 X2 X3 s1 s2 Solution
Z 1/3 0 0 0 ½ 660
s1 4/3 0 0 1 -3/2 60
X2 1/3 1 0 0 -½ 60
X3 1/3 0 1 0 ½ 120
Since all the Z coefficients are positive the solution is optimal
The Optimal Solution is
Max Z= 660
X1=0
X2= 60
X3=120
Solve Min Z= 4X1 + X2
Subject to
3X1 + X2 = 3
4X1 + 3 X2 ≥6
X1 + 2 X2 ≤ 4
X1 ,X2 ≥0
Standard Form
Min Z= 4X1 + X2
Subject to
3X1 + X2 +A1 = 3
4X1 + 3 X2 –S1+A2=6
X1 + 2 X2 +S2=4
X1 ,X2 ,X3, S1, S2 , A1 , A2 ≥0
Two Phase Method
Phase I
Min P= A1+ A2
Subject to
3X1 + X2 +A1 = 3
4X1 + 3 X2 –S1+A2=6
X1 + 2 X2 +S2=4
X1 ,X2 ,X3, S1, S2 , A1 , A2 ≥0
Min P= A1+ A2
Subject to
3X1 + X2 +A1 = 3 A1 = 3- 3X1- X2
4X1 + 3 X2 –S1+A2=6 A2= 6 -4X1 - 3 X2 +S1
X1 + 2 X2 +S2=4
X1 ,X2 ,X3, S1, S2 , A1 , A2 ≥0
P 7 4 -1 0 0 0 9
A1 3 1 0 0 1 0 3
A2 4 3 -1 0 0 1 6
S2 1 2 0 1 0 0 4
Basic X1 X2 s1 s2 A1 A2 Solution Ratio
P 7 4 -1 0 0 0 9 -
A1 3 1 0 0 1 0 3 3/3=1(min)
A2 4 3 -1 0 0 1 6 6/4=1.5
S2 1 2 0 1 0 0 4 4/1=4
Basic X1 X2 s1 s2 A1 A2 Solution Ratio
P 0 5/3 -1 0 -7/3 0 2
X1 1 1/3 0 0 1/3 0 1
A2 0 5/3 -1 0 -4/3 1 2
S2 0 5/3 0 1 -1/3 0 3
Basic X1 X2 s1 s2 A1 A2 Solution Ratio
P 0 5/3 -1 0 -7/3 0 2 --
X1 1 1/3 0 0 1/3 0 1 1/(1/3)=3
A2 0 5/3 -1 0 -4/3 1 2 2/(5/3)=6/5(m
S2 0 5/3 0 1 -1/3 0 3 3/(5/3)=9/5
Basic X1 X2 s1 s2 A1 A2 Solution Ratio
P 0 0 0 0 -1 -1 0
X1 1 0 1/5 0 3/5 -1/5 3/5
X2 0 1 -3/5 0 -4/5 3/5 6/5
S2 0 0 1 1 1 -1 1
Since, at the optimal Iteration the min p=0 , the given problem
has a solution goto Phase-II
Basic X1 X2 s1 s2 A1 A2 Solution Ratio
P 0 0 0 0 -1 -1 0
X1 1 0 1/5 0 3/5 -1/5 3/5
X2 0 1 -3/5 0 -4/5 3/5 6/5
S2 0 0 1 1 1 -1 1
Phase II
Min Z= 4X1 + X2
Subject To
X1+1/5 S1 = 3/5
X2-3/5 S1=6/5
S1+S2=1
X1,X2 ,S1,S2≥0
Phase II
Min Z= 4X1 + X2
Subject To
X1+1/5 S1 = 3/5 X1 = 3/5 - 1/5 S1
X2-3/5 S1=6/5 X2 = 6/5 +3/5 S1
S1+S2=1
X1,X2 ,S1,S2≥0
Min Z= 4X1 + X2
Z = 4( 3/5 - 1/5 S1 ) + (6/5 +3/5 S1 )
Z= S1(-4/5+3/5) + (12/5+6/5)
Z= -1/5 S1 + 18/5
Z+1/5 S1 = 18/5
Basic X1 X2 s1 s2 Solution Ratio
Z 0 0 1/5 0 18/5
X1 1 0 1/5 0 3/5
X2 0 1 -3/5 0 6/5
S2 0 0 1 1 1
Basic X1 X2 s1 s2 Solution Ratio
Z 0 0 1/5 0 18/5 ---
X1 1 0 1/5 0 3/5 (3/5)/(1/5)=3
X2 0 1 -3/5 0 6/5 ---
S2 0 0 1 1 1 1/1=1 (min)
Basic X1 X2 s1 s2 Solution Ratio
Z 0 0 0 -1/5 17/5
X1 1 0 0 -1/5 2/5
X2 0 1 0 3/5 9/5
S1 0 0 1 1 1
Since all the Z coefficients are negative the solution is optimal
The Optimal Solution is
Min Z= 17/5
X1=2/5
X2= 9/5
Degenerate Optimal Solution
Max Z=3 X1 +9 X2
Subject to
X1 +4 X2 ≤ 8
X1 + 2 X2 ≤ 4
X1 ,X2 ≥0
Basic X1 X2 s1 s2 Solution Ratio
Z -3 -9 0 0 0 -
S1 1 4 1 0 8 8/4=2
S2 1 2 0 1 4 4/2=2
Z -3/4 0 9/4 0 18
X2 ¼ 1 ¼ 0 2
S2 ½ 0 -1/2 1 0
Z 0 0 3/2 3/2 18
X2 0 1 ½ -1/2 2
X1 1 0 -1 2 0