Presentation is loading. Please wait.

Presentation is loading. Please wait.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 1 of 99 Chapter 4 The Simplex Method.

Similar presentations


Presentation on theme: "Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 1 of 99 Chapter 4 The Simplex Method."— Presentation transcript:

1 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 1 of 99 Chapter 4 The Simplex Method

2 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 2 of 99 Outline 4.1 Slack Variables and the Simplex Tableau 4.2 The Simplex Method I: Maximum Problems 4.3 The Simplex Method II: Minimum Problems 4.4 Sensitivity Analysis and Matrix Formulations of Linear Programming Problems 4.5 Duality

3 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 3 of 99 4.1 Slack Variables and the Simplex Tableau 1.Standard Form 2.Slack Variable 3.Solutions Using Slack Variables 4.Group I and Group II Variables 5.Simplex Tableau 6.Solution Corresponding to Simplex Tableau

4 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 4 of 99 Standard Form A linear programming problem is in standard form if: 1.The objective function is to be maximized; 2.Each variable is constrained to be greater than or equal to 0; 3.All other constraints are of the form [linear polynomial] < [nonnegative constant].

5 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 5 of 99 The following is in standard form: Example Standard Form

6 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 6 of 99 Slack Variable A nonnegative variable that “takes up the slack” between the left-hand side of an inequality and the right-hand side is called a slack variable. The slack variable changes an inequality into an equation.

7 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 7 of 99 Use slack variables to change the following into a system of equations. Example Slack Variable

8 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 8 of 99 For u, v, w > 0 and M as large as possible: 6x + 3y < 96 becomes 6x + 3y + u = 96, x + y < 18 becomes x + y + v = 18, 2x + 6y < 72 becomes 2x + 6y + w = 72, and Maximize 80x + 70y becomes -80x - 70y + M = 0 for M as large as possible. Example Slack Variable - Answer

9 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 9 of 99 Infinite Number of Solutions The system of equations using the slack variables have an infinite number of solutions since there are more variables than equations.

10 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 10 of 99 Find two solutions to the following system of equations with u, v, and w > 0. Example Infinite Number of Solutions

11 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 11 of 99 Write the augmented matrix for the system Example Solutions - Answer (1) If x = y = 0, then a solution is u = 96, v = 18, w = 72 and M = 0.

12 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 12 of 99 If we pivot about a 11, we have Example Solutions - Answer (2) If y = u = 0, then another solution is x = 16, v = 2, w = 40 and M = 1280.

13 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 13 of 99 Group I and Group II Variables In the preceding solutions, two of the variables were chosen to be 0 and the other 4 were solved for using the equations. The variables chosen to be 0 are Group I variables. The variables solved for once the Group I variables were chosen are called Group II variables.

14 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 14 of 99 Example Group I & II Variables In the two solutions from the previous example, identify the Group I and Group II variables. Chosen 0Solved forGroup IGroup 2 x = y = 0u = 96, v = 18, w = 72, M = 0 x, yu, v, w, M y = u = 0x = 16, v = 2, w = 40, M = 1280 y, ux, v, w, M

15 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 15 of 99 Simplex Tableau You will notice that both matrices from which a solution was obtained in the previous example had the columns of the identity matrix present in some order. Such a matrix is called a simplex tableau.

16 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 16 of 99 Example Simplex Tableau Find the columns of the identity matrix in the following two simplex tableaux.

17 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 17 of 99 Solution Corresponding to Simplex Tableau The solution corresponding to a given simplex tableau is obtained by choosing those variables whose columns correspond to the columns of the identity matrix as Group II variables. The other variables are Group I variables.

18 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 18 of 99 Example Solution from Simplex Tableau Find the solution corresponding to Suppose the columns correspond to x, y, u, v, w and M. Choose u = w = 0, then x = 8, y = 9, v = 0 and M = 7.

19 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 19 of 99  A linear programming problem is in standard form if the linear objective function is to be maximized, every variable is constrained to be nonnegative, and all other constraints are of the form [linear polynomial] < [nonnegative constant]. Summary Section 4.1 - Part 1

