Skip to content
Worked Examples · Example 3
Q.

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 constituentsNutrient content in product ANutrient content in product BMinimum amount
X366108
Y31236
Z2010100
Cost of productRs. 20Rs. 40
Puducherry CbseNCERTSubjective· 3mImportance★★★★★
14% · 3/22 Questions
🔒 Locked · start free trial →

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 x1x_1 = number of units of product A to purchase, and x2x_2 = 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:

Z=20x1+40x2Z = 20x_1 + 40x_2

We want to minimize ZZ.

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 36x136x_1 units, product B contributes 6x26x_2 units. We need at least 108 units:

36x1+6x2≥10836x_1 + 6x_2 \geq 108

Nutrient Y: Product A contributes 3x13x_1 units, product B contributes 12x212x_2 units. We need at least 36 units:

3x1+12x2≥363x_1 + 12x_2 \geq 36

Nutrient Z: Product A contributes 20x120x_1 units, product B contributes 10x210x_2 units. We need at least 100 units:

20x1+10x2≥10020x_1 + 10x_2 \geq 100

4. Add non-negativity constraints

We cannot purchase negative quantities:

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


The Complete Linear Programming Problem

Minimize:

Z=20x1+40x2Z = 20x_1 + 40x_2

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.