Lecture 2
Lecture 2
Lecture 2
Linear programing (LP)
Course leader : Shewayirga Assalf (Ass.Pro.)
History of LP
linear programs.
Introduction
Optimization
Characteristics of Optimization Problems
One or more decisions
Restrictions or constraints
e.g. Determining the number of products to manufacture
Objective
maximizes profits
Decision variables
X1 , X2 , X3 , … , Xn
e.g. the quantities of different products
Index n = the number of product types
Constraints
– a less than or equal to constraint : f(X1 , X2 , X3 , … , Xn) < b
– a greater than or equal to constraint : f(X1 , X2 , X3 , … , Xn) > b
– an equal to constraint : f(X1 , X2 , X3 , … , Xn) = b
Objective
– MAX(or MIN) : f(X1 , X2 , X3, …, Xn)
Mathematical formulation of an
optimization problem
Subject to:
f(X1 , X2 , X3 , … , Xn) < bm
f(X1 , X2 , X3 , … , Xn) = bm
2. Additivity
3. Continuity
4. Certainty
5. Finite choices
6. Non-negativity
1. LP helps a decision maker to ensure effective use of scarce
resources
Components of LPM:
decision variables,
model constraints,
Decision variables are mathematical symbols that represent levels of
activity by the firm.
Contd
The two products have the following resource requirements for production and
profit per item produced (i.e., the model parameters):
Resource Requirements
Required:
formulate
product Labor (hr/unit) Clay (lb/unit) Profit/unit linear model
Bowl 1 4 40
Mug 2 3 50
There are 40 hours of labor and 120 pounds of clay available each day for
production.
Summary of LP Model Formulation Steps
Step 1. Define the decision variables
Maximize profit
x2 = bags of Crop-quick
where
2x1 + 12x2 ≥ 24
x1, x2 ≥ 0
Home work
A company is making two products A and B. The cost of
producing one unit of product A and B is $ 60 and $ 80
respectively. As per the agreement, the company has to supply at
least 200 units of product B to its regular customers. One unit of
product A requires one machine hours whereas product B has
machine hours available abundantly within the company. Total
machine hours available for product A are 400 hours. One unit of
each product A and B requires one labour hour each and total of
500 labour hours are available. The company wants to minimise
the cost of production by satisfying the given requirement.
Formulate the problem as a linear programming problem.
LP:
Graphical method
Solution of Linear Programming Problems
Then draw the line for the values of x1 and x2 which represents
the particular constraint. Once the lines are drawn for all the
feasible polygon (area) by shading the area below the line for the
constraint < and shading above the line for the constraint > type).
Contd
Step III. Identify the extreme points of the feasible polygon and
name the Corners.
Step IV. Evaluate the objective function Z or C for all points of
feasible region.
2x1 + 4x2 = 48
X1 X2
∴ 2x1= 48 or x1 =24
0 12
24 0 ∴ 4x2 = 48 or x2 = 12
Feasible
region
contd
Step III. Both the constraints are to be satisfied
simultaneously, therefore, OACD becomes the region of
feasible solution. This is also known as feasible polygon.
(from graph)
Step V. Z is maximizing objective function, hence the point with maximum
value of Z is the optimal solution point.
Therefore at point C (Z=132) with x1=12 and x2=6 is the optimal point.
A maximization model (class work)
X Company is a small crafts operation run by an American natives. The
company employs skilled artisans to produce clay bowls and mugs with
authentic Native America designs and colors. The two primary resources used
by the company are special pottery clay and skilled labor. Given these limited
resources, the company desires to know how many bowls and mugs to produce
each day in order to maximize profit.
The two products have the following resource requirements for production and
profit per item produced (i.e., the model parameters):
Required:
Resource Requirements
formulate linear
model, solve
product Labor (hr/unit) Clay (lb/unit) Profit/unit graphically, find
Bowl 1 4 40 the optimum
point
Mug 2 3 50
There are 40 hours of labor and 120 pounds of clay available each day for
production.
answer
Contd X2
The labor constraint area
60
50
Letting X1 and solving for X2
40
Let’s first consider labor constraint line first
30
1(0)+2X1=40
20
X2= 20 10
1X1+2(0)=40 X1
0 40 50 60
10 20 30
X1=40 (40,20) X2
The constraint area for clay
Then, let’s consider clay constraint 60
4(0)+3X2=120 50
40
X2=40
30
4X1+3(0)= 120
20
X1=30 10
(30, 40) 0
X1
10 20 30 40 50 60
Contd
The feasible solution area is an area on the graph that is
bounded by the constraint equations.
X2
60
50
40
Common area to both constraints
30
20
10
X1
0 10 20 30 40 50 60
The Optimal Solution Point
50
40
30
4X1+3X2=120
A
20
10
B 1X1+2X2=40
C X1
0 10 20 30 40 50 60
Calculate the value of each
corner (O, A, B and C) to get
the optimal solution
Max Z= $40X1+$50X2
50
40
30
4X1+3X2=120 Optimum solution
A
20 The optimal solution is
the best feasible solution.
10
B 1X1+2X2=40
C X1
0 10 20 30 40 50 60