20 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 20 of 99  To form the initial simplex tableau corresponding to a linear programming problem in standard form: 1. Step 1: For each constraint of the form [linear polynomial] < [nonnegative constant], introduce a slack variable and write the constraint as an equation. Summary Section 4.1 - Part 2

21 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 21 of 99 2. Step 2: Introduce a variable M to represent the quantity to be maximized, and form the equation -[objective function] + M = 0. 3. Form the augmented matrix corresponding to the system of linear equations from steps 1 and 2, with the equation from step 2 at the bottom. This matrix is the initial simplex tableau. Summary Section 4.1 - Part 3

22 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 22 of 99 4.2 The Simplex Method I: Maximum Problems 1.The Simplex Method for Problems in Standard Form

23 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 23 of 99 The Simplex Method I: Maximum Problems (1) The Simplex Method for Problems in Standard Form: 1. Introduce slack variables and state the problem in terms of a system of linear equations. 2. Construct the simplex tableau corresponding to the system.

24 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 24 of 99 The Simplex Method I: Maximum Problems (2) 3. Determine if the left part of the bottom row contains negative entries. If none are present, the solution corresponding to the tableau yields a maximum and the problem is solved. 4. If the left part of the bottom row contains negative entries, construct a new simplex tableau.

25 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 25 of 99 The Simplex Method I: Maximum Problems (3) a) Choose the pivot column by inspecting the entries of the last row of the current tableau, excluding the right-hand entry. The pivot column is the one containing the most- negative of these entries.

26 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 26 of 99 The Simplex Method I: Maximum Problems (4) b)Choose the pivot element by computing ratios associated with the positive entries of the pivot column. The pivot element is the one corresponding to the smallest nonnegative ratio. c)Construct the new simplex tableau by pivoting around the selected element.

27 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 27 of 99 The Simplex Method I: Maximum Problems (5) 5. Return to step 3. Steps 3 and 4 are repeated as many times as necessary to find a maximum.

28 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 28 of 99 Example Simplex Method I

29 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 29 of 99 Example Simplex Method I - Step 1 Let u, v and w be the slack variables. The corresponding linear system is

30 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 30 of 99 Example Simplex Method I - Step 2 Set up the initial simplex tableau. x y u v w M uvwMuvwM

31 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 31 of 99 Example Simplex Method I - Step 3 Determine if maximum has been reached. At least one negative entry. Maximum has not been reached.

32 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 32 of 99 Example Simplex Method I - Steps 4a,b Choose the pivot element Most negative entry 72/2 = 36 Smallest positive ratio 96/6 = 16 18/1 = 18

33 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 33 of 99 Example Simplex Method I - Step 4c Pivot. x y u v w M xvwMxvwM Group II variables

34 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 34 of 99 Example Simplex Method I - Step 5 Determine if maximum has been reached. x y u v w M xvwMxvwM Group II variables At least one negative entry. Maximum has not been reached.

35 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 35 of 99 Example Simplex Method I - continued Choose pivot. pivot column 16/(1/2) = 32 2/(1/2) = 4 40/5 = 8 pivot row

36 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 36 of 99 Example Simplex Method I - continued New tableau: x y u v w M xywMxywM Group II variables No negative entries Solution: x = 14, y = 4 and Maximum = 1400

37 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 37 of 99  The simplex method entails pivoting around entries in the simplex tableau until the bottom row contains no negative entries except perhaps the entry in the last column. The solution can be read off the final tableau by letting the variables heading columns with 0 entries in every row but the i th row take on the value in the i th row of the right-most column, and setting the other variables equal to 0. Summary Section 4.2

38 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 38 of 99 4.3 The Simplex Method II: Minimum Problems 1.Simplex Method for Problems in Nonstandard Form 2.Negative Constants 3.Minimization Problem 4.Further Comments

39 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 39 of 99 Simplex Method for Problems in Nonstandard Form (1) Simplex Method for Problems in Nonstandard Form : 1. If necessary, convert all inequalities (except the nonnegative inequalities) into the form [linear polynomial] < [constant] where the constant can be negative.

40 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 40 of 99 Simplex Method for Problems in Nonstandard Form (2) 2. If a negative number appears in the upper part of the last column of the simplex tableau, remove it by pivoting. a) Select one of the negative entries in its row. The column containing the entry will be the pivot column.

