Professional Documents
Culture Documents
Lesson - 04
Lesson - 04
4
LINEAR PROGRAMMING: GRAPHICAL METHOD
CONTENTS
4.0 Aims and Objectives
4.1 Introduction
4.2 Essentials of Linear Programming Model
4.3 Properties of Linear Programming Model
4.4 Formulation of Linear Programming
4.5 General Linear Programming Model
4.6 Maximization & Minimization Models
4.7 Graphical Method
4.8 Solving Linear Programming Graphically Using Computer
4.9 Summary of Graphical Method
4.10 Unbounded LP Problem
4.11 Let us Sum Up
4.12 Lesson-end Activity
4.13 Keywords
4.14 Questions for Discussion
4.15 Terminal Questions
4.16 Model Answers to Questions for Discussion
4.17 Suggested Readings
4.1 INTRODUCTION
Linear programming is a widely used mathematical modeling technique to determine the
optimum allocation of scarce resources among competing demands. Resources typically
include raw materials, manpower, machinery, time, money and space. The technique is
very powerful and found especially useful because of its application to many different
types of real business problems in areas like finance, production, sales and distribution,
personnel, marketing and many more areas of management. As its name implies, the
Quantitative Techniques linear programming model consists of linear objectives and linear constraints, which
for Management
means that the variables in a model have a proportionate relationship. For example, an
increase in manpower resource will result in an increase in work output.
Constraints
When the availability of resources are in surplus, there will be no problem in making
decisions. But in real life, organizations normally have scarce resources within which the
job has to be performed in the most effective way. Therefore, problem situations are
within confined limits in which the optimal solution to the problem must be found.
Considering the previous example of furniture manufacturer, let w be the amount of
wood available to produce tables and chairs. Each unit of table consumes w1 unit of
wood and each unit of chair consumes w2 units of wood.
For the constraint of raw material availability, the mathematical expression is,
w1 x1 + w2 x2 £ w
In addition to raw material, if other resources such as labour, machinery and time are
also considered as constraint equations.
Non-negativity constraint
Negative values of physical quantities are impossible, like producing negative number of
chairs, tables, etc., so it is necessary to include the element of non-negativity as a constraint
i.e., x1, x2 ³ 0
Solution:
Key Decision: To determine the number of round and square biscuits to be produced.
Decision Variables:
Let x1 be the number of round biscuits to be produced daily, and
x2 be the number of square biscuits to be produced daily
Objective function: It is given that the profit on each unit of round biscuits is Rs 3.00
and of square biscuits is Rs. 2.00. The objective is to maximize profits, therefore, the
total profit will be given by the equation,
Zmax = 3x1+2x2
Constraints: Now, the manufacturing process is imposed by a constraint with the limited
availability of raw material. For the production of round biscuits, 100x 1 of raw material is
used daily and for the production of square biscuits, 115x2 of raw material is used daily.
It is given that the total availability of raw material per day is 1500 grams.
Therefore, the constraint for raw material is,
100x1 + 115x2 £ 1500
122
Similarly, the constraint for machine hours is, Linear Programming:
Graphical Method
10x1+12x2 £ 720
and for the manpower is,
3x1 +2x2 £ 240
Since the resources are to be used within or below the daily available level, inequality
sign of less than or equal sign (£) is used. Further, we cannot produce negative number
of units of biscuits which is a non-negative constraint expressed as,
x1 ³ 0 and x2 ³ 0
Thus, the linear programming model for the given problem is,
Maximize Z = 3x1 + 2x2
Subject to constraints,
100x1+115x2 £ 1500 ..........................(i)
10x1+12x2 £ 720 ..........................(ii)
3x1+2x2 £ 240 ..........................(iii)
where x1 ³ 0, x2 ³ 0
Example 2: Rahul Ads, an advertising company is planning a promotional campaign for
the client's product, i.e., sunglasses. The client is willing to spend Rs. 5 lakhs. It was
decided to limit the campaign media to a weekly magazine, a daily newspaper and TV
advertisement. The product is targeted at middle-aged men and women, and the following
data was collected (Table 4.2).
Table 4.2: Data Collected
Campaign media Cost per advertisement (Rs.) Expected
viewers
Weekly Magazine 30,000 1,15,000
Daily Newspaper 45,000 2,05,000
TV Advetisement 1,25,000 7,00,000
The client is interested to spend only Rs. 1 lakh on the ads in the weekly magazine which
expecting a viewership of a minimum of 21 lakh people in the case of the television
advertising. Maximize the viewers to the advertisements.
Solution:
Key Decision: To determine number of advertisements on weekly magazine, daily
newspaper and TV.
Let x1 be the number of weekly magazine advertisements.
x2 be the number of daily newspaper advertisements.
x3 be the number of TV advertisements.
Objective function: The objective is to maximize the number of viewers through all
media. The total viewers will be given by the equation,
Zmax = 115000x1 + 205000x2+ 700000x3
Constraints: Firstly, the client is willing to spend Rs. 500000 on all media,
30000x1 + 45000x2 + 125000x3 £ 500000
or
30x1 + 45x2+ 125x3 £ 500 ..........................(i)
123
Quantitative Techniques Secondly, a minimum of 2100000 people should view the television advertising,
for Management
700000x3 ³ 2100000
or
x3 ³ 3 ..........................(ii)
Lastly, the client is interested to pay only Rs. 100000 in weekly magazine advertising,
30000x1 £ 100000
or
3x1 £ 10 ..........................(iii)
Summarizing the LP model for the given problem,
Maximize Z = 115000x1 + 205000x2 + 700000x3
Subject to constraints,
30x1 + 45x2 + 125x3 £ 500 ..........................(i)
x3 ³ 3 ..........................(ii)
3x1 £ 10 ..........................(iii)
where x1, x2, x3 ³ 0
Example 3: The data given in Table 4.3 represents the shipping cost (in Rs.) per unit for
shipping from each warehouse to each distribution centre. The supply and demand data
of each warehouse and distribution centre is given. Determine how many units should be
shipped from each warehouse to each centre in order to minimize the overall
transportation cost.
Table 4.3: Data Shows Shipping Cost from Warehouse to Distribution
Distribution Centre
Warehouse 1 2 3 Supply
1 9 10 11 150
2 4 6 8 250
Demand 150 100 150 400
Solution:
Decision Variables
Let xij be the number of units to be shipped from warehouse i to distribution centre j.
x11 be the number of units to be shipped from warehouse 1 to distribution centre 1.
x12 be the number of units to be shipped from warehouse 1 to distribution centre 2.
x13 be the number of units to be shipped from warehouse 1 to distribution centre 3.
x21 be the number of units to be shipped from warehouse 2 to distribution centre 1.
x22 be the number of units to be shipped from warehouse 2 to distribution centre 2.
x23 be the number of units to be shipped from warehouse 2 to distribution centre 3.
Objective Function: The Table 4.3 shows the transportation cost from each warehouse
to each distribution centre. Therefore 9x11 represents the total cost of shipping x11 units
from warehouse 1 to distribution centre 1. The objective function is to minimize the
transportation cost. Therefore, the objective function is,
Minimize Z = 9x11 + 10x12+11x13+4x21+6x22+8x23
Constraints: The supply and demand constraints to ship the units from warehouses are,
to ship the units and distribution centres must receive the shipped units. Since the given
table is a 2 ´ 3 matrix we have a total 5 constraints apart from the non-negativity
124 constraint. The constraints are as follows,
x11+ x12+x13 £ 150 ..........................(i) Linear Programming:
Graphical Method
x21+ x22+ x23 £ 250 ..........................(ii)
x11+ x21 = 150 ..........................(iii)
x12+ x22=100 ..........................(iv)
x13+ x23=150 ..........................(v)
where xij ³ 0 (i =1,2, and j = 1,2,3)
Thus the LP model for the given transportation problem is summarized as,
Minimize Z = 9x11 + 10x12+11x13+4x21+6x22+8x23
Subject to constraints,
x11+ x12+ x13 £ 150 ..........................(i)
x21+ x22+ x23 £ 250 ..........................(ii)
x11 + x21 = 150 ..........................(iii)
x12 + x22 = 100 ..........................(iv)
x13 + x23 = 150 ..........................(v)
where xij > 0 (i =1,2, and j = 1,2,3)
Example 4: Sivakumar & Co., manufactures two types of T-shirts, one with collar and
another without collar. Each T-shirt with collar yields a profit of Rs. 20, while each T-
shirt without collar yields Rs. 30. Shirt with collar requires 15 minutes of cutting and 25
minutes of stitching. Shirt without collar requires 10 minutes of cutting and 20 minutes of
stitching. The full shift time is available for cutting in an 8 hour shift, but only 6 hours are
available for stitching. Formulate the problem as an LP model to maximize the profit.
Solution:
Key decision: To determine the number of T-shirts with collar and without collar to be
manufactured.
Decision variables:
Let x1 be the number of T-shirts with collar
x2 be the number of T-shirts without collar
Objective Function:
Zmax = 20x1 + 30x2
Constraints:
15x1 + 10x2 £ 8 ´ 60 (Cutting) ..........................(i)
25x1 + 20x2 £ 6 ´ 60 (Stitching) ..........................(ii)
Non-negativity constraints:
x1 ³ 0 , x2 ³ 0
The linear programming model is,
Zmax = 20x1 + 30x2
Subject to constraints,
15x1 + 10x2 £ 480 ..........................(i)
25x1 + 20x2 £ 360 ..........................(ii)
where x1 , x2 ³ 0 125
Quantitative Techniques Example 5: An agricultural urea company must daily produce 500 kg of a mixture
for Management
consisting of ingredients x1, x2 and x3. Ingredient x1 costs Rs. 30 per kg, x2 Rs. 50 per kg
and x3 Rs. 20 per kg. Due to raw material constraint, not more than 100 kg of x1, 70 kg
of x2 and 45 kg of x3 must be used. Determine how much of each ingredient should be
used if the company wants to minimize the cost.
Solution:
Let x1 be the kg of ingredient x1 to be used
x2 be the kg of ingredient x2 to be used
x3 be the kg of ingredient x3 to be used
The objective is to minimize the cost,
Minimize Z = 30x1 + 50x2 + 20x3
Subject to constraints,
x1+ x2+ x3 = 500 (total production) .......................(i)
x1 £ 100 (max. use of x1) .......................(ii)
x2 £ 70 (max. use of x2) .......................(iii)
x3 £ 45 (max. use of x3) .......................(iv)
where x1, x2, x3 ³ 0 (non-negativity)
Example 6: Chandru Bag Company produces two types of school bags: deluxe and
ordinary. If the company is producing only ordinary bags, it can make a total of 200
ordinary bags a day. Deluxe bag requires twice as much labour and time as an ordinary
type. The demand for deluxe bag and ordinary bag are 75 and 100 bags per day
respectively. The deluxe bag yields a profit of Rs 12.00 per bag and ordinary bag yields
a profit of Rs. 7.00 per bag. Formulate the problem as LP model.
Solution:
Let x1 be deluxe bags to be produced per day
x2 be ordinary bags to be produced per day
Objective function: The objective is to maximize the profit. Deluxe bag yields a profit of
Rs. 12.00 per bag and ordinary bag yields a profit of Rs. 7.00 per bag.
Maximize Z = 12x1 + 7x2
Constraints: There are two constraints in the problem, the "number of bags" constraint
and "demand" constraint. It is given that the deluxe bag takes twice as much time of
ordinary bag and if only ordinary bags alone are produced, the company can make 200
bags.
The constraint is,
2x1 + x2 £ 200
The demand for the deluxe bag is 75 bags and ordinary bag is 100 bags
The constraints are,
x1 £ 75
x2 £ 100
and the non-negativity constraint is,
126 x1 ³ 0 , x 2 ³ 0
The LP formulation is Linear Programming:
Graphical Method
Maximize, Z = 12x1+ 7x2
Subject to constraints,
2x1 + x2 £ 200 ..........................(i)
x1 £ 75 ..........................(ii)
x2 £ 100 ..........................(iii)
where x1 , x2 ³ 0
Example 7: Geetha Perfume Company produces both perfumes and body spray from
two flower extracts F1 and F2 The following data is provided:
Table 4.4: Data Collected
Litres of Extract
Perfume Body Spray Daily Availability (litres)
Flower Extract, F1 8 4 20
Flower Extract, F2 2 3 8
Profit Per litre (Rs.) 7 5
The maximum daily demand of body spray is 20 bottles of 100 ml each. A market survey
indicates that the daily demand of body spray cannot exceed that of perfume by more
than 2 litres. The company wants to find out the optimal mix of perfume and body spray
that maximizes the total daily profit. Formulate the problem as a linear programming
model.
Solution:
Let x1 be the litres of perfume produced daily
x2 be the litres of body spray produced daily
Objective function: The company wants to increase the profit by optimal product mix
Zmax = 7x1+5x2
Constraints: The total availability of flower extract F1 and flower extract F2 are 20 and
8 litres respectively. The sum of flower extract F1 used for perfume and body spray
must not exceed 20 litres. Similarly, flower extract F2 must not exceed 8 litres daily.
The constraints are,
8x1+4x2 £ 20 (Flower extract F1)
2x1+3x2 £ 8 (Flower extract F2)
The daily demand of body spray x2 is limited to 20 bottles of 100ml each (i.e, 20 ´ 100 =
2000 ml = 2 litres)
Therefore, x2 £ 2
Again, there is an additional restriction, that the difference between the daily production
of perfume and body spray , x2 – x1 does not exceed 2 litres, which is expressed as
x2–x1 £ 2
(or)
–x1 + x2 £ 2.
The model for Geetha perfumes company is,
Maximize , Z = 7x1+ 5x2
127
Quantitative Techniques Subject to constraints,
for Management
8x1 + 4x2 £ 20 ……………………….(i)
2x1 + 3x2 £ 8 ………………………..(ii)
–x1 + x2 £ 2 ……………………….....(iii)
x2 £ 2 ……………………….............(iv)
where x1, x2 ³ 0
Feasible Solution: Any values of x1 and x2 that satisfy all the constraints of the model
constitute a feasible solution. For example, in the above problem if the values of x1 = 2
and x2 = l are substituted in the constraint equation, we get
(i) 8(2) + 4(1) £ 20
20 £ 20
(ii) 2(2) + 3 (1) £ 8
7£8
(iii) – 2 +1 £ 2
–1£2
(iv) 1 £ 2
All the above constraints (including non-negativity constraint) are satisfied. The objective
function for these values of x1 = 2 and x2 = 1, are
Zmax = 7(2 ) + 5(1)
= 14 + 5 = Rs. 19.00
As said earlier, all the values that do not violate the constraint equations are feasible
solutions. But, the problem is to find out the values of x1 and x2 to obtain the optimum
feasible solution that maximizes the profit. These optimum values of x1 and x2 can be
found by using the Graphical Method or by Simplex Method. (The above problem is
solved using graphical method shown on page number 117).
X2
100
No. of carton boxes x2
90
80
70
60
50
(0, 40)
40
30 2x1 + 3x2 = 120
20
10 (60, 0)
X1
10 20 30 40 50 60 70 80 90 100
x2
100
90
80
70
60 (0, 60)
50 2x1 + x2 = 60
L2 40
P
30
20
2x1 + 3x2 = 120
10
10 20 30 40 50 60 70 80 90 100 x1
L1
131
Figure 4.4: Graph Showing Feasible Area
Quantitative Techniques Example 9: A soft drink manufacturing company has 300 ml and 150 ml canned cola as
for Management
its products with profit margin of Rs. 4 and Rs. 2 per unit respectively. Both the products
have to undergo process in three types of machine. The following Table 4.5, indicates the
time required on each machine and the available machine-hours per week.
Table 4.5: Available Data
Requirement Cola 300 ml Cola 150 ml Available machine-
hours per week
Machine 1 3 2 300
Machine 2 2 4 480
Machine 3 5 7 560
Formulate the linear programming problem specifying the product mix which will maximize
the profits within the limited resources. Also solve the problem using computer.
Solution: Let x1 be the number of units of 300 ml cola and x2 be the number of units of
150 ml cola to be produced respectively. Formulating the given problem, we get
Objective function:
Zmax = 4x1 + 2x2
Subject to constraints,
3x1 + 2x2 £ 300 ............................(i)
2x1 +4x2 £ 480 ............................(ii)
5x1 +7x2 £ 560 ............................(iii)
where x1 , x2 ³ 0
The inequalities are removed to give the following equations:
3x1 + 2x2 = 300 ............................(iv)
2x1 + 4x2 = 480 ............................(v)
5x1 + 7x2 = 560 ............................(vi)
Find the co-ordinates of lines by substituting x1 = 0 to find x2 and x2 = 0 to find x1.
Therefore,
Line 3x2 + 2x2 = 300 passes through (0,150),(100,0)
Line 2x1 + 4x2 = 480 passes through (0,120),(240,0)
Line 5x1 + 7x2 = 650 passes through (0,80),(112,0)
4.13 KEYWORDS
Linear Programming
Graphical Method
Maximisation
Minimisation
Constraints
Profit
Optimality
138
(e) LP techniques are used in analyzing the effect of changes.
3. Fill in the blanks: Linear Programming:
Graphical Method
(a) Organization normally have _________ resources.
(b) A model has a _________ constraint.
(c) In real life, the two _________ problems are practiced very little.
(d) _________ refer to the products, workers’, efficiency, and machines are
assumed to be identical.
(e) The _________ function represents the aim or goal of the system.
Exercise Problems
1. For the problem given in Example 7, formulate the constraints for the following
without any change in R.H.S.:
(a) The flower extract F1 must be used at most to 15 litres and at least 5 litres.
(b) The demand for perfume cannot be less than the demand for body spray.
(c) The daily demand of body spray exceeds that of perfume by at least 2 litres.
2. For the problem given in Example 1.7, determine the best feasible solution among
the following values of x1 and x2:
(a) x1 =2, x2 = 1
(b) x1 =0, x2 = 3
(c) x1 =3, x2 = 1
(d) x1 = 5, x2 = 1
(e) x1 = 2, x2 = –1
(f) x1 = 1.75, x2 = 1.50
3. Determine the feasible space for each of the following constraints:
(c) x1 – x2 £ 0
142