Sensitivity Analysis and Duality of LP Problems
Sensitivity Analysis and Duality of LP Problems
and Duality of LP
problems
Ha Thi Xuan Chi, PhD
1
Sensitivity Analysis in LP
How do changes in an LP’s parameters (objective function coefficients, right-
hand sides, and technological coefficients) change the optimal solution?
2
NOTATIONS
S*=B-1
A*= B-1. A=S*.A
y*=cB B-1
3
Consider the following example:
20 40 50
4
Changing in the objective function coefficients, c
5
Changing in the objective function coefficients, c (cont.)
Final simplex table:
50 120 0 0
Cj Basic Eq. Z X1 X2 S1 S2 RHS
Z (0) 1 10 0 30 0 2400
120 X2 (1) 0 0.5 1 0.25 0 20
0 S2 (2) 0 2.5 0 -0.25 1 40
50 C(X2) 0 0
Basic Eq. Z X1 X2 S1 S2 RHS
Z (0) 1 10 0 30 0 2400
C(X2) X2 (1) 0 0.5 1 0.25 0 20
0 S2 (2) 0 2.5 0 -0.25 1 40
7
Changing in coefficient of the basic variable
50 C(X2) 0 0
Basic Eq. Z X1 X2 S1 S2 RHS
Z (0) 1 10 0 30 0 2400
C(X2) X2 (1) 0 0.5 1 0.25 0 20
0 S2 (2) 0 2.5 0 -0.25 1 40
Consider the optimal simplex tableau
Row 0 : 10 0 30 0
Change c2 120 to c2 120 c2
New row 0 : 10 0-c2 30 0
For x 2 to stay a basic z 2 *-c2 must be equal to 0.
Gaussian elimination:
Row 0: 10 0-c2 30 0
c2 Row 1: 0.5c2 c2 0.25c2 0 =
10 0.5c2 0 0.25c2 30 0
10 0.5c2 0 c2 20
The current Basic Variable c2 20 c2 100
0.25c2 30 0 c2 120
remain optimal if
8
Changing the right hand side, bi(cont.)
9
Changing the right hand side, bi (cont.)
2 2
if b1 change to b1 b1 b1
b1 * 20 0.25 0 b1 20 0.25b1
b * 40 0.25 1 40 0.25b
2 0 1
10
Changing the right hand side, bi (cont.)
0 b1 240
11
The duality in LP
12
The duality in LP
n
Maximize Z= c j x j
m
Minimize W= b j y j
j 1
i 1
subject to : subject to :
n
a x
m
j 1
ij j b, for i 1, 2,..., m a
i 1
ij yi c, for j 1, 2,..., n
13
WYNDOR GLASS CO.
PROBLEM
14
WYNDOR GLASS CO Data
Tuesday,
September 15
WYNDOR GLASS CO Data
16
WYNDOR GLASS CO Data
Row 0 and corresponding dual solution for each iteration for the
Wyndor Glass Co. example
17
The Duality in LP
■ The Dual
– An alternate formulation of a linear programming problem as
either the original problem or its mirror image, the dual, which
can be solved to obtain the optimal solution.
– Its variables have a different economic interpretation than the
original formulation of the linear programming problem (the
primal).
– It can be easily used to determine if the addition of another
variable to a problem will change the optimal.
18
The Duality in LP
■ Dual
– The number of decision variables in the primal is equal to the
number of constraints in the dual.
– The number of decision variables in the dual is equal to the
number of constraints in the primal.
– Since it is computationally easier to solve problems with less
constraints in comparison to solving problems with less
variables, the dual gives us the flexibility to choose which
problem to solve.
19
The Duality in LP
20
The Duality in LP
21
The Duality in LP
22
Solving Dual problem
Primal (Dual) Dual (Primal)
Max. Profit = $50 X1 + $120 X2 Min. Opportunity Cost = 80 U1 + 60 U2
Subject to: Subject to:
2 X1 + 4 X2 80 2 U1 + 3 U2 ≥ 50
3 X1 + X2 60 4 U1 + 1 U2 ≥ 120
Primal optimal solution Dual optimal solution
Cj Solut X1 X2 S1 S2 Quan- Cj Solut U1 U2 S1 S2 A1 A2 Quan
ion tity ion -tity
120 X2 1/2 1 1/4 0 20 80 U1 1 1/4 0 -1/4 0 1/2 30
0 S2 5/2 0 -1/4 1 40 0 S1 0 -5/2 1 -1/2 -1 ½ 10
Zj 60 120 30 0 2400 Zj 80 20 0 -20 0 40 2400
Cj-Zj -10 0 -30 0 Cj-Zj 0 40 0 20 M M-40
X1=0; X2= 20; S1=0; S2 = 40 U1= 30; U2= 0; S1= 10; S2= 0
- Absolute values of number in the (Cj-Zj) row under slack variables are the solutions of the
dual (Ui’s). These are shadow prices.
- Optimal value of objective functions of both problems are equal. Always we have Obj. value
of max. problem ≤ Obj. value of min.problem.
23
The Duality in LP
24