0 Lecture 4 (R2) - DM
0 Lecture 4 (R2) - DM
LINEAR PROGRAMMING
Sensitivity Analysis
SESSION 4
LINEAR PROGRAMMING changes in the coefficients of the objective function
[SENSITIVITY ANALYSIS
AND INTERPRETATION OF SOLUTION]
changes in the right-hand side value of a constraint
1 2
3 4
3 4
1
13/10/2023
5 6
10 11
10 11
2
13/10/2023
12 13
Consider the following LP problem. There are no points that satisfy both constraints, so
there is no feasible region (and no feasible solution).
Max 2x1 + 6x2 x2
10
s.t. 4x1 + 3x2 < 12
2x1 + x2 > 8 2x1 + x2 > 8
8
x 1, x 2 > 0 6
4x1 + 3x2 < 12
4
2
Graph?
x1
14
2 4 6 8 10 15
14 15
3
13/10/2023
Graph?
16 17
16 17
8
3x1 + x2 > 8 SENSITIVITY
6
4
ANALYSIS
x1 + x2 > 5
2
x1 18 19
2 4 6 8 10
18 19
4
13/10/2023
Sensitivity analysis (or post-optimality Let us consider how changes in the objective
analysis) is used to determine how the optimal function coefficients might affect the optimal
solution is affected by changes, within specified solution.
ranges, in:
the objective function coefficients
The range of optimality for each coefficient
the right-hand side (RHS) values in constraints provides the range of values over which the
current solution will remain optimal.
Sensitivity analysis allows a manager to ask certain
what-if questions about the problem.
Managers should focus on those objective
coefficients that have a narrow range of optimality
Max 5x1 + 7x2 and coefficients near the endpoints of the range.
s.t. x1 < 6
2x1 + 3x2 < 19
x1 + x2 < 8 20 21
20 21
22 23
5
13/10/2023
EXAMPLE 1 EXAMPLE 1
24 25
Range of Optimality for c1 and c2 Let us consider how a change in the right-hand side
for a constraint might affect the feasible region
Variable Cells and perhaps cause a change in the OFV.
Model Final Reduced Objective Allowable Allowable
Variable Name Value Cost Coefficient Increase Decrease
X1 X1 5.000 0.000 5.000 2.000 0.333 Shadow Price: It is the marginal value of a resource
X2 X2 3.000 0.000 7.000 0.500 2.000
by which the OFV will improve (for a positive
Constraints shadow price) when increasing the RHS of
Constraint Final Shadow Constraint Allowable Allowable constraint by 1 unit.
Number Name Value Price R.H. Side Increase Decrease
1 1 5.000 0.000 6.000 1E+30 1.000
2 2 19.000 2.000 19.000 5.000 1.000 The range of feasibility is the range over which the
3 3 8.000 1.000 8.000 0.333 1.667 shadow price is applicable.
26 27
If OFC of X1 is increased by 1.5, how will it affect optimal
solution? Can you compute the revised OFV?
26 27
6
13/10/2023
28 29
EXAMPLE 1 EXAMPLE 1
Shadow Prices
Shadow Prices
Constraint 3: Change the RHS value of the third
Variable Cells
constraint to 9 and resolve for the optimal point Model Final Reduced Objective Allowable Allowable
determined by the last two constraints: 2x1 + 3x2 = Variable Name Value Cost Coefficient Increase Decrease
X1 X1 5.000 0.000 5.000 2.000 0.333
19 X2 X2 3.000 0.000 7.000 0.500 2.000
and x1 + x2 = 9.
Constraints
The solution is: x1 = 8, x2 = 1, z = 47.
Constraint Final Shadow Constraint Allowable Allowable
The shadow price is znew - zold = 47 - 46 = 1. Number Name Value Price R.H. Side Increase Decrease
1 1 5.000 0.000 6.000 1E+30 1.000
2 2 19.000 2.000 19.000 5.000 1.000
Shadow Price: It is the marginal value 3 3 8.000 1.000 8.000 0.333 1.667
Max 5x1 + 7x2 of a resource by which the OFV will
Max 5x1 + 7x2
s.t. x1 < 6 improve (for a positive shadow price)
s.t. x1 < 6
2x1 + 3x2 < 19 when increasing the RHS of constraint 30 31
2x1 + 3x2 < 19
x1 + x2 < 8 by 1 unit. x1 + x2 < 8
x1, x2 > 0 x1, x2 > 0
30 31
7
13/10/2023
Constraints
Constraint Final Shadow Constraint Allowable Allowable
Number Name Value Price R.H. Side Increase Decrease
1 1 5.000 0.000 6.000 1E+30 1.000
2 2 19.000 2.000 19.000 5.000 1.000
3 3 8.000 1.000 8.000 0.333 1.667
32 33
If RHS of constraint 2 is increased by 2 units, how will it
affect OFV? Can you compute OFV from this table?
32 33
EXAMPLE
34
34