LPP - Handwritten
LPP - Handwritten
) Qeyl — ayy! tay ze, B Aiafi t O > unvestrteted dn sym spare | Scanned with CamScannerNEE eT ty Jeneral 4 prtmal is MR 22 guy tat t-- = Tom Str a % + yyty te t4n%n 2b, Qt aXe t - -- + Ary%y = by ami% tamara t = + Amn%n = bm ne 22 thin dual i (Min Wh = bits tater <= + btm vt. Ba tA a te + Many 2G Be fu + faa fa * w--4 re cy ze +4 m 2 om aim ¥) eae on de frac gm all wnresttctid en Sgn . vai sus che dual Yanda cormaperdlin | PRAY, enipuin we unvestoicttd fn Algn- : pustrictd im ston, he primal voit al nibeatde | aoe equal a A jmize fF babe fini . (wid [Ma og + 3%3 23 2H +he- 3%, = -3 Abe 2 a t 2h, <4 3% +0x, 42%3 unrest clad Scanned with CamScanner oe reer NEESER DO12.13. (1) DUAL SIMPLEX METHOD (26) In § 12.9, we have seen that a set of basic variables giving a feasible solution can be found by introducing artificial variables and using M-method or Two-phase method. Using she primal-dual relationships for a problem, we have another method (known as Dual simplex method) for finding an initial feasible solution. Whereas the regular simplex method starts with a basic feasible (but non-optimal) solution and works towards optimality, the dual simplex method starts with a basic infeasible (but optimal) solution and works towards feasibility. The dual simplex method is quite similar to the regular simplex method, the only difference lies in the criterion used for selecting the incoming and outgoing variables, In the dual simplex method, we first determine the outgoing variable and then the incoming variable while in the case of regular simplex method reverse is done. Scanned with CamScannertec NUMERICAL METHODS IN ENGINEERING AND i a : thod : (27 “t (2) Working procedure for dual simplex me oe tei ends Step 1. (i) Convert the problem to maximization fo sie 50. : i to ($type by multiplying such ¢, (i) Convert (2) type constraints, ifany stra \ t ‘i i -1 5 : , (iii) Express the problem in standard form by introducing alec Variables, Step 2. Find the initial basic solution and express this information in the fom simplex table. n =e-Z,: Step 3. Test the nature of C= ¢;- 2; : (q) Ifall C,< 0 and all b, 2 0, then optimal basic feasible solution has been . 7 1 (@) fall G,<0 and at least one b; < 0, then go to step 4. ing (©) Ifany C,2 0, the method fails. Step 4. Mork the outgoing variable. Select the row that contains the most 4g, This willbe the key row and the corresponding basie variable is the outgoing vayighy Step 5. Test the nature of key row elements : ge (a) Ifall these elements are > 0, the problem does not have a feasible solution (0) Ifat least one element < 0, find the ratios of the corresponding elements org to these elements, Choose the smallest of these ratios. The corresponding column ig" column and the associated variable is the incoming variable. he Step 6. Iterate towards optimal feasible solution. Make the key element unity, Port row operations as in the regular simplex method and repeat iterations until either mal feasible solution is attained or there is an-indication of non-existence of a feasible, tion. e : Example 12.27. Using dual simplex method : > maximize ~ 3x, ~ 2x9, : : 2 subject to x, + x,2 1, x, 4%, $7, x, + 2,2 10, x, <3, x,20, X20. 2 : (Bombay, B. Teck, 2 Solution consists of the following steps : Step 1. (i) Convert the first and third constraints into (<) type. ~ ‘These constraints become % ot = 1,58, 247 <= 10, * (ti) Express the problem in standard for Introducing slack variables s,, 5,,,,-8, the. given problem takes the form Bx, — 2x + 05} + 0sy4.03p+08; 0° A =, -z, Polat ay 4sy=7, 8 2p Xp) 8p, 89) 8,8, 2 0- ariables 2, x, each equal to zero, we get the basic solute? Band z 20. Lsn= 7,5, Scanned with CamScannerERA =F ET BRTV = G/ thay © swollen retin [ TINEAR PROGRAMMING a | ie a3 | Initial solution is given by the table below : 23 re e o : : o 0 4 - = ey s 8 6 o i _ os 1 0 0 0 -1 2 . : 1 0 1 0 0 7 : _ a Se o 0 1 0 -10e i 0 Ss y 1 0 0 0 1 3 | Pingel oe 9 0 ° ° 0 ° i Cae 8 -2 0 ° ° 0 : i i Step 3. Test nature of C, Since all C, values are < 0 and b, =~ 1, 6. jafeasible. We therefore, proceed further. Step 4. Mark the outgoing variable. Since b, is negative and numerically largest, the third row is the key row and s, is the outgoing variable. Step 5. Calculate ratios of elements in Crow to the corresponding negative elements of the key Tow. ‘These ratios are ~ 3/ 1 = 3, — 2/- 2 = 1 (neglecting ratios corresponding to + ve or zero elements of key row). Since the smaller ratio is 1, therefore, x,-column is the key column and (2) is the key element. Step 6. Iterate towards optimal feasible solution. ( Drop s, and introduce x, alongwith its associated value ~ 2 under cy column. Con- vert the key element to unity and make all other elements of the key column zero. Then the second solution is given by the table below : ~ 10, the initial solution is optimal but G -38 -2 0 0 0 oO . & Basis a eg ay 5 5 8 6 0 sy -2 0 a 0 ¥ 0 4 0 83 +: 0 0 1 4 0 2 -2 % } 1 0 0 t o 5 0 ge Sch (ee 9 2 ee 5 -2° 1 0. -10 Zj=Eepay = 1 2 0 0 G=e-Z, -2 0 0 0 =1 0 dat 8 + Since all C, values are < 0 and 6, = 2, this solution is optimal but infeasible. We therefore proceed further. (i) Mark the outgoing variable Since b, is negative, the fourth row is the key row and s, g (iii) Calculate ratios of elements in Crrow to the corresponding negative elem row, is the outgoing variable. ents of the Scanned with CamScanner(4) TOMERIGAL METHODS IN ENGINEER 2B 0, Zi i. hie rato is 2-4 = (ngreeting other Fab;O#COFFESPORTN LO Yop 9 ‘ his ratio is-4/- y =" “l ey row), nd (-) xycolumn is the ey column and (2, with its associa ERY ja the key element, ted value - 8 under the ¢ d introduce x; the key column 2421°°!¥m; foe eer and mae all ther elements of he key column 20. Thenly, solution is given by the table below : iy, ° ° 0 eo a Sy % Basis 8 4% 1 0 -1 Lf i 0 a 0 0 0 1 1 1 4 Ag 8 ; 0 OF ie 7 & t a 0 0 '-10 19 1 z 1 bg -2 0 0 3 4 4 é 7 0 0 0-3 ug oh 4 Since all C, values are < 0 and all b's are 2 0, therefore this solution is Ont feasible. Thus the optimal solution is ay 24,3) = Sand Zyg, = 18: WExample 12.28, Using dual simplex method, solve the following problem . Minimize Z = 2x, + 2x, + 4% subject to | 2x, + 3xy + 6x22, 3x, +X + 7% $3, x, + 4x + Br, <5, a a (Kerala, B, Teh, Solution consists of the following steps : Step 1. (i) Convert the given problem to maximization form by writing Maximize Z’ = - 2x, - 2x, - dry. (ii) Convert the first constraint into (<) type. Thus it is equivalent to = 2x, - Bx, — 5x, S$- 2 (iii) Express the problem in standard form, Introducing slack variables s,, s» sq, the giver problem becomes max, Z' = - 2r,~2x, ~ 4x, + 03, + Os, +084 subject to - Br, ~ Bx, ~5x,'+ 8, + 05, + 084 =~ 2, Bx, +x, + Tay +05, +5 , y+ dey + Bry +05, + 05, + 55 = 5, Xp Xp ty 8, 92 Step 2, Find the initial basic solution. Setting the decision variables x,, x,, x, each equal to zero, we get the base sit " 4%, =%, == 0,8, =-2, 8, =3, 8, =5 and Z’ =0. Initial solution is given by the table below : Sy 8p 20 Scanned with CamScanner(EAR PROGRAMMING ‘Step 3. Test nature of C, since all C; values are $0 and b, = Step 4. Mark the outgoing variable. Since 5, < 0, the fist row is the key row and s, is the outgoing variable. - ‘Step 5. Calculate the ratio of elements of C,-row to the corresponding negative elements ofthe key row. ‘These ratios are - Y- 2 = 1, - 2/3 = 0.67, - 4/-5 = 0.8. Since 0.67 is the smallest ratio, x,-column is the key column and (~3)is the key element. Step 6. Iterate towards optimal feasible solution. Drop s, and introduce x, with its associated value - 2 under cg colums. revised dual simplex table is 2, the initial solution is optimal but infeasible. Then the i ae ~2 =4 0 0 0 oe Basis x X xy 5, % 55 8 -2 * 2B 1 3 = 8 0 0 23 0 % 13 0 16/3 v3 1 0 U3 0 53 - 58 0 - 23 43 0 1 m8 Z; ~ 4/3 -2 - 10/3 23 0 0 - 43 G ~ 23 0 -23 = -28 0 0 optimal and feasible. Thus the Since all G S 0 and all 6; are > 0, this soluti optimal solution is = 0, x, = 2/3, x = 0 and max. Z’ min. Z = 4/3. ie. PROBLEMS 12.8 Using dual simplex method, solve the following problems : 1. Maximize Z = — 3x, — subject to x, +2 1, 2x, + Bx, 225x220. 2, Minimize Z = 2x, +x, subject to x, +229, 4x, + 8x,26,x, + 2x, $3,x,,%)20. (Kurukshetra, B. Tech, 2005) 3, Minimize Z =x, + 2r, + Sty, subject to 2xj — x, +45 24,%, + Hq + 2xy $8, xy — Hg? 25.4; 5 Xp, %g20- 4, Minimize Z = Gx, + 7x, + 3x, + Bry ‘ subject to Br, + 6x) - Bx, + dx, 2 12, x, + 5x, ~ Gr, 210, Dey + Bixy +25 +2428, Xp App ys %420- 5, Minimize Z = 8x, + 2x, +x, + 4, subject to 2x, + dry + Sx, + x42 10, 3x, ~ xp + Ty — 2x42 2, Bit, + Dey +9 + Gig 215, Xp Xp » Hy %420- a 12.14, (1) TRANSPORTATION PROBLEM’ This is a special class of linear programming problems in which the objective is to fanivert ‘a single commodity from various origins to different destinations at a minimum cost. fe Scanned with CamScanner