41 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 41 of 99 Simplex Method for Problems in Nonstandard Form (3) b)Select the pivot element by determining the least of the positive ratios associated with entries in the pivot column (except the bottom entry). c)Pivot. 3. Repeat step 2 until there are no negative entries in the upper part of the right-hand column of the simplex tableau.

42 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 42 of 99 Simplex Method for Problems in Nonstandard Form (4) 4. Proceed to apply the simplex method for tableaux in standard form.

43 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 43 of 99 Example Nonstandard Constraints Maximize the objective function 5x + 10y subject to

44 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 44 of 99 Example Nonstandard Constraints (2) The second inequality is in nonstandard form. Multiply by -1 to reverse the inequality.

45 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 45 of 99 Example Nonstandard Constraints (3) Form the tableau. Negative entry Negative entry in selected row Pivot column 20/1 = 20 -10/(-2) = 5 Pivot about –2.

46 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 46 of 99 Example Nonstandard Constraints (4) Most negative entry 15/(3/2) = 10 Pivot about 3/2.

47 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 47 of 99 Example Nonstandard Constraints (5) x y u v M yxMyxM Solution: y = 10, x = 10, Maximum = 150

48 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 48 of 99 Example Minimum Problem Minimize the objective function 3x + 2y subject to Multiply the objective function by -1 to change it to a maximum problem: Maximize the objective function -3x - 2y.

49 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 49 of 99 Example Minimum Problem (2) The first inequality is in nonstandard form. Multiply by -1 to reverse the inequality.

50 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 50 of 99 Example Minimum Problem (3) Form the tableau. Negative entry Negative entries in selected row We’ll choose the 2 nd column as Pivot column. -10/(-1) = 10 Pivot about –1.

51 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 51 of 99 Example Minimum Problem (4) x y u v M yvMyvM Solution: y = 10, x = 0 Maximum of -3x - 2y = -20 Minimum of 3x + 2y = 20

52 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 52 of 99 Further Comments (1)  It is possible that a given linear programming problem has more than one solution. This often shows up where there is a tie for the choice of the pivot column. Different choices can result in different solutions but the maximum (or minimum) will be the same.  A linear programming problem may have no solution. The simplex method will break down at some point in this case.

53 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 53 of 99 Further Comments (2)  When there is a tie for the pivot column and one is arbitrarily chosen, it is possible to create a loop in which the simplex algorithm leads back to the previously encountered tableau. If this occurs, a different pivot should be chosen at this point.

54 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 54 of 99  The simplex method can be used to solve a linear programming problem in nonstandard form as follows: a. If the problem is a minimization problem, convert it to a maximization problem by multiplying the objective function by –1. b. Form the initial tableau, and eliminate any negative entries in the upper part of the last column by pivoting. Summary Section 4.3 - Part 1

55 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 55 of 99 c. Apply the pivoting process for problems in standard form to the resulting tableau. Summary Section 4.3 - Part 2

56 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 56 of 99 4.4 Sensitivity Analysis and Matrix Formulations of Linear Programming Problems 1.Sensitivity Analysis 2.Range of Feasibility 3.Shadow Price or Marginal Value 4.Matrix Inequalities 5.Matrix Formulations of Linear Programming Problems 6.Transpose of a Matrix

57 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 57 of 99 Sensitivity Analysis Each number appearing in the final simplex tableau has an interpretation that not only sheds light on the current situation but also can be used to analyze the benefits of small changes in the available resources.

58 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 58 of 99 Range of Feasibility Take the simplex tableau from the manufacturing example already solved and change the carpentry constraint by h: x y u v w M uvwMuvwM

59 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 59 of 99 Range of Feasibility (2) Perform the same steps to the maximum solution that were executed on the original tableau. x y u v w M xywMxywM

60 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 60 of 99 Range of Feasibility (3) For all solutions to be nonnegative, all the constants to the right of the vertical bar and above the horizontal bar must be nonnegative. This leads to three inequalities 14 + h / 3 > 0, 4 - h/3 > 0, 20 + 4h/3 > 0 The solution to the above system of inequalities is -15 < h < 12. In turn this makes the carpentry constraint 81 < 96 + h < 108.

