Chap12linearprogrammingxiimaths (E) Ncertsol
Chap12linearprogrammingxiimaths (E) Ncertsol
Linear Programming
Important Results
1. Linear programming
It is the method used in decision making in business for obtaining
the maximum or minimum values of a linear expression subject to
the satisfying certain given inequations. This linear expression is
known as an objective function and the linear inequations are
known as linear constraints.
2. Linear constraints In business or industry we want to make the
best use of our limited resources, be these in the form of money,
labour, expenses etc. The limitations on the resources can often
be expressed in the form of linear inequations, known as linear
constraints.
3. Objective function A linear function of the involved variables,
which we want to maximize or minimize subject to the given
linear constraints, is known as an objective function.
4. Optimal value of an objective function The maximum or
minimum value of the objective function is known as its optimal
value.
5. Feasible solution A set of values of the variables satisfying all
the constraints is known as a feasible solution.
6. Optimal solution A feasible solution which leads to an optimal
value of the objective function is known as an optimal solution.
7. Optimization techniques The process of obtaining the optimal
values are called optimization techniques.
8. Linear Programming Problem (LPP) A general linear
programming consists of maximizing or minimizing an objective
function subject to certain given constraints.
Exercise 12.1
Solve the following linear programming problems graphically.
Question 1. Maximize Z = 3 x + 4 y, subject to the constraints are
x + y ≤ 4, x ≥ 0 and y ≥ 0.
(Q. Nos. 1 to 10)
(a) Frame equation from the given constraints and plot these equations
on the graph.
(b) Find the feasible region and find the corner points.
(c) Find the value of Z at those points and see at which point Z is
minimum/maximum.
Solution Our problem is to maximize Z = 3x + 4y …(i)
Subject to constraints x + y ≤4 …(ii)
x ≥ 0, y ≥ 0 …(iii)
Firstly, draw the graph of the line x + y = 4
0 4 Y
x
y 4 0 6
The corner points of the feasible region are O(0, 0), A(4,0) and B(0, 4). The
values of Z at these points are as follows:
Corner point Z = 3 x + 4y
O(0, 0) 0
A(4, 0) 12
B(0, 4) 16 → Maximum
Therefore, the maximum value of Z is 16 at the point B(0, 4).
Note While plotting the graph, please be careful about the inequalities
in which direction we have to plot this.
Question 2. Minimize Z = − 3 x + 4 y, subject to constraints are
x + 2 y ≤ 8, 3 x + 2 y ≤ 12, x ≥ 0 and y ≥ 0.
Solution Our problem is to minimize
Z = − 3x + 4y …(i)
Subject to constraints x + 2y ≤ 8 …(ii)
3x + 2y ≤ 12 …(iii)
x ≥ 0, y ≥ 0 …(iv)
Firstly, draw the graph of the line, x + 2y = 8
x 0 8
y 4 0
Putting (0, 0) in the inequality x + 2y ≤ 8, we have
0 + 0 ≤8 ⇒ 0 ≤8 (which is true)
So, the half plane is towards the origin.
Since, x, y ≥ 0
So, the feasible region lies in the first quadrant.
Secondly, draw the graph of the line, 3x + 2y = 12
x 0 4 Y
y 6 0
Putting (0, 0) in the 6
inequality
3x + 2y ≤ 12, we have 5
3 × 0 + 2 × 0 ≤ 12
(0, 4)C 4
⇒ 0 ≤ 12
B(2, 3)
(which is true) 3
So, the half plane is x + 2y = 8
towards the origin. 2
Feasible
∴ Feasible region is 1 region
OABCO. A(4, 0)
On solving equations O X
1 2 3 4 5 6 7 8
x + 2y = 8 and (0, 0)
3x + 2y = 12 , we get 3x + 2y = 12
x = 2 and y = 3
∴ Intersection point B is (2, 3)
The corner points of the feasible region are O(0, 0), A(4, 0), B(2, 3) and
C(0, 4). The values of Z at these points are as follows:
NCERT Class XII Mathematics Solutions 657
Corner point Z = − 3 x + 4y
O(0, 0) 0
A(4, 0) –12 → Minimum
B(2, 3) 6
C(0, 4) 16
20 45
The corner points of the feasible region are O(0, 0), A(2, 0), B , and
19 19
C(0, 3) The values of Z at these points are as follows:
Corner point Z = 5 x + 3y
O(0, 0) 0
A(2, 0) 10
C(0, 3) 9
B
20 45
,
235
→ Maximum
19 19 19
235 20 45
Therefore, the maximum value of Z is at the point B , .
19 19 19
x 0 2 5
y 2 0
4
Putting (0, 0) in the
inequality x + y ≥ 2, we 3
have
(0, 2) C 2 3, 1
0 + 0 ≥2 ⇒ 0 ≥2 B
2 2
(which is false) 1
A(3 0)
So, the half plane is away X
O 1 2 3 4 5 6 7 8
from the origin.
(0, 0)
It can be seen that the x + 3y = 3
feasible region is x+y=2
unbounded.
NCERT Class XII Mathematics Solutions 659
Corner point Z = 3 x + 5y
O(0, 0) 0
A(3, 0) 9
B ,
3 1 7 → Minimum
2 2
C(0, 2) 10
3x
3 × 0 + 0 ≤ 15
+y
6
⇒ 0 ≤ 15 (which is true)
=1
C(0, 5)
5
So, the half plane is towards 5
the origin.
4 B(4, 3)
On solving equations
x + 2y = 10 and 3x + y = 15, 3
we get x + 2y = 10
x = 4 and y = 3 2
∴Intersection point B is (4, 3).
1
∴ Feasible region is OABCO. A(5, 0)
The corner points of the
O 1 2 3 4 5 6 X
feasible region are O (0, 0),
(0, 0)
A(5, 0), B(4, 3) and
C(0, 5). The values of Z at these points are as follows:
Corner point Z = 3 x + 2y
O(0, 0) 0
A(5, 0) 15
B(4, 3) 18 → Maximum
C(0, 5) 10
Therefore, the maximum value of Z is 18 at the point B(4, 3).
Question 6. Minimize Z = x + 2 y, subject to constraints are 2 x + y ≥ 3,
x + 2 y ≥ 6 and x, y ≥ 0. Show that the minimum of Z occurs at more than
two points.
Solution Our problem is to minimize
Z = x + 2y …(i)
Subject to the constraints are
2x + y ≥ 3 …(ii) Y
x + 2y ≥ 6 …(iii)
x ≥ 0, y ≥ 0 …(iv) 6
Firstly, draw the graph of the
line 2x + y = 3z 5
x 0 3/2 4
y 3 0 B(0, 3)
3
Putting (0, 0) in the x+
inequality 2x + y ≥ 3, we 2 2y
=6
have 1
2 ×0 + 0 ≥ 3 A(6, 0)
⇒ 0≥3 O 1 2 3 4 5 6 7 8 X
(which is false) (0, 0)
So, the half plane is away
from the origin. Since, 2x + y = 3
x, y ≥ 0
NCERT Class XII Mathematics Solutions 661
0 10 Y
x
200 D(0, 200)
y 0 20
The maximum value of Z is 400 at D(0, 200) and the minimum value of Z is
100 at all the points on the line segment joining A(0, 50) and B(20, 40).
Question 9. Maximize Z = − x + 2 y, subject to the constraints are
x ≥ 3 , x + y ≥ 5, x + 2 y ≥ 6 and x, y ≥ 0.
Solution Our problem is to maximize Z = − x + 2y ...(i)
Subject to constraints are x≥3 …(ii)
x+y≥5 …(iii)
x + 2y ≥ 6 …(iv)
x ≥ 0, y ≥ 0 …(v)
664 www.arihantbooks.com
Exercise 12.2
Question 1. Reshma wishes to mix two types of food P and Q in such a
way that the vitamin contents of the mixture contain atleast 8 units of
vitamin A and 11 units of vitamin B. Food P costs ` 60 per kg and food Q
costs ` 80 per kg. Food P contains 3 units per kg of vitamin A and 5 units
per kg of vitamin B while food Q contains 4 units per kg of vitamin A and
2 units per kg of vitamin B. Determine the minimum cost of the mixture.
(Q. Nos. 1 to10)
(a) Firstly, we consider given types into variables x and y and
mathematically formulate the problem to find the expression for Z
(Objective function).
(b) Find the constraints and frame equations, plot these equations and a
graph and find feasible region.
(c) Find the corner points and value of Z at each corner point and observe
minimum/maximum value of Z.
Solution Let Reshma mixes x kg of food P and y kg of food Q.
Construct the following table:
Food Quantity Vitamin A Vitamin B Cost (` per kg)
P x kg 3x 5x 60x
Q y kg 4y 2y 80y
Total 3x + 4y 5x + 2 y 60 x + 80 y
Requirement Atleast 8 Atleast 11
8 1 11
The corner points of the feasible region are A , 0 , B2, and C 0, .
3 2 2
The values of Z at these points are as follows :
Corner point Z = 60 x + 80 y
A , 0
8 160 → Minimum
3
B 2,
1 160 → Minimum
2
C 0,
11 440
2
As the feasible region is unbounded, therefore 160 may or may not be the
minimum value of Z. For this, we graph the inequality 60x + 80y < 160 or
3x + 4y < 8 and check whether the resulting half plane has points in
common with the feasible region or not. It can be seen that the feasible
region has no common point with 3x + 4y < 8 therefore, the minimum cost
8
of the mixture will be ` 160 at the line segment joining the points A ,0
3
1
and B2, .
2
Note Please be careful, while making the table and plotting the graph of
inequalities.
Question 2. One kind of cake requires 200 g of flour and 25 g of fat and
another kind of cake requires 100 g of flour and 50 g of fat. Find the
maximum number of cakes which can be made from 5 kg of flour and 1kg
of fat assuming that there is no shortage of the other ingredients used in
making the cakes.
668 www.arihantbooks.com
⇒ 0 ≤ 40 50
(which is true)
40
So, the half plane is towards
the origin. 30
Since, x, y ≥ 0
20 C(0, 20)
So, the feasible region lies in B(20, 10)
the first quadrant. 10
On solving equations (25, 0)A
2x + y = 50 O 10 20 30 40 50 60 70 80 X
(0, 0)
and x + 2y = 40, we get
x + 2y = 40
B (20, 10) 2x + y = 50
∴Feasible region is OABCO.
The corner points of the feasible region are 0 (0, 0), A(25, 0), B(20, 10) and
C(0, 20). The values of Z at these points are as follows:
NCERT Class XII Mathematics Solutions 669
Corner point Z= x + y
0 (0, 0) 0
A(25, 0) 25
B(20, 10) 30 → Maximum
C(0, 20) 20
Thus, the maximum number of cakes that can be made is 30 i.e., 20 of one
kind and 10 of the other kind).
Question 3. A factory makes tennis rackets and cricket bats. A tennis
racket takes 1.5 h of machine time and 3 h of craftman’s time in its
making while a cricket bat takes 3 h of machine time and 1 h of
craftman’s time. In a day, the factory has the availability of not more than
42 h of machine time and 24 h of craftman’s time.
(a) What number of rackets and bats must be made, if the factory is to
work at full capacity?
(b) If the profits on rackets and on bats is ` 20 and ` 10 respectively,
find the maximum profit of the factory when it works at full capacity.
Solution Let the number of rackets and the number of cricket bats to
be made in a day be x and y respectively.
Construct the following table:
Machine time Craftsman’s
Item Number Profit (in `)
(in h) time (in h)
Tennis rackets x 1.5x 3x 20x
Cricket bats y 3y 1y 10y
Total x+ y 1.5x + 3y 3x + y 20 x + 10 y
Availability 42 24
Corner point Z = 5 x + 3y
0(0, 0) 0
A(6, 0) 30
B(4, 4) 32 → Maximum
C(0, 10) 30
Time for
Time for cutting assembling Profit
Type Number
machine (in min) (in ` )
(in min)
A x 5x 10x 5x
B y 8y 8y 6y
Total x+ y 5x + 8 y 10 x + 8 y 5x + 6 y
Availability 3 × 60 + 20 = 200 4 × 60 = 240
The profit on type A souvenirs is ` 5 and on type B souvenirs is ` 6.
Our problem is to maximizeZ = 5x + 6y …(i)
Subject to the constraints
5x + 8y ≤ 200 … (ii)
10x + 8y ≤ 240 ⇔ 5x + 4y ≤ 120 …(iii)
x ≥ 0, y ≥ 0 …(iv)
Firstly, draw the graph of the line 5x + 8Y = 200
x 0 40
y 25 0
Putting (0, 0) in the inequality 5x + 8y ≤ 200, we have
5 × 0 + 8 × 0 ≤ 200 ⇒ 0 ≤ 200 (which is true)
So, the half plane is towards the origin.
Since, x, y ≥ 0
So, the feasible region lies in the first quadrant.
Secondly, draw the graph of the line 5x + 4y = 120
x 0 24
y 30 0
Putting (0, 0) in the inequality 5x + 4y ≤ 120, we have
5 × 0 + 4 × 0 ≤ 120
⇒ 0 ≤ 120 (which is true)
So, the half plane is Y
towards the origin.
50
On solving equations
5x + 8y = 200 and 40
5x + 4y = 120, we get
B(8, 20). 30
(0, 25)C
20 B(8, 20)
∴ Feasible region is
OABCO. 10
The corner points of the A(24, 0)
feasible region are O(0, 0), O 10 20 30 40 50 60 70 80 X
A(24, 0), B(8, 20) and C(0, (0, 0)
25). The values of Z at 5x + 4y = 120
these points are as follows: 5x + 8y = 200
676 www.arihantbooks.com
Corner point Z = 5 x + 6y
O(0, 0) 0
A(24, 0) 120
B(8, 20) 160 → Maximum
C(0, 25) 150
Corner point Z = 6 x + 5y
A
700 1400
, 0
3
B(100, 80) 1000 → Minimum
C(0, 280) 1400
As the feasible region is unbounded therefore, 1000 may or may not be the
minimum value of Z. For this, we draw a graph of the inequality,
6x + 5y < 1000 and check, whether the resulting half plane has points in
common with the feasible region or not.
It can be seen that the feasible region has no common point with
6x + 5y < 1000.
Therefore, 100 kg of fertilizer F1 and 80 kg of fertilizer F2 should be used to
minimize the cost. The minimum cost is ` 1000.
Question 11. The corner points of the feasible region determined by the
following system of linear inequalities :
2 x + y ≤ 10, x + 3 y ≤ 15, x, y ≥ 0 are (0, 0), (5, 0), (3, 4) and (0, 5). Let
Z = px + qy, where p, q > 0. Condition on p and q so that the maximum of Z
occurs at both (3, 4) and (0, 5) is
(a) p = q (b) p = 2 q (c) p = 3 q (d) q = 3 p
Solution (d) The maximum value of Z is unique.
It is given that the maximum value of Z occurs at two points (3, 4) and
(0, 5). Value of Z at (3, 4) = Value of Z at (0, 5)
⇒ p(3) + q(4) = p(0) + q(5), 3p + 4q = 5q ⇒ 3p = q
Hence, option (d) is correct.
NCERT Class XII Mathematics Solutions 681
Miscellaneous Exercise
Question 1. A dietician has to develop a special diet using two foods P
and Q. Each packet (containing 30 g) of food P contains 12 units of
calcium, 4 units of iron, 6 units of cholesterol and 6 units of vitamin A.
Each packet of the same quantity of food Q contains 3 units of calcium, 20
units of iron, 4 units of cholesterol and 3 units of vitamin A. The diet
requires atleast 240 units of calcium, atleast 460 units of iron and at most
300 units of cholesterol. How many packets of each food should be used to
maximize the amount of vitamin A in the diet? What is the maximum
amount of vitamin A in the diet?
Solution Let the dietician uses x packets of food P and y packets of Q.
We construct the following table :
Number of Amount of Amount of Amount of Amount of
Foods
packets calcium iron cholesterol vitamin A
P x 12x 4x 6x 6x
Q y 3y 20y 4y 3y
Total x+ y 12 x + 3y 4x + 20 y 6 x + 4y 6 x + 3y
Requires Atleast 240 Atleast 460 Atmost 300
So, our problem is to maximize Z = 6x + 3y …(i)
Subject to constraints 12x + 3y ≥ 240 ⇔4x + y ≥ 80 …(ii)
4x + 20y ≥ 460 ⇔ x + 5y ≥ 115 …(iii)
6x + 4y ≤ 300 ⇔ 3x + 2y ≤ 150 …(iv)
x ≥ 0,y ≥ 0 …(v)
Firstly, draw the graph of the line 4x + y = 80
x 20 0
y 0 80
Putting (0, 0) in the inequality 4x + y ≥ 80, we have
4 × 0 + 0 ≥ 80 ⇒0 ≥ 80 (which is false)
So, the half plane is away from the origin.
Secondly, draw the graph of the line x + 5y = 115
x 0 115
y 23 0
Putting (0, 0) in the inequality x + 5y ≥ 115, we have
0 + 5 × 0 ≥ 115 ⇒0 ≥ 115 (which is false)
So, the half plane is away from the origin.
Thirdly, draw the graph of the line 3x + 2y = 150
x 50 0
y 0 75
Putting (0, 0) in the inequality 3x + 2y ≤ 150, we have
3 × 0 + 2 × 0 ≤ 150 ⇒ 0 ≤ 150 (which is true)
682 www.arihantbooks.com
12 D(0, 12)
10
8
C(3, 6)
6
4
B(9, 2)
2
A(18, 0)
O X
2 4 6 8 10 12 14 16 18
(0, 0) 2.5x + 11.25y = 45
2x + 3y = 24
3x + 1.5y = 18
5x + 4y = 39
684 www.arihantbooks.com
The corner points of the feasible region are A(18, 0), B(9, 2), C(3, 6) and
D (0, 12). The values of Z at these points are as follows:
Corner point Z = 250 x + 200 y
A(18, 0) 4500
B(9, 2) 2650
C(3, 6) 1950 → Minimum
D(0, 12) 2400
As the feasible region is unbounded, therefore 1950 may or may not be the
minimum value of Z.
For this, we draw a graph of the inequality 250x + 200y < 1950 or
5x + 4y < 39 and check, whether the resulting half plane has points in
common with the feasible region or not.
It can be seen that the feasible region has no common point with
5x + 4y < 39.
Therefore, the minimum value of Z is 1950 at C(3, 6).
Thus, 3 bags of brand P and 6 bags of brand Q should be used in the
mixture to minimize the cost to ` 1950.
Question 3. A dietician wishes to mix together two kinds of food X and
Y in such a way that the mixture contains atleast 10 units of vitamin A, 12
units of vitamin B and 8 units of vitamin C. The vitamin contents of 1 kg
food is given below.
Food Vitamin A Vitamin B Vitamin C
X 1 2 3
Y 2 2 1
1 kg of food X costs of ` 16 and 1 kg of food Y costs ` 20. Find the least cost
of the mixture which will produce the required diet?
Solution Let the dietician mixes x kg of food X and y kg of food Y. We
construct the following table:
Food Amount Vitamin A Vitamin B Vitamin C Cost
X x kg x 2x 3x 16x
Y y kg 2y 2y y 20y
Total (x + y) kg x + 2y 2x + 2y 3x + y 16 x + 20 y
Minimum 10 12 8
Requires
So, our problem is to minimize Z = 16x + 20y …(i)
Subject to constraints x + 2y ≥ 10 …(ii)
2x + 2y ≥ 12 ⇔ x + y ≥ 6 …(iii)
3x + y ≥ 8 …(iv)
x ≥ 0, y ≥ 0 …(v)
Firstly draw the graph of the line x + 2y = 10
x 0 10
y 5 0
NCERT Class XII Mathematics Solutions 685
It can be seen that the feasible region has no common point with
4x + 5y < 28.
Therefore, the minimum value of Z is 112 at B(2, 4).
Thus, the mixture should contain 2 kg of food X and 4 kg of food Y. The
minimum cost of the mixture is ` 112.
Question 4. A manufacturer make two types of toys A and B. Three
machines are needed for this purpose and the time (in minutes) required
for each toy on the machines is given below.
Machines
Types
I II III
A 12 18 6
B 6 0 9
Each machine is available for a maximum of 6 h per day. If the profit on
each toy of type A is ` 7.50 and that the each toy of type B is ` 5, show that
15 toys of type A and 30 of type B should be manufactured in a day to get
maximum profit.
Solution Let the manufacturer makes x toys of type A and y toys of
type B. We construct the following table:
Time of Time of Time of
Number Profit
Type of toys machine I machine II machine III
of toys (in `)
(in min) (in min) (in min)
A x 12x 18x 6x 7.50 x
B y 6y 0y 9y 5y
Total x+ y 12 x + 6 y 18 x + 0 y 6x + 9y 7.50 x + 5y
Maximum 6 × 60 = 360 6 × 60 = 360 6 × 60 = 360
requires
Our problem is to maximize Z = 7.50x + 5y …(i)
Subject to constraints 12x + 6y ≤ 360 ⇔ 2x + y ≤ 60 …(ii)
18x ≤ 360 ⇔ x ≤ 20 …(iii)
6x + 9y ≤ 360 ⇔ 2x + 3y ≤ 120 …(iv)
x ≥ 0, y ≥ 0 …(v)
Firstly, draw the graph of the line 2x + y = 60
x 0 30
y 60 0
Putting (0, 0) in the inequality 2x + y ≤ 60, we have
2 × 0 + 0 ≤ 60 ⇒ 0 ≤ 60 (which is true)
So, the half plane is towards the origin.
Secondly, draw the graph of the line 2x + 3y = 120
x 0 60
y 40 0
2 × 0 + 3 × 0 ≤ 120 Y
⇒ 0 ≤ 120 80
(which is true)
70
So, the half plane is
towards the origin. 60
Thirdly, draw the
50
graph of the line x = 20
D(0, 40)
Putting (0, 0) in the 40
inequality x ≤ 20, we
have 0 ≤ 20 30 C(15, 30)
(which is true) 20 B(20, 20)
So, the half plane is
towards the origin. 10
A(20, 0)
Since, x, y ≥ 0 X' X
O 10 20 30 40 50 60 70 80
So, the feasible region (0, 0)
lies in the first 2x + 3y = 120
quadrant. Y' 2x + y = 60
x = 20
On solving equations
2x + y = 60 and 2x + 3y = 120, we get C(15, 30)
Similarly, solving the equations x = 20 and 2x + y = 60, we get B(20, 20).
∴ Feasible region is OABCDO.
The corner points of the feasible region are A(20, 0), B(20, 20), C(15, 30)
and D(0, 40). The values of Z at these points are as follows:
Corner point Z = 7.50 x + 5 y
0(0, 0) 0
A(20, 0) 150
B(20, 20) 250
C(15, 30) 712.5 → Maximum
D(0, 40) 200
Thus, the maximum value of Z is 712.5 C(15, 30).
Thus, the manufacturer should manufacture 15 toys of type A and 30 toys
of type B to maximize the profit.
Question 5. An aeroplane can carry a maximum of 200 passengers. A
profit of ` 1000 is made on each executive class ticket and a profit of ` 600
is made on each economy class ticket. The airline reserves atleast 20 seats
for executive class. However atleast 4 times as many passengers prefer to
travel by economy class than by the executive class. Determine how
many tickets of each type must be sold in order to maximize the profit for
the airline. What is the maximum profit?
Solution Let x passengers travel by executive class and y passengers
travel by economy class. We construct the following table :
Class Number of tickets Profit (in `)
Executive x 1000x
Economy y 600y
Total x+ y 1000 x + 600 y
688 www.arihantbooks.com
x 0 20 140
y 0 80 120
Putting (10, 0) in 100
the inequality A(20, 80)
y ≥ 4x, we have 80
0 ≥ 4 × 10 60
⇒ 0 ≥ 40
40
(which is false)
So, the half 20
plane is towards X
X-axis. O 20 40 60 80 100 120 140 160 180 200
(0, 0) x + y = 200
Thirdly, draw
the graph of the x = 20
line x = 20 y – 4x = 0
60 `4 ` 2 50 – y
`3 y) }
– x+
x Godown 0 –(
10 60
B
0 –{ y–
50 quintal 4 x+
=
690 www.arihantbooks.com
The corner points of the feasible region are A(60, 0) B(60, 40), C(50, 50) and
D(10, 50). The values of Z at these points are as follows:
Corner point Z = 2 .5 x + 1 .5 y + 410
A(60, 0) 560
B(60, 40) 620
C(50, 50) 610
D(10, 50) 510 → minimum
The minimum value of Z is 510 at D(10, 50).
Thus, the amount of grain transported from A to D, E and F is 10 quintals,
50 quintals and 40 quintals respectively and from B to D, E and F is
50 quintals, 0 quintal and 0 quintal respectively.
The minimum cost is ` 510.
Question 7. An oil company has two depots A and B with capacities of
7000 L and 4000 L respectively. The company is to supply oil to three
petrol pumps D, E and F, whose requirements are 4500 L, 3000 L and
3500 L respectively. The distances (in km) between the depots and the
petrol pumps is given in the following table :
From/ To A B
D 7 3
E 6 4
F 3 2
Assuming that the transportation cost of 10 L of oil is ` 1 per km. How
should that delivery be scheduled in order that the transportation cost is
minimum? What is the minimum cost?
Let x and y L of oil be supplied from A to petrol pumps D and E. Then,
( 7000 − x − y ) will be supplied from A to petrol pump F. Frame equations
by using constraints and plot them on a graph. Find the triangle region
and find out the corner points along with value of Z at each corner point.
observe to the minimum value.
Solution Let x and y L of oil be supplied from A to the petrol pumps, D
and E. Then, A
(7000 − x − y) will be 7000 L 70 `
supplied from A to x 00 3
petrol pump F. The y –x
`7 `6 –y
requirement at petrol
pump D is 4500 L. D E F
Since, x L are 4500 L 3000 L 3500 L
transported from depot (3000 – y) ` 4
` 0
A, the remaining 45 3 50
00 –3
(4500 − x) L will be –x y
B x+ `2
transported from petrol
pump B. 4000 L
Similarly, (3000 − y) L and 3500 − (7000 − x − y) = (x + y − 3500) L will be
transported from depot B to petrol pump E and F respectively. The given
problem can be represented diagrammatically as follows:
692 www.arihantbooks.com
2000
3000
4000
5000
6000
7000
8000
180
160
B(20, 140)
140
120
80
60 A(140, 50)
40
20
X' X
O 30 60 90 120 150 180 210 240 270
(0, 0)
x + 2y = 240
Y' 3x + 1.5y = 270 1.5x + 2y = 310
NCERT Class XII Mathematics Solutions 695
Since, x, y ≥ 0
So, the feasible region lies in the first quadrant.
Let Z be the total cost.
On solving equations 1.5x + 2y = 310 and x + 2y = 240, we get
A(140, 50)
Similarly, on solving equations 3x + 1.5y = 270 and 1.5x + 2y = 310,
we get B(20, 140).
∴ Feasible region is ABCA.
The corner points of the feasible region are A(140, 50), B(20, 140) and
C(40, 100).
Corner point Z = 3 x + 3.5 y
A(140, 50) 595
B(20, 140) 550
C(40, 100) 470 → Minimum
The minimum value of Z is 470 at C(40, 100).
Thus, 40 bags of brand P and 100 bags of brand Q should be added to the
garden to minimize the amount of nitrogen.
The minimum amount of nitrogen added to the garden is 470 kg.
Question 9. A fruit grower can use two types of fertilizer in his garden,
brand P and brand Q. The amounts (in kg) of nitrogen, phosphoric acid,
potash and chlorine in a bag of each brand are given in the table. Tests
indicate that the garden needs atleast 240 kg of phosphoric acid, atleast
270 kg of potash and atmost 310 kg of chlorine. If the grower wants to
maximize the amount of nitrogen added to the garden, how many bags of
each brand should be added? What is the maximum amount of nitrogen
added?
Brand P Brand Q
Nitrogen 3 3.5
Phosphoric acid 1 2
Potash 3 1.5
Chlorine 1.5 2
Solution Let the fruit grower mixes x bags of brand P and y bags of
brand Q. Construct the following table:
Amount of
Brand of Number of Amount of Amount of Amount of
phosphoric
fertilizer bags nitrogen potash chlorine
acid
P x 3x 1x 3x 1.5x
Q y 3.5y 2y 1.5y 2y
Total x+ y 3x + 3.5 y x + 2y 3x + 1.5 y 1.5x + 2 y
Our problem is to minimize
Z = 3x + 3.5y …(i)
Subject to the constraints are x + 2y ≥ 240 …(ii)
3x + 1.5y ≥ 270 …(iii)
1.5x + 2y ≤ 310 …(iv)
696 www.arihantbooks.com
x ≥ 0, y ≥ 0 …(v)
Firstly, draw the graph of the line x + 2y = 240
x 0 240
y 120 0
Putting (0, 0) in the inequality x + 2y ≥ 240, we have
0 + 2 × 0 ≥ 240 ⇒0 ≥ 240 (which is false)
So, the half plane is away from the origin.
Secondly, draw the graph of the line 3x + 1.5y = 270
x 0 90
y 180 0
Putting (0, 0) in the inequality 3x + 1.5y ≥ 270, we have
3 × 0 + 1.5 × 0 ≥ 270 ⇒ 0 ≥ 270 (which is false)
So, the half plane is away from the origin.
Thirdly draw the graph of the line 1.5x + 2y = 310
x 0 620/3
y 155 0
Putting (0, 0) in the inequality 1.5x + 2y ≤ 310, we have
1.5 × 0 + 2 × 0 ≤ 310 ⇒ 0 ≤ 310 (which is true)
So, the half plane is towards the origin.
The intersection point of lines 3x + 1.5y = 270 and 1.5x + 2y = 310 is
B(20, 140); of lines 1.5x + 2y = 310 and x + 2y = 240 is A (140, 50); of lines
x + 2y = 240 and 3x + 1.5y = 270 is C(40, 100).
Y
200
180
160
B(20, 140)
140
120
80
60 A(140, 50)
40
20
X
O 30 60 90 120 150 180 210 240 270
(0, 0)
x + 2y = 240
1.5x + 2y = 310
3x + 1.5y = 270
NCERT Class XII Mathematics Solutions 697
Since, x, y ≥ 0
So, the feasible region lies in the first quadrant.
Let Z be the total cost.
The corner points of the feasible region are C(40, 100), A(140, 50) and
B (20, 140). The values of Z at these points are as follows:
Corner point Z = 3 x + 3.5 y
A(140, 50) 595 → Minimum
B(20, 140) 550
C(40, 100) 470
1200
100
200
400
600
800
1000
1400
1600
The point of x = 2y
(0, 0) x – 3y = 600
intersection of lines x + y = 1200
x − 3y = 600 and
x + y = 1200 is B(1050, 150); of lines x = 2y and x + y = 1200 is C (800, 400).
Let Z be the total profit, then
Z = 12x + 16y
∴ Feasible region is OABCO.
The corner points of the feasible region are A(600, 0), B(1050, 150) and
C(800, 400). The values of Z at these points are as follows:
Corner point Z = 12 x + 16 y
A(600, 0) 7200
B(1050, 150) 15000
C(800, 400) 16000 → Maximum
Step I Let the man rides x km at the speed of 50 km/h and y km at the
speed of 80 km/h.
The total distance travelled is x + y, which we have to maximize under
certain constraints.
The objective function is Z = x + y
To find constraints (cost and time)
Given, the cost of 1 km at the speed of 50 km/h = ` 2
∴The cost of x km at the speed of 50 km/h = 2x
Given, the cost of 1 km at the speed of 80 km/h = ` 3
∴The cost of y km at the speed of 80 km/h = 3y
So, total cost of travelling(x + y) km = 2x + 3y. Given that the rider has
` 120 to spend. Hence, 2x + 3y ≤ 120
Time constraint —
Total available time = 1 h
Time to travel a distance of 50 km = 1 h
x
∴Time to travel a distance of x km = h
50
Also, time to travel a distance of 80 km = 1 h
y
∴ Time to travel a distance of y km = h
80
Hence, the inequation representing time constraint is,
x y
+ ≤ 1 ⇒ 80x + 50y ≤ 4000 ⇒ 8x + 5y ≤ 400
50 80
To sum up the mathematical formulation of LPP is
To maximize Z=x+y …(i)
Subject to the constraints are 2x + 3y ≤ 120 …(ii)
8x + 5y ≤ 400 …(iii)
x, y ≥ 0 …(iv)
Firstly, draw the graph of the line 2x + 3y = 120
x 0 60
y 40 0
Putting (0, 0) in the inequality 2x + 3y ≤ 120, we have
2 × 0 + 3 × 0 ≤ 120 ⇒ 0 ≤ 120 (which is true)
So, the half plane is towards the origin.
Secondly, draw the graph of the line 8x + 5y = 400
x 0 50
y 80 0
Putting (0, 0) in the inequality 8x + 5y ≤ 400, we have
8 × 0 + 5 × 0 ≤ 400 ⇒ 0 ≤ 400 (which is true)
So, the half plane is towards the origin.
Since, x, y ≥ 0
700 www.arihantbooks.com
90
80
70
60
50
40 C(0, 40)
30
20
B(300/7, 80/7)
10
A(50, 0)
X
O 10 20 30 40 50 60 70 80 90 100
(0, 0)
2x + 3y = 120
8x + 5y = 400
Y
100
90
80
70
60
50
A(0, 45)
40
B(25, 30)
30
20
10
C(40, 0)
X
O 10 20 30 40 50 60 70 80 90 100
(0, 0)
2x + y = 80 3x + 5y = 225
The corner points of the feasible region are O(0, 0) A (0, 45), B(25, 30) and
C(40, 0). The values of Z at these points are as follows:
Corner point Z = 1000 x + 500 y
O(0, 0) 0
A(0, 45) 22500
B(25, 30) 40000 → Maximum
C(40, 0) 40000 → Rejected
x 0 128
y 160 0
x 0 80
y 200 0
x 0 160
y 120 0
Y
200 D(0, 200)
180
160
140
120 C(32, 120)
100
80
B(80, 60)
60
40
20
A(160, 0)
X
O 20 40 60 80 100 120 140 160 180 200
(0, 0)
5x + 4y = 640 3x + 4y = 480
5x + 2y = 400
The corner points of the feasible region are A(160, 0), B(80, 60), C(32, 120)
and D(0, 200). The values of Z at these points are as follows:
Corner point Z = 12000 x + 15000 y
C(32, 120) 2184000
B(80, 60) 1860000 → Minimum
A(160, 0) 1920000
D(0, 200) 3000000
So, factory I should be operated for 80 days and factory II should be
operated for 60 days.