Let x units of food A and y units of food B be used where x ≥ 0, y ≥ 0.
Let z be the total cost.
Table
Food |
Weight |
Vitamins |
Minerals |
Calories |
Cost (Rs.) |
A |
x |
200x |
x |
40x |
5x |
B |
y |
100y |
2y |
40y |
4y |
Total |
200x + 100y |
x + 2 y |
40x + 40y |
5x + 4y |
We are to minimise
z = 5x + 4y
subject to the constraints
200x + 100y ≥ 4000 i.e. 2x + y ≥ 40
x + 2y ≥ 50
40x + 40y ≥ 1400 i.e. x + y ≥ 35
x ≥ 0, y ≥ 0
Consider a set of rectangular cartesian axes OXY in the plane.
It is clear that any point which satisfies x ≥ 0, y ≥ 0 lies in the first quadrant.
Now we draw the graph of 2 x + y = 40
For x = 0, y = 40
For y = 0, 2 x = 40 or x = 20
∴ line meets OX in A(20, 0) and OY in L(0, 40).
Again we draw the graph of
x + 2y = 50
For x = 0, 2y = 50 or y = 25
For y = 0, x = 50
∴ line meets OX in B(50, 0) and OY in M(0, 25).
Again we draw the graph of
x + y = 35
For x = 0, y = 35
For y = 0, x = 35
∴ line meets OX in C(35, 0) and OY in N(0, 35).
Since feasible region satisfies all the constraints.
∴ shaded region is the feasible region, which is unbounded , and corner points are B(50, 0), D(20, 15), E(5, 30), L(0, 40).
At B(50, 0), z = 5(50) + 4(0) = 250 + 0 = 250
At D(20, 15), z = 5(20) + 4(15) = 100 + 60 = 160
At E(5, 30), z = 5(5) + 4(30) = 25 + 120 = 145
At L(0, 40), z = 5(0) + 4(40) = 0 + 160 = 160
∴ least cost = Rs. 145 at (5, 30)
Since feasible region is unbounded.
∴ we are to check whether this cost is minimum.
For this we draw the graph of
5x + 4y < 145 ...(1)
Since (1) has no common point with feasible region.
∴ minimum cost = Rs. 145 at (5, 30)
∴ minimum cost is Rs. 145 when 5 units of food A and 30 units of food B are used.
A diet is to contain at least 80 units of vitamin A and 100 units of minerals. Two foods F1 and F2 are available. Food F1 costs Rs 4 per unit food and F2 costs Rs 6 per unit. One unit of food F2 contains 3 units of vitamin A and 4 units of minerals. One unit of food F2 contains 6 units of vitamin A and 3 units of minerals. Formulate this as a linear programming problem. Find the minimum cost for diet that consists of mixture of these two foods and also meets the minimal nutritional requirements.