1 Chapter 8 Sensitivity Analysis  Bottom line:   How does the optimal solution change as some of the elements of the model change?  For obvious reasons.

Slides:



Advertisements
Similar presentations
February 14, 2002 Putting Linear Programs into standard form
Advertisements

Operation Research Chapter 3 Simplex Method.
Chapter 5 The Simplex Method The most popular method for solving Linear Programming Problems We shall present it as an Algorithm.
Computational Methods for Management and Economics Carla Gomes Module 6b Simplex Pitfalls (Textbook – Hillier and Lieberman)
6(1).1 Chapter 6 The Revised Simplex Method  This method is a modified version of the that we studied in Chapter 5.  This method is a modified version.
5.5 Solution Possibilities
ISM 206 Lecture 4 Duality and Sensitivity Analysis.
Design and Analysis of Algorithms
Solving Linear Programs: The Simplex Method
1 5.6 No-Standard Formulations  What do you do if your problem formulation doeshave the Standard Form?  What do you do if your problem formulation does.
Computational Methods for Management and Economics Carla Gomes
5.2 Iteration  We are at an extreme point of the feasible region  We want to move to an adjacent extreme point.  We want to move to a better extreme.
ISM 206 Lecture 4 Duality and Sensitivity Analysis.
D Nagesh Kumar, IIScOptimization Methods: M3L1 1 Linear Programming Preliminaries.
D Nagesh Kumar, IIScOptimization Methods: M3L4 1 Linear Programming Simplex method - II.
The Simplex Procedure Daniel B. Taylor AAEC 5024 Department of Agricultural and Applied Economics Virginia Tech.
MIT and James Orlin © Chapter 3. The simplex algorithm Putting Linear Programs into standard form Introduction to Simplex Algorithm.
Solver & Optimization Problems n An optimization problem is a problem in which we wish to determine the best values for decision variables that will maximize.
The Simplex algorithm.
Chapter 3 Linear Programming Methods 高等作業研究 高等作業研究 ( 一 ) Chapter 3 Linear Programming Methods (II)
Presentation: H. Sarper
Chapter 6 Linear Programming: The Simplex Method
The Two-Phase Simplex Method LI Xiao-lei. Preview When a basic feasible solution is not readily available, the two-phase simplex method may be used as.
8. Linear Programming (Simplex Method) Objectives: 1.Simplex Method- Standard Maximum problem 2. (i) Greedy Rule (ii) Ratio Test (iii) Pivot Operation.
Simplex method (algebraic interpretation)
Chapter 6 Sensitivity Analysis & Duality
Chapter 3. Pitfalls Initialization Ambiguity in an iteration
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Learning Objectives for Section 6.4 The student will be able to set up and solve linear programming problems.
1 1 Slide © 2000 South-Western College Publishing/ITP Slides Prepared by JOHN LOUCKS.
Chapter 7 Transportation, Assignment & Transshipment Problems
Kerimcan OzcanMNGT 379 Operations Research1 Linear Programming: The Simplex Method Chapter 5.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Pareto Linear Programming The Problem: P-opt Cx s.t Ax ≤ b x ≥ 0 where C is a kxn matrix so that Cx = (c (1) x, c (2) x,..., c (k) x) where c.
Solving Linear Programming Problems: The Simplex Method
Business Mathematics MTH-367 Lecture 15. Chapter 11 The Simplex and Computer Solutions Methods continued.
Water Resources Development and Management Optimization (Linear Programming) CVEN 5393 Mar 4, 2011.
OR Perturbation Method (tableau form) (after two iterations, optimal solution obtained) (0+2  1 ) (0+2  2 ) (1+  3 )
1 5.7 Initialization Revisited  :  Motivation: a solution for the transformed system is feasible for the original system if and only if all the. a solution.
Linear Programming Revised Simplex Method, Duality of LP problems and Sensitivity analysis D Nagesh Kumar, IISc Optimization Methods: M3L5.
Linear Programming Erasmus Mobility Program (24Apr2012) Pollack Mihály Engineering Faculty (PMMK) University of Pécs João Miranda
 Minimization Problem  First Approach  Introduce the basis variable  To solve minimization problem we simple reverse the rule that is we select the.
