Chapter II or
Chapter II or
LINEAR PROGRAMMING
Diagrammatically,
Resource
constraints
Objectives Constraints
Non-negativity
Constraints
Optimization
Maximization Minimization
LP is a method for choosing the best alternative from a set of feasible alternatives
To apply LP, the following conditions must be satisfied:
a. Objective Function
:Is the goal or objective of a management, stated as an intent to maximize or to
minimize some important quantity such as profits or costs.
b. Constraints
: Are limitations or restrictions imposed by the problems. And constraints include:
1. Resource constraints
: Are restrictions that should be clearly identifiable and measurable in quantitative
terms, which arise from limitation of available resources.
1
Examples of limited resources:
Plant capacity
Raw materials availability
Labor power
Market demand, etc
2. Non-negativity constraints:
: Are constraints that require the decision variables not to take on negative values
c. Linearity
The Objective Function and the constraints must be linear in nature in order to have a
Linear Programming Problems (LPP)
d. Feasible alternative
There should be a series of feasible alternative course of action available to the
decision-making determined by resource constraints. Thus, we have to choose the
best alternative
Linear Programming Problems can be solved by using:
i. The Geometric method called” Graphical Method”
ii. The Algebraic method called” Simplex Method”
2.1. FORMULATION OF LP
Decision variables are the variables whose values are unknown and are searched
The coefficients of the variables in the Objective Function are called the profit or cost
coefficients. They express the rate at which the value of the Objective Function
increases or decreases by including in the solution one unit of each of the decision
variables.
The coefficients of the constraints’ variables are called the input- output coefficients
that indicate the rate at which the given resources are depleted or utilized.
Example:
Max.Z 50 X 180 X 2
St :
X 12 X 2 32
X 12 X 2 82
X1, X 2 0
2
2.2. GRAPHICAL SOLUTION
To use the graphic method, the following steps are needed:
1. Identify the problem
i.e: The decision variables, the objective function and the constraints
2. Draw a graph including all the constraints and identify the feasible region
3. Obtain a point on the feasible region that optimizes the objective function-
Optimal solution
4. Interprite the results
A Maximization Problem
==>Maximize Z with inequalities of constraints in < form
Example: Consider two models of color TV sets; Model A and B, are produced by a
company to maximize profit. The profit realized is $300 from A and $250 from set B.
The limitations are
a. availability of only 40hrs of labor each day in the production department.
b. a daily availability of only 45 hrs on machine time
c. ability to sale 12 set of model A.
How many sets of each model will be produced each day so that the total profit will
be as large as possible?
Labor hr. 2 1 40
Machine hr. 1 3 45
Marketing hr. 1 0 12
Solution
1. Formulation of mathematical modeling of LPP
Max Z=300X1 +250X2
St:
2X1 +X2< 40
X1 +3X2< 45
LPP Model
X1 < 12
X1, X2 >0
3
2. Convert constraints inequalities into equalities
2X1 +X2 = 40
X1 +3X2= 45
X1 = 12
3. Draw the graph by intercepts
2X1 +X2 = 40 ==> (0, 0) and (20, 0)
X1 +3X2= 45==> (0, 15) and (45, 0)
X1 = 12==> (12, 0)
X1, X2 =0
2X1 +X2 = 40
X2
X1=0
40 X1=12
X1 +X2 = 45
15
4. Identify the feasible area of the solution which satisfies all constrains.
5. Identify the corner points in the feasible region
A (0, 0), B (0, 15), C (12, 11) and D (12, 0)
6. Identify the optimal point
7. Interprete the result
Interpretation:
12 units of product A and 11 units of product B should be produced so that the total
profit will be $6350.
Exercise:
4
A manufacturer of light weight mountain tents makes two types of tents, REGULAR
tent and SUPER tent. Each REGULAR tent requires 1 labor-hour from the cutting
department and 3labor-hours from the assembly department. Each SUPER tent
requires 2 labor-hours from the cutting department and 4 labor-hours from the
assembly department .The maximum labor hours available per week in the cutting
department and the assembly department are 32 and 84 respectively. Moreover, the
distributor, because of demand, will not take more than 12 SUPER tents per week. The
manufacturer sales each REGULAR tents for $160 and costs$110 per tent to make.
Where as SUPER tent ales for $210 per tent and costs $130 per tent to make.
Required:
A. Formulate the mathematical model of the problem
B. Using the graphic method, determine how many of each tent the company should
manufacture each tent the company should manufacture each week so as to
maximize its profit?
C. What is this maximum profit assuming that all the tents manufactured in each
week are sold in that week?
Solution
_____________________________________________________________________
Labor hours per tent
Department REGULAR (X1) SUPER(X2) Maximum labor-hours available
per week
_____________________________________________________________________
Cutting department 1 2 32
Assembly department 3 4 84
Selling price per tent $160 $210
Cost per tent $110 $130
Profit per tent $50 $80
*The distributor will not take more than 12 SUPER tents per week. Thus, the
manufacturer should not produce more than 12 SUPER tents per week.
Let X1 =The No of REGULAR tents produced per week.
X2 =The No of SUPER tents produced per week.
X1 and X2 are called the decision variables
5
Max.Z 50 X 180 X 2
St :
X 12 X 2 32 ……….Cutting department constraint
LPP Model
X 14 X 2 82 ……….Assembly department constraint
X 2 12 ……….Demand constraint
Interpretation:
The manufacturer should produce and sale 20 REGULAR tents and 6 SUPERS tents
to get a maximum weekly profit of $1480.
B Minimization Problem
==>Minimize Z with inequalities of constraints in > form
Example:
Suppose that a machine shop has two different types of machines; machine 1 and
machine 2, which can be used to make a single product .These machine vary in the
amount of product produced per hr., in the amount of labor used and in the cost of
operation.
Assume that at least a certain amount of product must be produced and that we
would like to utilize at least the regular labor force. How much should we utilize
each machine in order to utilize total costs and still meets the requirement?
6
Solution
________________________________________________________________
Resource used
Machine 1 (X1) Machine (X2) Minimum required hours
_____________________________________________________________________
Min.Z 25 X 130 X 2
St :
20 X 115 X 2 100 LPP Model
2 X 13 X 2 15
X1, X 2 0
Constraint equation:
20X1 +15X2=100 ==> (0, 20/3) and (5, 0)
2X1+3X2=15 ==> (0, 5) and (7.5, 0)
X1 X2> 0
X2
X1 =0
A (0, 20/3)
Feasible Region
B (2.5, 3.33)
X2 =0
X1
5 C (7.5, 0)
______________________________________________________________________________________________
Corners Coordinates MinZ=25 X1 + 30X2
A (0, 20/3) 200
7
X1 =2.5
X2=3.33 and
MinZ= 162.5
Exercise:
A company owns two flour mills (A and B) which have different production
capacities for HIGH, MEDIUM and LOW grade flour. This company has entered
contract supply flour to a firm every week with 12, 8, and 24 quintals of HIGH,
MEDIUM and LOW grade respectively. It costs the Co. $1000 and $800 per day to run
mill A and mill B respectively. On a day, mill A produces 6, 2, and 4 quintals of
HIGH, MEDIUM and LOW grade flour respectively.
Mill B produces 2, 2 and 12 quintals of HIGH, MEDIUM and LOW grade flour
respectively. How many days per week should each mill be operated in order to meet
the contract order most economically standardize? Solve graphically.
Solution:
No of days per week of Minimum flour in
Mil A (X1) Mill B(X2) quintals
HIGH Capacity (in quintal) 6 2 12
MEDIUM Capacity (in quintal) 2 2 8
LOW Capacity (in quintal) 4 12 24
$1000 $800
8
X1 =1
X2=3 and
MinZ= $3400
X2
X1 =0
6 6X1+2 X2=12
2X1+2 X2=8
4 FR
4X1+12 X2=24
(1, 3)
(3, 1)
X2 =0
X1
2 4 6
Note:
-In maximization problems, our point of interest is looking the furthest point from the
origin.
-In minimization problems, our point of interest is looking the point nearest to the
origin.
Example:
A firm is engaged in producing two products A and B .Each unit of product A
requires 2Kg of raw material and 4 labor-hrs for processing. Where as each unit of
product B requires 3Kg of raw materials and 3hrs of labor. Every unit of product
A requires 4 hrs for packaging where as B needs 3.5hrs. Every week the firm has
availability of 60Kg of raw material, 96 labor-hours and 105 hrs in the packaging
department.
[
9
1 unit of product A sold yields $40 profit and 1 unit of B sod yields $35 profit.
Required:
a. Formulate this problem as a LPP
b. Find the optimal solution
Solution
__________________________________________________________________
Products Resource available
Resources A B per week
_____________________________________________________________________
Max.Z 40 X 135 X 2
St :
2 X 13 X 2 60
4 X 13 X 2 96
4 X 1 3.5 X 2 105
X1, X 2 0
10
X2
(0, 32)
(0, 30)
Packaging: 4X1 +3.5X2 = 105
(0, 20) C (18,8)
Raw material: 2X1 +3X2 = 60
FR
X1
A (0, 0) D (24, 0) (26, 0) (30, 0)
Interpretation:
The company should produce and sale 18 units of product A and 8 units of product B
per week so as to get a maximum profit of 1000.
By this production plan the entire raw material will be consumed.
2X1 +3X2 <60
2(18) +3(8) =60
60=60==> N o idle or unused raw material
4X1 +3X2 <96
4(18) +3(8) <96
96=96 ==>the entire labor hour will be consumed
4X1 +3.5X2 <105
100<105==>There is to be idle or unused capacity of 5hrs in the packaging
department.
11
Note:
The packaging hour’s constraint does not form part of the boundary making the
feasible region. Thus, this constraint is of no consequence and is therefore, redundant.
The inclusion or exclusion of a redundant constraint does not affect the optimal
solution of the problem.
Example:
The information given below is for the products A and B.
_____________________________________________________________________
Machine hours per week Maximum available
Department Product A Product B per week
_____________________________________________________________________
Cutting 3 6 900
Assembly 1 1 200
Profit per unit $8 $16
_____________________________________________________________________
Assume that the company has a marketing constraint on selling products B and
therefore it can sale a maximum of 125units of this product.
Required:
a. Formulate the LPP of this problem
b. Find the optimal solution
Solution:
Let X1 =The No of units f product A produced per week
X2 =The No of units f product B produced per week
a. The LPP Model of the problem is:
12
Max.Z 8 X 116 X 2
St :
3 X 16 X 2 900
X 1 X 2 200
X 2 125
X1, X 2 0
X2 X1=0
(0, 200)
FR X2=0
X1
A (0, 0) (300,0)
Interpretation:
Both C and D are optimal solutions. Any point on the line segment CD will also lead
to the same optimal solution.
==>Multiple optimal solutions provide more choices for management to reach their
objectives.
3. Infeasible Solution
A solution is called feasible if it satisfies all the constraints and the constraints and
non-negativity condition. However, it is sometimes possible that the constraints may
be inconsistent so that there is no feasible solution to the problem. Such a situation is
called infeasibility.
13
Example:
MaxZ=20X1+30X2
St:
2X1+X2< 40
4X1+X2< 60
X1 > 30
X1, X2 > 0
Solution:
X2 X1=0
(0, 60) X1=30
4X1+X2= 60
(0, 40)
2X1+X2= 40
X2=0
X1
(15, 0) (20, 0) (30, 0)
Note:
-In the above graph, there is no common point in the shaded area.
-All constraints cannot be satisfied simultaneously and there is no feasible solution to
the problem.
4. Mix of constraints
Example:
ABC Gasoline Company has two refineries with different production capacities.
Refinery A can produce 4,000gallons per day of SUPER UNLEADD GASOLINE, 2000
gallons per day of REGULAR UNLEADED GASOLINE and 1000 gallons per day of
LEADED GASOLINE. On the other hand, refinery B can produce 1000 gallons per
day of SUPER UNLEADED, 3000 gallons per day of REGULAR UNLEADED and
4,000 gallons per day of LEADED.
The company has made a contract with an automobile manufacturer to provide 24000
gasolines of SUPER UNLEADED, 42000 gallons of REGULAR UNLEADED and
14
36000 gallons of LEADED .The automobile manufacturer wants delivery in not more
than 14 days.
The cost of running refinery A is $1500 per day and refinery B is $2400 per day.
Required:
a. Formulate this problem as a LPP
b. Determine the number of days the gasoline company should operate each refinery
in order to meet the terms of the above contract most economical.(i.e. At a
minimum running cost)
c. Which grade of gasoline would be over produced?
Solution:
_____________________________________________________________________
Production per day (in gallons) Contract with an automobile manufacturer
Grade of gasoline A B
_____________________________________________________________________
MinZ=1500X1+2400X2
St:
4000X1+1000X2>24000
2000X1+3000X2>42000
1000X1+2000X2> 36000
X1 < 14
X2< 14
X1, X2 > 0
==>T o simplify the problem divide by 1000 the constraints
15
MinZ=1500X1+2400X2
St:
4X1+1X2>24
2X1+3X2>42
X1+4X2 > 36
X1 < 14
X2< 14
X1, X2 > 0
FR
D (12, 6)
LG: X1+4X2=36
________________________________________________________________
Corners Coordinates MaxZ=1500X1 + 2400X2
A (2.5, 4) $37350
B (14, 14) 54600
C (14, 5.5) 34200
D (12, 6) 32400
E (3, 12) 33300
_________________________________________________________________
Interpretation:
The oil company should operate refinery A for 12 days and refinery B for 6 days at a
minimum operating cost of $32,400.
c. Is there any over production
SUG: 4000X1+1000X2>24000
4000(12) +1000(6)>24000
54000 > 24000
16
Therefore, 30,000 gallons over production
RUG: 2000X1+3000X2>42000
2000(12) +3000(6)>42000
42000 > 42000
Therefore, there is no over production of RUG
LG: 1000X1+4000X2>36000
1000(12) +1000(6)>36000
36000 > 36000
There fore, No over production of LG
5. Unbounded Solution
When the value of decision variables in LP is permitted to increase infinitely without
violating the feasibility condition, then the solution is said to be unbounded .Here,
the objective function value can also be increased infinitely. However, an unbounded
feasible region may yield some definite value of the objective function.
Example:
Use the graphical method to solve the following LPP.
1. Max.Z=3X1+4X2
St:
X1-X2<-1==> -X1+X2>1 since the quantity solution is positive
-X1+X2<0
X1, X2 > 0
X2 X1-X2 =-1
X1+X2 =0
1 Unbounded
Feasible Region
X1
Fig: Unbounded Solution
17
2. Max.Z=3X1+2X2
St:
X1-X2<1
X1+X2<3
X1, X2 > 0
X2
A(0,3) Unbounded
Feasible Region
X1-X2=1
B (2, 1)
X1+X2=3
X1
Note here that the two corners of the region are A(0,3) and .B(2,1).The value of
MaxZ(A)=6 and MaxZ(B)=8. But there exist number of points in the shaded region for
which the value of the objective function is more than 8.For example, the point (10,
12) lies in the region and the function value at this point is 70 which is more than 8.
Remark:
An unbounded solution does not mean that there is no solution to the given LPP, but
implies that there exits an infinite number of solutions.
Exercise:
Use graphical method to solve the following LPP.
1. Max.Z=7/4X1+3/2X2 2. Max.Z=3X1+2X2
St: St:
8 X1+5X2 < 320 -2X1+3X2 < 9
4X1+5X2 < 20 X1-5X2 > -20
X1 > 15 X1, X2 > 0
X2> 10
X1, X2 > 0
Answer: No feasible solution Answer: Unbounded solution
3. Max.Z=3X1+2X2 4.Max.Z=X1+X2
St: St:
18
X1-X2 < 1 X1+X2 < 1
X1+X2> 3 -3X1+X2> 3
X1, X2> 2 X1, X2> 0
Answer: Unbounded solution Answer: Unbounded solution
5. Max.Z=6X1-4X2 6.Max.Z=X1+1/2X2
St: St:
2X1+4X2 < 4 3X1+3X2 < 12
4X1+8X2> 16 5X1 < 10
X1, X2 > 0 X1 + X2 >8
Answer: Infeasible solution -X1 + X2 >4
X1, X2 > 0
Answer: Infeasible solution
Exercise
I. Solve the following LP problems using the graphical method.
1. Max.Z=15X1-10X2 2.Max.Z=2X1+X2
St: St:
4X1+6X2 < 360 X1+2X2 < 10
3X1+0X2< 180 X1 +X2 < 6
0X1+5X2< 280 X1 - X2 < 2
X1, X2 > 0 X1 -2X2 < 1
Answer: X1=60 , X2 =20 X1, X2 >0
and Max.Z=1,100 Answer: X1=4, X2 =2
and Max.Z=10
3. Max.Z=10X1+15X2 4.Min.Z=3X1+2X2
St: St:
2X1+X2 < 26 5X1+X2 > 10
2X1+4X2< 56 X1 +X2 > 6
-X1+X2< 5 X1 + 4 X2 > 12
X1, X2 > 0 X1, X2 >0
Answer: X1=4 , X2 =2 Answer:X1=1,X2=5
and Max.Z=230 and Min.Z=13
4. Min.Z=-X1+2X2 4.Min.Z=20X1+10X2
St: St:
-X1+3X2 < 26 X1+2X2 <40
X1 +X2 < 6 3X1 + 4 X2 > 30
X1-X2< 2 4X1+ 3X2> 60
X1, X2 > 0 X1, X2 >0
19
Answer:X1=2 , X2 =0 Answer:X1=6,X2=12 and
Min.Z=-2 and Min.Z=240
II.A manufacturer produces two different models; X and Y, of the same product .The
raw materials r1 and r2 are required for production. At least 18 Kg of r1 and 12 Kg of r2
must be used daily. Almost at most 34 hours of labor are to be utilized .2Kg of r1 are
needed for each model X and 1Kg of r1 for each model Y. For each model of X and Y,
1Kg of r2 is required. It takes 3 hours to manufacture a model X and 2 hours to
manufacture a model Y. The profit realized is $50 per unit from model X and $30 per
unit from model Y. How many units of each model should be produced to maximize
the profit?
Answer: 10 units of model X, 2 units of model Y and the maximum profit is $ 560.
III.A manufacturing firm produces two machine parts P1 and P2 using milling and
grinding machines .The different machining times required for each part, the
machining times available on different machines and the profit on each machine part
are as given below:
____________________________________________________________________
Manufacturing time Maximum time
required (min) available per week (min)
Machine P1 P2
_____________________________________________________________________
Lathe 10 5 25,000
Milling Machine 4 10 2000
Grinding Machine 1 1.5 450
Profit per unit ($) $50 $100
_____________________________________________________________________
Determine the number of pieces of P1 and P2 to be manufactured per week to
maximize profit.
Answer:X1=187.5 , X2 =125 and Max.Z=21,875
IV.A person requires 10, 12 and 12 units of chemicals A, B and C respectively for his
garden. A liquid product contains 5, 2 and 1 units of A, B and C respectively per jar.
A dry product contains 1, 2 and 4 units of A, B and C per carton. If the liquid product
sells for $3 per jar and the dry product sells $2 per carton, how many of each should
be purchased in order to minimize cost and meet the requirement?
Answer: 1 Unit of liquid, 5 units of dry product and Min.Z=$8
20