OR Module 2 text
OR Module 2 text
PREVIEW
The chapter deals with how to find the marginal value (also known as shadow price) of each resource.
This value reflects an additional cost to be paid to obtain one additional unit of the resource to get the
optimal value of objective function under resource constraints.
LEARNING OBJECTIVES
CHAPTER OUTLINE
5.1 Introduction • Conceptual Questions
5.2 Formulation of Dual Linear Programming • Self Practice Problems B
Problem • Hints and Answers
• Self Practice Problems A Chapter Summary
• Hints and Answers Chapter Concepts Quiz
5.3 Standard Results on Duality Case Study
5.4 Managerial Significance of Duality Appendix: Theorems of Duality
5.5 Advantages of Duality
146 Operations Research: Theory and Applications
5.1 INTRODUCTION
The term ‘dual’, in general, implies two or double. The concept of duality is very useful in mathematics,
physics, statistics, engineering and managerial decision-making. For example, in a two-person game theory,
one competitor’s problem is the dual of the opponent’s problem.
In linear programming, duality implies that each linear programming problem can be analyzed in two
different ways but would have equivalent solutions. Any LP problem (either maximization and minimization)
can be stated in another equivalent form based on the same data. The new LP problem is called dual linear
programming problem or in short dual. In general, it is immaterial which of the two problems is called primal
or dual, since the dual of the dual is primal.
Dual LP problem
For example, consider the problem of production planning. The production manager attempts to
provides useful determine quantities for each product to be produced with an objective to optimize the use of available
economic resources so that profit is maximum. But through a dual LP problem approach, he may develop a production
information about plan that optimizes resource utilization so that marginal opportunity cost of each unit of a resource is equal
worth of resources
to be used.
to its marginal return (also called shadow price). The shadow price indicates an additional price to be
paid to obtain one additional unit of the resources in order to maximize profit under the resource constraints.
If a resource is not completely used, i.e. there is slack, then its marginal return is zero.
The shadow price is also defined as the rate of change in the optimal objective function value with
respect to the unit change in the availability of a resource. To be more precise for any constraint, we have
There are two important forms of primal and dual LP problems, namely the symmetrical (canonical) form
and the standard form.
In general, the primal-dual relationship between a pair of LP problems can be expressed as follows:
Dual variables
represent the
Primal Dual potential value of
n m resources
Max Z x = ∑ cj xj Min Z y = ∑ bi y i
j =1 i =1
n m
∑ aij xj ≤ bi ; i = 1, 2 , . . ., m
j =1
∑ aji yi ≥ cj ; j = 1, 2, . . ., n
i =1
aij = aji
and xj ≥ 0; j = 1, 2, . . ., n and yi ≥ 0; i = 1, 2, . . ., m
A summary of the general relationships between primal and dual LP problems is given in Table 5.1.
Primal LP Problem
n n
Maximize (return) Zx = ∑ cj xj = Σ (Profit per unit of variable xj) (Units of variable xj)
j =1 j =1
subject to the constraints
n
∑ a ij xj ≤ bi
j =1
n
or ∑ (Units of resource i, consumed per unit of variable, xj) (Units of variable xj)
j =1
≤ Units of resource, i available
and xj ≥ 0, for all j i = 1, 2, ..., m
148 Operations Research: Theory and Applications
Dual LP Problem
m m
Minimize (cost) Zy = ∑ bi y i = Σ (Units of resource, i) (Cost per unit of resource, i )
i =1 i =1
3. For a maximization primal LP problem with all ≤ (less than or equal to) type constraints, there exists
a minimization dual LP problem with all ≥ (greater than or equal to) type constraints and vice versa.
Thus, the inequality sign is reversed in all the constraints except the non-negativity conditions.
4. The matrix of the coefficients of variables in the constraints of dual is the transpose of the matrix of
coefficients of variables in the constraints of primal and vice versa.
5. If the objective function of a primal LP problem is to be maximized, the objective function of the dual
is to be minimized and vice versa.
6. If the ith primal constraint is = (equality) type, then the ith dual variables is unrestricted in sign and
vice versa.
The primal-dual relationships may also be memorized by using the following table:
Solution In the given LP problem there are m = 3 constraints and n = 3 variables. Thus, there must be
m = 3 dual variables and n = 3 constraints. Further, the coefficients of the primal variables, c1 = 1,
c2 = –1, c3 = 3 become right-hand side constants of the dual. The right-hand side constants b1 = 10,
b2 = 2, b3 = 6 become the coefficients in the dual objective function. Finally, the dual must have a minimizing
objective function with all ≥ type constraints. If y1, y2 and y3 are dual variables corresponding to three primal
constraints in the given order, the resultant dual is
Minimize Zy = 10y1 + 2y2 + 6y3
subject to the constraints
(i) y1 + 2y2 + 2y3 ≥ 1, (iii) y1 – y2 – 2y3 ≥ –1, (iii) y1 – y2 – 3y3 ≥ 3
and y1, y2, y3 ≥ 0
Solution Since the objective function of the given LP problem is of minimization, the direction of each
inequality has to be changed to ≥ type by multiplying both sides by – 1. The standard primal LP problem
so obtained is:
150 Operations Research: Theory and Applications
Example 5.3 Obtain the dual LP problem of the following primal LP problem:
Minimize Z = x1 + 2x2
subject to the constraints
(i) 2x1 + 4x2 ≤ 160, (ii) x1 – x2 = 30, (iii) x1 ≥ 10
and x1, x2 ≥ 0
Solution Since the objective function of the primal LP problem is of minimization, change all ≤ type
constraints to ≥ type constraints by multiplying the constraint on both sides by –1. Also write = type
constraint equivalent to two constraints of the type ≥ and ≤. Then the given primal LP problem can be
rewritten as:
Minimize Zx = x1 + 2x2
subject to the constraint
(i) – 2x1 – 4x2 ≥ –160, (ii) x1 – x2 ≥ 30
(iii) x1 – x2 ≤ 30 or – x1 + x2 ≥ – 30, (iv) x1 ≥ 10
and x1, x2 ≥ 0
Let y1, y2, y3 and y4 be the dual variables corresponding to the four constraints in the given order.
The dual of the given primal LP problem can then be formulated as follows:
Maximize Zy = – 160y1 + 30y2 – 30y3 + 10y4
subject to the constraints
(i) – 2y1 + y2 – y3 + y4 ≤ 1, (ii) – 4y1 – y2 + y3 ≤ 2
and y1, y2, y3, y4 ≥ 0
Let y = y2 – y3 (y2, y3 ≥ 0). The above dual problem then reduces to the form
Maximize Zy = – 160y1 + 30y + 10y4
subject to the constraints
(i) – 2y1 + y + y4 ≤ 1, (ii) – 4y1 – y ≤ 2
and y1, y4 ≥ 0; y unrestricted in sign
Remark Since second constraint in the primal LP problem is equality, therefore as per rule 6 corresponding
second dual variable y (= y2 – y3) should be unrestricted in sign.
Example 5.4 Obtain the dual LP problem of the following primal LP problem:
Minimize Zx = x1 – 3x2 – 2x3
Duality in Linear Programming 151
Solution Let y1, y2 and y3 be the dual variables corresponding to three primal constraints in the given
order. As the given LP problem is of minimization, all constraints can be converted to ≥ type by multiplying
both sides by –1, i.e., –3x1 + x2 – 2x3 ≥ –7. Since the third constraint of the primal is an equation, the third
dual variable y3 will be unrestricted in sign. The dual of the given LP primal can be formulated as follows:
Solution Since both the primal constraints are of the equality type, the corresponding dual variables y1
and y2, will be unrestricted in sign. Following the rules of duality formulation, the dual of the given primal
LP problem is
Minimize Zy = 2y1 + y2
subject to the constraints
(i) – 2y1 + 2y2 ≥ 1, (ii) y1 + 3y2 ≥ – 2, (iii) 3y1 + 4y2 ≥ 3
and y1, y2 unrestricted in sign.
Solution Here we may apply the following rules of forming a dual of given primal LP problem.
(i) The x3 and x4 variables in the primal are unrestricted in sign, third and fourth constraints in the
dual shall be equalities.
(ii) The given primal LP problem is of maximization; the first two constraints in the dual LP problem
will therefore be ≥ type constraints.
(iii) Since both the constraints in the primal are equalities, the corresponding dual variables y1 and y2
will be unrestricted in sign.
If y1 and y2 are dual variables corresponding to the two primal constraints in the given order, the dual
of the given primal can be written as:
Minimize Zy = y1 + 3y2
subject to the constraints
(i) 2y1 + y2 ≥ 3, (ii) – y1 + y2 ≥ 1, (iii) 3y1 – y2 = 2
(iv) y1 + y2 = – 1
and y1, y2 unrestricted in sign.
152 Operations Research: Theory and Applications
Feasible Infeasible
Feasible Max Zy = Min Zx Max Zy → + ∞
Infeasible Min Zx → – ∞ Unbounded or infeasible
4. Complementary slackness property of primal-dual relationship states that for a positive basic variable
in the primal, the corresponding dual variable will be equal to zero. Alternatively, for a non-basic
variable in the primal (which is zero), the corresponding dual variable will be basic and positive.
In schemes A and B, it is necessary to work strictly alternating sequences of specified shifts, as long as the
correct proportion of shifts is worked in the long run.
(a) Formulate a linear programming model to obtain the required number of operators at minimum cost.
(b) By solving the dual of the problem, determine how many operators must be employed under each of the
three schemes. Does this result in over-provision of operators on any one of the three shifts?
Solution The primal and dual LP problems of the given problem are:
CONCEPTUAL QUESTIONS
1. Define the dual of a linear programming problem. State the 7. What is a shadow price? How does the concept relate to the
functional properties of duality. dual of an LP problem?
2. Explain the primal-dual relationship. 8. How can the concept of duality be useful in managerial decision-
3. Briefly discuss ‘duality’ in linear programming. making?
4. What is the principle of duality in linear programming? Explain its 9. State and prove the relationship between the feasible solutions
advantages. of an LP problem and its dual.
5. What is duality? What is the significance of dual variables in an 10. Prove that the necessary and sufficient condition for any LP
LP model? problem and its dual, in order to have optimal solutions is that
6. State the general rules for formulating a dual LP problem from both have feasible solutions.
its primal.
Write the dual of the following primal LP problems 2. Min Zx = 7x1 + 3x2 + 8x3
1. Max Zx = 2x1 + 5x2 + 6x3 subject to (i) 8x1 + 2x2 + 3x3 ≥ 3 (ii) 3x1 + 6x2 + 4x3 ≥ 4
subject to (i) 5x1 + 6x2 – x3 ≤ 3 (ii) – 2x1 + x2 + 4x3 ≤ 4 (iii) 4x1 + 3x2 + 5x3 ≥ 1 (iv) x1 + 5x2 + 2x3 ≥ 7
(iii) x1 – 5x2 + 3x3 ≤ 1 (iv) – 3x1 – 3x2 + 7x3 ≤ 6 and x1, x2, x3 ≥ 0.
and x1, x2, x3 ≥ 0.
160 Operations Research: Theory and Applications
3. Max Zx = 2x1 + 3x2 + x3 II. The first one provides 7, 5 and 2 units of the three vitamins per
subject to (i) 4x1 + 3x2 + x3 = 6 (ii) x1 + 2x2 + 5x3 = 4 gram, respectively and the second one provides 2, 4 and 8 units of
and x1, x2, x3 ≥ 0. the same three vitamins per gram of the foodstuff, respectively.
The first foodstuff costs Rs. 3 per gram and the second Rs. 2 per
4. Max Zx = 3x1 + x2 + 3x3 – x4
gram. The problem is how many grams of each foodstuff should
subject to (i) 2x1 – x2 + 3x3 + x4 = 1 (ii) x1 + x2 – x3 + x4 = 3 the housewife buy everyday to keep her food bill as low as possible?
and x1, x2, x3, x4 ≥ 0. (a) Formulate this problem as an LP model.
5. Min Zx = 2x1 + 3x2 + 4x3 (b) Write and then solve the dual problem.
subject to (i) 2x1 + 3x2 + 5x3 ≥ 2 (ii) 3x1 + 3x2 + 7x3 = 3 12. A large distributing company buys coffee seeds from four different
(iii) x1 + 4x2 + 6x3 ≤ 5 plantations. On these plantations, the seeds are available only in a
and x1, x2 ≥ 0, x3 is unrestricted. blend of two types A and B. The company wants to market a blend
consisting of 30 per cent of type A and 70 per cent of type B. The
6. Min Zx = x1 + x2 + x3 percentage of each type used by each plantation and the selling
subject to (i) x1 – 3x2 + 4x3 = 5 (ii) x1 – 2x2 ≤ 3 prices per 10 kg of the blends of each plantation are as follows:
(iii) 2x2 – x3 ≥ 4
and x1, x2 ≥ 0, x3 is unrestricted. Type Plantation Desired
[Meerut Univ., MSc (Maths), 2004] 1 2 3 4
7. One unit of product A contributes Rs. 7 and requires 3 units of raw
material and 2 hours of labour. One unit of product B contributes A 40% 20% 60% 80% 30%
Rs. 5 and requires one unit of raw material and one hour of labour. B 60% 80% 40% 20% 70%
Availability of raw material at present is 48 units and there are 40 Selling price
hours of labour. per 5 kg Rs. 3 Rs. 2 Rs. 1.20 Rs. 1.50
(a) Formulate this problem as a linear programming problem.
(b) Write its dual. What quantity of coffee seeds should the company buy from each
(c) Solve the dual by the simplex method and find the optimal plantation so that the total mixture will contain the desired
product mix and the shadow prices of the raw material and percentages of A and B and at the same time keep the purchasing
labour. cost at a minimum? Also write the dual of the problem.
8. A company makes three products: X, Y and Z out of three raw 13. The XYZ Plastic Company has just received a government contract
materials A, B and C. The raw material requirements are given to produce three different plastic valves. These valves must be
below: highly heat and pressure resistant and the company has developed
a three-stage production process that will provide the valves with
Raw Materials Number of Units of Raw Material Required the necessary properties involving work in three different chambers.
to Produce One Unit of Product Chamber 1 provides the necessary pressure resistance and can
process valves for 1,200 minutes each week. Chamber 2 provides
X Y Z heat resistance and can process valves for 900 minutes per week.
Chamber 3 tests the valves and can work 1,300 minutes per
A 1 2 1 week. The three valve types and the time in minutes required in
B 2 1 4 each chamber are:
C 2 5 1
Time Required in
The unit profit contribution of the products: X, Y and Z is Rs. 40, 25 Valve Type
and 50, respectively. The number of units of raw material available Chamber 1 Chamber 2 Chamber 3
are 36, 60 and 45, respectively. A 5 7 4
(a) Determine the product mix that will maximize the total profit. B 3 2 10
(b) Using the final simplex table, write the solution to the dual
C 2 4 5
problem and give its economic interpretation.
9. Three food products are available at costs of Rs. 10, Rs. 36 and Rs. The government will buy all the valves that can be produced and
24 per unit, respectively. They contain 1,000, 4,000 and 2,000 the company will receive the following profit margins on each valve:
calories per unit, respectively and 200, 900 and 500 protein units per A, Rs. 15; B, Rs. 13.50; and C, Rs. 10.
unit, respectively. It is required to find the minimum-cost diet How many valves of each type should the company produce
containing at least 20,000 calories and 3,000 units of protein. each week in order to maximize profits? Write the dual of the given
Formulate and solve the given problem as an LP problem. Write the LP problem and give its economic interpretation?
dual and use it to check the optimal solution of the given problem. 14. A medical scientist claims to have found a cure for the common
10. A company produces three products: P, Q and R from three raw cold that consists of three drugs called K, S and H. His results
materials A, B and C. One unit of product P requires 2 units of A and indicate that the minimum daily adult dosage for effective treatment
3 units of B. A unit of product Q requires 2 units of B and 5 units of C is 10 mg of drug K, 6 mg of drug S and 8 mg of drug H. Two
and one unit of product R requires 3 units of A, 2 units of B and 4 units substances are readily available for preparing pills for distribution
of C. The company has 8 units of material A, 10 units of material B to cold sufferers. Both substances contain all three of the required
and 15 units of material C available to it. Profits per unit of products P, drugs. Each unit of substance A contains 6 mg, 1 mg and 2 mg of
Q and R are Rs. 3, Rs. 5 and Rs. 4, respectively. drugs K, S and H, respectively and each unit of substance B
(a) Formulate this problem as an LP problem. contains 2 mg, 3 mg and 2 mg of the same drugs. Substance A
(b) How many units of each product should be produced to costs Rs. 3 per unit and substance B costs Rs. 5 per unit.
maximize profit? (a) Find the least-cost combination of the two substances that
(c) Write the dual of this problem. will yield a pill designed to contain the minimum daily
11. A diet conscious housewife wishes to ensure certain minimum recommended adult dosage.
intake of vitamins A, B and C for the family. The minimum daily (b) Suppose that the costs of the two substances are
(quantity) needs of the vitamins A, B and C for the family are interchanged so that substance A costs Rs. 5 per unit and
respectively 30, 20 and 16 units. For the supply of these minimum substance B costs Rs. 3 per unit. Find the new optimal solution.
vitamin requirements, the housewife relies on two fresh food I and [Delhi Univ., MBA (HCA), 2008]
Duality in Linear Programming 161
15. The XYZ company has the option of producing two products during 18. A firm produces three articles X, Y, Z at a total cost of Rs. 4 , Rs.
the period of slack activity. For the next period, production has 3, and Rs. 6 per item respectively. Total number of X and Z item
been scheduled so that the milling machine is free for 10 hours and produced should be at least 2 and number of Y and Z together be
skilled labour will have 8 hours of time available. at least 5. The firm wants to minimize the cost. Formulate this
problem as an LP problem. Write its dual. Solve the dual by the
Product Machine Time Skilled Labour Profit simplex method. Can you point out the solution of the primal
per Unit Time per Unit Contribution problem? If yes, what is it?
per Unit (Rs.) 19. A firm produces three types of biscuits A, B and C. It packs them
in assortments of two sizes I and II. The size I contains 20 biscuits
A 4 2 5 of type A, 50 of type B and 10 of type C. The size II contains 10
B 2 2 3 biscuits of type A, 80 of type B and 60 of type C. A buyer intends to
buy at least 120 biscuits of type A, 740 of type B and 240 of type C.
Solve the primal and dual LP problems and bring out the fact that Determine the least number of packets he should buy. Write the
the optimum solution of one can be obtained from the other. Also dual LP problem and interpret your answer.
explain in the context of the example, what you understand by
20. Consider the following product mix problem: Let x1 denote
shadow prices (or dual prices or marginal value) of resource.
number of units of Product 1 to be produced daily and x2 the
[Jammu Univ. MBA 2006]
number of units of Product 2 to be produced daily. The production
16. A company produces three products P, Q and R whose prices per
of Product 1 requires one hour of processing time in department
unit are 3, 5 and 4 respectively. On unit of product P requires 2
D1 . Production of 1 unit of Product 2 requires 2 hours of
units of m1 and 3 units of m2. A unit of product Q requires 2 units of
processing time in department D1 and one hour in department
m2 and 5 units of m3 and one unit of product R requires 3 units of
D2. The number of hours available in department D1 are 32
m1, 2 units of m2 and 4 units of m3. The company has 8 units of
hours and in department D2, 8 hours. The contribution of one
material m1, 10 units of material m2 and 15 units of material m3
unit of Product 1 is Rs. 200 and of Product 2 is Rs. 300.
available to it.
The solution to this LP model is given below:
(a) Formulate the problem as on LP model.
(b) How many units of each product should be produced to cj → 200 300 0 0
maximize revenue?
(c) Write the dual problem. Basic Solution x1 x2 s1 s2
Variables Values
17. A person consumes two types of food A and B everyday to obtain 8 cB xB
units of proteins, 12 units of carbohydrates and 9 units of fats which
is his daily minimum requirements. 1 kg of food A contains 2, 6 and 1 200 x1 32 1 2 1 0
units of protein, carbohydrates and fats, respectively. 1 kg of food B 0 s2 8 0 1 0 1
contains 1, 1 and 3 units of proteins, carbohydrates and fats
Z = 6400 cj – zj –100 –200 0 6400
respectively. Food A costs Rs. 8.50 per kg, while B costs Rs. 4 per
kg. Determine how many kg of each food should he buy daily to Given the dual of the primal model. Obtain the optimum solution
minimize his cost of food and still meet the minimum requirements. to the dual LP model from the above table. Interpret the dual
Formulate on LP problem mathematically. Write its dual and variables.
solve the dual by the simplex method. [Gujarat Univ. MBA, 2006]
CHAPTER SUMMARY
In this chapter we discussed the relationship between an LP problem and its dual. The method of formulating a dual LP problem
of the given LP problem was explained with several examples. The main focus, while solving a dual LP problem, was to find for
each resource its best marginal value, also known as dual or shadow price. This value reflects the maximum additional price to
be paid in order to obtain one additional unit of any resource in order to maximize profit (or minimize cost) under resource
constraints.