Merble Factory
Merble Factory
CHAPTER TWO
2. LINEAR PROGRAMMING
2.1. Introduction to Linear Programming
Linear Programming is a mathematical process that has been developed to
help management in decision making involving the efficient allocation of scares
resources to achieve a certain objective.
Diagrammatically,
Resource
constraint
Objective Constraint s
s s
Non-
negativity
Constraints
Optimization
Maximization Minimizatio
n
1
LINEAR PROGRAMMING
Plant capacity
Raw materials availability
Labor power
Market demand, etc
- Non-negativity constraints: Are constraints that require the decision
variables not to take on negative values
- Linearity: The Objective Function and the constraints must be linear in
nature in order to have a Linear Programming Problems (LPP)
- 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.2. Formulation and solution of LP model
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.
2
LINEAR PROGRAMMING
Example:
Max.Z 50 X 180 X 2
St :
X 12 X 2 32
3 X 14 X 2 82
X 2 12
X1, X 2 0
3
LINEAR PROGRAMMING
How many sets of each model will be produced each day so that the total
profit will be as large as possible?
Resources used per unit
Constraints Model A Model B Maximum
x 1 x2 Available hrs.
Labor hr. 2 1 40
Machine 1 3 45
hr.
Marketing 1 0 12
hr.
Profit $300 $250
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
2. Convert constraints inequalities into equalities
2X1 +X2 = 40
X1 +3X2= 45
X1 = 12
3. Draw the graph by intercepts
2X1 +X2 = 40 ==> (0, 40) 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
B
X1 +X2 = 45
15 4
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
Corners Coordinates MaxZ=300x1+250x2
A (0, 0) $0
B (0, 15) $3750
C (12, 11) $6350
D (12, 0) $3600
Interpretation:
12 units of product A and 11 units of product B should be produced so that
the total profit will be $6350.
Exercise one:
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.
5
LINEAR PROGRAMMING
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. Whereas 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) Max.LHAPW
_____________________________________________________________________
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 variable
6
LINEAR PROGRAMMING
Max.Z 50 X 180 X 2
St :
X 12 X 2 32 ……….Cutting department constraint
LPP Model
3 X 14 X 2 84
…….Assembly department constraint
X 2 12
X1, X 2 0 …….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 machines
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?
7
LINEAR PROGRAMMING
Solution
_______________________________________________________________
Resource used
Machine 1 (X1) Machine2 (X2) Min. required hr
_____________________________________________________________________
Constraint equation:
Feasible Region
B (2.5,
3.33) X2 =0
X1
5 C (7.5, 0)
8
LINEAR PROGRAMMING
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
9
LINEAR PROGRAMMING
Constraint equation:
6 X 12 X 2 12 (0, 6), (2, 0)
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
10
LINEAR PROGRAMMING
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.
11
LINEAR PROGRAMMING
Solution
__________________________________________________________________
Products Resource available
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
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)
12
LINEAR PROGRAMMING
13
LINEAR PROGRAMMING
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:
14
LINEAR PROGRAMMING
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
A (0, 0) X1
E (200, 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
15
LINEAR PROGRAMMING
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.
16
LINEAR PROGRAMMING
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 gasoline’s of SUPER UNLEADED, 42000 gallons of REGULAR
UNLEADED and 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?
17
LINEAR PROGRAMMING
Solution:
_____________________________________________________________________
Production per day (in gallons) Contract with an automobile manuf
Grade of gasoline A B
_____________________________________________________________________
SUPER UNLEADED 4000 1000 24,000
REGULAR UNLEADED 2000 3000 42,000
LEADED 1000 4000 36,000
Running cost per day $1,500 $2,400
_____________________________________________________________________
The automobile manufacturer wants delivery in not more than 14 days.
Let X1 =The No of days refinery A should work.
X2 =The No of days refinery B should work.
18
LINEAR PROGRAMMING
19