Presentation is loading. Please wait.

Presentation is loading. Please wait.

MIT and James Orlin © 2003 1 The Geometry of Linear Programs –the geometry of LPs illustrated on GTC.

Similar presentations


Presentation on theme: "MIT and James Orlin © 2003 1 The Geometry of Linear Programs –the geometry of LPs illustrated on GTC."— Presentation transcript:

1 MIT and James Orlin © 2003 1 The Geometry of Linear Programs –the geometry of LPs illustrated on GTC

2 MIT and James Orlin © 2003 2 Data for the GTC Problem Want to determine the number of wrenches and pliers to produce given the available raw materials, machine hours and demand.

3 MIT and James Orlin © 2003 3 Formulating the GTC Problem P = number of pliers manufactured W = number of wrenches manufactured Maximize Profit = Steel: Molding: Assembly: Pliers Demand: Wrench Demand: P,W  0 Non-negativity: 1.5 W + P  15,000 W + P  12,000 0.4 W + 0.5 P  5,000 P  10,000  W  8,000.4 W +.3 P

4 MIT and James Orlin © 2003 4 Reformulation P = number of 1000s of pliers manufactured W = number of 1000s of wrenches manufactured Maximize Profit = Steel: Molding: Assembly: Pliers Demand: Wrench Demand: P,W  0 Non-negativity: 1.5 W + P  15 W + P  12 0.4 W + 0.5 P  5 P  10  W  8 400 W + 300 P

5 MIT and James Orlin © 2003 5 Finding an optimal solution Introduce yourself to your partner Try to find an optimal solution to the linear program, without looking ahead.

6 Graphing the Feasible Region 2 W P 468101214 2 4 6 8 10 12 14 We will construct and shade the feasible region one or two constraints at a time. 6

7 Graphing the Feasible Region W P 2468101214 2468101214 Graph the Constraint: 1.5 W + P  15 7

8 Graphing the Feasible Region W P 2468101214 2468101214 8 Graph the Constraint: W + P  12

9 Graphing the Feasible Region W P 2468101214 2468101214 9 Graph the Constraint: 0.4 W + 0.5 P  5 What happened to the constraint : W + P  12?

10 Graphing the Feasible Region W P 2468101214 2468101214 10 Graph the Constraints:  W  8 P  10

11 How do we find an optimal solution? W P 2468101214 2468101214 Maximize z = 400W + 300P It is the largest value of q such that 400W + 300P = q has a feasible solution 11

12 How do we find an optimal solution? W P 2468101214 2468101214 Maximize z = 400W + 300P Is there a feasible solution with z = 400W + 300P = 1200 ? 12 z=1200

13 W P 2468101214 2468101214 How do we find an optimal solution? Maximize z = 400W + 300P Is there a feasible solution with z = 2400 ? Is there a feasible solution with z = 3600 ? 13 z = 2400 z=3600

14 W P 2468101214 2 4 6 8 10 12 14 Can you see what the optimal solution will be? z = 2400 z = 3600 How do we find an optimal solution? Maximize z = 400W + 300P 14

15 W P 2468101214 2 4 6 8 10 12 14 What characterizes the optimal solution? What is the optimal solution vector? W = ? P = ? What is its solution value? z = ? How do we find an optimal solution? Maximize z = 400W + 300P 15

16 Optimal Solution Structure W P 2468101214 2 4 6 8 10 12 14 Maximize z = 400W + 300P 1.5 W + P  15.4W +.5P  5 plus other constraints A constraint is said to be binding if it holds with equality at the optimum solution. Other constraints are non-binding Binding constraints 16

17 How do we find an optimal solution? W P 2468101214 2 4 6 8 10 12 14 Maximize z = 400W + 300P 1.5W + P = 15.4W +.5P = 5 Solution:.7W = 5, W = 50/7 P = 15 - 75/7 = 30/7 z = 29,000/7 = 4,142 6/7 Optimal solutions occur at corner points. In two dimensions, this is the intersection of 2 lines. 17

18 MIT and James Orlin © 2003 18 Finding an optimal solution in two dimensions: Summary The optimal solution (if one exists) occurs at a “corner point” of the feasible region. In two dimensions with all inequality constraints, a corner point is a solution at which two (or more) constraints are binding. There is always an optimal solution that is a corner point solution (if a feasible solution exists). More than one solution may be optimal in some situations

19 MIT and James Orlin © 2003 19 Preview of the Simplex Algorithm In n dimensions, one cannot evaluate the solution value of every extreme point efficiently. (There are too many.) The simplex method finds the best solution by a neighborhood search technique. Two feasible corner points are said to be “adjacent” if they have one binding constraint in common.

20 Preview of the Simplex Method W P 2468101214 2468101214 Start at any feasible extreme point. Move to an adjacent extreme point with better objective value. Continue until no adjacent extreme point has a better objective value. Maximize z = 400W + 300P 20

21 Preview of Sensitivity Analysis W P 2468101214 2 4 6 8 10 12 14 Suppose the pliers demand is decreased to 10 - . What is the impact on the optimal solution value? The shadow price of a constraint is the unit increase in the optimal objective value per unit increase in the RHS of the constraint. 21 Changing the RHS of a non- binding constraint by a small amount has no impact. The shadow price of the constraint is 0.

22 Preview of Sensitivity Analysis W P 2468101214 2 4 6 8 10 12 14 Suppose slightly more steel is available? 1.5W + P  15 +  What is the impact on the optimal solution value? 22

23 Shifting a Constraint 687 3 4 5 W P Steel is increased to 15 + . What happens to the optimal solution? What happens to the optimal solution value? 23

