Deck 4: Solving Linear Programming Problems: the Simplex Method
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/4
Play
Full screen (f)
Deck 4: Solving Linear Programming Problems: the Simplex Method
1
Work through the simplex method (in algebraic form)step by step to solve the following problem.Maximize Z = x1 + 2x2 + 2x3,subject to 5x1 + 2x2 + 3x3 ≤ 15 x1 + 4x2 + 2x3 ≤ 12 2x1 + x3 ≤ 8 and x1 ≥ 0,x2 ≥ 0,x3 ≥ 0.
We introduce x4,x5,and x6 as slack variables for the respective functional constraints.The augmented form of the problem then is Maximize Z = x1 + 2 x2 + 2 x3,subject to 5 x1 + 2 x2 + 3 x3 + x4 = 15 x1 + 4 x2 + 2 x3 + x5 = 12 2 x1 + x3 + x6 = 8 and x1 0,x2 0,x3 0,x4 0,x5 0,x6 0.The simplex method in algebraic form is applied to this augmented form of the problem as follows.Initialization: Let x1,x2 and x3 be the nonbasic variables,so x1 = x2 = x3 = 0.Solving for x4,x5 and x6 from the equations in the constraints: (1)5 x1 + 2 x2 + 3 x3 + x4 = 15 (2)x1 + 4 x2 + 2 x3 + x5 = 12 (3)2 x1 + x3 + x6 = 8 we obtain the initial BF solution (0,0,0,15,12,8).The objective function is Z = 1 x1 + 2 x2 + 2 x3.The current BF solution is not optimal since we can improve Z by increasing x1 or x2 or x3.Iteration 1: Z = x1 + 2 x2 + 2 x3.We choose x2 as the entering basic variable because increasing it (or x3)increases Z at the fastest rate.(Alternatively,because of the tie,x3 can be chosen instead to be the entering basic variable,in which case Iteration 2 would lead to x2 becoming the entering basic variable at that point instead of x3.)Next,we need to decide how far we can increase x2. Since we need variables x4,x5 and x6 to stay nonnegative,from the minimum ratio test,we find that x2 can be increased to 3,at which point x5 has decreased to 0.Therefore,the variable x5 is the leaving basic variable,so it becomes a nonbasic variable.To find the new BF solution,we start with the current equations (1),(2),and (3)given above along with (0)Z - x1 - 2 x2 - 2 x3 = 0.Since x2 now is a basic variable,proper form from Gaussian elimination is restored by dividing Eq.(2)by 4,adding 2 times this new Eq.(2)to Eq.(0),and subtracting 2 times this new Eq.(2)from Eq.(1).This yields the following system of equations: (0)Z - 0.5x1 - x3 - 0.5x5 = 6 (1)4.5 x1 + 2x3 + x4 - 0.5x5 = 9 (2)0.25 x1 + x2 + 0.5 x3 + 0.25x5 = 3 (3)2 x1 + x3 + x6 = 8 Thus,the new BF solution is (0,3,0,9,0,8)with Z = 6.Iteration 2: The objective function becomes Z = 0.5 x1 + x3 - 0.5 x5 + 6.The current BF solution is not optimal since we can improve Z by increasing either x1 or x3 .Since x3 has the larger coefficient,increasing it gives the larger rate of improvement in Z (1).Hence,we choose x3 as the entering basic variable.From the minimum ratio test,we find that x3 can be increased to 4.5,at which point x4 has decreased to 0.Thus,the variable x4 becomes the leaving basic variable.Using elementary algebraic operations to restore proper form from Gaussian elimination,we obtain the following system of equations: (0)Z + 1.75 x1 + 0.5 x4 + 0.25 x5 = 10.5 (1)2.25 x1 + x3 + 0.5 x4 - 0.25 x5 = 4.5 (2)- 0.875 x1 + x2 - 0.25 x4 + 0.375 x5 = 0.75 (3)- 0.25 x1 - 0.5 x4 + 0.25 x5 + x6 = 3.5 The new form of the objective function is Z = -1.75 x1 - 0.5 x4 - 0.25 x5 + 10.5,which has no positive coefficients.Therefore,the new BF solution (0,0.75,4.5,0,0,3.5)is optimal with Z = 10.5.
2
Consider the following problem.Minimize Z = 3x1 + 2x2,subject to 2x1 + x2 ≥ 10 -3x1 + 2x2 ≤ 6 x1 + x2 ≥ 6 and x1 ≥ 0,x2 ≥ 0.
(a)Solve this problem graphically.
(b)Using the Big M method,construct the complete first simplex tableau for the simplex method and identify the corresponding initial (artificial)BF solution.Also identify the initial entering basic variable and the leaving basic variable.
(c)Work through the simplex method step by step to solve the problem.
(a)Solve this problem graphically.
(b)Using the Big M method,construct the complete first simplex tableau for the simplex method and identify the corresponding initial (artificial)BF solution.Also identify the initial entering basic variable and the leaving basic variable.
(c)Work through the simplex method step by step to solve the problem.
(a)
Thus,the optimal solution is (x1,x2)= (4,2)with Z = 16.
(b)We introduce the surplus variables x3,x4,slack variable x6, and artificial variables x5 and x7. (Note that these supplementary variables can be numbered in any order.)Using the Big M method,the introduction of these supplementary variables gives the following form of the problem.Minimize Z = 3 x1 + 2 x2 + M x5 + M x7,subject to 2x1 + x2 - x3 + x5 = 10 -3x1 + 2x2 + x6 = 6 x1 + x2 - x4 + x7 = 6 and x1 0,x2 0,x3 0,x4 0,x5 0,x6 0,x7 ≥ 0.Converting from minimization to maximization,we next have Maximize Z = - 3 x1 - 2 x2 - M x5 - M x7,subject to (1)2x1 + x2 - x3 + x5 = 10 (2)-3x1 + 2x2 + x6 = 6 (3)x1 + x2 - x4 + x7 = 6 and x1 0,x2 0,x3 0,x4 0,x5 0,x6 0,x7 ≥ 0.Let x5,x6 and x7 be the basic variables.The above objective function gives the following Equation (0).(0)Z + 3x1 + 2x2 + Mx5 + Mx7 = 0 Proper form from Gaussian elimination requires that the basic variables x5 and x7 be eliminated from this equation.This is accomplished by subtracting both M times Eq.(1)and M times Eq.(3)from Eg.(0),which yields (0)Z + (-3M + 3)x1 + (-2M + 2)x2 +Mx3 +M x4 = -16 M The corresponding initial simplex tableau is as follows.
The initial (artificial)BF solution is (0,0,0,0,10,6,6).The entering basic variable is x1; the leaving basic variable is x5.(c)Iteration 1: The negative coefficients of x1 and x2 in Eq.(0)of the above initial simplex tableau indicates that the initial BF solution is not optimal.After choosing the initial entering basic variable x1 and leaving basic variable x5 as noted above,proper form from Gaussian elimination is restored by dividing Eq.(1)by 2,adding (3M-3)times this new Eq.(1)to Eq.(0),adding 3 times the new Eq.(1)to Eq.(2),and subtracting the new Eq.(1)from Eq.(3).This yields the simplex tableau shown below.
The resulting BF solution is (5,0,0,0,0,21,1),which is not optimal because of the negative coefficients of x2 and x3 in Eq.(0).Iteration 2: Comparing the negative coefficients of x2 and x3 in the above Eq.(0),(-0.5M + 0.5)is slightly larger in absolute value than (-0.5M + 1.5),so x2 is chosen as the entering basic variable and x7 as the leaving basic variable,as indicated in the boxes in the above simplex tableau.After restoring proper form from Gaussian elimination,the following simplex tableau is obtained.
The current BF solution (4,2,0,0,0,14,0)is optimal,since all the coefficients in Eq.(0)are nonnegative.The resulting optimal solution for the decision variables of the problem is (x1,x2)= (4,2)with Z = 16.

