8 Sensitivity Analysis and Post Optimality
8 Sensitivity Analysis and Post Optimality
Optimality
JKJHA@IITKGP
Introduction
• In most practical applications, the value of LP
parameters is not known exactly and is often estimated
based on past data.
• It is therefore important to study how changes in an LP
parameter (objective function coefficients, right hand
sides, and technological coefficients) affect the optimal
solution.
• Algebraic approach enables to determine the revised
optimal solution from the original solution due to
change in an LP parameter, without resolving the
problem from scratch.
JKJHA@IITKGP
Following changes are considered
(1) Variations in objective function coefficients (cj)
(2) Variations in RHS constants (resource availability) (bi)
(3) Variations in constraint matrix (A)
- Adding new variables or activities
- Variation in the resource requirements (aij) of existing activities
- Adding new constraints
JKJHA@IITKGP
How feasibility and optimality are affected?
Simplex Tableau at any iteration in matrix form
Coefficients of
Original variables (xT) Slack variables (xsT) RHS
The coefficient of xj in Z-row is represented as zj-cj = cBB-1aj – cj, where cBB-1aj is the cost of consumed
resources for the unit production of product j.
Feasibility Condition:
The current basis xB remains feasible if the value of all basic variables is non-negative, i.e.
xB = B-1b ≥ 0
Thus, the current basis may not be feasible due to the following:
- Change in resource availability of a resource (bi)
- Change in B due to change in resource requirement aij corresponding to a basic variable
- Adding one or more new constraints
JKJHA@IITKGP
Optimality Condition:
The current basis xB remains optimal if the objective function coefficients are non-
negative, i.e.
cBB-1A – c ≥ 0 and cBB-1 ≥ 0
Thus, the current basis may not be optimal due to the following:
- Change in objective function coefficients (cj)
- Change in B due to change in resource requirement aij corresponding to a
basic
- Adding one or more new variables
JKJHA@IITKGP
Example: Product Mix Problem
• Products: A, B, and C
• Resources: Labor and Material
• Objective: To maximize Profit
• Decision: To find optimal product mix (x1, x2, and x3)
• LP formulation
Maximize Z = 2x1 + 3x2 + x3
1 1 1
Subject to 𝑥 + 𝑥2 + 𝑥3 ≤ 1 Labor
3 1 3 3
1 4 7
𝑥 + 𝑥2 + 𝑥3 ≤ 3 Material
3 1 3 3
𝑥1 , 𝑥2 , 𝑥3 ≥ 0
Basis x1 x2 x3 x4 x5 RHS
x1 1 0 -1 4 -1 1
x2 0 1 2 -1 1 2
zj - cj 0 0 3 5 1 8
• Optimal Solution:
x1 = 1, x2 = 2, x3 = 0, Z = 8
JKJHA@IITKGP
Variations in objective function coefficients (cj)
(i) Changing objective function coefficient (cj) of a Non-Basic Variable
Product C is not produced in the optimal product mix because of low value of c3.
However, the optimal product mix may change if the value of c3 increases.
• Finding the range of c3 for which the current basis (solution) remains optimal:
If the value of c3 changes, only the value of z3 – c3 changes in the optimal table, then
−1
Calculate z3 – c3 = cBB-1a3-c3 = 2 3 − 𝑐3 = 4 − 𝑐3
2
=> c3 ≤ 4
JKJHA@IITKGP
Finding the new optimal solution
• Update z3 – c3 entry as -2 in the current optimal simplex table
Basis x1 x2 x3 x4 x5 RHS
x1 1 0 -1 4 -1 1
x2 0 1 2 -1 1 2
zj - cj 0 0 -2 5 1 8
1
z1 – c1 = cBB-1a1 − c1 = 𝑐1 3 − 𝑐1 = 0 Updated profit coefficient
0 of basic variables
0
z2 – c2 = cBB-1a2 − c2 = 𝑐1 3 −3=0 remains at zero
1
4𝑏1 − 3
For the current basis to remain feasible, 𝒙′𝐁 ≥𝟎⇒ ≥0
−𝑏1 + 3
3
Thus, the range of b1 for current basis to remain feasible: ≤ 𝑏1 ≤ 3
4
JKJHA@IITKGP
Modified Simplex table
Basis x1 x2 x3 x4 x5 x6 RHS Ratio
x1 1 0 -1 4 -1 3 1 1/3
x2 0 1 2 -1 1 0 2 -
zj - cj 0 0 3 5 1 -2 8
x6 1/3 0 -1/3 4/3 -1/3 1 1/3
x2 0 1 2 -1 1 0 2
zj - cj 2/3 0 7/3 23/3 1/3 0 26/3
JKJHA@IITKGP
(ii) Variation in the resource requirements (aij) of
existing activities
• If the variation in aij corresponds to a non-basic variable xj (e.g., x3),
then it is required to recalculate B-1aj and cBB-1aj − cj. If cBB-1aj
− cj ≥ 0, the current solution remains optimal, otherwise a primal
simplex iteration is performed similar to the previous case to find
the new optimal solution.
JKJHA@IITKGP
(iii) Adding new constraints
• Suppose a carbon emission constraint due to carbon cap is included
in the original problem as x1 + 2x2 + x3 ≤ 10
• If the new constraint is satisfied with the present optimal solution,
then the present solution remains optimal.
• As 1 + 2 × 2 + 0 = 5 ≤ 10, so the present solution does not change.
• Suppose available carbon cap is only 4, then the new constraint
becomes x1 + 2x2 + x3 ≤ 4, and the present optimal solution violates
this constraint.
JKJHA@IITKGP
Modified simplex table
Basis x1 x2 x3 x4 x5 x6 RHS
x1 1 0 -1 4 -1 0 1
x2 0 1 2 -1 1 0 2
x6 1 2 1 0 0 1 4
zj - cj 0 0 3 5 1 0 8
• Performing elementary row operations for the third row to bring the system of equations
in proper form (basic variables x1 and x2 are not forming identity matrix)
R3 = R3 – R1 – 2R2
Basis x1 x2 x3 x4 x5 x6 RHS
x1 1 0 -1 4 -1 0 1 Apply Dual Simplex
x2 0 1 2 -1 1 0 2
x6 0 0 -2 -2 -1 1 -1
zj - cj 0 0 3 5 1 0 8
Ratio -3/2 -5/2 -1
New optimal
x1 1 0 1 6 0 -1 2
solution: x1 = 2,
x2 0 1 0 -3 0 1 1 x2 = 1, x3 = 0,
x5 0 0 2 2 1 -1 1 Z=7
zj - cj 0 0 1 3 0 1 7
JKJHA@IITKGP