Chapter Two Part V Duality and Sensitivity Analysis
Chapter Two Part V Duality and Sensitivity Analysis
Sensitivity Analysis
1
Duality
• A given LPP can be re-written in another form which is similar in its
3x1 + 2x2 ≤ 35
5x1 - 3x2 ≤ 10
x2 ≤ 20
where x1, x2 ≥ 0
7
Solution
• Let y1, y2, y3 and y4 be the corresponding dual variables, then the
dual problem is given by:
Subject to x1 -x2 + x3 ≥ 3
9
Example 3 Construct the dual of the problem
Maximize Z = 3x1+10x2+2x3
Subject to 2x1+3x2+2x3≤ 7
3x1-2x2+4x3=3
Subject to 2x1+3x2+2x3 ≤ 7
3x1-2x2+4x3 ≤ 3
-3x1+2x2-4x3 ≤ -3
variables.
11
Then the dual of the problem is
Substituting y’2 – y”2 = y2, where y2 is unrestricted in sign, the dual problem
becomes
12
Mathematical Explanation to the Dual
Consider the following example
M1 M2
P1 1 3 6
P2 1 2 5
Total 5 12
availability per
day
13
The primal of the problem is
Maximize Z = 6x1+5x2
Subject to x1+x2 ≤ 5
3x1+2x2 ≤ 12
x 1, x2 ≥ 0
Minimize W = 5y1+12y2
Subject to y1+3y2 ≥ 6
y1+2y2 ≥ 5
y1,y2 ≥ 0 14
The optimal table for the primal is
Cj 6 5 0 0
CB Basis x1 x2 s1 s2
5 x2 0 1 3 -1 3
6 x1 1 0 -2 1 2
Cj-zj 0 0 -3 -1 27
x2, we get
x1+x2 = 5+δ
3x1+2x2 = 12 16
Solving simultaneously we get,
x1 = 2-2δ
x2 = 3+3δ
Z = 27+3δ
accordingly by – δ
• The dual represents the extent to which (the rate of the change
18
• It can be viewed as the change in the
objective function for a unit change of the
resource at the optimum assuming that the
change is not significant enough to change
the set of basic variables themselves.
19
• Simplex method solves both the primal and the dual.
• We have said that the optimal solution of the primal is
Cj 6 5 0 0
CB Basis x1 x2 s1 s2
5 x2 0 1 3 -1 3
6 x1 1 0 -2 1 2
Cj-zj 0 0 -3 -1 27
22
• The dual simplex method is quite similar to the regular
simplex method and once they are started, the only difference
lies in the criterion used for selecting a variable to enter the
basis and to leave the basis.
• In the dual simplex method this criterion is for the dual while
in regular simplex method the criterion is for the primal.
• Further, in the dual simplex method we first determine the
variable to leave the basis and then the variable to enter the
basis, while reverse is done in the case of the simplex method.
23
Applications of the Dual Simplex Method
solution basis.
25
Step 4. Compute Cj-Zj for every column. Three
cases arise:
26
Step 5. Select the row that contains the most negative
bi,. This row is called the key row or the pivot row.
The corresponding basic variable leaves the basis.
Step 6. Look at the elements of the key row.
(a) If all elements are non-negative, the problem
does not have a feasible solution.
29
Solution
Step 1
The given minimization problem is converted into maximization problem
Maximize G = -Z = -2x1 - 2x2 - 4x3
Step 2
The first constraint is of ≥ type. It is converted into ≤ type by
multiplying throughout by -1. thus the constrain become: -2x1 - 3x2 -5x3
≤ -2
Step 3
The problem is converted into standard for by adding slack variables s1,
s2, and s3 in the constraints. Thus the problem is expressed as
Maximize G = -Z = -2x1 - 2x2 - 4x3 + 0s1 + 0s2 + os3
Subject to -2x1 - 3x2 -5x3 + s1 = -2
3x1 + x2 + 7x3 + s2 = 3
x1 + 4x2 +6x3 + s3 = 5
x1, x2, x3, s1, s2, s3 ≥0
Putting x1 = x2 = x3 = 0, the initial basic solution is s1 = -2, s2 = 3, s3 = 5.
since s1 is negative, the solution is infeasible. The above information is
expressed in a table form, called starting dual simplex table.
30
cj -2 -2 -4 0 0 0
CB Basis X1 X2 X3 S1 S2 S3 b
0 S1 -2 ( -3 ) -5 1 0 0 -2
0 S2 3 1 7 0 1 0 3
0 S3 1 4 6 0 0 1 5
zj 0 0 0 0 0 0 0
Cj-zj -2 -2 -4 0 0 0
-2 / -2 -2 / -3 -4 / -5
= 1 = 2/3 = 4/5
Step 4
Compute cj – zj. As all cj – zj are either negative or zero and
bi is negative, the solution is optimal but infeasible. We
proceed to step 5.
Step 5
As bi = -2, the first row is the key row and s1 is the outgoing
variable.
31
• Finding the ratios of elements of Cj-Zj row to the
elements of key row.
• Neglect the ratios corresponding to positive or
zero elements of the key row. The desired ratios
are:
-2/-2 = 1,
-2/-3 = 2/3 and
-4/-5 = 4/5
since 2/3 is the smallest ratio, ‘x2” column is the
key column; x2 is the incoming variable and (-3) is
the key element.
32
As all cj-zj are negative or zero and all bi are positive, the solution
given by the above table is optimal. Thus the optimal solution is
33
Example 2
34
Solution
35
After an iteration, the optimal feasible
solution is
x1 = 4, x2 = 3, Zmax = -18 36
Exercise
37
Sensitivity Analysis
• During the formulation of a LPP, it is assumed that the
parameters such as market demand, equipment capacity,
resource consumption, resource availability, the relevant costs
or profits are all known with certainty and do not change over
time.
39
• The changes in the parameters of a linear programming problem
include:
Adding constraints
40
Changes in the Coefficients of Objective Function cj
company.
ii. What happens if c3 is increased to birr 12? What is the new optimal
iii.Find the range on basic variable coefficient c1, such that the current
• In the optimal product mix shown in the above table, product C is not
produced because of the low associated profit of birr 2 per unit (c 3).
product mix.
• When the value of c3 changes, the value of the net evaluation (relative
profit coefficient) of the non basic variable x3, i.e., c3 in the above table also
changes.
48
• c3 become positive, the current product mix
50
iii. Find the range on basic variable coefficient c1, such that
the current optimal product mix remains optimal.
c5,will change.
52
53
• Range on c1 for the optimal product mix to remain
optimal is 3/2 ≤ c1 ≤ 6.
= 2, x3 = 0 remains optimal.
55
56
v. Effect of changing the objective function
coefficients of basic as well as non-basic variables
Z = 2x1 + 8x2 + 4x3
57
• Hence the optimal solution does not change.
• The optimal product mix remains x1 = 1, x2 = 2,
58
Change in the RHS values of the constraints bi
65
66
• As the elements in cj row are negative or zero all the bi
are positive, the solution given by the above table is
optimal.
67
68
iv. Changes in the coefficients of the constraints aij
• When changes take place in the constraint coefficients of a
non - basic variable in the current optimal solution,
feasibility of the solution is not affected. The only effect, if
any, may be on the optimality of the solution.
• However, if the constraint coefficients of a basic variable get
changed, things become more complicated since the
feasibility of the current optimal solution may also be
affected (lost). The basic matrix is affected, which, in turn,
may affect all the quantities given in the current optimal
table. Under such circumstances, it may be better to solve the
problem all over again. 69
iv. Changes in the coefficients of the constraints aij
Example:
x 1 , x2 . x3 , x 4 ≥ 0
Find the effect of the following changes in the optimal table of the
problem
70
Solution
The optimal table for this problem is given below:
cj 45 100 30 50 0 0
CB b
Basis x1 x2 x3 x4 x5 x6
71
72
P1 = B P1
73
Now we start with the original optimal table and incorporate the changes due
to variable x1.
x3
74
Optimal Table
75