Two Phase Method
Two Phase Method
x1 + 2x2 - s1 + A1 = 2
3x1 +x2 + s2 = 3
x1 + s3 = 4
x1 ≥ 0 , x2 ≥ 0 , s1, ≥ 0, s2 ≥ 0 , s3 ≥ 0, A1 ≥ 0
Phase I:
• Auxiliary objective function
Max W = 0x1 + 0x2 +0s1 + 0s2 + 0s3 – A1
x1 + 2x2 - s1 +0s2 +0s3 +A1 = 2
3x1 +x2+0s1 + s2 + 0s3 +0A1 = 3
x1 + 0x2 + 0s1 + 0s2 + s3 +0A1 = 4
x1 ≥ 0 , x2 ≥ 0 , s1, ≥ 0, s2 ≥ 0 , s3 ≥ 0, A1 ≥ 0
• Now find the IBFS by putting (n-m) number of
variables zero.
Basic
xB
Ratio
C or
B
s1
Variables Solution
x1 x2 s2 s3 A1
-1 A1 2 1 2 -1 0 0 1
2/2=1
3/1=3
0 s2 3 3 1 0 1 0 0
0 0 0 1 0 4/0=infinity
0 s3 4 1
Zj -1 -2 1 0 0 -1
Cj - Zj 1 2 -1 0 0 0
Cj 0 0 -1
0 0 0
Basic
xB
Ratio
C or
B
s1
Variables Solution
x1 x2 s2 s3 A1
0
Zj 0 0 0 0 0
Cj - Zj 0 0 0 0 0 -1
• From the above table optimum value of W is
zero. Because artificial variable is not in basis
column.
Basic
xB Ratio
C or
B
s1
Variables Solution
x1 x2 s2 s3
-1/2 -2
3 x2 1 1/2 1 0 0
2/1/2=4
0
0 s2 2 5/2 1/2 1 0
4/0
0 0 0 1
0 s3 4 1 =infinity
-3/2
Zj 3/2 3 0 0
-5/2 0
Cj - Zj 3/2 0 0
Cj -1 3 0 0 0
Basic
xB Ratio
C or
B
s1
Variables Solution
x1 x2 s2 s3
3 x2 3 3 1 0 1 0
0
0 s1 4 5 1 2 0
0 0 0 1
0 s3 4 1
0
Zj 9 3 3 0
-10 0 0 -3 0
Cj - Zj
• In maximization case all Cj –Zj values are
negative or zero. Hence the problem has
optimal solution.
Basic
xB
Ratio
C or
B
A2
Variables Solution p q r s A1
-1 A1 1 1 -1 1 -1 1 0 1/1=1
A2 3 2 0
-1 -2 1 -1 1 3/2
3 -2 2 -1 -1
Zj -3
3 -3 2 -2 0 0
Cj - Zj
Cj 0 0 0 -1 -1
0
Basic
xB
Ratio
C or
B
A2
Variables Solution p q r s A1
1
0 p 1 1 -1 1 -1 0 -ve
1 0 -2 1/1= 1
-1 A2 0 -1 1 1
0 1 -1 2 -1
Zj 0
0 0 -1 1 -3 0
Cj - Zj
Cj 0 0 0 -1 -1
0
Basic
xB
Ratio
C or
B
A2
Variables Solution p q r s A1
0 p 2 1 -1 0 0 -1 1
s 1 0 -2
0 0 -1 1 1
0 0 0 0 0
Zj 0
0 0 0 0 -1 -1
Cj - Zj
• In maximization case all Cj –Zj values are
negative or zero. Hence the problem has
optimal solution.
• Optimum values of p = 2 , s =1