A firm is engaged in breeding pigs. The pigs are fed on various products grown on the farm. In view of the need to ensure certain nutrients constituents (call them X, Y and Z), it is necessary to buy two additional products, say A and B. One unit of product A contains 36 units of nutrient X, 3 units of nutrient Y and 20 units of nutrient Z. One unit of product B contains 6 units of nutrient X, 12 units of nutrient Y and 10 units of nutrient Z. The minimum requirement of nutrients X, Y and Z is 108 units, 36 units and 100 units respectively. Product A costs ₹20 per unit and product B costs ₹40 per unit. Formulate the above as a linear programming problem to minimize total cost.
The nutrient data can be tabulated as follows:
| Nutrient constituents | Nutrient content in product A | Nutrient content in product B | Minimum amount |
|---|---|---|---|
| X | 36 | 6 | 108 |
| Y | 3 | 12 | 36 |
| Z | 20 | 10 | 100 |
| Cost of product | Rs. 20 | Rs. 40 |
You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
Start your 14-day free trial to unlock the full solution →We need to decide how many units of products A and B to buy so that the pigs receive at least the required nutrients X, Y, and Z, while spending the least money. The LP formulation minimizes cost subject to three nutrient constraints and non-negativity.
Why Linear Programming?
The firm faces a classic resource-allocation problem: meet nutritional requirements at minimum cost. Linear programming is the natural tool because both the objective (total cost) and the constraints (nutrient requirements) are linear functions of the decision variables. We're not choosing between discrete options; we can buy fractional units of products, and every relationship scales proportionally.
The key insight is to translate "how much of each product?" into mathematical variables, then express every requirement as an inequality.
Step-by-Step Formulation
1. Define the decision variables
Let = number of units of product A to purchase, and = number of units of product B to purchase. These are the quantities we control.
2. Write the objective function
Product A costs ₹20 per unit and product B costs ₹40 per unit. Total cost is:
We want to minimize .
3. Formulate the nutrient constraints
Each product contributes nutrients in fixed proportions. The total amount of each nutrient must meet or exceed the minimum requirement.
Nutrient X: Product A contributes units, product B contributes units. We need at least 108 units:
Nutrient Y: Product A contributes units, product B contributes units. We need at least 36 units:
Nutrient Z: Product A contributes units, product B contributes units. We need at least 100 units:
4. Add non-negativity constraints
We cannot purchase negative quantities:
The Complete Linear Programming Problem
Minimize:
Subject to: …
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.