Linear Programing Problems
Linear Programing Problems
Net profit expected from each unit of the product are: P-Rs. 50 and Q-
Rs.40. Formulate the problem for solution to arrive at the optimal
number of the two products P and Q to be produced.
Solution:
Here, the problem obviously involves the maximization of
profits. Thus the formulation of the problem will be made in
the following order:
Step 1: Notation
Let Z = Total of maximum possible Net profit
X1 = No. of product P to be produced
No. of product Q to be produced
F = Foundry process
M = Machine shop process.
Step 2: Decision Table
In this step the given data will be arranged in a table in the following order:
Product Decision Variable F (process) units of M (process) units Net profit per unit
man hour of man hour (₹)
P X1 10 5 50
Q X2 6 4 40
Maximum Labour hours 1000 600 Units
available
P 4 1 0 2
Q 6 1 2 5
R 1 7 1 6
S 2 5 3 8
Minimum vitamin contents needed per feed mix in units :
A-12
B-14
C-8
Solution:
Step 1: Notations
Let Z = Total minimum possible costs
x1 = Decision variable for the feed P
x2 = Decision variable for the feed Q
x3 = Decision variable for the feed R
x4 = Decision variable for the feed S
Step 2: Decision Table
Feed Decision Units of vitamins A, B, C, in each feed Feed cost
variable (₹)
A B C
P x1 4 1 0 2
Q x2 6 1 2 5
R x3 1 7 1 6
S x4 2 5 3 8
Minimum Needed 12 14 8
Step 3: Construction of the different Linear Functions
(i) Objective Function
Minimize cost
Z= 2x1 +5x2 +6x3 +8x4
(ii) Constraint Functions
Vitamin A constraints
4x1 +6x2 + x3 +2x4 ≥ 12
Vitamin B constraints
x1 + x2 + 7x3 + 5x4 ≥ 14
Vitamin C constraints
0x1 +2x2 + x3 + 3x4 ≥ 8
(iii) Non-negative Function
x1, x2, x3, x4 ≥ 0
Step 4: Formulation of the L.P.P.
(Minimize cost) Z= 2x1 +5x2 +6x3 +8x4
Subject to the constraints
4x1 +6x2 + x3 +2x4 ≥ 12
x1 + x2 + 7x3 + 5x4 ≥ 14
0x1 +2x2 + x3 + 3x4 ≥ 8
and subject to the non-negative condition that
x1, x2, x3, x4 ≥ 0
Solution of the Formulated Problems
After a linear programming problem has been properly formulated, the
next step is to attempt at its solution to determine the values of the
different decisive variables, viz., x1,x2, x3 etc. depicted in the formulation of
the said linear programming problem.
Solution of the L.P.P. may be of three types, viz.
(1) FEASIBLE SOLUTION,
(2) NON-FEASIBLE SOLUTION, AND
(3 OPTIMAL SOLUTION.
Methods of Solution of L.P.P.
There are two methods of solving a linear programming involving
allocation of resources viz.,
(1) Graphic Method and
(2) Simplex Method
Graphic Method
Procedure for Graphic Solution:
1st Step: Formulation of the L.P.P.
2nd Step: Conversion of the constraints functions into the equations and determination of the
values of each of the variables under each equation by assuming the other variable to be zero.
3rd Step: Drawl of the 1st quadrants of the graph in which only positive values of both the
variables are plotted on the basis of the non-negativity condition,
i.e, x1,x2, ≥ 0.
4th Step : Plotting of each set of points on the graph for the pair of values obtained under each of
the equations and joining them differently by straight lines.
5th Step: Identification of the feasible region through shaded area which satisfies all the
constraints. For "less than or equal to constraints" such region will lie below all the constraint
lines but for "greater than or equal to constraints“ the said region will lie above all the constraint
lines.
6th Step: Location of the corner points or the extreme points of the feasible region.
7th Step: Evaluation of the objective function at each of the corner points through
the following table.
Evaluation Table
Fan X1 360 1 22
sewing machine X2 240 1 18
(ii) Formulation of L.P.P.
Maximize (Profit) Z = 22 X1 + 18 X2
Subject to Constraints :
(1) 360 X1 + 240 X2 ≤ 5760
(2) X1 + X2 ≤ 20 and
Subject to non-negativity condition
X1 , X 2 ≤ 0
2nd Step: Conversion of constraints into equations and determination of the values of
the ordinates.
(1) 360 X1 + 240 X2 = 5760
Here , When X1 = 0 X2 = 24
When X2 = 0 X1 = 16
(2) X1 + X2 = 20
Here , When X1 = 0 X2 = 20
When X2 = 0 X1 = 20
3rd to 6th Step .
Graphic Representation of the Constraints lines of the L.P.P.
7th Step: Evaluation of the Objective Function.
P 0 0 22 X 0 + 18 X 0 0
Q 0 20 22 X 0 + 18 X 20 360
R 8 12 22 X 8 + 18 X 12 392(Max)
S 16 0 22 X 16 + 18 X 0 352
Hence, the company should purchase 8 units of X1 i.e., Fan and 12 Units of X2
i.e., sewing machine to make the maximum profit of ₹. 392.
On Minimization
Illustration: A farmer is engaged in breeding pigs. The pigs are fed on various products
grown on the farm. Because of the need to ensure nutrients constituents, it is necessary to
buy additional one or two products, which we shall call A and B. The nutrient constituents
(vitamins and proteins) in each of the product are given below:
X 36 6 108
Y 3 12 36
Product A costs
Z ₹. 20 per unit and ₹. 40 per unit. Determine
20 product B costs 10 100how much of
products A and B must be purchased so as to provide the pigs nutrients not less than the
minimum required, at the lowest possible cost. Solve Graphically.
Solution:
Mathematical formulation of the above
Min: Z= 20 X1 + 40 X2 Cost Function
S.T. Constraints
36X1+ 6X2 ≥ 108
3X1 + 12X2 ≥ 36 Nutrient constraints
20X1 + 10X2 ≥ 100
Where X1, X2 ≥ 0 Non negativity
P X1 1 0 5
Q X1 0 1 8
Total 5 kg. Maximum ≤ 4 kg.
Minimum ≥ 2 kg
3. Formulation of L.P.P.
Minimize cost Z = 5 X1 + 8 X2
Subject to the constraints:
(i) X1 + X2= 5
(ii) X1 + 0X2 ≤ 4
(iii) 0X1 + X2 ≥2 and
Non-negativity condition that X1, X2 ≥0 .
4. Conversion of the constraints into equations and determination of the
values of the different sets of the coordinates.
(i) X1 + X2= 5
Here if X1 = 0 X 2= 5
if X2 = 0 X 1= 5
(ii) X1 + 0X2= 4
Here if X1 = 0, X2 ≥ 0 i.e., ∞ (infinity)
if X2 = 0 X 1= 4
(iii) 0X1 + X2= 2
Here if X1 = 0, X2 =2
if X2 = 0 X1 ≥ 2 i.e., ∞ (infinity)
5. Graphic Representation of the constraint lines of the L.P.P.
The above graph shows that there is no feasible region but has the feasible corner
points, viz., A and B which satisfy both the constraints X1≤4 and X2≥ 2. The corner
point 'C’ is not a feasible point as it does not satisfy the condition, X 2≥ 2.
A 3 2 5x3+8x2 31 (Min)
BFrom the above evaluation
4 table2it is clear that
5 x the
4 + 8optimal
x2 solution lies at
36
the Corner point A, since it has the minimum cost of ₹. 31.
Thus the minimum cost will be ₹. 31.