Thus,the optimal solution is (x1,x2)= (4,2)with Z = 16.
(b)We introduce the surplus variables x3,x4,slack variable x6, and artificial variables x5 and x7. (Note that these supplementary variables can be numbered in any order.)Using the Big M method,the introduction of these supplementary variables gives the following form of the problem.Minimize Z = 3 x1 + 2 x2 + M x5 + M x7,subject to 2x1 + x2 - x3 + x5 = 10 -3x1 + 2x2 + x6 = 6 x1 + x2 - x4 + x7 = 6 and x1 0,x2 0,x3 0,x4 0,x5 0,x6 0,x7 ≥ 0.Converting from minimization to maximization,we next have Maximize Z = - 3 x1 - 2 x2 - M x5 - M x7,subject to (1)2x1 + x2 - x3 + x5 = 10 (2)-3x1 + 2x2 + x6 = 6 (3)x1 + x2 - x4 + x7 = 6 and x1 0,x2 0,x3 0,x4 0,x5 0,x6 0,x7 ≥ 0.Let x5,x6 and x7 be the basic variables.The above objective function gives the following Equation (0).(0)Z + 3x1 + 2x2 + Mx5 + Mx7 = 0 Proper form from Gaussian elimination requires that the basic variables x5 and x7 be eliminated from this equation.This is accomplished by subtracting both M times Eq.(1)and M times Eq.(3)from Eg.(0),which yields (0)Z + (-3M + 3)x1 + (-2M + 2)x2 +Mx3 +M x4 = -16 M The corresponding initial simplex tableau is as follows.

