Professional Documents
Culture Documents
Dual - in - Linear - Programming - Docx Filename - UTF-8 - Dual in Linear Programming
Dual - in - Linear - Programming - Docx Filename - UTF-8 - Dual in Linear Programming
Every primal model can be associated with another known model known as the dual
model.
LP Model
Primal Model:
Maximize: P = 60x1 + 80x2 (Objective function)
Subject to: x1 70 (material R constraint)
2x1 + x2 160 (material S constraint)
2x1 + 3x2 240 (material T constraint)
2x2 120 (material U constraint)
x1 , x2 0
1. The objective is reversed. If the primal is a maximization, the dual is minimization, and
vice versa.
2. The right-hand side constants in constraints of the primal become the objective
coefficients in the dual.
3. The primals objective coefficients become the right-hand side constants of the dual
constraints.
4. The transpose of the primal constraint coefficients become the dual constraint
coefficients.
5. The inequality signs in the explicit constraints are reversed.
Dual Model:
Minimize: C = 70y1 + 160y2 + 240y3 + 120y4 (Objective function)
Subject to: y1 + 2y2 + 2y3 60 (product 1 constraint)
y2 + 3y3 + 2y4 80 (product 2 constraint)
y1, y2, y3,y4 0
where: y1 = opportunity cost of 1 unit of material R.
y2 = opportunity cost of 1 unit of material S.
y3 = opportunity cost of 1 unit of material T.
y4 = opportunity cost of 1 unit of material U.
Examination of the simplex solution of both the primal and dual problems will reveal the
following:
1. All the terms in the first dual constraint pertain to product 1 and all the terms in the
second dual constraint pertain to product 2.
2. The optimum value is the same for both the primal and the dual.
3. The optimum solution of the primal is reflected in the final simplex tableau of the
dual. The optimum value of x1 is the negative of the opportunity cost of of s1 , and
optimum value of x2 is the negative of the opportunity cost of s2. The values of the
slack variables are the net contributions of y1, y2, y3 and y4, respectively.
4. Similarly, the optimum values of the dual variables appear in the final simplex
tableau of the primal. The values of y1, y2, y3 and y4 are found in the row for the
opportunity costs, while the values of the surplus variables are the negative of the
net contributions of x1 and x2, respectively.
Dual
y1 = 0 (opportunity cost of 1 unit of material R)
y2 = 5 (opportunity cost of 1 unit of material S)
y3 = 25 (opportunity cost of 1 unit of material T)
y4 = 0 (opportunity cost of 1 unit of material U)
Minimum cost = 70(0) + 160(5) + 240(25) + 120(0) = 6,800
Primal
x1 = 60 (number of units of product 1 to be produced every period)
x2 = 40 (number of units of product 2 to be produced every period)
Maximum profit = 60(60) + 80(40) = 6,800
Interpretation:
a) Opportunity cost of material S is 5. Total profit is increased/decreased by 5 if
material S is increased/decreased by 1 unit.
b) Opportunity cost of material T is 25. Total profit is increased/decreased by 25 if
material T is increased/decreased by 1 unit.
c) Increasing material R and material U will not affect profit.
d) Shadow prices: The manufacturer should not pay more than 5 for an additional unit
of material S or more than 25 for an additional material T.
B. Right-Hand-Side Ranging
The process of finding the range of applicability of the shadow price (opportunity
cost or marginal contribution) of a resource is referred as right-hand-side ranging.
Steps in right-hand-ranging.
1) Divide the numbers in the quantity column by the corresponding numbers in the
column of the slack variable associated with the resource being evaluated.
2) Obtain the lower limit of the range by subtracting the smallest positive ratio from
the current availability of the resource.
3) Obtain the upper limit of the range by adding the absolute value of the largest
negative ratio to the given availability of the resource.
10 -3/4 = -40/3
40 1 = 40
60 3/4 = 80
40 -1/2 = -80
Shadow price of material S remains equal to 5 for as long as it ranges from 120 to
173.33.
Steps
1. Divide the net contributions of the nonbasic variables by the corresponding
numbers in the row of the variable being evaluated.
2. The lowest positive ratio is the largest amount that can be added to the objective
function value.
3. The absolute value of the largest negative ratio represents the largest amount that
can be removed from the objective function value.
-5 3/4 = -6.67
-25 -1/4 = 100
y1 + y2 + 2y3 + y4 75
This product will not be a valuable addition unless the associated dual constraint is violated. It
will not be profitable unless the opportunity cost consumed is less than the per-unit profit.
0 + 5 + 2(25) + 0 = 55 < 75
Exercise
The primal model for a product-mix problem and the corresponding optimal tableau are given.