Question
Question: Every gram of wheat provides 0.1g of proteins and 0.25g of carbohydrates. The corresponding values o...
Every gram of wheat provides 0.1g of proteins and 0.25g of carbohydrates. The corresponding values of rice are 0.05g and 0.5g respectively. Wheat cost Rs.4 per kg and rice Rs.6. The minimum daily requirements of proteins and carbohydrates for an average child are 50g and 200g respectively. Then in what quantities should wheat and rice be mixed in the daily diet to provide a minimum daily requirement of proteins and carbohydrates at minimum cost.
Solution
We solve this by linear programming that is by drawing a graph of inequalities. Let ‘x’ grams of wheat are mixed and ‘y’ grams of rice are mixed. Using this we will get two inequities. We find the values by equating ‘x’ to zero, we get ‘y’ and vice versa. Plotting a graph we can find the minimum cost.
Complete step-by-step solution:
Let x gram of wheat and y grams of rice are mixed in a daily diet.
Given, every gram of wheat provides 0.1g of proteins and every gram of rice gives 0.05g of proteins. Therefore, x grams of wheat and y grams of rice will provide 0.1x+0.05y grams of proteins. But the minimum requirement of proteins is 50g.
That is, 0.1x+0.05y⩾50.
To get the simplified form multiply and divide by 100 on each term,
⇒0.1x×100100+0.05y×100100⩾50×100100
⇒10010x+1005y⩾50
Cancelling, we get,
⇒10x+20y⩾50 ----- (1)
Similarly xgrams of wheat and ygrams of rice will provide0.25x+0.5ygrams of carbohydrates and the minimum daily requirement is 200 grams.
That is, 0.25x+0.5y⩾200.
To get the simplified form multiply and divide by 100 on each term,
⇒0.25x×100100+0.5y×100100⩾200×100100
⇒10025x+10050y⩾200
Cancelling, we get:
⇒4x+2y⩾200 ----- (2)
Also quantities of wheat and rice will never be negative.
x⩾0and y⩾0
It is given that wheat costs Rs.4 per kg and rice Rs.6 per kg. So we have,
10004x+10006y=zminimum.
Subject to the constraints
10x+20y⩾50, 4x+2y⩾200, x⩾0, y⩾0.
Now to find the points ,
Put x=0 in equation (1) we have,
⇒100+20y=50
⇒20y=50
⇒y=1000. Thus we have (0, 1000).
Similarly put y=0 in equation (1)
⇒10x=50
⇒x=500. Thus we have (500, 0).
Similarly put x=0 in equation (2), we have:
⇒2y=200
⇒y=400. Thus we have (0, 400)
Similarly put y=0 in equation (2)
⇒4x=200
⇒x=800. Thus we have (800, 0).
Thus we have the points, (0,1000), (500,0), (0,400)and (800,0). Plotting a graph for this.
Scale: X-axis = 1 unit =100 units, Y-axis = 1 unit =100 units.
The values of the objective function at these points are given in the following table:
Corner points | Value of z=10004x+10006y |
---|---|
(800,0) | z=10004×800+10006×0=1032=3.2 |
(400,200) | z=10004×400+10006×200=1.6+1.2=2.8 |
(0,1000) | z=10004×0+10006×1000=6 |
Clearly, Z is minimum for x=400grams of wheat and y=200 grams of rice. The minimum cost is Rs.2.8
Note: All we did in above is converting the given word problem into inequality problems. As we know that we need a point to join a line, hence we find the inequality value at ‘x’ is zero and then at ‘y’ is zero. Also if they mention minimum we take greater than or equal to(⩾). If they mention maximum we take less than or equal to (⩽).