Unit II (LPP)
Unit II (LPP)
Unit II (LPP)
Constraints
a11x1 + a12x2 + ....... + a1nxn ≤ b1
a21x1 + a22x2 + ....... + a2nxn ≤ b2 n
∑aijxj ≤ bi
. or j=1
Non-negative restrictions
or xj ≥ 0
x1, x2, ....... xn ≥ 0
for i = 1,2. ..., n
Formulate a LPP
Example 1: Consider a chocolate manufacturing company
that produces only two types of chocolate – A and B. Both
the chocolates require Milk and Choco only. To manufacture
each unit of A and B, the following quantities are required:
• Each unit of A requires 1 unit of Milk and 3 units of Choco
• Each unit of B requires 1 unit of Milk and 2 units of Choco
The company kitchen has a total of 5 units of Milk and 12
units of Choco. On each sale, the company makes a profit of
• Rs 6 per unit A sold
• Rs 5 per unit B sold.
Now, the company wishes to maximize its profit. How many
units of A and B should it produce respectively?
Formulate a LPP
Solution:
Profit per
Milk Choco
unit
A 1 3 Rs 6
B 1 2 Rs 5
Total 5 12
Let the total number of units produced by A be = X
Let the total number of units produced by B be = Y
Now, the total profit is represented by Z
The total profit the company makes is given by the
total number of units of A and B produced
multiplied by its per-unit profit of Rs 6 and Rs 5
respectively.
Profit: Max Z = 6X+5Y
which means we have to maximize Z.
The company will try to produce as many units of A
and B to maximize the profit. But the resources
Milk and Choco are available in a limited amount.
X+Y ≤ 5
Also, each unit of A and B requires 3 units & 2
units of Choco respectively. The total amount of
Choco available is 12 units. To represent this
mathematically,
3X+2Y ≤ 12
Also, the values for units of A can only be integers.
So we have two more constraints, X ≥ 0 & Y ≥ 0
For the company to make maximum profit, the
above inequalities have to be satisfied.
This is called formulating a real-world problem
into a mathematical model.
Formulate a LPP
Example 2: Food X contains 6 units of vitamin A per
gram and 7 units of vitamin B per gram and cost 12
paise per gram. Food Y contains 8 units of vitamin A
per gram and 12 units of vitamin B per gram and
costs 20 paise per gram. The daily minimum
requirement of vitamin A and vitamin B is 100 units
and 120 units respectively. Formulate the LPP for
minimum cost.
Formulate a LPP
Solution:
Step I: The data of the problem can be represented
in tabular form as:
Cost 12 20
Formulate a LPP
Step II: Decision Variables: Let assume mix x1 gram
of food X and x2 gram of food Y for getting
minimum requirements of vitamin A and B in
minimum cost.
Step III: Objective Function: Food X costs 12 paise
per gram so cost of x1 gram is 12x1 and food Y costs
20 paise per gram so cost of x2 gram is 20x2. thus
total cost of food X and Y is (12x1 + 20x2) paise
which we wan to minimize. Therefore,
Minimize Z = (12x1 + 20x2) paise or
Minimize Z = 0.12x1 + 0.20x2 (in rupees)
Formulate a LPP
Step IV: Constraints: Food X contains 6 units of
vitamin A and food Y contains 8 units of vitamin A.
Thus, total vitamin A available by x1 units of food X
and x2 units of food Y is (6x1 + 8x2) which should not
be less than 100 gram daily. Therefore, it can be
expressed as
6x1 + 8x2 ≥ 100 (more than or equals to 100 units)
Similarly, the inequality for vitamin B
7x1 + 12x2 ≥ 120 (more than or equals to 120 units)
Formulate a LPP