61 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 61 of 99 Range of Feasibility (4) The interval [81,108] is called the range of feasibility for the carpentry constraint.

62 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 62 of 99 Shadow Price or Marginal Value Notice also that if the labor-hours available for carpentry were increased by 1 hour (h = 1), then x is increased by 1/3, y is decreased by 1/3, w is increased by 4/3 and M is increased by 10/3. x y u v w M xywMxywM

63 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 63 of 99 Shadow Price or Marginal Value (2) The increase in M due to a unit increase in the constant in the constraint is called the shadow price or marginal value of the constraint associated with that variable. This corresponds to the bottom entry in the slack variable’s column in the final tableau. There is a shadow price for every slack variable.

64 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 64 of 99 Shadow Price or Marginal Value (3) The final values in each of the slack variable columns are the shadow prices or marginal values of the three factors of production - carpentry, finishing, and upholstery. x y u v w M xywMxywM

65 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 65 of 99 Matrix Inequalities Let A and B be two matrices of the same size. Then A < B if each entry of A is less than or equal to the corresponding entry of B.

66 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 66 of 99 Example Matrix Inequalities For which of following is A < B? Yes No

67 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 67 of 99 Matrix Formulations of Linear Programming Problems Let Carry out the indicated matrix multiplications in the statement: Maximize CX subject to the constraints AX 0 where 0 is the zero matrix.

68 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 68 of 99 Matrix Formulations of Linear Programming Problems (2) So maximize CX means maximize 80x + 70y. which means x > 0 and y > 0.

69 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 69 of 99 Matrix Formulations of Linear Programming Problems (3) So AX < B means 6x + 3y < 96 x + y < 18 2x + 6y < 72.

70 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 70 of 99 Transpose of a Matrix If A is an mxn matrix, then the matrix A T (read “A transpose”) is the nxm matrix whose ij th entry is the ji th entry of A. The rows of A T are the columns of A, and vice versa.

71 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 71 of 99 Example Transpose of a Matrix Determine the following.

72 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 72 of 99 Summary Section 4.4 - Part 1  The constraints in a linear programming problem usually represent limitations in the availability of resources. Sensitivity analysis is the analysis of the effects of small changes in the constraints. The shadow price of a resource is the change in the optimal value of the objective function resulting from a unit increase in the availability of that resource. In the final simplex tableau, the bottom entry in each slack variable’s column gives the shadow price of the resource associated with that variable.

73 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 73 of 99 Summary Section 4.4 - Part 2  A linear programming problem in the standard form can be expressed in terms of matrices: Maximize CX subject to constraints AX 0, where A is the matrix of coefficients of the linear polynomials, B is the column vector of the right-hand constants, and C is a row vector of the coefficients in the objective function.

74 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 74 of 99 4.5 Duality 1.Dual of Linear Programming Problem 2.Fundamental Theorem of Duality 3.Principle of Complementary Slackness

75 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 75 of 99 Dual of Linear Programming Problem - 1 Dual of Linear Programming Problem 1. If the original (primal) problem has the form Maximize CX subject to the constraints AX 0, then the dual problem is Minimize B T U subject to the constraints A T U > C T, U > 0.

76 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 76 of 99 Dual of Linear Programming Problem - 2 Dual of Linear Programming Problem 2. If the original (primal) problem has the form Minimize CX subject to the constraints AX > B, X > 0, then the dual problem is Maximize B T U subject to the constraints A T U 0.

77 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 77 of 99 Example Dual Determine the dual of

78 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 78 of 99 Example Dual (2) Write the problem in standard minimization form by multiplying the first inequality by (-1).

79 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 79 of 99 Example Dual (3) Write the problem in matrix form.

80 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 80 of 99 Example Dual (4) Write the dual in matrix form.

81 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 81 of 99 Fundamental Theorem of Duality - 1 Fundamental Theorem of Duality 1.If either the primal problem or the dual problem has an optimal solution, then they both have an optimal solution and their objective functions have the same values at these optimal points.

