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 1 kg of fat assuming that there is no shortage of the other ingredients used in making the cakes.
Let x be number of cakes of one kind and y be the number of cakes of other kind. Construct the following table :
KindNumber of cakesFlour required(in g)Fat required(in g)(in g)Ix200x25xIIy100y50yTotalx+y200x+100y25x+50yRequirement50001000
Our problem is to maximize Z = x + y ......(i)
Subject to constraints are 200x+100y≤5000⇔2x+y≤50 .............(ii)
25x+50y≤1000⇔x+2y≤40 .........(iii)
and x, y ≥ 0 ...........(iv)
Firstly, draw the graph of the lines 2x + y = 50
x025y500
Putting (0, 0) in the inequality 2x + y ≤ 50, we have
2×0+0≤50⇒0≤50 (which is true)
So, the half plane is towards the origin.
Secondly, draw the graph of the line x + 2y = 40
x040y200
Putting (0, 0) in the inequality x + 2y ≤ 40, we have
0+2×0≤40
⇒0≤40 (which is true)
So, the half plane is towards the origin.
Since, x, y ≥ 0
So, the feasible region lies in the first quadrant.
On solving equations 2x+y=50 and x + 2y = 40, we get B(20, 10)
∴ 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:
Corner pointZ=x+y0(0,0)0A(25,0)25B(20,10)30→MaximumC(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 .