A diet is to contain at least 80 units of vitamin and 100 units of minerals. Two foods and are available. Food costs ₹ 4 per unit and costs ₹ 5 per unit. A unit of food contains at least 3 units of vitamin and 4 units of minerals. A unit of food contains at least 6 units of vitamin and 3 units of minerals. Find the minimum cost for diet that consists of mixture of these two foods and also meets the minimal nutritional requirements. Formulate this as a linear programming problem.
Linear Programming · Question 8 of 47
A diet is to contain at least 80 units of vitamin A and 100 units of minerals.
Solution:
Key idea: A linear programming problem (LPP) has three parts: the decision variables (the quantities we choose), a linear objective function to be maximized or minimized, and linear constraints (the restrictions, including non-negativity). We build each part from the words of the question. A requirement of "at least" gives a "" constraint.
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 per unit and costs ₹ 5 per unit, so the cost of the diet (in ₹) is
This cost is to be minimized.
Step 3 — Arrange the nutrients in a table.
The table gives the units of each nutrient in one unit of each food and the minimum needed.
| Minimum needed | |||
|---|---|---|---|
| Vitamin | 3 | 6 | 80 |
| Minerals | 4 | 3 | 100 |
Step 4 — Write the nutrient constraints.
The diet gives units of vitamin , which must be at least 80.
The diet gives units of minerals, which must be at least 100.
Step 5 — Add the non-negativity conditions.
The amounts of food cannot be negative.
Step 6 — Collect the LPP.
We write the objective function and the constraints together.
Note: The question says each food contains "at least" the stated amounts; we use the stated amounts as the exact contents, which is the usual reading and the safe one (any extra only helps to meet the requirement).
Therefore, the LPP is: minimize subject to , , and .
