Q. Solve the below LP using SIMPLEX method.Maximize −x1−x2+4x3, subject to (x1+x2+2x3≤9),(x1+x2−x3≤2),(−x1+x2+x3≤4), (x1,x2,x3≥0.)
Introduce slack variables: Introduce slack variables to convert inequalities into equations.Let x4, x5, and x6 be the slack variables for the respective constraints.x1+x2+2x3+x4=9x1+x2−x3+x5=2−x1+x2+x3+x6=4
Identify entering variable: Identify the entering variable.The entering variable is the one with the highest coefficient in the objective function row, which is x3.
Identify leaving variable: Identify the leaving variable using the minimum ratio test.Ratios for x3: 29, cannot use −12 (negative), 14.The smallest positive ratio is 4, so x6 will leave.
Perform row operations: Perform row operations to make x3 the basic variable in place of x6.Row x6 becomes: (Row x6+Row x1)/1New Row x6: 0x1+2x2+2x3+0x4+0x5+1x6=4
More problems from One-step inequalities: word problems