Sensitivity Analysis + Dual
Sensitivity Analysis + Dual
2
SENSITIVITY ANALYSIS
3
EXAMPLE
Decision Variables How many standard and
S = number of Standard bags produced. deluxe bags to produce so that
D = number of Deluxe bags produced. profit is maximized?
Objective
Maximize total profit: 10S + 9D
Constraints
Hours required for all the operations should be less than the hours available.
4
OPTIMAL SOLUTION
7
S + 1D =
630 Dyeing Constraint
10
2
1S + 708 Finishing Constraint
D=
3
5
EXCEL SOLUTION
Objective: Maximize total profit: 10S + 9D = 7668
6
SENSITIVITY ANALYSIS
Suppose profit of the standard golf bag (S) is decreased to $9 per unit.
What is the value of the objective function when the unit profit is decreased
to $9 per unit?
7
SENSITIVITY ANALYSIS
Suppose profit of the standard golf bag (S) is decreased to $9 per unit.
Variable Cells
Cell Name Original Value Final Value Integer
$B$2 Decision Variables S 540 540 Contin
$C$2 Decision Variables D 252 252 Contin
Constraints
Cell Name Cell Value Formula Status Slack
$D$2 Decision Variables Constraints (Formula) 630 $D$2<=$G$2 Binding 0
Objective Function (Profit) Constraints
$D$3 (Formula) 480 $D$3<=$G$3 Not Binding 120
$D$4 Constraints (Formula) 708 $D$4<=$G$4 Binding 0
$D$5 Constraints (Formula) 117 $D$5<=$G$5 Not Binding 18
8
EXCEL SOLUTION
Objective: Maximize total profit: 10S + 9D = 7668
9
RANGE OF OPTIMALITY
10
OBJECTIVE FUNCTION COEFFICIENTS
How changes in the objective function coefficients might affect the optimal
solution.
The range of optimality for each coefficient provides the range of values over
which the current solution will remain optimal.
Managers should focus on those objective coefficients that have a narrow
range of optimality and coefficients near the endpoints of the range.
11
RANGE OF OPTIMALITY
12
RANGE OF OPTIMALITY
13
RANGE OF OPTIMALITY
14
RANGE OF OPTIMALITY
Range of optimality for c2 ??
Thus, z = 10S + 𝑐𝑐2 D
The slope of the objective function line is – 10/c2.
The slope of the first binding constraint, 7/10 S + D = 630, is - 7/10
The slope of the second binding constraint, S+ 2/3D = 708, is - 3/2.
Find the range of values for c2 (with c1 staying 10) such that the objective function line slope lies
between that of the two binding constraints:
3 10 7
− ≤− ≤−
2 𝑐𝑐2 10
Multiplying through by -1 (and reversing the inequalities), inverting and multiplying by 5:
20
≤ 𝑐𝑐2 ≤ 100 i.e., 6.667 ≤ 𝑐𝑐2 ≤ 14.285 𝑖𝑖. 𝑒𝑒., 9 − 2.333 ≤ 𝑐𝑐2 ≤ 9 + 5.285
3 7
15
EXCEL SOLUTION
Objective: Maximize total profit: 10S + 9D = 7668
16
SHADOW PRICE
How a change in the right-hand side for a constraint might affect the feasible
region and perhaps cause a change in the optimal solution.
The improvement in the value of the optimal solution per unit increase in the
right-hand side is called the Shadow Price.
17
EXCEL SOLUTION
Objective: Maximize total profit: 10S + 9D = 7668
18
SHADOW PRICE
19
SHADOW PRICE
Constraint 1:
Change the RHS value of the Constraint 1 to 631 and resolve for the optimal
point determined by the first and third constraints:
20
SHADOW PRICE
What will be the optimal profit if the RHS value of the Constraint 1 is
changed to 635?
Shadow price = 4.375.
znew = zold + Shadow price * Change in RHS = ??
21
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.
22
EXCEL SOLUTION
Objective: Maximize total profit: 10S + 9D = 7668
23
SIMULTANEOUS CHANGES
What will be the impact on the optimum objective value if both the coefficients of the objective
function are simultaneously changed?
24
SIMULTANEOUS CHANGES
25
SIMULTANEOUS CHANGES: CO-EFFICIENTS OF OBJECTIVE
If simultaneously the per unit profit of S is decreased to $9 and the per unit profit of D is
increased to $10, would the current solution remain optimal?
If c1 = 9, the amount c1 changed is 10 - 9 = 1.
Because this does not exceed 100%, the optimal solution would not change.
26
SIMULTANEOUS CHANGES: CO-EFFICIENTS OF OBJECTIVE
If simultaneously the per unit profit of S is increased to $11 and the per unit profit of D is
reduced to $8, would the current solution remain optimal?
If c1 = 11, the amount c1 changed is 11-10 = 1. The maximum allowable increase
is 3.5 , so this is a 1/3.5 = 28.57% change. If c2 = 8, the amount that c2 changed is 9 – 8
= 1. The maximum allowable decrease is 2.33, so this is a 1/2.33 = 42.91% change.
The sum of the change percentages is 28.57% + 42.91% = 71.48%. Because this does not
exceed 100%, the optimal solution would not change.
27
SIMULTANEOUS CHANGES
Objective: Maximize total profit: 10S + 9D = 7668
28
SIMULTANEOUS CHANGES: RHS
If simultaneously the RHS of constraint 1 is increased to 640 and the RHS of constraint 3 is
reduced to 700, would the shadow price remain same?
Change in RHS of constraint 1 = 640 - 630 = 10
The sum of the change percentages is 19.09% + 6.25% = 25.34%. Because this does not exceed
100%, the shadow price would not change.
What is the optimal profit now?
29
SIMULTANEOUS CHANGES: RHS
If simultaneously the RHS of constraint 1 is reduced to 600 and the RHS of constraint 3 is
increased to 730, would the shadow price remain same?
What is the new optimal profit?
30
REDUCED COST
Final Reduced Objective Allowable Allowable
Cell Name Value Cost Coefficient Increase Decrease
$B$3 Decision Variables S 540 0 10 3.5 3.7
$C$3 Decision Variables D 252 0 9 5.285714286 2.333333333
The reduced cost associated with a variable is equal to the shadow price for the
nonnegativity constraint associated with the variable. Reduced cost on variable
S is zero and on variable D is zero.
The nonnegativity constraint is S >= 0. The current value of S is 540, so
changing the nonnegativity constraint to S >= 1 has no effect on the optimal
solution value. Because increasing the right-hand side by one unit has no effect
on the optimal objective function value, the shadow price (i.e., reduced cost) of
this nonnegativity constraint is zero.
32
REDUCED COST - EXAMPLE
Maximization Problem:
Final Reduced Objective Allowable Allowable
Name Value Cost Coef Increase Decrease
33
LIMITS REPORT
Objective
Cell Name Value
$B$2 Objective Function (Profit) A 7668
The target result for each lower limit tells us what value the objective function will take if that particular
decision variable drops to the lower limit and all other decision variables remain at the optimal value.
The target result for each upper limit tells us what value the objective function will take if that particular
decision variable increases to the upper limit and all other decision variables remain at the optimal value.
34
PORTFOLIO SELECTION
Winslow Savings has $20 million available for investment. It wishes to invest over the
next four months in such a way that it will maximize the total interest earned over the
four month period as well as have at least $10 million available at the start of the fifth
month for a high rise building venture in which it will be participating.
For the time being, Winslow wishes to invest only in 2-month government bonds
(earning 2% over the 2-month period) and 3-month construction loans (earning 6% over
the 3-month period). Each of these is available each month for investment. Funds not
invested in these two investments are liquid and earn 0.75% per month when invested
locally.
Formulate a linear program that will help Winslow Savings determine how to invest over
the next four months if at no time does it wish to have more than $8 million in either
government bonds or construction loans.
35
PORTFOLIO SELECTION
36
PORTFOLIO SELECTION
37
PORTFOLIO SELECTION
38
PORTFOLIO SELECTION
39
PORTFOLIO SELECTION
40
PORTFOLIO SELECTION
41
PORTFOLIO SELECTION
42
PORTFOLIO SELECTION Solution
G1 G2 G3 G4 C1 C2 C3 C4 L1 L2 L3 L4 ← Names
Decision
Variables 8000000 0 5108614 2891386 8000000 0 0 8000000 4000000 4030000 7111611 4753562 ← Values
Obj function 0.02 0.02 0.02 0.02 0.06 0.06 0.06 0.06 0.0075 0.0075 0.0075 0.0075 1429213.8←Z
1 0 0 0 1 0 0 0 1 0 0 0 20000000 = 20000000
0 1 0 0 0 1 0 0 -1.0075 1 0 0 0 = 0
-1.02 0 1 0 0 0 1 0 0 -1.0075 1 0 0 = 0
0 -1.02 0 1 -1.06 0 0 1 0 0 -1.0075 1 0 = 0
0 0 1.02 0 0 1.06 0 0 0 0 0 1.0075 10000000 >= 10000000
1 0 0 0 0 0 0 0 0 0 0 0 8000000 <= 8000000
1 1 0 0 0 0 0 0 0 0 0 0 8000000 <= 8000000
0 1 1 0 0 0 0 0 0 0 0 0 5108614 <= 8000000
0 0 1 1 0 0 0 0 0 0 0 0 8000000 <= 8000000
Constraints
0 0 0 0 1 0 0 0 0 0 0 0 8000000 <= 8000000
0 0 0 0 1 1 0 0 0 0 0 0 8000000 <= 8000000
0 0 0 0 1 1 1 0 0 0 0 0 8000000 <= 8000000
0 0 0 0 0 1 1 1 0 0 0 0 8000000 <= 8000000
43
PORTFOLIO SELECTION
Total interest earned = 1429214
Amount of new investment in government bonds in month 1 = 8000000
Amount of new investment in government bonds in month 2 = 0
Amount of new investment in government bonds in month 3 = 5108614
Amount of new investment in government bonds in month 4 = 2891386
Amount of new investment in construction loans in month 1 = 8000000
Amount of new investment in construction loans in month 2 = 0
Amount of new investment in construction loans in month 3 = 0
Amount of new investment in construction loans in month 4 = 8000000
Amount invested locally in month 1= 4000000
45
PORTFOLIO SELECTION
Range of Feasibility
Question:
Suppose, month 1's total investment amount is increased to $21 million, how
much more interest can be earned?
46
PORTFOLIO SELECTION
Range of Feasibility
Answer:
Shadow price for constraint 1 is 0.038029 and the maximum allowable increase is
5019885.
So, if we increase month 1's total investment amount by $1M
i.e. $1000000, then total earning would increase by
1000000 x 0.038029 = $38,029
47
PORTFOLIO SELECTION
Range of Feasibility
Question:
Suppose, the firm wants to have $11 million at start of Month 5. Will this have
any effect on overall earning?
Answer:
Shadow price for constraint 5 is - 0.007463 and the maximum allowable increase
is 2927366.
So, if we increase the total requirement of the firm at the start of month 5 by
$1M i.e. $1000000, then total earning would decrease by
1000000 x 0.007463 = $7,463
48
OPERATIONS MANAGEMENT APPLICATIONS
49
PRODUCTION SCHEDULING
Chip Hoose is the owner of Hoose Custom Wheels. Chip has just received orders for
1,000 standard wheels and 1,250 deluxe wheels next month and for 800 standard
and 1,500 deluxe the following month. All orders must be filled.
The cost of making standard wheels is $10 and deluxe wheels is $16. Over- time
rates are 50% higher. There are 1,000 hours of regular time and 500 hours of
overtime available each month. It takes 0.5 hour to make a standard wheel and 0.6
hour to make a deluxe wheel. The cost of storing a wheel from one month to the
next is $2.
Minimize total production and inventory costs for standard and deluxe wheels.
50
PRODUCTION SCHEDULING
Define the Decision Variables
Month 1 Month 2
Wheel Reg. Time Overtime Reg. Time Overtime
Standard SR1 SO1 SR2 SO2
Deluxe DR1 DO1 DR2 DO2
We also want to determine the inventory quantities for standard and deluxe wheels.
51
PRODUCTION SCHEDULING
Define the Objective Function
We want to minimize total production and inventory costs for standard and
deluxe wheels.
52
PRODUCTION SCHEDULING
53
PRODUCTION SCHEDULING
54
SOLUTION
55
SOLUTION
56
WORKFORCE ASSIGNMENT
57
WORKFORCE ASSIGNMENT
At the end of June, NWC wishes to have no recruits or apprentices, but have
at least 140 full-time workers. The production rate and salary per employee
type is listed below.
58
WORKFORCE ASSIGNMENT
59
WORKFORCE ASSIGNMENT
60
WORKFORCE ASSIGNMENT
Define the Constraints
Total production in Month 1 (April) must equal or exceed contract for Month 1:
(1).6P1 + .3T1 +.05R1 > 20
Total production in Months 1-2 (April, May) must equal or exceed total contracts for
Months 1-2:
(2).6P1 + .3T1 + .05R1 + .6P2 + .3T2 + .4A2 + .05R2 > 44
Total production in Months 1-3 (April, May, June) must equal or exceed total
contracts for Months 1-3:
(3).6P1+.3T1+.05R1+.6P2+.3T2+.4A2+.05R2 +.6P3+.4A3 > 74
61
WORKFORCE ASSIGNMENT
The number of apprentices in a month must equal the number of recruits in the
previous month:
(6) A2 - R1 = 0
(7) A3 - R2 = 0
62
WORKFORCE ASSIGNMENT
Define the Constraints
Each trainer can train two recruits:
(8)2T1 - R1 > 0
(9)2T2 - R2 > 0
Non-negativity:
P1, T1, R1, P2, T2, A2, R2, P3, A3 > 0
63
WORKFORCE ASSIGNMENT
Solution Summary
P1 = 100, T1 = 0, R1 = 0
P2 = 80, T2 = 20, A2 = 0, R2 = 40
P3 = 100, A3 = 40
Total Wage Cost = $1,098,000
64
DUALITY THEORY
Every linear programming problem has an associated problem called the dual.
Original problem is known as the primal.
These relationships prove useful in a variety of ways.
Consider a maximization primal problem in standard form.
Dual is a minimization problem.
Dual uses same parameters in different locations.
65
DUALITY THEORY
Primal Problem
Dual Problem
n m
Maximize Z = ∑c x ,
j =1
j j Minimize W = ∑ bi yi ,
i =1
subject to subject to
n m
∑a x
j =1
ij j ≤ bi , 1, 2,..., m
for i = ∑a
i =1
ij yi ≥ c j , for j =
1, 2,..., n
and and
x j ≥ 0, 1, 2,..., n.
for j = yi ≥ 0, for i =
1, 2,..., m.
66
DUALITY THEORY
A manufacturing company produces two types of products, Product A and Product B. The
company wants to maximize its total profit while adhering to certain production constraints.
Maximize Z 3 x1 + 5 x2 ,
= Minimize W =4 y1 + 12 y2 + 18 y3 ,
subject to subject to
x1 ≤ 4 Raw Material Constraint y1 + 3 y3 ≥ 3
2 x2 ≤ 12 Labor Hours Constraint 2 y2 + 2 y3 ≥ 5
3 x1 + 2 x2 ≤ 18 Machine Capacity Constraint and
and x1 ≥ 0, x2 ≥ 0. y1 ≥ 0, y2 ≥ 0, y3 ≥ 0.
The dual problem determines the minimum total cost of acquiring resources to satisfy the
given profit constraints.
67
DUAL VALUE/DUAL PRICE/SHADOW PRICE
A manufacturing company produces two types of products, Product A and Product B. The
company wants to maximize its total profit while adhering to certain production constraints.
68
WEAK DUALITY PROPERTY
If x is a feasible solution for the primal problem and y is a feasible solution for the
dual problem, then cx ≤ yb.
69
Complementary solutions property
At each iteration, the simplex method simultaneously identifies a CPF solution x for the primal
problem and a complementary solution y for the dual problem, where cx = yb.
If x is not optimal for the primal problem, then y is not feasible for the dual problem.
70
DUALITY THEOREM
If one problem has feasible solutions and a bounded objective function, then so
does the other problem.
If one problem has feasible solutions and an unbounded objective function,
then the other problem has no feasible solutions.
If one problem has no feasible solutions, then the other problem either has no
feasible solutions or an unbounded objective function.
71