Q.Vitamins A and B are found in two different foods F1 and F2. One unit of food F1 contains two units of Vitamin A and 3 units of Vitamin B, one unit of food F2 contains 4 units of Vitamin A and 2 units of Vitamin B, one unit of food F1 and F2 cost ₹ 5 and ₹ 2.5 respectively. The minimum daily requirements for a person of Vitamin A and B are 40 and 50 units respectively. Assuming that anything in excess of daily minimum requirement of Vitamin A and B is not harmful, find out the optimum mixture of food F1 and F2 at the minimum cost which meets the daily minimum requirement of Vitamin A and B. Formulate this problem as an LPP.
This is a diet problem in linear programming: minimize the cost of foods F1 and F2 subject to meeting minimum vitamin requirements. The LPP is: Minimize subject to , , .
Why Linear Programming?
We want to decide how much of each food to buy so that we spend the least money while still getting enough vitamins. This is a classic resource allocation problem: our "resources" are the two foods, each contributing different amounts of vitamins at different costs. Because both the cost function and the vitamin constraints are linear in the quantities purchased, we can model this as a linear programming problem.
The key insight: we're not trying to get exactly the required vitamins (which might be impossible), but at least the required amounts. Excess vitamins are harmless, so our constraints are inequalities, not equations.
Setting Up the Problem
Let me define the decision variables first, then translate each piece of information into mathematics.
Decision Variables:
- Let = number of units of food F1 to purchase
- Let = number of units of food F2 to purchase
Now I'll organize the given data in a table to see the structure clearly:
| Food | Vitamin A (units) | Vitamin B (units) | Cost (₹) |
|---|---|---|---|
| F1 () | 2 | 3 | 5 |
| F2 () | 4 | 2 | 2.5 |
| Minimum Required | 40 | 50 | — |
Formulating the Linear Programming Problem
1. Objective Function (What to Minimize)
The total cost is the sum of costs from both foods:
We want to minimize this cost.
2. Vitamin A Constraint
Each unit of F1 gives 2 units of Vitamin A, and each unit of F2 gives 4 units. The total Vitamin A obtained is . This must be at least 40 units:
3. Vitamin B Constraint
Similarly, F1 contributes 3 units and F2 contributes 2 units of Vitamin B per unit of food. The total must be at least 50 units:
4. Non-negativity Constraints
We cannot purchase negative quantities of food:
Complete LPP Formulation:
In diet problems, the constraints are typically "" (at least this much nutrient), while in production problems they're usually "" (at most this much resource available). The direction of the inequality tells you the nature of the problem.
A common mistake is to write the constraints as equalities (). But the problem explicitly states that excess vitamins are not harmful, meaning we only need to meet the minimum requirement. Using "" gives us the flexibility to exceed requirements if that leads to lower cost.
Interpretation
The formulation captures the trade-off: F1 is more expensive (₹5 vs ₹2.5) but provides more Vitamin B per unit, while F2 is cheaper and richer in Vitamin A. The optimal solution will balance these trade-offs to meet both vitamin requirements at minimum cost. To solve this, you would graph the feasible region (the area satisfying all constraints), identify the corner points, and evaluate the objective function at each—the minimum value gives the optimal diet mix.
The linear programming formulation is: Minimize subject to , , and , where and are the units of foods F1 and F2 respectively.
The book's printed answer key writes the Vitamin-A constraint as . That is a misprint: the question states the minimum daily Vitamin-A requirement is units, so the constraint must be (a "" constraint would be vacuous, since already forces ). The formulation above uses the correct value, .
Unlock everything free for 14 days
- Full step-by-step solutions
- Concept-first explanations
- Methods, shortcuts & mistakes
- PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.