Sensitivity Analysis
Sensitivity Analysis
2. Objective function
3. Constraints
Ah! There are only two decision variables so we can represent this problem graphically!
We can see that the corner point at the intersection of the Finishing and Packing & Shipping constraints
is the optimal solution. In order to get the optimal solution, we need to solve the two equations simultane-
ously to figure out the coordinates of the intersection.
The Optimal Solution (OS) is R = 500, C = 150 and the Objective Function Value (OFV) at the op-
timal solution is Z = $5(500) + 8(150) = $3, 700. Refer to the 01-KelsonGraphical.xls spreadsheet
available at MyLS.
Target Cell (Max) refers to the cell which contains your objective function. The objective (Max or Min)
is displayed in the title. You can ignore the original values; the important bit of information here is
Final Value which is our Objective Function Value (OFV) at optimality.
Adjustable Cells refers to the spreadsheet cells which contain our decision variables. Again, you can
ignore the original values; the Final Values represent the Optimal Solution (OS).
Constraints refers to the constraint set entered into Solver. Cell Value is the value of the Left Hand Side
(LHS) of the constraint at optimality. Status (Binding or Not Binding) has the same meaning as
discussed in Class #02 (i.e. whether or not the constraint is part of the optimal solution or not).
The last column, Slack, is not the same as the notion of slack and surplus variables discussed earlier.
If a constraint is binding, it will have a slack of zero. E.g. we’ve used up 300 hours of Finishing
Department time; there is no slack left in the system. If a constraint is non-binding, the slack is
whatever is left over between the original RHS value and the LHS value. Thus, for the Cut & Sew
constraint, we used up 725 of 900 hours, so we have a slack of 175 hours.
4.4.1 Ch Ch Ch Changes. . .
Sensitivity analysis (also called “post-optimality analysis”) is used to determine how the optimal solution
is affected by changes, within specified ranges, in the objective function coefficients, and the constraint
right-hand side (RHS) values. Ask yourself, HOW and WHY might these parameters change? Sensitivity
analysis is important to the manager who must operate in a dynamic environment with imprecise estimates
of the coefficients. And, as mentioned above, sensitivity analysis allows the manager to ask certain what-if
questions about the problem.
Reduced Cost
In the Kelson example, the reduced cost for each of the products is zero. That is, we don’t have to improve
the profit on either product before we have a non-zero number of products being produced – that’s already
happening (R = 500, C = 150). If you recall the Farmer Dave minimization problem from Class #02 we
had a situation where there is a reduced cost. When we solved the problem graphically, we found that the
optimal solution was 0 bags of SuperGro fertilizer and 8 bags of CropQuik fertilizer. Why? Well, the cost
of SuperGro was $6.00 per bag while the cost of $CropQuik was $3.00 per bag. By how much would we
have to reduce the cost of a bag of SuperGro before we start buying a non-zero number of bags? Solving
the problem using Excel gives us the answer in the Sensitivity Report:
Ah! The cost needs be reduced from 6.00 $/bag by at least $2.00 before we’ll buy any SuperGro. If we
re-solve the problem with a cost of 4.00 $/bag for SuperGro, we are now going to need 4.8 bags of SuperGro
and 1.6 bags of CropQuik to meet the nutrient requirements of Farmer Dave’s field. The reduced cost of the
decision variables is now zero. Why? Because we don’t need to improve the objective function coefficient
any more to have some of each product (i.e. a non-zero amount) in our optimal solution.
If you think back to the graphical solution of this problem, we are moving from the corner point (0, 8) to
the corner point at (4.8, 1.6). Its also worth mentioning that the new objective function Z = 4x1 + 3x2 is
parallel to the Phosphate constraint (4x1 + 3x2 ≥ 24) so (0, 8) and (4.8, 1.6) (and every point in between) is
a cost minimizing solution (Z = $24). Another way to think about reduced cost is “what is the impairment
to the solution by including a unit of this decision variable?” Right now the minimum cost is $24.00; what
if Farmer Dave buys one bag of SuperGro? We can model this in the LP by adding x1 ≥ 1 as a constraint.
Solving the new LP gives a minimum cost of $26.00; $2.00 more than it was before. One last point to make:
if the reduced cost is zero for a variable which takes the value zero at optimality, this indicates that there
are alternate optimal solutions. This idea of reduced cost leads into the introduction of some terminology
to refer to our decision variables:
Basic Decision Variable is a decision variable which takes a non-zero value in the optimal solution.
Non-Basic Decision Variable is a decision variable which takes a value of zero in the optimal solution.
In the first Farmer Dave solution, x1 , the number of bags of SuperGro is a non-basic decision variable, while
x2 , the number of bags of CropQuik, is a basic decision variable. If you’re asked to change a non-basic
decision variable into a basic decision variable, the reduced cost is the piece of information required to do
this.
What range of values can the profit on R, regular gloves, take? We can see that:
−3/2 ≤ -5/8 ≤ −1/2.
If we substitute c1 for the profit for a regular glove, we can solve for the range as follows:
−3/2 ≤ −c1 /8 ≤ −1/2.
Multiply through by −8 and we get:
12 ≥ c1 ≥ 4 or if you prefer: 4 ≤ c1 ≤ 12. c1 = 5 currently, thus, our allowable increase is 7 (from 5 up
to 12) and our allowable decrease is 1 (from 5 down to 4). Look familiar? You’ll find these values in the
“Adjustable Cells” cells section of the Sensitivity Report from above.
Refer to Figure 4.7 for the Range of Optimality (yellow shaded area). The interactive spreadsheet
03-KelsonObjFn.xls available at MyLS lets you play around with the objective function coefficients so
you can see the impact on the objective function within the range of optimality.
• The objective function value (OFV) changes. The new OFV can be determined by substituting the
OS into the new objective function.
Change in objective function coefficient value. Outside allowable increase/decrease? Resolve, else:
Basic Variable (Xi > 0; RC = 0 in OS) Non-basic Variable (Xi = 0; RC 6= 0 in OS)
OS is unchanged, OFV change (use OS w/ new Ci ) OS/OFV same. MAX: [∞, −RC], MIN: [RC, ∞]
4.5.3 Constraints
Next we’ll walk through the Constraints portion of the Sensitivity Report. Cell refers to the Excel spread-
sheet cell where you have the formula for the left-hand-side (LHS) of the constraint. Name is generated by
Excel by searching left and up from the cell reference for a text string.
Final Value is the calculated value of the LHS of the constraint using the optimal solution values from
the Adjustable Cells section. E.g. we used 725 hours of Cutting & Sewing time.
Shadow Price will be discussed in much greater detail in a moment, but we’ll define it this way: “A shadow
price for a right hand side (RHS) value (or resource limit) is the amount the objective function will
change per unit increase in the right hand side value of a constraint.” For example, if we can get one
more hour of time in the Finishing department, we can increase our profit by $3.00.
Constraint R.H. Side is the right hand side (RHS) value of our constraint that we entered into the
spreadsheet.
Allowable Increase is the upper bound for increases to the RHS value which allows us to use the current
shadow price in calculations. Note: If you see 1E+30 in Excel, this is the spreadsheet’s way of saying
“infinity” (1E+30 = 1 × 1030 ).
Allowable Decrease is the lower bound for decreases to the RHS value which allows us to use the current
shadow price in calculations. Changes to the RHS values outside the allowable increase or decrease
ranges require the problem to be re-solved.
• Again: A shadow price for a right hand side value (or resource limit) is the amount the objective
function will change per unit increase in the right hand side value of a constraint.
• Graphically, a shadow price is determined by adding +1 to the right hand side value in question and
then resolving for the optimal solution in terms of the same two binding constraints.
• The shadow price is equal to the difference in the values of the objective functions between the new
and original problems.
Much like our decision variables fell into two categories of basic and non-basic, we can divide our constraints
into binding and non-binding and examine the shadow price in each case:
You can apply the same logic to the Packing & Shipping constraint. Our optimal solution will be at
the intersection of: 0.5R + 0.33C = 300 and 0.125R + 0.25C = 101 , which gives us a new optimal solution
of R = 496, C = 156 and a new OFV of $3,728. Thus the shadow price for the RHS of the Packing &
Shipping constraint is 28. Both these constraints are binding, hence they have non-zero shadow prices.
Interpretation If we can get an extra hour of time in the Finishing department, the profit would increase
by 3 units. Likewise, if we lose an hour of Finishing time, the profit would decrease by 3 units. However,
if we get an extra hour of packing, profit would increase by 28 units! We can say that profit is more
sensitive to changes in the Packing & Shipping constraint than in the Finishing constraint.
Range of Feasibility The range of feasibility for a change in the right hand side value is the range of
values for this coefficient in which the original shadow price remains constant. Graphically, the range of
feasibility is determined by finding the values of a right hand side coefficient such that the same two lines
that determined the original optimal solution continue to determine the optimal solution for the problem.
Allowable Increase: We started with 900 hours in this department, but we only use up 725 to produce
the optimal number of regular gloves & catcher’s mitts. Adding one more hour, ten more hours, a thousand
more hours, or an infinite number of hours to the RHS of this constraint won’t change the feasible region
at all, hence the Allowable Increase of infinity (1E+30) on the Sensitivity Report.
Allowable Decrease: Again, we started with 900 hours in this department and we’ve only used up 725
hours, thus we have an extra 175 hours in the department. We can decrease the RHS value from 900 by
175 to 725 and still satisfy this constraint. If we do so of course, it will become a binding constraint, but we
haven’t changed the feasible region at all. If we reduce it further we will have to resolve the problem (since
the feasible region would now be smaller than before). The Allowable Decrease then is 900 − 725 = 175 as
we see in the Sensitivity Report.
If the RHS of a non-binding constraint is changed within allowable limits, the OS (R = 500, C = 150)
and OFV (Z = 3, 700) are unchanged.
Tightening or Relaxing Constraints Tightening a constraint means to make it more restrictive; i.e.
decreasing the RHS of a ≤ constraint, or increasing the RHS of a ≥ constraint. This does a couple of
things: it compresses the feasible region and may make solution worse (e.g. if it is a binding constraint that
is being tightened). On the other hand, relaxing a constraint means to make it less restrictive. This has
the effect of expanding the feasible region and may make solution better (or may make it possible where it
was previously infeasible).
Problem type and constraint type matter! The shadow price for a maximization problem is:
100% Rule for Objective Function Coefficients. . . For all objective function coefficients that are
changed, sum the percentage of allowable increases and allowable decreases. If the sum of the percentages
is less than or equal to 100%, the optimal solution does not change.
100% Rule for Constraints. . . For all right-hand sides that are changed, sum the percentage of al-
lowable increases and allowable decreases. If the sum of the percentages is less than or equal to 100%, the
shadow prices do not change.
100% rule – multiple changes to ObjFn coeffs OR constraint RHSs. Σchange/allowed ≤ 1, else re-solve.
Sensitivity Tree: Branch ° Adding a New Constraint If you add a new constraint and the current
optimal solution satisfies the new constraint, then the optimal solution is unchanged, and correspondingly
the objective function value is unchanged. If, however, you add a new constraint and the current optimal
solution violates it, then we will need to re-solve the problem with the new constraint included. This of
course will change the OS and OFV.
Add constraint – if current OS satisfies constraint OK (OS/OFV same), else re-solve.
Change to LHS Coefficients of a Constraint Again, no sensitivity analysis can be done using the
Excel Solver Sensitivity Report; the problem must be re-solved.
Adding a New Decision Variable No sensitivity analysis can be done using the Excel Solver Sensitiv-
ity Report; the problem must be re-solved.
Sensitivity Tree
• Are you being asked to consider changes to the objective function coefficients? In that case, proceed
down the left branch of the tree. Is the variable a basic variable or not? One of the branches, ¬ or
, follows next. The notes (above) tell you how to address this situation.
• Are you being asked to consider changes to the RHS values of constraints? In this case, follow the
tree straight down. You’ll choose between branches ® or ¯ depending on whether the constraint in
question is binding (or not). Again, these notes provide guidance.
• Lastly, are you being asked to add or delete a constraint? Follow the tree down the right hand side.
In this case, you have one of the ° or ± branches to follow next. The impact of adding or deleting
was discussed on the previous page.
We’ll explore each of these changes (and more!) as we work through the Kelson Sporting Goods sensi-
tivity analysis questions which follow.
2. We can get 10 more hours in the Finishing Department. Does this increase our profit? If yes, by how
much? If not, why not?
3. What is the maximum amount we should pay for obtaining an extra hour in Cutting and Sewing?
4. If we can get 3 more hours in Packing & Shipping or 20 hours in Finishing, which is better?
5. If the profit of a regular glove is increased to $6 and the profit of a catcher’s mitt is reduced to $7,
what is the OS and OFV?
6. If the available hours in cutting and sewing is reduced by 50 hours and the available hours in finishing
is increased by 50 hours, what happens to the OS and OFV?
7. If management decides to impose a new constraint that at least a total of 600 gloves (includes both
types of gloves) should be made, what is the new optimal solution and OFV?
8. If there is a new constraint which says that number of regular gloves produced should be at least 4
times as many as catcher’s mitts, what is the new optimal solution and OFV?
9. If management wants to introduce a new product, baseball bats, which yields a profit of $10 per bat,
what is the new optimal solution and OFV? Each baseball bat requires 2 hours in Cutting, 2 hours
in Finishing and 15 minutes in Packing.
10. If we can have as many hours of Finishing as we want at no extra cost, what is the new optimal
solution and OFV?