82 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 82 of 99 Fundamental Theorem of Duality - 2 & 3 2.If both the primal and the dual problems have a feasible solution, then they both have optimal solutions and their objective functions have the same value at these optimal points. 3.The solution of one of these problems by the simplex method yields the solution of the other problem as the final entries in the columns associated with the slack variables.

83 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 83 of 99 Example Fundamental Theorem of Duality Solve the following problem by applying the simplex method to its dual problem.

84 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 84 of 99 Example Fundamental Theorem (2) The dual problem is:

85 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 85 of 99 Example Fundamental Theorem (3) The initial tableau for the dual problem is u v x y z M xyzMxyzM Perform the first pivot.

86 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 86 of 99 Example Fundamental Theorem (4) The resulting tableau is u v x y z M vyzMvyzM Perform the second pivot.

87 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 87 of 99 Example Fundamental Theorem (5) The resulting tableau is u v x y z M vuzMvuzM The solution to the primal problem is x = 3/2, y = 1/10, z = 0 and minimum = 29.

88 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 88 of 99 An Economic Interpretation of the Dual Problem The solution of Maximize CX subject to AX 0 is an activity matrix in which each entry gives the optimal level of each activity. The matrix B is the capacity or resources matrix, where each entry represents the available amount of a resource.

89 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 89 of 99 An Economic Interpretation of the Dual Problem (2) The matrix C is the profit matrix whose entries are the unit profits for each activity represented in X. The dual solution matrix U is the imputed value matrix, which gives the imputed value of each of the resources in the production process.

90 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 90 of 99 An Economic Interpretation of the Dual Problem (3) The solution of Minimize CX subject to AX > B & X > 0 is an activity matrix in which each entry gives the optimal level of an activity. B is the requirements matrix in which each entry is a minimum required level of production for some commodity.

91 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 91 of 99 An Economic Interpretation of the Dual Problem (4) C is the cost matrix, where each entry is the unit cost of the corresponding activity in X. The dual solution matrix U is the imputed cost matrix whose entries are the costs imputed to the required commodities.

92 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 92 of 99 Principle of Complementary Slackness Principle of Complementary Slackness Each variable that has a positive value in the solution of the primal problem has the value 0 in the solution of the dual. Similarly, if a variable has a positive value in the solution to the dual problem, then it has the value 0 in the solution of the primal problem.

93 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 93 of 99 Example Using the Dual Problem Consider the furniture manufacturing problem again. Suppose the manufacturer has the same resources but is considering adding a new product, love seats. The manufacture of a love seat requires 3 hours of carpentry, 2 hours of finishing, and 4 hours of upholstery. What profit must be made per love seat in order to justify adding love seats to the product line?

94 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 94 of 99 If p is the profit for a love seat, the primal problem is Example Using the Dual Problem (2)

95 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 95 of 99 The dual problem is Example Using the Dual Problem (3)

96 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 96 of 99 Example Using the Dual Problem (4) The manufacturing of love seats is not justified if the maximum profit does not increase. This would mean that the optimal solution is still x = 14, y = 4 and z = 0. The dual problem would also have the same minimum so its solution would still be u = 10/3, v = 60 and w = 0.

97 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 97 of 99 Example Using the Dual Problem (5) Substituting the optimal solution into the third equation of the dual problem gives 3(10/3) + 2(60) + 4(0) > p 130 > p. Therefore, if p > $130, the introduction of the love seat into the line is justified.

98 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 98 of 99 Summary Section 4.5 - Part 1  Given a linear programming problem in standard form, its dual problem is “Minimize B T U subject to A T U > C T, U > 0”, where U is the column matrix consisting of the slack variables of the original problem. The original problem is called the primal problem.

99 Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 99 of 99 Summary Section 4.5 - Part 2  The fundamental theorem of duality states that if either the primal problem or the dual problem has an optimal feasible solution, then they both have optimal feasible solutions and their objective functions have the same optimal value. Furthermore, the final simplex tableau for either of these problems yields the solution of the other as the final entries in the columns associated with the slack variables.


Download ppt "Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 1 of 99 Chapter 4 The Simplex Method."

Similar presentations


Ads by Google