Linear Programming-Graphic Method: Chapter-04
Linear Programming-Graphic Method: Chapter-04
P age |1
Chapter-04
Introduction
4. Selection the advertising mix that will maximize the benefit subject to the total
advertising budget, Linear Programming can be effectively applied.
8. Manufacturing Problem: To find the number of items of each type that should be
manufactured so as to maximize the profit subject to production restrictions imposed
by limitations on the use of machinery and lobour.
13. Production Problems: To decide the production schedule to satisfy demand and
minimize cost in face of fluctuating rates and storage expenses.
14. Job Assigning Problems: To assign job to workers for maximum effectiveness
and optimum results subject to restrictions of wages and others costs.
15. Trim-Loss Problems: To determine the best way to obtain a variety of smaller
rolls of paper from a standard width of roll that is kept in stock and, at the same
time, minimize wastage.
Basic Requirements
Regardless of the way one defines linear programming, certain basic requirement are
necessary before this technique can be employed to optimization problems,
These are:
6. Non-negative restrictions:
All decision variables must be assume non-negative values as negative value of
physical quantities is an impossible situation.
7. Linearity:
The basic requirements of a linear programming problem is that both the objective
and constraints must be expressed in terms of linear equations or inequalities. It is
well known that if the number of machines in a plant is increased, the production in
the plant also proportionately increase. Such a relationship, giving corresponding
increment in one variable for every increment in the other, is called li near and can be
graphically represented in the form of a straight line.
Basic Assumption
1. Proportionality:
We assume the proportionality exists in the objective and constrains, i.e., the
measure of effectiveness (profit or loss), in the objective function and amount of each
resource used must be proportional to the value of each decision variable considered
individually. For example, if we want to double the output we simply double the
required resources.
2. Additivity:
It means that sum of the resources used by different activities must be equal to the
total quantity of resources used by each activity for all the resources individually and
collectively. In other words, interaction among the activities of the resources does not
exist.
3. Divisibility:
This assumption implies that solutions need not be in whole numbers (integers).
Instead, they are divisible and may take any fractional value. If a fraction of a
product cannot be produced (like one -fourth of a bus), an integer programming
problem exists.
4. Certainty:
We assume that conditions of certainty exist, i.e., the coefficients in the objective
function and constraints are completely known (deterministic) and do not change
during the period being studied, e.g., profit per unit of each product, amount of
resources available are fixed during the planning period.
5. Finiteness:
6. Optimality:
In linear programming problem, the maximum profit solution or the minimum cost
solution always occurs at a corner point of the set of feasible solutions.
Terminology/ Keyword:
Linearity:
Linearity means mathematical expression where the variables have unit power only .
Programming:
Programming means that taking decisions systematically after applying some
procedures.
Linear Programming:
Linear programming is a mathematical technique which is used as taking managerial
decision by satisfying the constraints under certain conditions. On the assumption
that variable has only unit power. Each variable represent different phenomena.
Linear programming deals with the optimization of a function, subject to a set of
linear equalities or inequalities known as constraints.
Example 1:
Suppose an industry is manufacturing two types of products P1 and P2. The profits
per Kg of the two products are Rs.30 and Rs.40 respectively. These two products
require processing in three types of machines. The following table shows the available
machine hours per day and the time required on each machine to produce one Kg of
P1 and P2. Formulate the problem in the form of linear programming model.
Total available
Profit/Kg P1 P2 Machine
Rs.30 Rs.40 hours/day
Machin e 1 3 2 600
Machin e 2 3 5 800
Machin e 3 5 6 1100
Solution:
Let x1 = amount of P1
x2 = amount of P2
In order to maximize profits, we establish the objective function as
30x1 + 40x2
x1 ≥ 0 ; x2 ≥ 0
Thus, the product mix problem in the linear programming model is as follows:
Maximize
30x1 + 40x2
Subject to:
Example 2:
A company owns two flour mills viz. A and B, which have different production
capacities for high, medium and low quality flour. The company has entered a
contract to supply flour to a firm every month with at least 8, 12 and 24 quintals of
high, medium and low quality respectively. It costs the company Rs.2000 and
Rs.1500 per day to run mill A and B respectively. On a day, Mill A produces 6, 2 and
4 quintals of high, medium and low quality flour, Mill B produces 2, 4 and 12
quintals of high, medium and low quality flour respectively. How many days per
month should each mill be operated in order to meet the contract order most
economically.
Solution:
Let us define x1 and x2 are the mills A and B. Here the objective is to minimize the
cost of the machine runs and to satisfy the contract order. The linear programming
problem is given by
Minimize
2000x1 + 1500x2
Subject to:
6x1 + 2x2 ≥ 8
2x1 + 4x2 ≥ 12
4x1 + 12x2 ≥ 24
x1 ≥ 0, x2 ≥ 0
Problems
01.
A manufacturer produces two different models x & y of the same product. The raw
materials r 1& r 2 are required for production. At least 18 kgs of r 1 & 12 kgs of r 2 must
be used daily. Also at most 34 hours of labor are to be utilized. 2 kg of r 1 is needed
for model x and 1kg of r1 is needed for model y. For each model of x & y, 1 kg of r 2 is
required. It takes 3 hours and 2 hours to manufacture a model of x and y
respectively. The profit is Tk. 50 for model ‘x’ and Tk. 30 for model ‘y’.
How many units of each model should be produced to maximize the profit?
Solution:
X Y
r1 2 1 18≥
r2 1 1 12≥
Labor 3 2 34≤
Profit tk.50 tk. 30
Maximize,
Z= 50x + 30y
Subject To,
2x + y≥ 18
x + y ≥ 12
3x + 2y ≤ 34
Where, x, y ≥ 0
Let us consider the Cartesian co–ordinate axis on OXY and the lines are -
L1≡ 2x + y = 18 L1= (0, 18), (9, 0) ≥
L2≡ x + y =12 L2= (0, 12), (12, 0) ≥
L3≡ 3x + 2y =34 L3= (0, 17), (11.33, 0) ≤
Now we plot these points on a graph as follows:
For point A:
2x + y =18…… (i)
x + y = 12……. (ii)
x =6
Putting the value of x in (ii)
We get,
x +y = 12
=>6+ y = 12
=>y = 6
Therefore, A (x, y) = (6, 6)
Hence, the basic feasible solution points are A (6, 6), B (10, 2), C (2, 14).
Linear Programming-Graphic Method
Quantitative Business Analysis
P a g e | 14
So,
Maximize, Z = 50x +30y
=50*6 + 30*6 = 480………….at A (6, 6)
Maximize, Z =50x + 30y
= 50*10 + 30*2 =560………... at B (10, 2)
Maximize, Z = 50x +30y
= 50*2 +30*14 = 520………………..at C (2, 14)
So, Maximize Z = 560………………. at B (10, 2)
02.
Maximize, Z = 4x1 +3x2
Subject To,
x1 + x2 ≤ 50
x1 + 2x2 ≤ 80
2x1 + x2 ≥ 20
Where, x1& x2 ≥ 0
Solution:
Let us consider the Cartesian co- ordinate on oxy axis the lines are:
L1 ≡ x1 + x2 =50
L2≡ x1 +2x2=80
L3 ≡ 2x1 + x1= 20
For line 1: (0, 50), (50, 0)
For line 2: (0, 40), (80, 0)
For line 3: (0, 20), (10, 0)
Now we plot these points on a graph as follows:
From the above graph it is clear that ABCDE is the region of the feasible solution.
03.
Two types of electrical items A & B are manufacture d by a firm. Items A gives profit of
Tk. 160 per units and items B gives profits Tk. 245 per units. Both A & B use
essential components a motor and a transformer. Each unit of items A requires 3
motors and 2 transformers and B requires 2 motors and 4 transformers. Total supply
is available as 210 motors and 300 transformers for item A & B.
Solution:
X1 X2
Motors 3 2 210 ≤
Transformers 2 4 300 ≤
Profit Tk. 160 Tk. 245
04.
It takes 4 hours to assemble and 2 hours to paint on X box compare to 5 hours to
assemble and 1 hour to paint on Y box. Profit is Tk. 20 per X box and Tk. 30 per Y
box. If available time is limited to 100 hours for assembly and 32 hours for pai nting
and if at least 5 X boxes be made; how money X boxes and Y boxes should be made
to maximize profit. What is the maximum profit?
Solution:
Box (x) Box (y) Available Resources
(hours)
Assemble 4 5 100
Painting 2 1 32
X boxes at least 5
Profit Tk. 20 Tk. 30
Maximize, Z=20x+30y
Subject To,
4x+5y ≤100
2x+y ≤32
x ≥5
Where, x ≥0 & y ≥0
Let us consider to the Cartesian co-ordinate on oxy axis and the lines are,
L1≡4x +5y=100 For line 1: (0, 20), (25, 0)
L2≡2x+y =32 Foe line 2: (0, 32), (16, 0)
L3≡X =5 For line 3: (5,0)
From the above graph it is clear that ABCD is the region of feasible solution.
Hence, the basic feasible solution are A (5, 0), B (16, 0), C (5, 16) & D (10, 12)
Now,
Maximize, Z=20x+30y
=20*5+30*0 =100……………… at A= (5, 0)
Maximize, Z=20x+30y
=20*16+30*0 =320 …………….at B= (16, 0)
Maximize, Z=20x+30y
=20*5+30*16 =580……………..at C= (5, 16)
Maximize, Z=20x+30y
=20*10+30*12=560………….. ..at D=(10,12)
05.
A manufacturer produces two kinds of bolts utilizing three machines grinders,
shapers and lathes. The time requirement for the machines on each type of bolts is
given in the following table in hours:
The total hours of available time per week for three machines are 40 hours for the
grinder, 30 hours for the shaper, and 40 hours for the lathe. Unit profits are tk. 2
and tk. 3 for bolts A & B respectively. Find the maximum profit that can be made
under this condition using LPP.
Solution:
Bolts A (x) B (y) Available Hours
Grinder 3 2 40≤
Shaper 3 1 30≤
Lathe 1 2 40≤
Profit Tk. 2 Tk. 3
Let us the Cartesian co-ordinate on oxy axis and the lines are:
L1≡ 3x+2y= 40
L2≡ 3x+y= 30 For line 1: (0, 20), (13.33, 0)
L3≡ x+2y= 40 For line 2: (0, 30), (10, 0)
Now, we plot these points in the following graph: For line 3: (0, 20), (40, 0)
For point A: Value is (0, 20) Putting the value of y in (i) we get,
For point B: L1& L2 3x+2*10=40
3x+2y= 40……….(i) =>3x+20=40
3x+ y = 30………..(ii) =>3x=40-20
y = 10 =>x=20/3
=>x=6.67
06.
A Ski manufacturer makes two types of ski: downhill and cross-counting. Using the
information given in the table below; how many of each type of Ski should be made
for maximum profit? Use LLP to solve the problem.
Solution:
Let, x be the units of Downhill ski produced y be the units of cross country ski
produced.
Maximize, Z=70x+50y
Subject to,
2x+y ≤ 40
x+ y ≤ 32
Where, x, y ≥ 0
Let us consider the Cartesian co-ordinate on oxy axis and the lines are:
L1≡2x+y=40
L2≡x+y=32
For line 1: (0, 40), (20, 0)
For line 2: (0, 32), (32, 0)
x + y=32
=>8+y=32
=>y=24
Therefore, B (x, y): (8, 24)
For point C: Value is (20, 0)
From the above graph it is clear that ABC is the region of feasible solution.
Hence, the basic feasible solution points are A (0, 342), B (8, 24) & C (20, 0).
Now, Maximize Z=70x+50y
=70*0+50*32 =1600………………… at A= (0, 32)
Maximize Z=70x+50y
=70*8+50*24 =1760 …………………at B=(8, 24)
Maximize Z=70x+50y
=70*20+50*0 =1400 ………………….at C=(20, 0)
Therefore, Maximize Z=1760 at B (8, 24)
Hence, 8 units of downhill ski and 24 units of cross country ski should be made for
maximum profit to be achieved. And the maximum profit is Tk. 1760 (Answer)
07.
Otobi furniture enjoys monopoly in its two of several items: conference table and file
cabinet due to higher quality. Conference table gives tk. 20 profits per unit and file
cabinet gives tk. 30 profit per unit. Both items are processed on three machines 𝑀1 ,
𝑀2 and𝑀3 . The time required for each item in hours and total time available in hours
on each machine are as follows:
Machine Conference Table File Cabinet Available Hours per
week
M1 3 3 36
M2 5 2 50
M3 2 6 60
Formulate problem as a LPP to maximize profits and solve the problem graphically.
Solution:
Let, X be the number of item of conference table and Y be the number of item of file
cabinet.
Subject to,
3x+3y≤36
5x+2y≤50
2x+6y≤60
Where, x & y ≥0
Let us consider the Cartesian co- ordinate on oxy axis and the lines are:
L1≡3x+3y=36
L2≡5x+2y=50 For line 1: (0, 12), (12, 0)
L3≡2x+6y=60 For line 2: (0, 25), (10, 0)
For line 3: (0, 10), (30, 0)
Hence, the basic feasible solution point are A (0, 10), B (3, 9), C (8.67, 3.33) & D (10,
0).
Now, Maximize, Z=20x+30y
=20*0+30*10 = 300 …………at A= (0, 10)
Maximize, Z=20x+30y
=20*3+30*9 =330 …………………………at B = (3, 9)
Maximize, Z=20x+30y
=20*8.67+30*3.33 =273.30 ………at C = (8.67, 3.33)
Maximize, Z=20x+30y
=20*10+30*0 =200 ……………………….at D= (10, 0)
Thus, Maximize, Z=330 at B (3, 9)
Therefore 3 units of conference table and 9 units of file cabinet should be made to
maximize the profit and the maximize profit is Tk. 330 (Answer)
08.
Food X contains 6 units of vitamin A per gram and 7 units of vitamin B per gram and
cost 12 per gram. Food Y contains 8 units of vitamin A per gram, and 12 units of
vitamin B per gram, and costs tk. 20 per gram. The minimum requirement of vitamin
A and vitamin B are 100 units and 120 units respectively. Find the minimum cost of
product mix using graphical method.
Solution:
Vitamin Food-X Food -Y Minimum Requirement (units)
A 6 8 100≥
B 7 12 120≥
Cost Tk. 12 Tk. 20
Minimize, Z=12x+20y
Subject to,
6x+8y≥100
7x+12y≥120
Where, x & y ≥0
Let us consider the Cartesian co- ordinate on oxy axis and the lines are:
L1≡6x+8y=100 For line 1: (0, 12.5), (16.67, 0)
L2≡7x+12y=120 For line 2: (0, 10), (17.14, 0)
From the above graph it is clear that ABC is the area of feasible solutions.
For point A: A (x, y): Value is Putting the value of y in (i) we get,
(0, 12.50) 6x+8y=100
For point B: L1 & L2 => 6x+8*1.25=100
6x+8y=100…………… (i) => 6x=100-10
7x+12y=120………….. (ii) => x=90/6
7*(1) and 6*(2) we get, => x=15
42x+56y=700 Therefore, B (x, y) = (15, 1.25)
42x+72y=720
-16y=-20
=> y= (-20) / (-16)
=>y=1.25
Hence, the feasible solution points are A (0, 12.50), B (15, 1.25) & C (17.14, 0)
Now, Minimize, Z=12x+20y
=12*0+20*12.50 =250 ………………….at A= (0, 12.50)
Minimize, Z=12x+20y
=12*15+20*1.25 =205 ………………….at B= (15, 1.25)
Minimize, Z=12x+20y
=12*17.14+20*0 =205.68 ……………….at C= (17.14, 0)
Therefore, 15 units of food X and 1.25 units of food Y should be mixed so that the
cost is minimized and the minimum cost is Tk. 205. (Answer)
09.
Formulate problem as a LPP to minimize costs and solve the problem graphically.
Solution:
Decision Food Content of Vitamins Type Cost per
Variable A B C unit (Tk.)
X1 X 7 5 2 3
X2 Y 2 4 8 2
Minimum Vitamin 30 20 16
Requirements
From the above graph it is clear that OABC is the area of feasible solutions.
For point A (x, y): Value is (0, Putting the value of x in (i) we get,
15) 7X1+2X2=30
For point B (x, y): L 1& L3 =>7*4+2X2=30
7X1+2X2=30……….. (i) =>2X2=30-28
2X1+8X2=16………... (iii) =>X2=2/2
4*(i) & 1*(iii) we get, =>X2=1
28X1+8X2=120 Therefore, B (x, y) =(4, 1)
2X1+8X2=16
26X1 =104
=>X1=104/26
=>X1=4
Hence, the basic feasible solution points are A (0, 15), B (4, 1), & C (8, 0).
Now,
Minimize, Z=3X1+2X2
=3*0+2*15 =30 ……………………..at A= (0, 15)
Minimize, Z=3X1+2X2
=3*4+2*1 =14 …………………….at B= (4, 1)
Minimize, Z=3X1+2X2
=3*8+2*0 =24 ………………………at B= (8, 0)
10.
Formulate problem as a LPP to minimize costs and solve the problem graphically.
Solution:
Decision Substance Content (in mg.) Cost per unit
Variable Chloride Nitrate Sulphate (in Tk.)
X1 X 8 4 6 20
X2 Y 10 2 2 20
Minimum Requirements 80 28 36
Minimize (total cost), Z= 20X 1+20X2 [Objective function]
Subject to,
8X1+10X2≥80 [Constraints]
4X1+2X2≥28
6X1+2X2≥36
Where, X1 X2≥0 (Non-negative restrictions)
Let us consider the co-ordinate on oxy axis and the lines are:
L1≡8X1+10X2=80≥ For line 1: (0, 8), (10, 0)
L2≡4X1+2X2=28≥
For line 2: (0, 14), (7, 0)
L3≡6X1+2X2=36≥ For line 3: (0, 18), (6, 0)
From the above graph it is clear that ABCD is the region of the feasible solution.
From the above graph it is clear that ABCD is the region of feasible solution.
Hence, the basic feasible solution are A (0, 18), B (10, 0), C (4, 6) & D (5, 4).
Now,
Minimize, Z= 20X1+20X2
=20*0+20*18 =360 ……………………………..at A= (0, 18)
Minimize, Z= 20X1+20X2
=20*10+20*0 =200 ………………………...at B= (10, 0)
Minimize, Z= 20X1+20X2
=20*4+20*6 =200 ………………………….at C= (4, 6)
Minimize, Z= 20X1+20X2
=20*5+20*4 =180 …………………………at D = (5, 4)
Summary
The objective function may have to be maximized when it indicates the profit or
production or contribution. If the objective function represents cost, in this case the
objective function has to be minimized.
The management problem is expressed in terms of the decision variables with the
objective function and constraints. A linear programming problem is solved
graphically if it contains only two variables.
Self-Assessment Questions
1. Use graphical method to solve following LP problem.
Maximize Z = x1 + x2
subject to the constraints
3x1 + 2x2 ≤ 5
x2 ≤ 2
and x1, x2 ≥ 0
3. You need to buy some filing cabinets. You know that cabinet X costs $10 per
unit, requires six square feet of floor space, and holds eight cubic feet of files.
Cabinet Y costs $20 per unit, requires eight square feet of floor space, and
holds twelve cubic feet of files. You have been given $140 for this purchase,
though you don't have to spend that much. The office has room for no more
than 72 square feet of cabinets. How many of which model should you buy, in
order to maximize storage volume?
5. In order to ensure optimal health (and thus accurate test results), a lab
technician needs to feed the rabbits a daily diet containing a mini mum of 24
grams (g) of fat, 36 g of carbohydrates, and 4 g of protein. But the rabbits
should be fed no more than five ounces of food a day.
6. You have $12,000 to invest, and three different funds from which to choose.
The municipal bond fund has a 7% return, the local bank's CDs have an 8%
return, and the high-risk account has an expected (hoped-for) 12% return. To
minimize risk, you decide not to invest any more than $2,000 in the high-risk
account. For tax reasons, you need to invest at least three times as much in
the municipal bonds as in the bank CDs. assuming the year-end yields are as
expected, what are the optimal investment amounts?
7. A building supply has two locations in town. The office receives orders from two
customers, each requiring 3/4-inch plywood. Customer A needs fifty sheets
and Customer B needs seventy sheets.
The warehouse on the east side of town has eighty sheets in stock; the west-
side warehouse has forty-five sheets in stock. Delivery costs per sheet are as
follows: $0.50 from the eastern warehouse to Customer A, $0.60 from the
eastern warehouse to Customer B, $0.40 from the western warehouse to
Customer A, and $0.55 from the western warehouse to Customer B.
Find the shipping arrangement which minimizes costs.
x≥0 x+y≤7
y≥0 x+2y≥4
x≤5 y≤x+5
Glossary
Objective Function: is a linear function of the decision variables representing the
objective of the manager/decision maker.
Decision Variables: are some physical quantities whose values indicate the solution.
Feasible Solution: is a solution which satisfies all the constraints (including the
non-negative) presents in the problem.
Multiple Solutions: are solutions each of which maximize or minimize the objective
function.
Key Equations
1. Maximize,
Z= 2x1 + 3x2
Subject To,
2x1 + 2x2≤100
3x1 + 4x2 ≤ 200
Where, x1, x2 ≥ 0 (Non- negative restrictions)
Descriptive Questions