Two Phase Simplex Method
Two Phase Simplex Method
Subject to
3-+2≤ 7
2+4≥ -12
-4+3+8≤10
and , , ≥ 0
Standard Form of LPP
Minimize Z=-3+3+0+0+0
Subject to
3-+2+ 7
-24+ 12
-4+3+8+10 and
, , , ,,≥ 0
ITERATIO
N1
Basic RHS RATIO
Variable
3 -1 2 1 0 0 7 -
-2 -4 0 0 1 0 12 -
-4 (3) 8 0 0 1 10
Z -1 3 -3 0 0 0 0
Steps
1. Write the standard form of given LPP and then add artificial variables to the
(≥)type and (=) type constraints.
2. Form the auxiliary LPP, the objective function is to minimize the sum of all
artificial variables subject to constraints of given LPP.
3. Find a basic feasible solution to the given LPP by solving the auxiliary LPP.
The removal of artificial variables and their column at the end of Phase I can take place
only when they are all nonbasic. If one or more artificial variables are basic ( at zero
level) at the end of Phase I, then the following additional steps must be under taken to
remove them prior to start Phase II
Step 1. Select a zero artificial variable to leave the basic solution and designate its row
as pivot row. The entering variable can be any nonbasic (non artificial) variable with
nonzero (positive or negative) coefficient in the pivot row. Perform the associated
simplex iteration.
Step 2. Remove the column of the (Just-leaving) artificial from the tableau. If all the
zero artificial variables have been removed , go to Phase II.
Otherwise, go back to Step I.
Phase II
Steps
2. Replace the artificial objective function row (i.e.,r-row )by the given
LPP objective function.
Minimize z 4 x1 x2
Subject to:
3 x1 x2 3
4 x1 3 x2 6
x1 2 x2 4
x1 , x2 0
Solution:
Phase I: AUXIALIARY LPP
Minimize: r R1 R2
Subject to:
3x1 x2 R1 3
4 x1 3x2 x3 R2 6
x1 2 x2 x4 4
x1 , x2 , x3 , x4 , R1 , R2 0
3 0 0 1 0 1 3 R1
6 0 1 0 1- 3 4 R2
4 1 0 0 0 2 1 x4
9 0 1- 1- 0 0 0 r
3 0 0 1 0 1 3 R1
6 0 1 0 1- 3 4 R2
4 1 0 0 0 2 1 x4
9 0 0 0 1- 4 7 r
By using new r-row, we solve Phase I of the problem which yields
the following optimum tableau
RHS x4 R2 R1 x3 x2 x1 Basic
variable
3/5 0 1/5- 3/5 1/5 0 1 x1
1 1 1- 1 1 0 0 x4
0 0 1- 1- 0 0 0 r
Minimize: z 4 x1 x2
Subject to:
and
RHS x4 x3 x2 x1 Basic
variable
3/5 0 1/5 0 1 x1
6/5 0 3/5- 1 0 x2
1 1 1 0 0 x4
0 0 0 1- 4- z
3/5 0 1/5 0 1 x1
6/5 0 3/5- 1 0 x2
1 1 1 0 0 x4
18/5 0 1/5 0 0 z
2/5 0 0 1 x1
9/5 0 1 0 x2
1 1 1 0 0
17/5 0 0 0 z
Maximize Z=3+2+3
Subject to
2++≤ 2
3+4+2≥ 8 and ≥ 0
Phase I
Auxiliary LPP
Minimise r=R
Subject to
2+++= 2
3+4+2-+R = 8 and R ≥ 0
Phase I
Iteration 1
Basic RHS
Variable
2 (1) 1 0 1 0 2
R 3 4 2 -1 0 1 8
r 3 4 2 -1 0 0 8
Phase I
Iteration 2
Basic RHS
Variable
2 1 1 0 1 0 2
R -5 0 -2 -1 -4 1 0
r -5 0 -2 -1 -4 0 0
Since r=0 and artificial variable R appears in the Phase I Optimal table at
zero level, Go to Phase II
Phase II
Iteration 1(Replace the last row in the Optimal table of Phase I by given
LPP Objective function)
Basic RHS
Variable
2 1 1 0 1 2
R -5 0 -2 -1 -4 0
Z 1 0 -1 0 2 4
Iteration 2
Basic RHS
Variable
2 1 1 0 1 2
2.5 0 1 0.5 2 0
Z 3.5 0 0 0.5 4 4
2. When determining the leaving variable of any tableau, if there is no positive ratio (all the
entries in the pivot column are negative and zeroes), then the solution is unbounded.
3. If there is a tie in determining the leaving variable, choose any one to be the leaving
variable. In this case a zero will appear in RHS column; therefore, a “cycle” will occur, this
means that the value of the objective function will be the same for several iterations.
4. A Solution that has a basic variable with zero value is called a “degenerate solution”.
5. If there is no Artificial variables in the problem, there is no room for “infeasible solution”
24
Example (Degenerate Optimal Solution)
Maximize Z = 3+9
Subject to
+4≤ 8
+2≤ 4 and , ≥ 0
Example (Infinite Number of Solutions)
Maximize Z=2+4
Subject to
+2≤ 5
+ and ,≥ 0
Example (Unbounded Solution)
Maximize Z= 2+
Subject to
-≤ 10
2≤ 40 and , ≥ 0
Example (Infeasible Solution)
Maximize Z= 3+2
Subject to
2+≤ 2
3+4≥ 12 and , ≥ 0
29