A diet for a sick person must contain at least 4000 units of vitamins, 50 units of minerals and 1400 calories. Two foods and are available at a cost of ₹ 4 and ₹ 3 per unit, respectively. One unit of food contains 200 units of vitamins, 1 unit of minerals and 40 calories while one unit of food contains 100 units of vitamins, 2 units of minerals and 40 calories. Find what combinations of foods and should be used to have least cost, satisfying the requirements.
Linear Programming · Question 25 of 47
A diet for a sick person must contain at least 4000 units of vitamins, 50 units of minerals and 1400 calories.
Solution:
Key idea: To solve an LPP graphically we choose the decision variables, write the objective function and the constraints, draw the feasible region, find its corner points and evaluate the objective function at each corner (corner point method). For a bounded region the best corner value is the optimum. For an unbounded region, the smallest corner value is the minimum only if the open half-plane has no point in common with the region; we check this by writing as a sum of the constraint expressions with positive multipliers.
Step 1 — Choose the decision variables.
Let the diet contain units of food and units of food .
Step 2 — Write the objective function.
Food costs ₹ 4 and food costs ₹ 3 per unit, so the cost (in ₹) is
This cost is to be minimized.
Step 3 — Write the constraints.
The table shows what one unit of each food gives and the minimum needed.
| Minimum needed | |||
|---|---|---|---|
| Vitamins | 200 | 100 | 4000 |
| Minerals | 1 | 2 | 50 |
| Calories | 40 | 40 | 1400 |
The vitamins give ; dividing by 100,
The minerals give
The calories give ; dividing by 40,
The amounts of food cannot be negative, so and .
Step 4 — Draw the feasible region.
The line passes through and , the line through and , and the line through and .
The origin satisfies none of the three inequalities, so the region lies on the far side of all three lines.
It is unbounded.

Step 5 — Find the corner points.
Corner is where meets the -axis, so is .
Corner is where the lines and meet.
Subtracting the second from the first gives
Then , so and is .
Corner is where the lines and meet.
Subtracting the first from the second gives
Then , so and is .
Corner is where meets the -axis, so is .
Step 6 — Evaluate Z at the corners.
We put each corner into .
| Corner point | |
|---|---|
| minimum | |
The smallest corner value is 110, at .
Step 7 — Check the unbounded region.
We write using the two constraints that meet at .
In the region, and , so
So the half-plane has no point in common with the region, and 110 is the minimum.
Therefore, the cost is least when the diet contains 5 units of food and 30 units of food , and the minimum cost is ₹ 110.
