02-03 Duality in Linear Programming
02-03 Duality in Linear Programming
Dual Problem:
Associated with every linear programming problem there always exist another Linear Programming problem
which is based upon the same data and having the same solution. The original problem is called the primal
problem while the associated one is called its dual problem. It is important to note that either of the two linear
programming problems can be treated as primal and the other as its dual. The two problems, thus, constitute a
primal-dual pair.
a) If the primal contains a large number of rows (constraints) and a smaller number of columns (variables),
the computational procedure can be reduced by converting it into dual and then solving it. This is a great
advantage in may applications.
b) There is additional information that it describes how the optimal solution changes as a result of the
changes in the coefficients and the formulation of the problem. This is known as post optimality or
sensitivity analysis.
Primal Dual
n m
Maximize Z = c j x j Minimize W = bi y i
j =1 i =1
n m
Subject to aij x j bi ; i = 1, 2, , m Subject to aij y i c j ; j = 1, 2, , n
j =1 i =1
Where x j 0 ; j = 1, 2, , n Where y i 0 ; i = 1, 2, , m
From the above two programs, the following points are clear:
a) If the primal contains n variables and m constraints, the dual will contain m variables and n
constraints.
b) If the primal is maximization type then the dual will be minimization type and vice versa.
c) The maximization problem has less than ( ) type constraints while the minimization problem has greater
d) The constants c1 , c 2 , , c n in the objective function of the primal appear in the constraints of the dual.
e) The constants b1 , b2 , , bm in the constraints of the primal appear in the objective function of the dual.
Proof:
The general linear programming problem involving n decision variables and m constraints in canonical form is
given by following relations.
n
Maximize Z = c jx j
j =1
n
Subject to aij x j bi ; i = 1, 2, , m (1)
j =1
xj 0 ; j = 1, 2, , n
If we treat this as the primal then the dual of this problem may be written as follows.
xj 0 ; j = 1, 2, , n
xj 0 ; j = 1, 2, , n
This is the actual primal problem. Thus the dual of the dual is a primal. (Proved )
Theorem: The value of the objective function Z for any feasible solution at the primal is the value of the objective
function W for any feasible solution of the dual.
Proof:
The general linear programming problem involving n decision variables and m constraints in canonical form is
given by following relations.
n
Maximize Z = c jx j
j =1
n
Subject to aij x j bi ; i = 1, 2, , m (1)
j =1
xj 0 ; j = 1, 2, , n
If we treat this as the primal then the dual of this problem will be m decision variables and n constraints.
Now, multiplying the first inequality of (1) by y i and then adding them all, we get
m n m
aij x j y i bi y i (3)
i =1 j =1 i =1
Similarly, multiplying the first inequality of (2 ) by x j and then adding them all, we get
n m n
aij x j y i c j x j (4)
j =1 i =1 j =1
Now, the sums on the left hand side of inequalities of (3) and (4 ) are equal. Hence,
n m n m
c j x j aij x j yi bi yi
j =1 i =1 j =1 i =1
n m
c j x j bi yi
j =1 i =1
That is, any feasible solution to the primal is less than or equal to any feasible solution to the dual. (Proved )
The first constraint of equality form, when expressed in canonical form is equivalent to
a11 x1 + a12 x 2 b1 and a11 x1 + a12 x 2 b1
− a11 x1 − a12 x 2 −b1
Let, y1 , y1, and y 2 be the dual variables associated with the first second and third constrains. Then the dual
problem is
Minimize W = b1 ( y1 − y1 ) + b2 y 2
Subject to Constrants a11 ( y1 − y1 ) + a 21 y 2 c1
a12 ( y1 − y1 ) + a 22 y 2 c 2
y1 , y1, y 2 0
Minimize W = b1 y1 + b2 y 2
Subject to Constrants a11 y1 + a 21 y 2 c1
a12 y1 + a 22 y 2 c 2
y 2 0 and y1 is unrestrict ed in sign
This shows that the variable which represents equality constraint of the primal will be unrestricted in sign in the
primal. Conversely, when a primal variable is unrestricted in sign, its dual constraint must be in equality form.
Where x j 0 ; j = 1, 2, , n
a) The optimal value of the objective function of the primal is equal to the optimal value of the objective
function of the dual i.e. Z max = W min .
b) If the dual variable corresponds to a slack starting variable in the primal problem, the optimal value of
this dual variable is given directly by the coefficient of the slack variable, with changed sign, if
necessary.
c) If the dual variable corresponds to an artificial starting variable in the primal problem, the optimal value
of this dual variable is given by the coefficient of the artificial variable with changed sign, if necessary.
d) If the primal has an unbounded solution, the dual will not have a feasible solution and vice versa.