Duality in Linear Programming: Z C X X X
Duality in Linear Programming: Z C X X X
For every LPP there is a related unique LPP involving the same data that also describes
the original problem. The given original problem is called a primal problem. This can be solved
by transposing the rows and columns of the algebraic statements of the problem. Inverting the
problem in this way results in a dual problem. Duality is an extremely important concept in LPP.
The various useful aspects of this are:
1. If the primal problem contains a large number of constraints and a small number of
variables, the computational procedure can be reduced by converting it into dual and
then solve it.
2. It gives additional information as to how the optimal solution changes as a result of
the changes in the coefficients and the formulation of the problem. This is termed as
post optimality or sensitivity analysis.
3. Calculation of the dual checks the accuracy of the primal solution.
Subject to
a11x1 + a12x2 + …. + a1nxn ≤ b1 ,
a21x1 + a22x2 + …. + a2nxn ≤ b2 , ……….. (1)
x1 , x2 , …….. , xn ≥ 0.
Subject to
a11y1 + a21y2 + …. + am1ym ≥ c1 ,
a12y1 + a22y2 + …. + am2ym ≥ c2 , ………. (2)
Minimise y = bTw
Subject to
ATw ≥ c ,
w ≥ 0.
Note
1. If the primal contains n variables and m constraints, then the dual will contain m
variables and n constraints.
2. The maximization in the primal becomes the minimization in the dual and vice versa.
3. The maximization problem has ( ≤ ) constraints while the minimization problem has
( ≥ ) constraints.
4. The constants c1 , c2 , … cn in the objective function of the primal appear in the
constraints in the dual.
5. The constants b1 , b2, …, bm in the constraints of the primal appear in the objective
function of the dual.
6. The variables in both problems are non-negative.
Problem 1
Subject to constraints
Remark
1. If the primal problem is in standard form, then the dual variables will always be
unrestricted in sign (irrespective of the sign of the primal ones). This condition
however will be satisfied only for those primal constraints that were initially in
equation.
2. If some primal variables are unrestricted in sign, then those dual constraints will be
equations that correspond to the said primal variables.
Problem 2
Subject to
2x1 + 3x2 + 2x3 ≤ 3
3x1 – 2x2 + 4x3 = 3
x1, x2, x3 ≥ 0.
Problem 3
Subject to
3x1 – x2 + x3 – 4x4 = 2
5x1 + 3x2 – x3 – 2x4 = 3
x1, x2 ≥ 0
and x3, x4 are unrestricted in sign.
The final simplex table giving optimal solution to the primal problem also contains the
optimal solution to the dual and vice versa.
1. The optimal value of the objective function of the primal is equal to the optimal
value of the objective function of the dual.
2. If the primal (dual) variable corresponding to a slack starting variable in the dual
(primal) problem, its optimum value is directly read off from the net evaluation
row of the optimum dual (primal) simplex table, as the net evaluation
corresponding to this slack variable.
3. If the primal (dual) variable corresponds to an artificial starting variable in the
dual (primal) problem, its optimum value is directly read off from the net
evaluation row of the optimum dual (primal) simplex table, as the net evaluation
corresponding to this artificial variable after deleting the constant M.
Problem
Subject to
x1 ≤ 4
x2 ≤ 6
x1 + x2 ≤ 5
–x2 ≤ –1
x1, x2 ≥ 0.
Let xBk be the most negative basic variable so that yk leaves the basis YB. B
Repeat the procedure until either an optimum feasible solution has been obtained (in a
finite number of steps) or there is an indication of the non-existence of a feasible solution.
Problem
The shadow/dual price equivalency states that the optimal value of the ith dual variable is the
amount by which the optimal value of the primal objective function will change per allowable
unit increase in bi, all other parameters held as constant. For a maximization primal where the ≤
constraints represent limited resources, the corresponding dual price is measure of the marginal
value of additional units of a resource.
Base on these economic interpretations, the canonical dual problem is often called a
pricing problem. Its optimal solution yields the minimum prices that management should accept
for selling or liquidating resources; the optimal value of the objective function is the minimum
acceptable payment for all these resources.
One of the important properties of the duality theory is, for any pair of feasible primal
and dual solutions, (objective value in the maximization problem) ≤ (objective value in the
minimization problem). At the optimum, the relationship holds as a strict equation.
By this property, we have
n m
z = ∑ c j x j ≤ ∑ bi y i = w
j =1 i =1
The strict equality holds when both primal and dual solutions are optimal. The primal problem
represents a resource allocation model and z as profit dollars.
The dual variables yi `s represents the worth per unit of resource i and if z < w. That is,
(profit) < (worth of resources), the corresponding primal and dual solutions cannot be optimal.
If both the primal and dual problems have feasible solutions, then both have optimal solutions and
max z = min w.
Remark