Professional Documents
Culture Documents
BIGM - Two Phase PDF
BIGM - Two Phase PDF
1
Contents
2
If in a starting simplex tableau, we dont have an
identity sub matrix (i.e. an obvious starting BFS), then
we introduce artificial variables to have a starting BFS.
3
Big M Method
4
Suppose that ith constraint equation doesn't have a
slack variable. i.e.
ith constraint in the original LPP is either or = type .
5
Artificial variable objective coefficient
= - M (Sum of artificial variables) in a maximization
problem,
= M (sum of the artificial variables ) in a minimization
problem
where M is a very large positive number.
Mathematically M
6
Example 1
8
z = 4x1 + 3x2 + MR1 + MR2 Objective function
2x1 + x2 s1 +R1 = 10
x1 + x2 s2 +R2 =6 constraints
- 3x1 + 2x2 + s3 =6
9
Tabular form
Basic z x1 x2 S1 S2 R1 R2 S3 solution
z 1 -4 -3 0 0 -M -M 0 0
R1 0 2 1 -1 0 1 0 0 10
R2 0 1 1 0 -1 0 1 0 6
S3 0 -3 2 0 0 0 0 1 6
10
Since the z column does not change in the iterations, it may be
deleted
Basic x1 x2 S1 S2 R1 R2 S3 solution
z -4 -3 0 0 -M -M 0 0
R1 2 1 -1 0 1 0 0 10
R2 1 1 0 -1 0 1 0 6
S3 -3 2 0 0 0 0 1 6
12
Basic x1 x2 S1 S2 R1 R2 S3 solution
z -4 + 3M -3+2M -M -M 0 0 0 16M
R1 2 1 -1 0 1 0 0 10
R2 1 1 0 -1 0 1 0 6
S3 -3 2 0 0 0 0 1 6
13
Selecting pivot row and pivot column for a minimization problem
R1 2 1 -1 0 1 0 0 10
2 10/2
R2 1 1 0 -1 0 1 0 6
6/1
S3 -3 2 0 0 0 0 1 6 ---
14
Second iteration
Bas x1 x2 S1 S2 R1 R2 S3 solution Min.
ic ratio
z 0 -2+M -4-M -M 4 3M 0 0 20 +M
2 2 2
R2 0 1/2 1/2 -1 0 1 0 1
1/2 1/1/2
15
Final iteration
Basic x1 x2 S1 S2 R1 R2 S3 solution
z 0 0 -1 -2 1M (2-M)/2 0 22
x1 1 0 -1 0 1 0 0 4
x2 0 1 1 -1 0 1 0 2
S3 0 0 -13/2 0 0 0 1 14
Solution x1 = 4; x2 = 2; z = 22
16
Consider the following LPP:
Maximize z = 2 x1 + 3 x 2 5 x3
Subject to x1 + x 2 + x3 = 7
2 x1 5 x 2 + x3 10
x1 , x 2 , x3 0
17
Introducing surplus and artificial variables, s2, R1 and R2 , the
LPP is modified as follows:
Maximize z = 2 x1 + 3 x 2 5 x3 MR1 MR 2
Subject to x1 + x2 + x3 + R1 = 7
2 x1 5 x 2 + x 3 s 2 + R2 = 10
x1 , x 2 , x 3 , s 2 , R 1 , R 2 0
18
Basic z x1 x2 x3 s2 R1 R2 Sol.
20
If in any iteration, there is a tie for leaving variable
between an artificial variable and other variable
(decision, surplus or slack), we must prefer the
artificial variable to leave the basis.
21
TWO PHASE METHOD
22
Why use two phase method when Big M - method
is already there ?
23
Phase - I
24
Phase - II
25
Example
Subject to
2x1 + 4x2 + 3x3 32
x1 + 2x2 + 4x3 28
x1, x2, x3 0
26
s1, s2 surplus variable
R1 , R2 artificial variables
Subject to
27
Phase I: (construct an auxiliary LPP)
construct a new objective function in which the
coefficients of artificial variables are 1 and the
coefficients of all other variables are zero
Constraints
28
Basic x1 x2 x3 s1 s2 R1 R2 solution
r 0 0 0 0 0 -1 -1 0
R1 2 4 3 -1 0 1 0 32
R2 1 2 4 0 -1 0 1 28
Thus
New r-row = r-row + R1 row + R2 row
29
Standard simplex table
Basic x1 x2 x3 s1 s2 R1 R2 solution
r 3 6 7 -1 -1 0 0 60
R1 2 4 3 -1 0 1 0 32
R2 1 2 4 0 -1 0 1 28
30
Applying the usual simplex method for solving a
minimization problem
R1 2 4 3 -1 0 1 0 32 32/3
R2 1 2 4 0 -1 0 1 28 28/4
4
31
Basic x1 x2 x3 s1 s2 R1 R2 solution
32
Basic x1 x2 x3 s1 s2 R1 R2 solution
r 0 0 0 0 0 -1 -1 0
33
Phase II
34
Form a simplex table
Basic x1 x2 x3 s1 s2 solution
z -4 -6 -5 0 0 0
35
z row = z row + 6*(x2 row) + 5*(x3 row)
Basic x1 x2 x3 s1 s2 solution
z -1 0 0 -12/5 -2 252/5
Since all the conditions for optimality (for a minimization problem) are
being satisfied. Phase two ends at this point.
36
Solve using Two-Phase Method
Maximize z = 2 x1 + 3 x 2 5 x3
Subject to x1 + x 2 + x3 = 7
2 x1 5 x 2 + x3 10
x1 , x 2 , x3 0
37
Solve using Two Phase-Method
Maximize z = 2 x1 + 2 x2 + 4 x3
Subject to
2 x1 + x2 + x3 2
3 x1 + 4 x2 + 2 x3 8
x1 , x2 , x3 0
38
Consider the LPP:
Minimize z = 2 x1 + 5 x2 + 3 x3
Subject to
x1 2 x 2 + x 3 2 0
2 x1 + 4 x 2 + x 3 = 5 0
x1 , x 2 , x 3 0
39
Phase I:
Minimize r = R1 + R2
Subject to
x1 2 x2 + x3 s1 + R1 = 20
2 x1 + 4 x2 + x3 + R2 = 50
x1 , x2 , x3 , s1 , R1 , R2 0
40
Basic r x1 x2 x3 s1 R1 R2 Sol
3 2 2 -1 0 0 70
r 1 0 0 0 0 -1 -1 0
R1 0 1 -2 1 -1 1 0 20
R2 0 2 4 1 0 0 1 50
r 1 0 8 -1 2 -3 0 10
x1 0 1 -2 1 -1 1 0 20
R2 0 0 8 -1 2 -2 1 10
41
Basic r x1 x2 x3 s1 R1 R2 Sol
r 1 0 8 -1 2 -3 0 10
x1 0 1 -2 1 -1 1 0 20
R2 0 0 8 -1 2 -2 1 10
r 1 0 0 0 0 -1 -1 0
42
This is optimal tableau. Thus Phase I has ended and we
now start Phase II with the starting BFS as the optimal
solution of Phase I.
Phase II:
Minimize z = 2 x1 + 5 x2 + 3x3
43
Basic z x1 x2 x3 s1 R1 R2 Sol
0 0 -17/8 1/4 205/4
z 1 -2 -5 -3 0 0
x1 0 1 0 3/4 -1/2 45/2
x2 0 0 1 -1/8 1/4 5/4
z 1 0 -1 -2 0 50
x1 0 1 2 1/2 0 25
s1 0 0 4 -1/2 1 5
45