P. 1
Two Phase Method

Two Phase Method

|Views: 258|Likes:
Published by Jagat Singh Dhami

More info:

Published by: Jagat Singh Dhami on May 29, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

03/16/2015

pdf

text

original

Two Phase Method

Two phase Method Maximize z = 12x1 + 15x2 + 9x3 Subject to 8x1 + 16x2 + 12x3 <= 250 4x1 + 8x2 + 10x3 >=80 7x1 + 9x2 + 8x3 = 105 x1, x2, x3 >= 0 Solution Converting the inequalities into equalities. Introducing slack, surplus & artificial variables 8x1 + 16x2 + 12x3 + s1 = 250 4x1 + 8x2 + 10x3 – s2 + A1 = 80 7x1 + 9x2 + 8x3 + A2 = 105 Where: s1 is a slack variable. s2 is a surplus variable. A1& A2 are artificial variables.

Phase 1 Maximize 0x1 + 0x2 + 0x3 + 0s1 + 0s2 + (–A1) + (–A2) Subject to 8x1 + 16x2 + 12x3 + s1 = 250 4x1 + 8x2 + 10x3 – s2 + A1 = 80 7x1 + 9x2 + 8x3 + A2 = 105 x1, x2, x3, s1, s2, A1, A2 ³ 0 Equating x1, x2, x3, s2 to zero. Initial basic feasible solution s1 = 250, A1= 80, A2 = 105 Table 1

Here. thus x3 is the key column. Iteration will go further. 8 is the smallest positive value among the ratio.cB X cj B 0 x1 0 x2 0 x3 0 s1 0 s2 -1 A1 -1 A2 Ratio B/x3 0 -1 -1 zj–cj s1 A1 A2 250 80 105 8 16 12 4 8 10 7 9 8 -11 -17 -18 1 0 0 0 0 -1 0 1 0 1 0 0 0 0 1 0 250/12 8 105/8 Since zj–cj values are not positive. Table 2 Use the following formula to calculate the value for new table. -18 is the smallest value among zj–cj values. The original objective function is introduced in Phase 2 computation and the usual simplex procedure is used to solve the problem. thus A1 is the key row. Pivot Element = 10 A1 departs and x3 enters. . Phase 1 terminates because both the artificial variables have been removed from the basis. New Row (R2) = Old Row (R2) / Pivot Element (10) New Row (R1) = Old Row (R1) – key column value of old Row R1 (12) * New Row (R2) New Row (R3) = Old Row (R3) – key column value of old Row R3 (8) * New Row (R2) cj cB Basic variables X B 0 x1 0 x2 0 x3 0 s1 0 s2 -1 A2 Ratio B/x1 0 0 -1 zj-cj s1 x3 A2 154 8 41 16/5 2/5 19/5 -19/5 32/5 4/5 13/5 -13/5 0 1 0 0 1 0 0 0 6/5 -1/10 4/5 -4/5 0 0 1 0 48 20 10 A2 departs and x1 enters. Phase 2 The basic feasible solution at the end of Phase 1 computation is used as the initial basic feasible solution of the problem.

New Row (R3) = Old Row (R3) / Pivot Element (19/5) New Row (R1) = Old Row (R1) – key column value of old Row R1 (16/5) * New Row (R3) New Row (R2) = Old Row (R2) – key column value of old Row R2 (2/5) * New Row (R3) cj B 12 x1 15 x2 9 x3 0 x4 0 x5 Ratio B/x2 cB Basic variables X 0 9 12 zj-cj x4 x3 x1 2270/19 70/19 205/19 0 0 1 0 80/19 10/19 13/19 -39/19 0 1 0 0 1 0 0 0 10/19 -7/38 4/19 33/38 28 7 15 x3 departs and x2 enters. Table 4 Use the following formula to calculate the value for new table. x2 = 7.Table 3 Use the following formula to calculate the value for new table. New Row (R2) = Old Row (R2) / Pivot Element (10/19) New Row (R1) = Old Row (R1) – key column value of old Row R1 (80/19) * New Row (R2) New Row (R3) = Old Row (R3) – key column value of old Row R3 (13/19) * New Row (R2) cj cB Basic variables B 12 x1 15 x2 9 x3 0 x4 0 x5 Solution values b (= XB) 0 15 12 zj-cj x4 x2 x1 0 0 1 0 0 1 0 0 -8 19/10 -13/10 39/10 1 0 0 0 2 -7/20 9/20 3/20 90 7 6 The optimal solution is: x1 = 6. . x3 = 0 z = 12 X 6 + 15 X 7 + 9 X 0 = 177.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->