Or-Ch - 2 Duality
Or-Ch - 2 Duality
2.5. DUALITY
Every LPP has another LPP associated with it, which is called its dual. The first
way of starting a linear problem is called the primal of the problem. The second
way of starting the same problem is called the dual. The optimal solutions for
the primal and the dual are equivalent, but they are derived through alternative
procedures.
Note:
The dual contains economic information useful to management, and it may also be
easier to solve, in terms of less computation, than the primal problem.
Corresponding to every LPP, there is another LPP.
The given problem is called the primal.
The related problem to the given problem is known as the dual.
The dual of a dual is the primal
If the primal has optimal solution ,the dual will have optimal solution
If the primal has no optimal solution, the dual will not have optimal solution.
Whether we follow the dual or primal system, the optimal solution will remain
equal.
Table
Primal-Dual Relationship
Primal Dual
Objective is minimization Objective is maximization and vice versa
No of columns No of rows
No of rows No of columns
No of decision variables No of constraints
No of constraints No of decision variables
Coefficient of Object function RHS value
RHS value Coefficient of Object function
[Date] 1
COMPILED BY BIRUK,T
DUALITY
Duality Advantage
1. The dual form provides an alternative form
2. The dual reduces the computational difficulties associated with some
formulation
3. The dual provides an important economic interpretation concerning the value
of scars resources used.
Example:
Write the duals to the following problems
a. Max.Z=5x1+6x2
Subject to:
2x1+3x2 < 3000 (Labor constraint)
5x1 + 7x2 < 1000 (Machine constraint)
x1 + x2 < 5000 (Market constraint)
x1, x2 > 0
Solution
Represent primal in the conventional table as follows
Dual variables x1 x2 Constraints
u1 2 3 < 3000
u2 5 7 < 1000
u3 1 1 < 500
MaxZ 5 6
By referring the above table, dual for this can be stated as:
[Date] 2
COMPILED BY BIRUK,T
DUALITY
2u1+5u2 + u3> 5
3u1+7u2 + u3> 6
u1, u2 , u3> 0
Note:
1. For maximizing, all constraints must be brought to “<” form
2. For minimizing, all constraints must be brought to “>” form
3. If they are not, use multiplication factor -1
4. “=” is an intersection of “>” and “< “
b. Max.Z=60x1+50x2
Subject to:
2x1+4x2 < 80
3x1 + 2x2 < 60
x1 < 15
2x2 < 36
x1, x2 > 0
Solution
Primal is represented in the table as follows:
[Date] 3
COMPILED BY BIRUK,T
DUALITY
2u1+3u2 + u3 > 60
4u1+2u2 + u4 > 50
u1, u2 , u3, u4 > 0
c. Obtain the dual problem of the following primal LPP
Min.Z=x1+2x2
Subject to:
2x1+4x2 < 160
x1 - x2 = 30
x1 > 10
x1, x2 > 0
Solution
Rule:
1. For a maximization primal with all < type constraints there exists a
minimization dual problem with all > type constraints and vice versa.
Thus, the inequality sign is reversed in all the constraints except the non-
negativity conditions.
2. Transform the < type constraint to a > type constraint by multiplying the
constraint by -1.
3. Write the = type constraint equivalent to two constraints of the type > and
<.
[Date] 4
COMPILED BY BIRUK,T
DUALITY
[Date] 5
COMPILED BY BIRUK,T
DUALITY
MinZ*=2 u1+ u2
St:
-2u1+ 2u2> 1
u1+ 3u2 >-1
3u1+ 4u2 >3
u1, u2 , unrestricted in sign
2.6 SENSETIVITY ANALYSIS
Sensitivity Analysis is concerned with the study of ‘Sensitivity ‘of the optimal
solution of an LPP with discretion variables (changes) in parameters .The degree
of sensitivity of the solution due to those variations can range from no change at
all to a substantial change in the optimal solution of the given LPP. Thus,
insensitivity analysis, we determine the range over which the LP model
parameters can change with out affecting the current optimal solution. The process
of studying the sensitivity of the optimal solution of an LPP is called post-optimal
analysis.
[Date] 6
COMPILED BY BIRUK,T
DUALITY
D. Add/delete constraints
E. The addition of a new variable to the problem
A. Changes of the coefficients of the objective function (cj)
Decision variables can be:
i. Basic (in the solution)
ii. Non-basic (out-of the solution)
Note:
Instead of resolving the entire problem as a new problem with new parameters,
we may take the original optimal solution table as an initial solution table for
the purpose of knowing ranges both lower and upper within which a
parameter may assume value.
a. Range for the coefficients of basic decision variables
The range of optimality is the range over which a basic decision variable
coefficient in the objective function can change without changing the optimal
solution mix. However, this change will change only the optimal value of the
objective function.
Example:
Max.Z=5x1 +4.5x2 +x3
Subject to:
15 x1+15.8x2 < 150
5x1+6.4x2+15x3 < 77
2.8x2+11.8x3 < 36
x1, x2 , x3 > 0
[Date] 7
COMPILED BY BIRUK,T
DUALITY
Cj 5 4.5 1 0 0 0
SV X1 X2 X3 S1 S2 S3 Q
5 X1 1 1.053 0 0.067 0 0 10
[Date] 8
COMPILED BY BIRUK,T
DUALITY
I. Analysis of X1
X2 S1 S2 Non-basic variables
Lower Limit
The largest negative number closest (negative amount closest to 0)
[Date] 9
COMPILED BY BIRUK,T
DUALITY
Therefore, the range of optimality for the coefficient of X1 is 4.2< Cj (for X1) <
∞ (The coefficient of X1 in the objective function can change between 4.2 and ∞ without
changing the optimal solution mix X1=10, X3=1.8 and S3=15.12)
II. Analysis of X3
Therefore, the range of optimality for the coefficient of X3 is 0 < Cj (for X3) <
15.13 (The coefficient of X3 in the objective function can change between 0 and 15.13
without changing the optimal solution mix X1=10, X3=1.8 and S3=15.12).However,
this change will change only the optimal value of the objective function(i.e.MaxZ will
change)
Cj(new)>Zj
[Date] 10
COMPILED BY BIRUK,T
DUALITY
The range of insignificance is the range over which Cj rates for non-basic variables
can vary without causing a change in the optimal solution mix (variable) is called
the range of insignificance.
Example:
Max.Z=5x1 +4.5x2 +x3
Subject to:
15 x1+15.8x2 < 150
5x1+6.4x2+15x3 < 77
2.8x2+11.8x3 < 36
x1, x2 , x3 > 0
Cj 5 4.5 1 0 0 0
SV X1 X2 X3 S1 S2 S3 Q
5 X1 1 1.053 0 0.067 0 0 10
[Date] 11
COMPILED BY BIRUK,T
DUALITY
Solution
Cj(for X2)=4.5 and Zj( for X2) =5.342
Cj(new for X2)>5.342==> Cj(new for X2).If the profit contribution of X2 is greater
than 5.342,then X2 will be included in the solution.
Thus, ∞< Cj(new for X2)< 5.342 is the range of insignificance for X2.
Cj (new for X2) can vary with in the given range without causing a change in the
optimal solution mix(X1=10, X1=0, X3=1.8, S1= S2=0 and S3=15.12).
B. Change in the Right Hand—Side Quantity (RHS)
Or
Change in the availability of resource (Capacity) (bj)
Shadow prices:
==>How much should a firm be willing to pay to make additional resources
available?
Shadow prices signify the change in the optimal value of the objective function for
1 unit increases in the value of the RHS of the constraint that represent the
availability of scarce resources.
The negative of the number of Cj - Zj row in its slack variable columns provide
as with shadow prices. Or: shadow prices are found in the Zj row of the final
simplex tableau in the slack variable columns.
RHS ranging is the range over which shadow prices remain valid.
[Date] 12
COMPILED BY BIRUK,T
DUALITY
Example:
Max.Z=3x1+4x2
Subject to:
3 x1+5x2 < 15
2x1 + x2 < 8
x2 < 2
x1 , x2 > 0
The optimal tableau is given as:
Cj 3 4 0 0 0
SV X1 X2 S1 S2 S3 Q
Cj - Zj 0 0 -0.714 -0.428 0
Required:
1. Determine the shadow price for each constraint
2. Determine the RHS ranges over which the shadow prices are valid
Analysis of the 1st constraint (S1)
Q S1 Q/ S1
[Date] 13
COMPILED BY BIRUK,T
DUALITY
3.57 0.714 5
0.857 -0.428 -2
Therefore, 5.33< b1< 10 (The range of resource 2 over which the shadow price $0.428 per
unit is valid).
[Date] 14
COMPILED BY BIRUK,T
DUALITY
Q S3 Q/ S3
3.57 0 -
1.143 1 1.143
0.857 0 -
[Date] 15
COMPILED BY BIRUK,T