6-Sensitivity Analysis
6-Sensitivity Analysis
6-Sensitivity Analysis
Sensitivity Analysis
▪ The parameters of the model can change without causing the optimum
solution to change
135
Sensitivity Analysis
▪ Sensitive parameters are those for which a small change may affect
optimality
▪ Hence, sensitive parameters should be estimated with a lot of care.
▪ For example:
for an estimated unit profit of a product, if sensitivity analysis reveals that the
optimum remains the same for ±10% change in the unit profit, we can conclude
that the solution is more robust than in the case where the indifference range is
only ±1%,
136
Sensitivity Analysis
137
Sensitivity Analysis
Change in the Objective Function Coefficients
▪ When one or more of the objective function coefficients change, two cases
may develop:
► The obtained optimal solution remains optimal (even though the objective
value would change)
138
Sensitivity Analysis
Change in the Objective Function Coefficients
▪ For each coefficient, it is possible to determine the range for which optimality
is preserved: optimality interval
▪ When optimality is preserved, then the Z-value will change when changing the
coefficient corresponding to a basic variable
139
Sensitivity Analysis
Change in the Objective Function Coefficients
Example
Max Z = 10X1 + 20X2 ▪ The optimal solution is given by:
ST
X1 + X 2 15 X1*= 2.5; X2* = 12.5; et Z* = 275.
4X1 + 2X2 40
-X1 + X2 10 ▪ We are interested in determining by how much we may
change the coefficient c1 of X1 in the objective function
X1 20
without affecting optimality.
X1, X2 0
▪ In order to answer, we need to carry out a sensitivity
analysis to c1.
140
Sensitivity Analysis
Change in the Objective Function Coefficients
CJ 10 20 0 0 0 0
Basis X1 X2 S1 S2 S3 S4 RHS
10 X1 1 0 1/2 0 -1/2 0 2.5
0 S2 0 0 -3 1 1 0 5
20 X2 0 1 1/2 0 1/2 0 12.5
0 S4 0 0 -1/2 0 1/2 1 17.5
ZJ 10 20 15 0 5 0 275
C J - ZJ 0 0 -15 0 -5 0
141
Sensitivity Analysis
Change in the Objective Function Coefficients
CJ 10 + ∆c1 20 0 0 0 0
Basis X1 X2 S1 S2 S3 S4 RHS
10+ ∆c1 X1 1 0 1/2 0 -1/2 0 2.5
0 S2 0 0 -3 1 1 0 5
20 X2 0 1 1/2 0 1/2 0 12.5
0 S4 0 0 -1/2 0 1/2 1 17.5
ZJ 10+ ∆c1 20 15+ 1/2∆c1 0 5 - 1/2 ∆c1 0 275 + 2.5 ∆c1
CJ - ZJ 0 0 -15- 1/2∆c1 0 -5 + 1/2 ∆c1 0
142
Sensitivity Analysis
Change in the Objective Function Coefficients
▪ To remain optimal, the non-positivity of row Cj-Zj must be preserved. That is:
-15 – ½ ∆c1 ≤ 0
-5 + ½ ∆ c1 ≤ 0
Or -30 ≤ ∆c1 ≤ 10
Cj 10 +15 20 0 0 0 0
BV X1 X2 S1 S2 S3 S4 RHS
10 +15 X1 1 0 1/2 0 -1/2 0 2.5
0 S2 0 0 -3 1 1 0 5
20 X2 0 1 1/2 0 1/2 0 12.5
0 S4 0 0 -1/2 0 1/2 1 17.5
Zj 10 +15 20 15 +7.5 0 5 -7.5 0 275 +37.5
j 0 0 -15 -7.5 0 -5 +7.5 0
144
Sensitivity Analysis
Change in the Objective Function Coefficients
Cj 25 20 0 0 0 0
VB X1 X2 S1 S2 S3 S4 bi
25 X1 1 0 -1 1/2 0 0 5 The new solution becomes:
0 S3 0 0 -3 1 1 0 5
20 X2 0 1 2 -1/2 0 0 10 X1*= 5, X2* = 10 and Z* = 325.
0 S4 0 0 1 -1/2 0 1 15
Zj 25 20 15 2,5 0 0 325
j 0 0 -15 -2,5 0 0 145
Sensitivity Analysis
Change in the Objective Function Coefficients
Question: What is the effect on optimality if the coefficient c2 takes the value 25.
-15 – ½ c2 0
It follows that c2 ≥ 10 and hence
optimality is preserved
-5 – ½ c2 0
146
Sensitivity Analysis
Change in the Objective Function Coefficients
147
Sensitivity Analysis
Change in the Right-Hand Side
Question: In what range it is possible to vary the RHS of the 1st constraint while
preserving the optimality of the basis?
X1 + X2 ≤15 + ∆ b1
148
Sensitivity Analysis
Change in the Right-Hand Side
▪ See that the change in the RHS of the constraints would only affect the
corresponding column in the simplex tableau.
▪ Note that the parameter ∆b1 and the variable S1 have the same coefficients
in the standard form and will preserve identical coefficients for all simplex
tableaus, particularly for the optimal one.
▪ Hence, it suffices to take the coefficients of S1 in the last tableau as those
of ∆b1 in column bi.
149
Sensitivity Analysis
Change in the Right-Hand Side
CJ 10 20 0 0 0 0
Basis X1 X2 S1 S2 S3 S4 RHS
10 X1 1 0 1/2 0 -1/2 0 2.5 +1/2 b1
0 S2 0 0 -3 1 1 0 5 -3 b1
20 X2 0 1 1/2 0 1/2 0 12.5 +1/2 b1
0 S4 0 0 -1/2 0 1/2 1 17.5 -1/2 b1
ZJ 10 20 15 0 5 0 275
J 0 0 -15 0 -5 0
150
Sensitivity Analysis
Change in the Right-Hand Side
For the basis to remain optimal, the corresponding solution must be feasible. That is:
► If the optimal solution does not satisfy the new constraint, then
optimality is not preserved and the new solution will be worse.
152
Sensitivity Analysis
Introducing a new constraint
► If the deleted constraint however was binding, then the optimal solution
will change
154
Sensitivity Analysis
Deleting a constraint
155
Sensitivity Analysis
Deleting a constraint
CJ 10 20 0 0 0 0 0
Basis X1 X2 S1 S2 S3 S4 S5 RHS
10 X1 1 0 0 0 -1/3 0 1/3 5/3
0 S2 0 0 0 1 0 0 -2 10
20 X2 0 1 0 0 2/3 0 1/3 35/3
0 S4 0 0 0 0 1/3 1 -1/3 55/3
0 S1 0 0 1 0 -1/3 0 -2/3 5/3
J 0 0 0 0 -10 0 -10 250
156
Sensitivity Analysis
Deleting a constraint
CJ 10 20 0 0 0 0 0
Basis X1 X2 S1 S2 S3 S4 S5 RHS
0 S5 3 0 0 0 -1 0 1 5
0 S2 6 0 0 1 -2 0 0 20
20 X2 -1 1 0 0 1 0 0 10
0 S4 1 0 0 0 0 1 0 20
0 S1 2 0 1 0 -1 0 0 5
J 30 0 0 0 -20 0 0 200
157
Sensitivity Analysis
Deleting a constraint
After deleting the row and the column of S5 and performing one iteration, we obtain the
following optimal tableau
CJ 10 20 0 0 0 0
Basis X1 X2 S1 S2 S3 S4 RHS
0 S2 0 0 -3 1 1 0 5
20 X2 0 1 1/2 0 1/2 0 12.5
0 S4 0 0 -1/2 0 1/2 1 17.5
10 X1 1 0 1/2 0 -1/2 0 2.5
J 0 0 -15 0 -10 0 275
158
Sensitivity Analysis
Introducing a new variable
▪ Reconsider the last example and suppose that a 3rd variable is introduced with
a coefficient of 10 in Z and coefficients of 1, 2, 0 & 0 in 1st, 2nd, 3rd & 4th
constraints, respectively.
▪ The new LP is then:
Max Z = 10X1 + 20X2 + 10X3
X1+X2+X3 ≤ 15
4X1+2X2+2X3 ≤ 40
-X1+X2 ≤ 10
X1 ≤ 20
X1, X2, X3 ≤ 0
159
Sensitivity Analysis
Introducing a new variable
160
Sensitivity Analysis
Introducing a new variable
161
Sensitivity Analysis
Introducing a new variable
162
Sensitivity Analysis
Deleting a variable
163