The initial (artificial)BF solution is (0,0,0,0,10,6,6).The entering basic variable is x1; the leaving basic variable is x5.(c)Iteration 1: The negative coefficients of x1 and x2 in Eq.(0)of the above initial simplex tableau indicates that the initial BF solution is not optimal.After choosing the initial entering basic variable x1 and leaving basic variable x5 as noted above,proper form from Gaussian elimination is restored by dividing Eq.(1)by 2,adding (3M-3)times this new Eq.(1)to Eq.(0),adding 3 times the new Eq.(1)to Eq.(2),and subtracting the new Eq.(1)from Eq.(3).This yields the simplex tableau shown below.

The resulting BF solution is (5,0,0,0,0,21,1),which is not optimal because of the negative coefficients of x2 and x3 in Eq.(0).Iteration 2: Comparing the negative coefficients of x2 and x3 in the above Eq.(0),(-0.5M + 0.5)is slightly larger in absolute value than (-0.5M + 1.5),so x2 is chosen as the entering basic variable and x7 as the leaving basic variable,as indicated in the boxes in the above simplex tableau.After restoring proper form from Gaussian elimination,the following simplex tableau is obtained.

The current BF solution (4,2,0,0,0,14,0)is optimal,since all the coefficients in Eq.(0)are nonnegative.The resulting optimal solution for the decision variables of the problem is (x1,x2)= (4,2)with Z = 16.
3
Consider the following problem.Maximize Z = 2x1 - x2 + x3,subject to x1 - x2 + 3x3 ≤ 4 2x1 + x2 ≤ 10 x1 - x2 - x3 ≤ 7 and x1 ≥ 0,x2 ≥ 0,x3 ≥ 0.(a)Work through the simplex method step by step in algebraic form to solve this problem.(b)Work through the simplex method step by step in tabular form to solve the problem.
(a)Initialization: After introducing slack variables,the initial system of equations is (0)Z - 2 x1 + x2 - x3 = 0 (1)x1 - x2 + 3 x3 + x4 = 4 (2)2 x1 + x2 + x5 = 10 (3)x1 - x2 - x3 + x6 = 7 Thus,the initial BF solution is (0,0,0,4,10,7),which is not optimal since Z = 2x1 - x2 + x3 can be incresed by increasing either x1 or x3.Iteration 1: Choosing x1 as the entering basic variable (since increasing x1 increases Z at the fastest rate)and x4 as the leaving basic variable (by the minimum ratio test),using elementary algebraic operations to restore proper form from Gaussian elimination then leads to the following system of equations.(0)Z - x2 + 5 x3 + 2 x4 = 8 (1)x1 - x2 + 3 x3 + x4 = 4 (2)3 x2 - 6 x3 - 2 x4 + x5 = 2 (3) - 4 x3 - x4 +x6 = 3 Thus,the current BF solution is (4,0,0,0,2,3),which is not optimal since Z = x2 - 5x3 - 2x4 + 8 can be increased by increasing x2.Iteration 2: Choosing x2 as the entering basic variable and x5 as the leaving basic variable (by the minimum ratio test),using elementary algebraic operations to restore proper form from Gaussian elimination then leads to the following system of equations.(0)Z + 3 x3 + 4/3 x4 + 1/3 x5 = 8.667 (1)x1 + x3 + 1/3 x4 + 1/3 x5 = 4.667 (2)x2 - 2 x3 - 2/3 x4 + 1/3 x5 = 0.667 (3)- 4 x3 - x4 + x6 = 3 From Eq.(0),Z = -3 x3 - 4/3 x4 - 1/3 x5 + 8.667,so Z cannot be increased by increasing any of the nonbasic variables.Therefore,the current BF solution (4.667,0.667,0,0,0,3)is optimal with Z = 8.667.(b)Using the same logic as described above,the simplex method in tableau form is shown below.
The current BF solution (4.667,0.667,0,0,0,3)is optimal with Z = 8.667.



4
Consider the following problem: Maximize Z = 2x1 + 4x2 - x3,subject to 3x2 - x3 ≤ 30 (resource 1)2x1 - x2 + x3 ≤ 10 (resource 2)4x1 +2x2 - 2x3 ≤ 40 (resource 3)and x1 ≥ 0,x2 ≥ 0,x3 ≥ 0.(a)Work through the simplex method step by step to solve the problem.(b)Identify the shadow prices for the three resources and describe their significance.
Unlock Deck
Unlock for access to all 4 flashcards in this deck.
Unlock Deck
k this deck