Skip to content
Check Your Progress · Q2

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.

Puducherry CbseNCERTSubjective· 3mImportance★★★★★
68% · 15/22 Questions
✓ Free question

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 Z=5x1+2.5x2Z = 5x_1 + 2.5x_2 subject to 2x1+4x2≥402x_1 + 4x_2 \ge 40, 3x1+2x2≥503x_1 + 2x_2 \ge 50, x1,x2≥0x_1, x_2 \ge 0.

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 x1x_1 = number of units of food F1 to purchase
  • Let x2x_2 = number of units of food F2 to purchase

Now I'll organize the given data in a table to see the structure clearly:

FoodVitamin A (units)Vitamin B (units)Cost (₹)
F1 (x1x_1)235
F2 (x2x_2)422.5
Minimum Required4050—

Formulating the Linear Programming Problem

1. Objective Function (What to Minimize)

The total cost is the sum of costs from both foods:

Z=5x1+2.5x2Z = 5x_1 + 2.5x_2

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 2x1+4x22x_1 + 4x_2. This must be at least 40 units:

2x1+4x2≥402x_1 + 4x_2 \ge 40

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:

3x1+2x2≥503x_1 + 2x_2 \ge 50

4. Non-negativity Constraints

We cannot purchase negative quantities of food:

x1≥0,x2≥0x_1 \ge 0, \quad x_2 \ge 0

Complete LPP Formulation:

Minimize Z=5x1+2.5x2subject to 2x1+4x2≥403x1+2x2≥50x1,x2≥0\begin{aligned} \text{Minimize } Z &= 5x_1 + 2.5x_2 \\ \text{subject to } 2x_1 + 4x_2 &\ge 40 \\ 3x_1 + 2x_2 &\ge 50 \\ x_1, x_2 &\ge 0 \end{aligned}

Tip

In diet problems, the constraints are typically "≥\ge" (at least this much nutrient), while in production problems they're usually "≤\le" (at most this much resource available). The direction of the inequality tells you the nature of the problem.

Watch out

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 "≥\ge" 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.

✓Final answer

The linear programming formulation is: Minimize Z=5x1+2.5x2Z = 5x_1 + 2.5x_2 subject to 2x1+4x2≥402x_1 + 4x_2 \ge 40, 3x1+2x2≥503x_1 + 2x_2 \ge 50, and x1,x2≥0x_1, x_2 \ge 0, where x1x_1 and x2x_2 are the units of foods F1 and F2 respectively.

Note

The book's printed answer key writes the Vitamin-A constraint as 2x+4y≥02x+4y\ge 0. That is a misprint: the question states the minimum daily Vitamin-A requirement is 4040 units, so the constraint must be 2x+4y≥402x+4y\ge 40 (a "≥0\ge 0" constraint would be vacuous, since x,y≥0x,y\ge 0 already forces 2x+4y≥02x+4y\ge 0). The formulation above uses the correct value, 2x+4y≥402x+4y\ge 40.

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.