1 1 Slide © 2005 Thomson/South-Western Linear Programming: The Simplex Method n An Overview of the Simplex Method n Standard Form n Tableau Form n Setting.
Chapter 4 Linear Programming: The Simplex Method
Chapter 6 Linear Programming: The Simplex Method Section 4 Maximization and Minimization with Problem Constraints.
Sensitivity analysis LI Xiao-lei. A graphical introduction to sensitivity analysis Sensitivity analysis is concerned with how changes in an LP’s parameters.
Gomory Cuts Updated 25 March Example ILP Example taken from “Operations Research: An Introduction” by Hamdy A. Taha (8 th Edition)“Operations Research:
OR Chapter 8. General LP Problems Converting other forms to general LP problem : min c’x  - max (-c)’x   = by adding a nonnegative slack variable.
OR Chapter 7. The Revised Simplex Method  Recall Theorem 3.1, same basis  same dictionary Entire dictionary can be constructed as long as we.
An-Najah N. University Faculty of Engineering and Information Technology Department of Management Information systems Operations Research and Applications.
Simplex Method Simplex: a linear-programming algorithm that can solve problems having more than two decision variables. The simplex technique involves.
(i) Preliminaries D Nagesh Kumar, IISc Water Resources Planning and Management: M3L1 Linear Programming and Applications.
OR  Now, we look for other basic feasible solutions which gives better objective values than the current solution. Such solutions can be examined.
Decision Support Systems INF421 & IS Simplex: a linear-programming algorithm that can solve problems having more than two decision variables.
(iii) Simplex method - I D Nagesh Kumar, IISc Water Resources Planning and Management: M3L3 Linear Programming and Applications.
Chapter 4 The Simplex Algorithm and Goal Programming
SENSITIVITY ANALYSIS. 2 Sensitivity Analysis Sensitivity analysis is carried out after optimal solution is found. Hence called as post optimality analysis.
The Simplex Method. and Maximize Subject to From a geometric viewpoint : CPF solutions (Corner-Point Feasible) : Corner-point infeasible solutions 0.
EMGT 6412/MATH 6665 Mathematical Programming Spring 2016
Chapter 6 The Revised Simplex Method
Linear Programming Revised Simplex Method, Duality of LP problems and Sensitivity analysis D Nagesh Kumar, IISc Optimization Methods: M3L5.
Chap 10. Sensitivity Analysis
Solver & Optimization Problems
Perturbation method, lexicographic method
10CS661 OPERATION RESEARCH Engineered for Tomorrow.
Chapter 4 Linear Programming: The Simplex Method
Chapter 5. Sensitivity Analysis
ENGM 631 Optimization Ch. 4: Solving Linear Programs: The Simplex Method.
Simplex method (algebraic interpretation)
Presentation transcript:

1 Chapter 8 Sensitivity Analysis  Bottom line:   How does the optimal solution change as some of the elements of the model change?  For obvious reasons we shall focus on Models.  For obvious reasons we shall focus on Linear Programming Models.

2 Ingredients of LP Models  Linear objective function  A system of linear constraints – RHS values – Coefficient matrix (LHS) – Signs (=, =)   How does the optimal solution change as these elements change?

3 8.1 Introduction  What kind of changes are to be considered?  How do we handle such changes?  To motivate the discussion it is instructive to classify the changes into two categories: – changes – Structural changes – changes – Parametric changes

4

5 Structural Changes  eg.  New decision variable  New constraint  Loss of a decision variable  Relaxation of a constraint

6 Parametric Changes  Changes in one or more of the coefficients of the objective function (c j )  Changes in the RHS values (b i )  Changes in the coefficients of the LHS matrix {a ij }.

7 our emphasis will be on  rather than investigation of many specific cases (as done in many textbooks....)  Basic principles and ideas rather than investigation of many specific cases (as done in many textbooks....)  Thus, in the exam you may have to demonstrate that you know how to apply the principles to solve “new” problems.

8 it is time for a concrete example!

9 Question?Question?  Suppose that the RHS value of the second constraint is changing.  What kind of changes should be expect in the optimal solution?

10 Geometric Analysis

11

12 Back to algebra....

13

14

15

16

17

18

19

20   How do we conduct such an analysis in higher dimensions?

