What-If Sensitivity Analysis For Linear Programming
What-If Sensitivity Analysis For Linear Programming
Introduction
Assumption: The parameters of the model were known with certainty In Reality: the model parameters are simply estimates that are subject to change Example (RMC Problem)
RMC, Inc. is a firm that produces chemical based products. In a particular process three raw materials are used to produce two products. The Material requirements per ton are: Product Fuel additive Solvent base Material 1 2/5 1/2 Material 2 0 1/5 Material 3 3/5 3/10
For the current production period RMC has available the following quantities of each raw material. Because of spoilage, any materials not used for current production must be discarded. Number of Tons Material Available for Production Material 1 20 Material 2 5 Material 3 21 If the contribution to the profit is $40 for each ton of fuel additive and $30 for each ton of solvent base, How many tons of each product should be produced in order to maximize the total contribution profit?
ADM2302 /Rim Jaber 3
Introduction (contd)
RMC Problem Formulation (refer also RMC_problem.xsl)
Max Z = $ 40 x1 + 30 x2
Subject to
Answer Report
Target Cell (Max) Cell Name $D$5 Profit Totals Original Value $0.00 Final Value $1,600.00
Adjustable Cells Cell Name Original Value $B$3 Solution Fuel Additive (x1) 0.00 $C$3 Solution Solvent Base (x2) 0.00
Constraints Cell Name $D$8 Material 1 LHS $D$9 Material 2 LHS $D$10 Material 3 LHS
Cell Value Formula Status Slack 20.0 $D$8<=$F$8 Binding 0 4.0 $D$9<=$F$9 Not Binding 1 21.0 $D$10<=$F$10 Binding 0
Sensitivity Report
Adjustable Cells Final Reduced Objective Allowable Allowable Cell Name Value Cost Coefficient Increase Decrease $B$3 Solution Fuel Additive (x1) 25.00 0.00 40 20 16 $C$3 Solution Solvent Base (x2) 20.00 0.00 30 20 10 Constraints Cell Name $D$8 Material 1 LHS $D$9 Material 2 LHS $D$10 Material 3 LHS Final Shadow Constraint Allowable Allowable Value Price R.H. Side Increase Decrease 20.0 33.3 20 1.5 6 4.0 0.0 5 1E+30 1 21.0 44.4 21 9 2.25
Introduction (contd)
What_if Analysis = Sensitivity Analysis = Postoptimality Analysis = Parametric Programming = Optimality Analysis The analysis of the effect of parameter changes (coefficient of the LP problem) on the optimal solution Centered around What-if question?
Outline
Changes in the Objective Functions Coefficients Changes in the Right-Hand Sides (RHS) Values (changes in constraint quantity values) Shadow Prices Range of Feasibility Simultaneous Changes in the Objective Function Coefficients Simultaneous Changes in the RHS Reduced cost Pricing out New variables
ADM2302 /Rim Jaber 8
Purpose Sensitivity analysis is performed to determine the range for cj over which the current solution remain optimal
This can be directly obtained from Excels sensitivity report
Changes in the Objective Functions Coefficients (contd) What about the value of Z?
Zero value decision variable (unused activity)
The value of the objective function, Z, will not change.
11
Question : What happen if the estimate of the unit profit of ONE of the RMCs chemical based product is inaccurate? Answer: The range of values is wide for both objective function coefficients. Thus we can still be confident that we have obtained the correct optimal solution.
ADM2302 /Rim Jaber 12
Graphically
A change in qi usually affect the size of the feasible region and often the value of the optimal solution
ADM2302 /Rim Jaber 13
50
x2
40 30 20 10 0
(0, 25)
(0,0) 10
20
(35,0)
x1
30
40
50
14
19
Example:
Q1: 20 21 , 14 <= Q1 <=21.5 Q2: 5 4, 4 <= Q2 Q3: 21 24 , 18.75 <= Q3 <= 30
ADM2302 /Rim Jaber 24
Shadow prices remain valid, did not change (refer to the excel file)
ADM2302 /Rim Jaber 25
Reduced Cost
Reduced cost of an unused activity is:
The amount by which the profit contribution of an activity (objective function coefficient) needs to be increased before producing this activity the amount by which the profit will decrease if 1 unit of this activity is forced into the solution
26
27
Pricing-out New Variables (contd) Suppose RMC, Inc. wants to produce another chemical based products ultra base (x3).
0.1 ton 0.1 ton 0.8 ton $35 for of material 1 of material 2 of material 3 each ton
29
Pricing-out New Variables (contd) 1. Checking validity of the shadow price using 100% rule 2. Compute the opportunity cost: marginal worth of the resources that would be diverted from existing product + cost of making the product (it is 0 in this example) 3. Opportunity cost > profit contribution
Do not produce the product
ADM2302 /Rim Jaber 30
31
Final Value
Reduced Cost
Increase in the objective function value per unit increase in the value of a zero value variable (for small increases)may be interpreted as the shadow price for the nonnegativity constraint.
Objective Coefficient
The current value of the objective coefficient.
Allowable Increase/Decrease
Defines the range of the coefficients in the objective function for which the current solution (value of the decision variables 32 or changing cells in the optimal solution) will not change.
Shadow Price
Allowable Increase/Decrease