Professional Documents
Culture Documents
BA ZC414 - Lecture 7 PK Taught
BA ZC414 - Lecture 7 PK Taught
(BA ZC414)
Lecture-7
BITS Pilani Dr. Prasanna Kumar
Department of Mathematics
K K Birla Goa Campus
• Two-Phase Method
• Step 2
For now, ignore the original LP’s objective function.
Instead solve an LP whose objective function is
min w=(sum of all the artificial variables). This is
called the Phase I LP. The act of solving the phase
I LP will force the artificial variables to be zero.
min z=2x1+3x2
s.t. 1/2x1+1/4x2≤4
x1+ 3x2≥20
x1+ x2=10
x1,x2≥0
• Solution
As in the Big M method, we have
1/2 x1+1/4x2+s1 =4
x1+ 3x2 -s2+a2 =20
x1+ x2 +a3 =10
min w= a2+a3
s.t. 1/2 x1+1/4x2+s1 =4
x1+ 3x2 -s2+a2 =20
x1+ x2 +a3 =10
This set of equations yields a starting bfs for Phase
I(s1=4,a2=20,a3=10).
• Note:
The row 0 for this tableau (w-a2-a3=0) contains the
basic variables a2 and a3.as in the Big M method,
a2 and a3 must be eliminated from row 0 before
we can solve Phase I.
To eliminate a2 and a3 from row 0,
Row 0: w -a2-a3 =0
+Row 2: x1+3x2-s2+a2 =20
+Row 3: x1+ x2 +a3=10
=New row 0: w +2x1+4x2-s2 =30
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
Basic
z x1 x2 s1 e2 rhs variable
1 -2 -3 0 0 0 z=0
0 0 0 1 -1/8 ¼ s1=1/4
0 0 1 0 -1/2 5 x2=5
0 1 0 0 1/2 5 x1=5
Basic
z x1 x2 s1 s2 rhs variable
1 0 0 0 -1/2 0 z=25
0 0 0 1 -1/8 ¼ s1=1/4
0 0 1 0 -1/2 5 x2=5
0 1 0 0 1/2 5 x1=5
This is optimal.
The optimal solution is z=25 x1=5 x2=5.
• Solution
min w= a2+a3
s.t. 1/2 x1+1/4x2+s1 =4
x1+ 3x2 -s2+a2 =36
x1+ x2 +a3 =10
From this set of equations, we see that the initial Phase I
BFS is s1=4,a2=36 and a3=10.
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 ¼ 0 1 0 0 -1/4 3/2 s1=3/2
0 -2 0 0 -1 1 -3 6 a2=6
0 1 1 0 0 0 1 10 x2=10
Subject to
2x1 + 4x2 + 3x3 ≥ 32
x1 + 2x2 + 4x3 ≥ 28
x1, x2, x3 ≥ 0
BA ZC414 25
BITS Pilani, K K Birla Goa Campus
Standard Form
Subject to
BA ZC414 26
BITS Pilani, K K Birla Goa Campus
Phase I: (construct an auxiliary LPP)
Constraints
BA ZC414 27
BITS Pilani, K K Birla Goa Campus
Example 3
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
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
BA ZC414 29
BITS Pilani, K K Birla Goa Campus
Example 3
R1 2 4 3 -1 0 1 0 32
32/3
R2 1 2 4 0 -1 0 1 28
28/4
BA ZC414 30
BITS Pilani, K K Birla Goa Campus
Example 3
Basic x1 x2 x3 s1 s2 R1 R2 solution
BA ZC414 31
BITS Pilani, K K Birla Goa Campus
Example 3
Basic x1 x2 x3 s1 s2 R1 R2 solution
r 0 0 0 0 0 -1 -1 0
Phase II
The original problem can now be written as
Subject to
BA ZC414 33
BITS Pilani, K K Birla Goa Campus
Example 3
z -4 -6 -5 0 0 0
Since the coeff. of the identity sub matrix are non zero,
perform necessary operations to make them zero
BA ZC414 34
BITS Pilani, K K Birla Goa Campus
Example 3
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.
BA ZC414 35
BITS Pilani, K K Birla Goa Campus
THANQ
BA ZC414 36
BITS Pilani, K K Birla Goa Campus