0 Lecture 5 (R2) - DM
0 Lecture 5 (R2) - DM
LINEAR PROGRAMMING
1 2
3 4
1
17/10/2023
Let us consider how a change in the right-hand side Graphically, a shadow price is determined by
for a constraint might affect the feasible region and adding +1 to the right hand side value in question
perhaps cause a change in the OFV. and then resolving for the optimal solution in
terms of the same two binding constraints.
Shadow Price: It is the marginal value of a resource
by which the OFV will improve (for a positive The shadow price for a nonbinding constraint
shadow price) when increasing the RHS of is 0.
constraint by 1 unit.
A negative shadow price indicates that the objective
The range of feasibility is the range over which the function will not improve if the RHS is increased.
shadow price is applicable.
5 6
5 6
7 8
2
17/10/2023
Olympic Bike is introducing two new lightweight A supplier delivers 100 pounds of the aluminum
bicycle frames, the Deluxe and the Professional, to be alloy and 80 pounds of the steel alloy weekly.
made from special aluminum and steel alloys. The
Aluminum Alloy Steel Alloy
anticipated unit profits are $10 for the Deluxe and Deluxe 2 3
$15 for the Professional. Professional 4 2
9 10
9 10
11 12
11 12
3
17/10/2023
13 14
13 14
15 16
4
17/10/2023
Sensitivity Report
Variable Cells
Model Final Reduced Objective Allowable Allowable
Variable Name Value Cost Coefficient Increase Decrease
X1 Deluxe 15.000 0.000 10.000 12.500 2.500
X2 Profes. 17.500 0.000 15.000 5.000 8.333
Constraints
Constraint Final Shadow Constraint Allowable Allowable
Number Name Value Price R.H. Side Increase Decrease
1 Alum. 100.000 3.125 100.000 60.000 46.667
2 Steel 80.000 1.250 80.000 70.000 30.000
17 18
17 18
Answer Question
The output states that the solution remains If the unit profit on deluxe frames were $6
optimal as long as the objective function coefficient of instead of $10, would the optimal solution change?
x1 is between 7.5 and 22.5. Because 20 is within this
range, the optimal solution will not change. The
optimal profit will change: 20x1 + 15x2 = 20(15)
+ 15(17.5) = $562.50.
19 20
19 20
5
17/10/2023
Variable Cells
Model Final Reduced Objective Allowable Allowable Answer
Variable Name Value Cost Coefficient Increase Decrease The output states that the solution remains
X1 Deluxe 15.000 0.000 10.000 12.500 2.500
X2 Profes. 17.500 0.000 15.000 5.000 8.333 optimal as long as the objective function coefficient
of x1 is between 7.5 and 22.5. Because 6 is
Constraints outside this range, the optimal solution would
Constraint Final Shadow Constraint Allowable Allowable
Number Name Value Price R.H. Side Increase Decrease change.
1 Alum. 100.000 3.125 100.000 60.000 46.667
2 Steel 80.000 1.250 80.000 70.000 30.000
21 22
21 22
Variable Cells
Question Model Final Reduced Objective Allowable Allowable
If the right-hand side of constraint 2 is Variable Name Value Cost Coefficient Increase Decrease
X1 Deluxe 15.000 0.000 10.000 12.500 2.500
increased by 2, what will be the effect on the X2 Profes. 17.500 0.000 15.000 5.000 8.333
OFV?
Constraints
Constraint Final Shadow Constraint Allowable Allowable
Number Name Value Price R.H. Side Increase Decrease
1 Alum. 100.000 3.125 100.000 60.000 46.667
2 Steel 80.000 1.250 80.000 70.000 30.000
Max 10x1 + 15x2
s.t. 2x1 + 4x2 < 100
3x1 + 2x2 < 80 23 24
x1, x2 > 0
23 24
6
17/10/2023
25 26
25 26
Variable Cells
Question Model Final Reduced Objective Allowable Allowable
If simultaneously the profit on Deluxe frames Variable Name Value Cost Coefficient Increase Decrease
X1 Deluxe 15.000 0.000 10.000 12.500 2.500
was raised to $16 and the profit on Professional X2 Profes. 17.500 0.000 15.000 5.000 8.333
frames was raised to $17, would the current
solution be optimal? Constraints
Constraint Final Shadow Constraint Allowable Allowable
Number Name Value Price R.H. Side Increase Decrease
1 Alum. 100.000 3.125 100.000 60.000 46.667
2 Steel 80.000 1.250 80.000 70.000 30.000
Max 10x1 + 15x2
s.t. 2x1 + 4x2 < 100
3x1 + 2x2 < 80 27 28
x1, x2 > 0
27 28
7
17/10/2023
Range of Optimality and 100% Rule Range of Feasibility and 100% Rule
The 100% rule states that simultaneous changes in
Answer right-hand sides will not change the dual prices as
If c1 = 16, the amount c1 changed is 16 - 10 = 6 . long as the sum of the percentages of the changes
The maximum allowable increase is 22.5 - 10 = 12.5, divided by the corresponding maximum allowable
so this is a 6/12.5 = 48% change. change in the range of feasibility for each right-hand
If c2 = 17, the amount that c2 changed is 17 - 15 = 2. The side [i.e., ∑(Change*100)/(AI/ AD)RHS] does not
maximum allowable increase is 20 - 15 = 5 so this is a exceed 100%.
2/5 = 40% change. The sum of the change
percentages is 88%. Since this does not exceed
100%, the optimal solution would not change.
Max 10x1 + 15x2
29 30
s.t. 2x1 + 4x2 < 100
3x1 + 2x2 < 80
x1, x2 > 0
29 30
EXAMPLE 3 EXAMPLE 3
x1 , x2 > 0
31 32
31 32
8
17/10/2023
EXAMPLE 3 EXAMPLE 3
33 34
33 34
EXAMPLE 3 EXAMPLE 3
Variable Cells
Question Model Final Reduced Objective Allowable Allowable
Suppose the unit cost of x1 is decreased to $4. Variable Name Value Cost Coefficient Increase Decrease
X1 X1 1.500 0.000 6.000 6.000 6.000
Is the current solution still optimal? What is the X2 X2 2.000 0.000 9.000 1E+30 4.500
value of the objective function when this unit cost is
decreased to $4? Constraints
Constraint Final Shadow Constraint Allowable Allowable
Number Name Value Price R.H. Side Increase Decrease
1 1 5.500 0 8.000 1E+30 2.500
Min 6x1 + 9x2 2 2 30.000 -0.600 30.000 25.000 15.000
3 3 2.000 -4.500 2.000 2.000 2.000
s.t. x1 + 2x2 < 8
10x1 + 7.5x2 > 30
35 36
x2 > 2
x1, x2 > 0
35 36
9
17/10/2023
EXAMPLE 3 EXAMPLE 3
Answer Question
The output states that the solution remains How much can the unit cost of x2 be
optimal as long as the objective function coefficient decreased without concern for the optimal
of x1 is between 0 and 12. Because 4 is within solution changing?
this range, the optimal solution will not change.
However, the optimal total cost will change:
4x1 + 9x2 = 4(1.5) + 9(2.0) = $24.00.
37 38
37 38
EXAMPLE 3 EXAMPLE 3
Variable Cells
Model Final Reduced Objective Allowable Allowable Answer
Variable Name Value Cost Coefficient Increase Decrease The output states that the solution remains
X1 X1 1.500 0.000 6.000 6.000 6.000
X2 X2 2.000 0.000 9.000 1E+30 4.500 optimal as long as the objective function coefficient
of x2 does not fall below 4.5.
Constraints
Constraint Final Shadow Constraint Allowable Allowable
Number Name Value Price R.H. Side Increase Decrease
1 1 5.500 0 8.000 1E+30 2.500
2 2 30.000 -0.600 30.000 25.000 15.000
3 3 2.000 -4.500 2.000 2.000 2.000
39 40
39 40
10
17/10/2023
EXAMPLE 3 EXAMPLE 3
Variable Cells
Question Model Final Reduced Objective Allowable Allowable
If simultaneously the cost of x1 was raised to $7.5 Variable Name Value Cost Coefficient Increase Decrease
X1 X1 1.500 0.000 6.000 6.000 6.000
and the cost of x2 was reduced to $6, would the X2 X2 2.000 0.000 9.000 1E+30 4.500
current solution remain optimal?
Constraints
Constraint Final Shadow Constraint Allowable Allowable
Number Name Value Price R.H. Side Increase Decrease
1 1 5.500 0 8.000 1E+30 2.500
2 2 30.000 -0.600 30.000 25.000 15.000
Min 6x1 + 9x2 3 3 2.000 -4.500 2.000 2.000 2.000
s.t. x1 + 2x2 < 8
10x1 + 7.5x2 > 30 41 42
x2 > 2
x1, x2 > 0
41 42
EXAMPLE 3 EXAMPLE 3
Range of Optimality and 100% Rule
Range of Feasibility
Answer
If c1 = 7.5, the amount c1 changed is 7.5 - 6 = Question
1.5. The maximum allowable increase is 12 - 6 If the right-hand side of constraint 3 is
= 6, so this is a 1.5/6 = 25% change. If c2 = 6, the increased by 1, what will be the effect on the
amount that c2 changed is 9 - 6 = 3. The OFV?
maximum allowable decrease is 9 - 4.5 = 4.5, so
this is a 3/4.5 = 66.7% change. The sum of the
change percentages is 25% + 66.7% = 91.7%.
Because this does not exceed 100%, the optimal Min 6x1 + 9x2
solution would not change. Min 6x + 9x s.t. x1 + 2x2 < 8
1 2
s.t. x1 + 2x2 < 8 10x1 + 7.5x2 > 30
43 44
10x1 + 7.5x2 > 30 x2 > 2
x2 > 2
x1, x2 > 0 x1, x2 > 0
43 44
11
17/10/2023
EXAMPLE 3 EXAMPLE 3
Variable Cells
Model Final Reduced Objective Allowable Allowable Answer
Variable Name Value Cost Coefficient Increase Decrease A shadow price represents the improvement
X1 X1 1.500 0.000 6.000 6.000 6.000
X2 X2 2.000 0.000 9.000 1E+30 4.500 in the objective function value per unit increase
in the right-hand side. A negative shadow price
Constraints indicates a negative improvement in the objective,
Constraint Final Shadow Constraint Allowable Allowable
Number Name Value Price R.H. Side Increase Decrease which in this problem means an increase in total cost
1 1 5.500 0 8.000 1E+30 2.500 because we're minimizing. Since the RHS remains
2 2 30.000 -0.600 30.000 25.000 15.000 within the range of feasibility, shadow price will be
3 3 2.000 -4.500 2.000 2.000 2.000
applicable. However, the objective function value (cost)
increases by $4.50.
45 46
45 46
12