Two Phase Method
Two Phase Method
Two Phase Method
Method
The Two-Phase Simplex Method
For greater than or equal to constraint, the slack
variable has a negative co efficient
Equality constraints do not have slack variables
If either of constraint is part of the model, there is
no convenient IBFS and hence two phase method
is used
10
Phase II
When Phase I results in (B) or (C), we go on for Phase
II to find optimum solution to the given LP problem.
The basic feasible solution found at the end of Phase I
now used as a starting solution for the original LP
problem. Mean that find table of Phase I becomes
initial table for Phase II in which artificial (auxiliary)
objective function is replaced by the original objective
function. Simplex method is then applied to arrive at
optimum solution.
11
X1=3/2
X3=3
Hence Z= -4X1 -3X2 -9X3
Z= -4(1.5)-3(3)-9(0)
Z= -15
12
Example
Min Z =2x1+3x2
s.t. 1/2x1+1/4x2≤4
x1+ 3x2≥20
x 1+ x2=10
x1,x2≥0
Example
• Solution
As in the Big M method, step 1-3 transform the cons
traints into
1/2 x1+1/4x2+s1 =4
x1+ 3x2 -S2+a2 =20
x1+ x2 +a3 =10
Example 5
Step 4 yields the following Phase I LP:
0 ½ ¼ 1 0 0 0 4 s1=4 16
0 1 ③ 0 -1 1 0 20 a2=20 20/3*
0 1 1 0 0 0 1 10 a3=10 10
1 0 0 0 0 -1 -1 0 W’=0
1 2 4 0 -1 0 0 46 W’=46
0 ½ ¼ 1 0 0 0 4 s1=4 16
0 1 3 0 -1 1 0 36 a2=36 12
0 1 ① 0 0 0 1 10 a3=10 10*
1 -2 0 0 -1 0 -4 6 W’=6
0 -2 0 0 -1 1 -3 6 a2=6
0 1 1 0 0 0 1 10 x2=10
Example
• Since no variable in row 0 has a positive coeffi
cient, this is an optimal Phase I tableau.
• Since the optimal value of Z* is 6>0, the origin
al LP must have no feasible solution.
Remarks
• As with the Big M method, the column for any
artificial variable may be dropped from future
tableaus as soon as the artificial variable leave
s the basis.
• The Big M method and Phase I of the twp-pha
se method make the same sequence of pivots.
The two-phase method does not cause round
off errors and other computational difficulties.
Example 3
Solve given LPP by Two-Phase Method
28
Add artificial variable to the first constraint and
slack variable to second and third constraints.
Phase I
Assigning a cost 1 to artificial variable and cost o
to other variables, the objective function of the
auxiliary
LPP
Min
is Max
Z* 0x1 0x2 0x3 - A1
Min Z * 0x1 0x2 0x3 A1
0 Subject to 2x1 x2 6x3 A1
20 6x1 5x2 10x 3 S1
76
8x1 3x2 6x3 S2 50
29
CJ 0 0 0 0 0 -1
Basis CB XB X1 X2 X3 S1 S2 A1
Varia
ble
A1 -1 20 2 1 -6 0 0 1
S1 0 76 6 5 10 1 0 0
S2 0 50 8 -3 6 0 1 0
30
CJ 0 0 0 0 0 -1
Basis CB XB X1 X2 X3 S1 S2 A1 θ
Variabl
e
A1 -1 20 2 1 -6 0 0 1 10
S1 0 76 6 5 10 1 0 0 76/6
S2 0 50 8 -3 6 0 1 0 50/8
ZJ -2 -1 6 0 0 -1
CJ- ZJ 2 1 -6 0 0 0
Max Z 5x 1 4 x 3 x 3 0 S 1 0 S 2
M a x Z 5x 1 4 x 3 x 3 0 S 1 0 S 2
0
34
CJ 5 -4 3 0 0
Basis CB XB X1 X2 X3 S1 S2
Variabl
e
X2 -4 4.28 0 1 -4.28 0 -0.14
S1 0 7.47 0 0 36.53 0 0.765
X1 5 7.85 1 0 -0.86 0 0.073
ZJ 5 -4 12.82 0 0.925
CJ-ZJ 0 0 -9.82 0 -0.925
35
As the given problem is of maximization and all the
values in CJ-ZJ row are either zero or negative, an
optimal solution is reached and is given by
X1=7.855
X2=4.28 and
Z=5X1-4X2+3X3
Z=5(7.855)-4(4.28)+3(0)
= 22.15
36
Example 4
Solve by Two-Phase Simplex Method
37
Add artificial variable to the first constraint and
slack variable to second and third constraints.
Phase I
Assigning a cost 1 to artificial variable and cost o to
other variables, the objective function of the auxiliary
LPP is
A new auxiliary linear programming problem
- A1 - A2
Min Z* 0x1 0x2 0x3
Max
Min Z * A1 A2
0 1 4x2 6x3 S1 A1 15
2x
6x1 x2 6x3 S2 A2 12
38
Phase I
CJ 0 0 0 0 0 -1 -1
Basis CB XB X1 X2 X3 S1 S2 A1 A2
Variabl
e
A1 -1 15 2 4 6 -1 0 1 0
A2 -1 12 6 1 6 0 -1 0 1
39
Row Calculations
New Z*=R3+R1+R2
CJ 0 0 0 0 0 -1 -1
Basis CB XB X1 X2 X3 S1 S2 A1 A2 θ
Variab
l e
A1 -1 15 2 4 6 -1 0 1 O 15/6
A2 -1 12 6 1 6 0 -1 0 1 12/6
ZJ -8 -5 -12 1 0 -1 -1
CJ-ZJ 8 5 12 -1 -1 0 0
CJ 0 0 0 0 0
Basis CB XB X1 X2 X3 S1 S2
Variabl
e
X2 0 1 -4/3 1 0 -1/3 1/3
X3 0 11/6 11/9 0 1 1/18 -2/9
ZJ 0 0 0 0 0
CJ-ZJ 0 0 0 0 0
Optimality condition is satisfied as Z* is having
zero value
42
Phase II
Original objective function is given as
Consider the final Simplex table of Phase I, consider
the actual cost associated with the original variables.
Delete the artificial variable A1 column from the
table as it is eliminated in Phase II.