The Basic Principles  Impact of changes: – – Feasibility – – Optimality  Terminology:  = before the change  Old = before the change  = after the change  New = after the change

22 Two Cases  The old optimal solution remains optimal  The old optimal solution remains feasible but is no longer optimal  The second case has two sub-cases depending on the impact of the changes on the :  The second case has two sub-cases depending on the impact of the changes on the basis: – All the old basic variables remain in the basis – There is a change in the basis

23  The latter means that a number of pivot operations will be required to construct the new optimal solution from the old optimal solution.  In the former case, the new optimal solution can be easily computed from the new RHS values (why?).

24 General Observation  Changes in the objective function coefficients (c) are manifested in changes in the reduced costs of the non-basic variables of the (old) optimal solution. r = c B B -1 D - c (optimality criterion!)

25 ObservationObservation  Changes in vector b are manifested in changes in the RHS values of the final simplex tableau. b’ = B -1 b (feasibility)

26   Structural changes, as well as changes in the coefficient matrix (A), may require restoration of the canonical form of the simplex tableau.

27 In short,... the tasks are  Checking whether the new RHS values are non-negative  Checking the signs of the new reduced costs  Pivot operations to restore the canonical form of the simplex tableau

28 RecipeRecipe  Given the final tableau of the old solution and the changes to the model, compute the new tableau.  If the new tableau is not in a canonical form, restore the canonical form by appropriate pivot operations.  Check, if necessary, that the RHS values are non-negative.  Check, if necessary, that the reduced costs are of the appropriate sign (non-negative for opt=max, non-positive for opt=min).

29 Implications....   to accomplish these tasks we need to be able to quickly compute new RHS and/or reduced costs resulting from the changes in the problem.

Overview  The formulas used by the Revised Simplex Method suggest what factors should be under consideration when parameters of the LP model change  These formulas are constructive in developing recipes for sensitivity analysis of a number of important cases.  Thus,   read again Chapter ???

31 Case 1: All the components of the new RHS are non- negative.  In this case the old optimal solution is still feasible, namely the changes in the problem do not have any impact on the feasibility of the "old" optimal solution. We do not have to take any "corrective action" as far as feasibility is concerned.  The of the basic variables are simply equal to the of the RHS.  The new values of the basic variables are simply equal to the new values of the RHS.

32 Case 2. At least one of the components of the new RHS is negative.  Clearly in this case the "old" optimal solution is no longer feasible, as the non- negativity constraint is violated by at least one decision variable.  Thus, in this case the changes in the parameters of the model caused the "old" solution to become infeasible and therefore corrective actions involving must be taken.  Thus, in this case the changes in the parameters of the model caused the "old" solution to become infeasible and therefore corrective actions involving changes in the basis, must be taken.

33 Case 3. All the components of r satisfy the optimality condition.  Since the optimality conditions are satisfied, the basic variables remain basic, thus no corrective actions are required.  Since the optimality conditions are satisfied, (by) the basic variables remain basic, thus no corrective actions are required.  Observe, however, that the value of x may have changed due to changes in the vector b.

34 Case 4. At least one of the components of r violates the optimality conditions  Obviously, if we exclude degeneracy (why?), there is a need to changes the basis itself.  Thus, the changes in the problem results in a new basis.

Common Cases   Changes in the RHS values, b. _ _ Suppose that we change one of the elements of b, say b k, by . so that the new b is equal to the old one except that the new value of b k is equal to b k + . _ _ In short, _ _ b (new) = b +  e k _ _ where e k is the kth column of the identity matrix (i.e. e k =(0,0,...0,1,0,...,0) where the 1 is in the kth position).

36  In this case the new RHS value is given by b’ = B -1 b (new) = B -1 (b+  e k ) b’ = B -1 b (new) = B -1 (b+  e k ) This yields b’ = B -1 b +  B -1 e k = B -1 b +(  B -1 ). k b’ = B -1 b +  B -1 e k = B -1 b +(  B -1 ). kHence, b’ = old RHS +(  B -1 ). k b’ = old RHS +(  B -1 ). k

37 RecipeRecipe  If the old basis is to remain optimal after the change occurs, the new RHS value must be non-negative, i.e b’>=0.  This will be the case if we require  (B -1 ).k >= - old RHS  (B -1 ).k >= - old RHS or equivalently  (B -1 ) i,k >= - old RHS i  (B -1 ) i,k >= - old RHS i for i=1,2,...,m.

