Duality
Duality
Duality
DUALITY
61.1 INTRODUCTION
In the previous lesson we have seen that in the case of a
maximum problem the simplex method can be applied easily in
order to find the optimal solution. Whereas when the problem is
of minimization we have to take recourse to the two phase
method, which is a bit complicated.
Is there any other method to solve these problems of
minimization?
Among a number of techniques for solving such problems is
one developed by John Von Neumann and others, in which the
solution (if it exists) of a minimum problem is found by solving
a related maximum problem called the dual problem.
61.2 OBJECTIVES :
After the study of this lesson you will be able to:
l
72 :: Mathematics
Associated with
another intimately
the dual problem
The original linear
problem.
Minimize z = 2x 1+3x2
subject to the constraints
x1 +3x 2 24,
2x 1+x 2 18,
x1 0, x 2 0
(b)
Duality :: 73
x1 3x2 +x 3 12,
x1 +x 2+x3 1,
x1 0, x 2 0, x3 0
Solution:
(a)
(b)
Conditions (1) and (3) are met but condition (2) is not.
Since the first constraint x 13x2 +x 3 12 is not written with
a sign. Thus, the minimum problem as stated is not in
the standard form.
Notice however, that by multiplying by 1, we can write
this constraint as x 1+3x 2 x 3 12. Written in this way the
problem is in the standard form.
Check point 1:
Is the following minimum problem in the standard form?
Minimize z = 2x1 +x2 +3x 3
subject to the constraints
x 1 +2x 2+x 3 2,
x1 +x 2+x3 6,
x1 0, x 2 0, x 3 0
74 :: Mathematics
Solution :
Here the minimum problem is in the standard form. We begin
by constructing a special matrix for the coefficients of the
constraints of this problem without introducing slack variables.
As in a simplex table, we place the objective function in the last
row. The special matrix is
x1
x2
0.25
0.45
300
480
300
480
0.25
0.45
Duality :: 75
76 :: Mathematics
16
12
16
21
16
21
16
12
Duality :: 77
9,
3y 1 +y 2 21,
y 1 0, y 2 0
Check point 2:
Write the dual of the following linear programming problem
Minimize z = 2x1 +x 2
subject to the conditions
3,
3x 1+x 2
4x 1+3x2 6,
2,
x1 +2x 2
x1 0, x2 0,
Example E :
Find the dual of the minimum problem
Minimize z = 2x 1+3x2
subject to the constraints
2x1 +x 2 6,
x1 +2x 2 4,
x1 +x 2
5,
x1 0, x2 0,
and find its optimal solution.
Solution :
In the previous example we have found the dual of this minimum
problem, which is
Maximize z 1 = 6y 1 +4y 2 +5y 3
Subject to the conditions
78 :: Mathematics
2y 1 +y 2 +y 3 2,
y 1+2y 2 +y 3 3,
y 1 0, y 2 0, y 3 0,
This is a maximum problem in the standard form. So, we apply
the simplex method to solve this problem (as in the previous lesson).
We introduce slack variables s1 and s2 to get
2y 1 +y 2 +y 3+s1 = 2
y 1+2y 2+y 3+s2 = 3
The initial simplex table is
y1
y2
y3
s1
s2
s1
s2
y2
y3
s1
s2
1
2
1
2
1
2
s1
s2
Applying R2 R1 ,
R 3 +6R 1 , we get
y1
y2
y3
s1
s2
1
2
1
2
1
2
y1
3
2
1
2
1
2
s2
Duality :: 79
The pivot column is column 3 and the pivot row is row 1. The
1
pivot element is circled one. Dividing R 1 by
, we get
2
y1
y2
y3
s1
s2
0
0
y1
s2
1
3
1
22
Applying R 2
R1 ,
R 3 +2R 1 , we get
y1
y2
y3
s1
s2
y3
s2
10
The entries in the objective row will give the values of x1 and x2
corresponding to the entries in the columns headed by slack
variables. The entry of the objective row corresponding to s1 will
give x 1 and similarly the entry corresponding to s2 will give x 2.
Hence, in this problem
x1 = 5, x 2 =0, z 1 =10
Moreover, the entire minimal solution can be read from the right
end of the objective row of the final simplex table.
The following steps be employed in solving a minimal problem:
Step 1: Write the dual (maximum) problem.
Step 2: Solve this maximum problem by simplex method.
80 :: Mathematics
Step 3: Read the optimal solution for the original problem from
the objective row of the final simplex table. The variables
will appear as the last entries in the columns
corresponding to the slack variables.
Step 4: The minimum value of the objective function z will
appear in the lower right corner of the final table and
is equal to the maximum value of the dual objective
function z 1 .
Example F :
Minimize z = 6x1 +8x 2+x 3
subject to the conditions
3x1 +5x 2+3x3 20,
x1 +3x 2+2x3
9,
20
30
20
30
Duality :: 81
6,
5y 1+3y 2+2y 3
8,
3y 1+2y 2+5y 3
1,
y 1 0, y 2 0, y 3 0
This maximum problem is in the standard form. We introduce
slack variables s1 , s2 , s 3 to get
3y 1+y 2+6y 3+s 1
= 6,
1
3
2
5
y1
y2
y3
s1
s2
s3
s1
s2
s3
20
30
y2
y3
s1
s2
s3
s1
s2
30
20
s3
0
82 :: Mathematics
y2
y3
s1
s2
s3
s1
s2
y3
y2
y3
s1
s2
s1
s2
y3
1
2
, we get
s3
Applying R 1+
3
5
R3 , R2
19
5
R 3 , R 4 +2R 3, we get
y1
y2
y3
s1
s2
s3
s2
y1
s1
Duality :: 83
Now all the entries in the objective row are greater than or
equal to zero. So this is the final simplex table and the optimal
solution has been reached.
The solution to the maximum problem is
Max. z 1 =
y1 =
, y 2 = 0,
y3 = 0
x2 = 0,
x3 =
Check point 3:
Minimize z = 6x 1+3x2
subject to the constraints
x1 +x 2 2,
2x 1+6x2 6,
1
20
33
x1 0, x2 0
Find the optimal solution of the above problem.
3,
4x 1+3x2 6,
x1 +2x 2
2,
x1 0, x2 0
(b) Maximize z = 3x1+4x 2
subject to the conditions
x1 x2
1,
84 :: Mathematics
x1 +x 2 0,
x1 0, x2 0
(c) Maximize z = 4x1 +3x 2
subject to the conditions
x1 6,
x2 8,
x1 +x 2 7,
3x 1+x2 15
x2 1,
x1 0, x2 0
(d) Maximize z = 3x 12x 2
subject to the conditiosn
x1 4,
x2 6,
x1 +x 2 5,
x2 1,
x1 0, x 2 0
4,
x1 0, x2 0
Duality :: 85
Solution :
Here the maximum problem is in standard form. We begin by
constructing a special matrix for the coefficients of the constraints
of this problem without introducing slack variables. As in the
simplex table, we place the objective function in the last row.
The special matrix is
2
z = x1 +3x 2
4,
x1 0, x2 0
86 :: Mathematics
Example H :
Find the dual of the following problem :
Min. z = 2x 1+2x 2+4x3
subject to the constraints
2x1 +3x 2 +5x3 2,
3x1 +x 2+7x3
3,
x1 +4x 2+6x3
5,
x1 0, x2 0, x 3 0
Solution :
This problem is not in the standard form because the second
and third constraints have the sign . In order to convert
into sign, multiply the second and third constraints by 1.
We get the original problem in the standard form as :
Min. z = 2x 1+2x 2+4x3
subject to the constraints
2x1 +3x 2 +5x3 2,
3x1 x 2 7x 3
3,
x 1 4x 2 6x 3
5,
x1 0, x2 0, x 3 0
The special matrix for this problem will be
2
Duality :: 87
2,
3y 1y 2 4y 3
2,
5y 1 7y 2 6y 3 4,
y 1 0, y 2 0, y 3 0
Example I :
Find the dual of the following problem
Minimum z = x 1+x2 +x 3
subject to the constraints
x1 3x2 +4x 3 = 5,
2x1 2x2 3,
2x2 x3 5,
x1 0, x2 0, x 3 0
Solution :
This problem is not in the standard form. First we should convert
the given problem into the standard primal form. This problem
is of minimization so all the constraints must involve the
sign.
First constraint can be written as
x1 3x2 +4x 3 5,
x1 3x2 +4x 3 5,
First one is not in the standard form yet. So multiplying it by
1, we get
x1 +3x 24x3 5,
Again multiplying 2x1 2x2 3 by 1, we get
2x1 +2x 2 3,
88 :: Mathematics
Duality :: 89
Check point 5 :
Find the dual of the following problem
Maximum z = 2x1 +3x 2+x3
subject to the constraints
4x1 +3x 2+x3 = 6,
x1 +2x 2+5x3 = 4,
x1 0, x2 0, x 3 0
4,
7x1 2x2 x3
10,
x1 2x2 +5x 3
3,
1,
x1 +x 2
7,
x1 +2x 2 10,
x2 3,
x1, x 2 0
90 :: Mathematics
Duality :: 91
TERMINAL QUESTIONS
1. Find the dual of the following problems:
(a) Min. z = x1 +x 2
subject to the condition
2x 1+x 2
4,
x1 +7x 2
7,
x1, x 2
3,
4x 1+x 2
4,
x1, x 2
92 :: Mathematics
2,
2,
0
x1, x 2, x3
2,
x 1 , x 2, x 3 0
Duality :: 93
2y 1 +y 2 3,
y 1 0, y 2 0.
Check point 5 :
Minimum z1 = 6y 16y 2 +4y 3 4y 4
subject to the constraints
4y 14y 2 +y 3 y 4 2,
3y 13y 2 +2y 3 2y 4 3,
y 1y 2 +5y 3 5y 4 1,
y 1 0, y 2 0, y 3 0, y 4 0
3,
y 1+y 2 4,
y 1, y 2 0
(c) Min. z = 6y 1+8y 2+7y 3+15y 4+y 5
subject to the constraints
y 1+y 3+3y 4 4,
y 2+ y 3 + y 4y 4 3,
y 1, y 2 , y 3, y 4 , y 5 0
(d) Min z = 4y 1+6y 2+5y 3y 4
subject to the constraints
94 :: Mathematics
y 1+y 3 3
y 2+y 3y 4 2
y 1, y 2 , y 3, y 4 0
61.2
1
2,
3y 1y 2 4y 3
2,
5y 1 7y 2 6y 3 4,
y 1, y 2 , y 3
3,
2,
4,
y 1, y 2 , y 3, y 4 , y 5
3,
y 1, y 2 , y 3,
Duality :: 95
3,
y 1, y 2 , y 3, 0
(b) Min. z = 3y1 +4y 2
subject to the conditions
2y 1 +4y 2 1,
3y 1+y 2 2,
y 1, y 2 0
2. (a) Max. z = y 1 y2 +8y 3
subject to the conditions
2y 1 2y 2 +2y 3 3,
3y 1+3y 2+3y 3 2,
y 1 y 2 1,
y 1, y 2 , y 3 0
(b) Min. z = 6y 16y 2+4y 34y 4
subject to the conditions
4y 1 4y 2 +y 3 y4 2,
3y 13y 2 +2y 3 2y 4 3,
y 1y 2 +5y 3 5y 4 1,
y i 0, i = 1,2,3,4
(c) Max. z = 7y 17y 2 +12y 3 12y 4+10y 510y 6
subject to the conditions
y1 y2
3,
96 :: Mathematics
2y 12y 2 +8y 5 8y 6
y 5 y 6 0,
y 1, y 2 , y 3, y 4 , y 5 , y 6 0
3. (a) Dual problem is
Min. z = 2y 1+2y 2
subject to the conditions
2y 1 +4y 2 1,
y 1+2y 2
1,
2y 1 +y 2
1,
y i 0, i = 1,2
Solution to the dual problem is
z =
, y1 =
, y2 =
0,