Chapter 4-Linear Programming-Sensitivity Analysis and Duality
Chapter 4-Linear Programming-Sensitivity Analysis and Duality
METHOD
SENSITIVITY
ANALYSIS
ASSOC. PROF. HO THANH PHONG
OBJECTIVES
AFTER COMPLETING THIS CHAPTER, STUDENTS
WILL BE ABLE TO:
Maximize Z = 50 X1 + 120 X2
Subject to:
2 X1 + 4 X2 80 60
3 X1 + X2 60
X1, X2 0
20 40 50
Cj 50 120 0 0 RHS
Final
Solution X1 X2 S1 S2
tableau
120 X2 1/2 1 1/4 0 20
0 S2 5/2 0 -1/4 1 40
Zj 60 120 30 0 2400
Cj - Zj -10 0 -30 0
Cj 50 120 0 0 RHS
Solution X1 X2 S1 S2
120 X2 1/2 1 1/4 0 20
0 S2 5/2 0 -1/4 1 40
Zj 60 120 30 0 2400
Cj - Zj -10 0 -30 0
6
b. Change coefficients of basic variables: changes in coefficients of basic
variables will affect to all variables. We use (120 + ∆) for X2 and rework the
simplex tableau.
Cj Basic 50 120+∆ 0 0 RHS-
Vars. X1 X2 S1 S2 Quantity
120+∆ X2 1/2 1 1/4 0 20
0 S2 5/2 0 - 1/4 1 40
Zj 60+1/2∆ 120+∆ 30+1/4∆ 0 2400+20∆
Cj – Zj -10-1/2∆ 0 -30-1/4∆ 0
8
2. SHADOW PRICE & REDUCED COST
• Shadow Price:
The shadow price is the change in objective function value from increasing
of one unit of a scare resource. Where we can find shadow price? Look at
the negative values at (Cj – Zj) row of slack variables, these values are
called shadow prices or duals.
10 is reduced cost
Constraint Dual Value Slack/Surplus Original Val Lower Bound Upper Bound
Constraint 1 30 0 80 0. 240.
Constraint 2 0 40 60 20. Infinity
12
The Duality in LP
• Every LP problem, called primal problem, has associated with it
another LP problem called the dual problem.
• The relationship between the dual and the primal prove to be
extremely useful in a variety of ways. Originally,
13
The Duality in LP (contd.)
• Steps to form a Dual:
• If the primal is maximization, the dual is a minimization, and vice versa
• The RHS values of the primal (dual) constraints become the dual’s (primal’s)
objective function coefficients.
• The transpose of the primal constraint coefficients become the dual constraint
coefficients.
• Constraints inequality signs are reversed.
• Example:
14
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
X1 ≥0 U1 ≥0
X2 ≥ 0 U2 ≥ 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.
-Important property: Coefficient in (Cj – Zj) of variable j in one problem = RHS – LHS of
constraint jth in another problem at any iteration.
15
Solving Dual problem
Primal (Dual) Dual (Primal)
Max. Profit = 50 X1 + 120 X2+0 S1+0 S2 Min. Opportunity Cost = 80 U1 + 60 U2
Subject to: Subject to:
2 X1 + 4 X2 + S1 = 80 2 U1 + 3 U2 ≥ 50
3 X1 + X2 + S2 = 60 4 U1 + 1 U2 ≥ 120
X1 ≥0 U1 ≥ 0
X2 ≥ 0 U2 ≥ 0
Primal solution 1st iteration Primal 2nd iteration solution (optimal)
Cj 50 120 0 0 Cj 50 120 0 0
17