38 This produces.... .....  Don’t take it seriously..... min correction

Example k=2

40 final

41

42  We therefore conclude that the old basis (whatever it is), will remain optimal if the value of b 2 is in the interval [20- 4,20+4]=[16,24].   Comment: You do not have to use the recipe: Compute the RHS after the change and determine the critical values of .

43 Direct Approach (NILN) k=2

44 New final RHS = B -1 b’

45  Thus, the non-negativity constraint requires 48+4  >= 0, hence  >=  >= 0, hence  >=  >= 0, hence  = 0, hence  <= 4 In short, -4 <=  <= 4 -4 <=  <= 4 (16 <= b 2 <= 24) (16 <= b 2 <= 24)

Changes in the elements of the cost vector, c.  Suppose that the value of c k changes for some k. How will this affect the optimal solution to the LP problem?  We can distinguish between two cases: (1) x k is not in the old basis (2) x k is in the old basis r j  c B B  1 D.j  c j,j  1,2,...,n

47 Case 1: x k is not in the old basis  Thus : Recipe: r k >= , if opt=max r k <= , if opt = min r' k  c B B  1 D.k  (c k  )  (c B B  1 D.k  c)  r k 

48 Case 2: x k is in the old basis

49 ObservationsObservations  r’ j = 0 for basic variables x j.  (e k ) j = 0 for all nonbasic variables x j.  if opt=max all the old reduced costs are non-negative  if opt=min all the old reduced costs are non- positive.

50 RecipeRecipe if opt=max if opt=min

51 RemarkRemark   It is very unfortunate that sometime (often?) mathematical notation tends to obscure the essential elements of the situation under investigation. This is a typical example!   As an exercise (on your own) try to translate this to the language of the simplex tableau

Example Suppose that the reduced costs in the final simplex tableau are as follows: r = (0,0,0,2 3 4) r = (0,0,0,2 3 4) with I B =(2,3,1), namely with x,x and x comprising the basis. with I B =(2,3,1), namely with x 2,x 3 and x 1 comprising the basis. What would happen if we change e value of c 4 ? What would happen if we change the value of c 4 ? First we observe that x 4 is not in the basis and that the opt=max (why?)

53  The recipe for this case, namely (8.20) is that the old optimal solution remains optimal as long as r 4 ≥ , or in our case, 2 ≥ .  Note that we do not need to know the current (old) value of c 4 to reach this conclusion.  Next, suppose that consider changes in c 1, recalling that x 1 is in the basis.

54 recipe for this case:  However, it will be instructive to apply the basic ideas directly! Let's do it.

55 Preliminary Analysis  We see that in order to analyze this case we have to know the entries in the row of the final tableau (t p. ) that is represented by x 1 in the basis.  What is the value of p?  Since I B =(2,3,1), this is row p=3.  Suppose that this row is as follows:  t 3. = (0,0,1,3,-4,0)

56 We can display this in a "tableau" form as follows: If we add  to the old c 1, we would have instead So we now have to restore the canonical form of the x 1 column. correction

57 end result....  To ensure that the current basis remains optimal we have to make sure that all the reduced costs are non-negative (opt=max). Hence,  2+3  ≥ 0 and 3-4  ≥ 0  Thus, 3/4 ≥  ≥ -2/3 3/4 ≥  ≥ -2/3

58 in words,....  the old optimal solution will remain optimal if we keep the increase in c 1 in the interval [-2/3, 3/4]. If  is too small it will be better to enter x 4 into the basis, if  is too large it will better to put x 5 into the basis.

59   It is strongly recommended that you consider the following structural change on your own:   A new decision variable is introduced. Its cost coefficient is given and its constraint coefficients are given.   How does this affect the given final tableau of the old problem?

60   Warning If you are asked about the range of admissible changes in say b 1 then it is not sufficient to report on the admissible changes in  1. That is, you have to translate the range of admissible changes in  1 into the range of admissible changes in b 1. Example: Suppose that b 1 = 12, and -2 <=  1 <= 3. Then the admissible range of b 1 is [12-2, 12+3 ] = [10,15].