24 Shifting a Constraint 687 3 4 5 W P Steel is increased to 15 + . What happens to the optimal solution? What happens to the optimal solution value? 24

25 MIT and James Orlin © 2003 25 Finding the New Optimum Solution Maximize z = 400W + 300P Binding Constraints: Solution: Thus the shadow price of steel is 1,600/7 = 228 4/7. Conclusion: If the amount of steel increases by  units (for sufficiently small  ) then the optimal objective value increases by (1,600/7) . The shadow price of a constraint is the unit increase in the optimal objective value per unit increase in the RHS of the constraint. 1.5W + P = 15 + .4W +.5P = 5 W = 50/7 +(10/7)  P= 30/7 -8/7  z = 29,000/7 +(1,600/7) 

26 MIT and James Orlin © 2003 26 Some Questions on Shadow Prices Suppose the amount of steel was decreased by  units. What is the impact on the optimum objective value? How large can the increase in steel availability be so that the shadow price remains as 228 4/7? Suppose that steel becomes available at $1200 per ton. Should you purchase the steel? Suppose that you could purchase 1 ton of steel for $450. Should you purchase the steel? (Assume here that this is the correct market value for steel.)

27 MIT and James Orlin © 2003 27 Bounds on RHS coefficients in Sensitivity Analysis Recall that the optimum solution is a corner point, which in 2 dimensions is the solution of 2 equations in 2 variables, and the equations are the binding constraints. Compute the largest changes in the RHS coefficient so that all constraints remain satisfied.

28 Shifting a Constraint 687 3 4 5 W P Steel is increased to 15 + . What happens to the optimal solution? Recall that W <= 8. 28 The structure of the optimum solution changes when  =.6, and W is increased to 8 GTC

29 MIT and James Orlin © 2003 29 Changing the RHS coefficient P,W  0 1.5 W + P  15 W + P  12 0.4 W + 0.5 P  5 P  10 W  8 Binding Constraint 1.5 W + P  15 +  Binding Constraint 0.4 W + 0.5 P  5 Increase steel from 15 to 15 +  W = 50/7 +(10/7)  ; P= 30/7 –(8/7) 

30 MIT and James Orlin © 2003 30 Changing the RHS coefficient P,W  0 W + P  12 0.4 W + 0.5 P  5 P  10 W  8 1.5 W + P  15 +  0.4 W + 0.5 P  5 W = 50/7 +(10/7)  ; P= 30/7 –(8/7)  W + P = 80/7 + (2/7)   12 W = 50/7 + (10/7)   8 P = 30/7 – (8/7)   10 50/7 +(10/7)   0; 30/7 –(8/7)   0 Compute changes in the LHS of remaining constraints

31 MIT and James Orlin © 2003 31 Changing the RHS coefficient P,W  0 0.4 W + 0.5 P  5 P  10 W  8 1.5 W + P  15 +  0.4 W + 0.5 P  5 30/7 –(8/7)   0 80/7 + (2/7)   12 50/7 + (10/7)   8 30/7 – (8/7)   10 50/7 +(10/7)   0; Compute upper and lower bounds on    2   3/5   -5    -5   15/4 So, -5   3/5

32 MIT and James Orlin © 2003 32 Summary for changes in RHS coefficients Determine the binding constraints Determine the change in the “corner point solution” as a function of . Compute the largest and smallest values of  so that the solution stays feasible. The shadow price is valid so long as the “corner point solution” remains optimal, which is so long as it is feasible. If there are three binding constraints, then choose two of these to get the two equations to solve, and the technique still works. (But the change in the solution as a function of  depends on which two constraints are chosen.)

33 MIT and James Orlin © 2003 33 Bounds on Cost coefficients in Sensitivity Analysis Recall that the optimum solution is a corner point, which in 2 dimensions is the solution of 2 equations in 2 variables, and the equations are the binding constraints. The solution has two neighboring corner point solutions Compute the largest changes in the cost coefficient so that the current corner point solution has a better objective value than its neighboring corner point solutions.

34 Shifting a Cost Coefficient The objective is: Maximize z = 400W + 300P What happens to the optimal solution if 300P is replaced by (300+  )P How large can  be for your answer to stay correct? 34 GTC W P 246810 2 4 6 8.4W +.5P = 5

35 MIT and James Orlin © 2003 35 Determining Bounds on Cost Coefficients W P 246810 2 4 6 8 z = 400W + (300+  ) P W = 50/7 ; P= 30/7; z = 29,000/7 + 30  /7 W = 0 ; P= 10; z = 3000 + 10  W = 8 ; P= 3; z = 4100 + 3 

36 MIT and James Orlin © 2003 36 Determining Bounds on Cost Coefficients W P 246810 2 4 6 8 W = 50/7 ; P= 30/7; z = 29,000/7 + 30  /7 W = 0 ; P= 10; z = 3000 + 10  W = 8 ; P= 3; z = 4100 + 3  z = 29,000/7 + 30  /7  4100 + 3     -100/3 z = 29,000/7 + 30  /7  3000 + 10    200

37 MIT and James Orlin © 2003 37 Summary: 2D Geometry helps guide the intuition The Geometry of the Feasible Region –Graphing the constraints Finding an optimal solution –Graphical method –Searching all the extreme points –Simplex Method Sensitivity Analysis –Changing the RHS –Changing the Cost Coefficients


Download ppt "MIT and James Orlin © 2003 1 The Geometry of Linear Programs –the geometry of LPs illustrated on GTC."

Similar presentations


Ads by Google