Two Phase Method Notes
Two Phase Method Notes
X1 + 0. X2 + 0. X3 + 0. X4 + Xs + 0. X6 = 4,
in which ~ ~ 0, j = 1., 2, 3, 4, 5, 6:
The au~iliary objective function to be maximized
is given by
z· =·0. X1 + 0. X2 + 0. X3 + 0. X4 + 0. X5 - x6
subject to the above system of equations.
es and x 6 is the
Here x1, x 2, x 3, x 4 and x 5 are the legitimate variabl
artificial variable.
and obtain
We then construct the simplex tableaux successively
PHASE I : TABLEAU 1
- I
- c·J 0 0 , 0 0
a.
0
as
-]
Cg
r--:: _ B
~
Xa b
2 [I]
81 82
I
83
- 1 0 0
°'I
x"
'O 84 2 I 3 0 1 0 0
0. X4
0
as Xs 4 l 0 0 0 1
I'- -
<.j - C; 2 l l 0 0 0
i J,
· LINEAR PROGRAMMING
r... •.
222
PHASE t : TABLEAU 2
Cj
0 0 0
31 32 83
Xs b
B -21 - .!.
1 1 2
Xi
0 0 -5 1
X4 1 2 2
0 84 1 1
3 0 2 2 0
as Xs
0 I
Zj- Cj 0 0 0
c·J 3 -1 0 0 0
Cs B Xs., .b . 81 32 33 a. as
3 1 0 . 0
31 Xi 1 1 -1
2 2
0 1. 0
0
~
3s
X4
Xs
I
3
0
0
5
-
2
- .!
lTI I 0 \
2 2
Zj- Cj 0 -5
3 0
2 2
i
~
SIMPLEX ALGORITHM
I 223
c·J 3 -1 0 0 0
___...,..--..--B XB b 81 82 83 84 85
___.
~ a, X1 2 1 3 0 1. 0
3 I
a3 X3 2 0 .5 1 ·2 0
0
, 2 0 !-3 0
0 as Xs - 1 1
i---
0 10
- 0
Zj- Cj 3 0
Here zi- ci ~ 0, for all J.. The optunality. ..
condition has been
satisfied. The optimal solution is
x1 = 2 , x2 = 0 and z~ = 3.2 - 0 = 6.
Ex. 2. Use two-phase simplex meth(!d to solve the problem
.
.
Maximize Z = 2x1 + Xi+ X3
subject to 4x 1 + 6.x2 + 3x3 ~ 8,
.
\
-
3x1 - 6.x2 - 4x3 ~ 1,
2x1 + 3x2 - 5x3 ~ 4,
x1 , x2 , ~ ~ 0. [ Nof'!h Bengal.Hons., 200 7]
To put the problem in the standard form, we introduce the slack
variables x4 ~ 0, x5 ~ 0 and a· surplus variable x ~ 0. The problem
6
is then stated.as .,,,,- .·
· Maximize 2x1 + X2 + X3 '. 0. _X4 + 0. X5 + 0. X6
Z=
subject to 4x1 + 6.x2 + 3x3 + X4 =· 8,
3x1 - 6x2 - 4x3 + x5 = 1,
2x1 + 3Xi - 5x3 :- x6 = 4.
c Obviously we are to introduce one artificial variable x., to the
st third
on raint equation so that the new set of constraints become
4x1 +. 6x2 + 3x3 ~ x4 = 8,
3x1 -6x2 -4x~ - +·x5 =1,
2xi + 3x2 - 5x3 - x6 + x., = 4. ·
LINEAR PROGRAMMING
224
.. biective function' to be maximized is .
The auxthafY O J given by
• Q + Q. x2 + 0. X3 + 0. X4 + 0. x5 + Q, X
z :::: . X1 6 - x1
. t those constraints.
subJect o
ct the simplex tableaux successively and
~~~s tJ.1.l ~
0 0 0 0 ------r,-......
0 ... I
Cj 0
b a1 a2 33 a4 as -~
r--..
a.,
--
B
CB
-
~ 3 1 0 0 0
34 8 4
0 1
3 -6 -4 0 0 0
0 as · 1
3 -5 0 0 -1 1
a, 4 2 -
-1 0 1
·-2 -3 5 0 0
z;- Cj
4 2 1 -I -6I · 0 0 0
0 32 3 2.
3
0 -1 1 1 0 0
0 as 9 7
I 0 -1 1
-1 a, 0 0 0 --132 2
1 0
Zj- Cj 0 0
13 -2I 0
2
-
Max. z• = O
and the artific. 1 l vel. }lePce.
th . ia vector ,a, appears in the basis at the zero e ,naY
· note optimal
be
basic fi 'bl ·
. easi .e solution to the auxiliary L. · ·
p p maY oret tbi'
a basic feas'bl · · ·
1 e solution to the ongmal pro e · bl rn 'fog
'
. SIMPLEX ALGORITHM . 225 ,'
c·J 2 1 I ·o 0 0 0
a.c as a,
Cg B b 31
2
32 33
l I
0
"'0 0-
I 82
4 I 2 6
3 3
0 85 9 w 0 ~l 1 1 0 0
·J
.0 a, 0 0 0 _Q
2
--2I 0 -1
_ ·-4 ''
0 0 o.
Zj- Cj .
~ 3
_ _! 0
I 82
10
0 1 21
2
-21
9
0
I .o.
81
7
1 ' 7
0 a, 0 0 0
,o 1
t-- .
4 0
.........__ Zj- Cj 0 0 '
21·
~
.
· S Ive the following problem by two.phas
. Ex, 3. 0 • e 111eth0
· Maximize z = -Sxi + 3x2 · d:
·su~ject to 2x, + X2 $ 1,
3x1 + 4x2 ~ 12
and X1 , X2 ~ 0.
A"
s is seen, this table do . . .
i J
the usual criteria w · hes not give the optimal solution. FollowiJ
· ' e see t at 3 2 enters the b~sis and a3 leaves it.
:· PHASE I: TABLEAU 2
Cj 0 0 0 O·
Cs B XfJ b 31 82 83 a.
0 32 Xi I 2 I 1 0
- I.
85
8 -5 0 -4 -1
ZJ- C·
J 5 4 . 1.
0
- - - -· 4 - - - ·- --- -
- ----- - --- -
xi ~ 0, j = l , 2 , 3 , 4 ·, 5 .
PHASE I
Cj 0 0 0 - 1 -1
CB B XB b a1 82 a3 a. as
-1 34 X4 8 -3 2 3 1 0
-1 as Xs 7 -3 [I] 2 0 1
Zj- Cj 6· - 6 -5 0 0
1
--1
~ 1
9 3
34 X4
2
0 2
2
0 . 7 3 1. I
0 I
32 Xi 4 2 4
1---_ 4
3
Zj- Cj
3 0 -2 0 2
i----:.___ 2
0 I - l4
83 X3
9 - l 0 1 2. ,
4 4
0 5 . 3
1 0 _! 3
....___ 32 X2
·s 8 4 8
Zj- Cj 0 0 0 0 0
>
LINEAR PRQGRAMMfNG
228 .
- to sta. n. W.tth
ctors a4 and a5 gi. ve the• initial basis
. The Ve (p re vi ou s p~ ge ), a 2 enters th · As. is Seen
. the phase . I fir st tab lea u . h e ba
111
tru ct th e p as e I se co nd tab lea . _srs llll(I
aves it. Then .w•e co ns . S h . u. As I \
1e lea ve s 0 t at In the final Phase . S see. n,~
ba sis
nters the . . . an d 34
.
1t.
. I
e . e ba sts . So we sta rt the h. · tabJb..
there is no art.if1c1 al ~e cto
.
r tn th
b . . . P ase II '"""
.
tio n to e m ax 1m 1z ed w ill be , fabJea
where the ob Je tt1 ve fu nc
n
z = 2x1 + 3x2 + X3. •
be th e sta rting basis ·
p h :d th~ ~
The las t ba sis of ph aS e I w ill
tableau of phase ~
iti al ~a b lea u of
r ~ WrtJi a
.w! II ac t as t~ e in
change in the ob3ect1 ve ro ~ w1 th th e .pn ce s 2, 3, .1 fo
1
1s ch an ge d ac co rd in gl y. 'Xi ;-ti ·
respectively. The 8 c
_ co lu m n .
.
b. 31 82 83
-
B Xa
Ca -
X3
9 -
- -43 0 1
l 33 4
-45 - -83 1 0
3 32 X2
'
- -31 0 0
z·1 -. c·J 8