Mgmt114n - Module 3 Linear Programming
Mgmt114n - Module 3 Linear Programming
2
LINEAR PROGRAMMING
Objectives:
1. Certainty:
▪ numbers in the objective and constraints are known
with certainty and do not change during the period
being studied
2. Proportionality:
▪ exists in the objective and constraints
▪ constancy between production increases and
resource utilization
3. Additivity:
▪ the total of all activities equals the sum of the
individual activities
5 Basic Assumptions of Linear
Programming.. Contd.
4. Divisibility:
▪ solutions need not be in whole numbers (integers)
▪ solutions are divisible, and may take any fractional value
5. Non-negativity:
▪ all answers or variables are greater than or equal to (≥) zero
▪ negative values of physical quantities are impossible
LP Modeling
Some Types of LP Problems/ Applications of LP
https://www.britannica.com/to
pic/list-of-petroleum-products-
2069393
4. Selection of different blends of raw materials combinations at
minimum cost
5. Determination of a distribution system that
will minimize total shipping cost from several
warehouses to various market locations
Ex. LP of LP Application: The Product Mix Problem
⮚ There are 40 hours of labor and 120 pounds of clay available each
day for production.
Example 1: Product Mix Problem
Remember: Summary of LP Model
Formulation Steps
• Where:
z= total profit per day
$40X1= profit from bowls
$50X2= profit from mugs
Model Constraints
Subject to
1X1 + 2X2 ≤ 40
4X1 + 3X2 ≤ 120
X1, X2 ≥ 0
Feasible Solution
For labor
1X1 + 2X2 ≤ 40 Z= $40X1 + $50X2
1(5) + 2(10) ≤ 40 Z = 40(5) + 50(10) = $700
25 ≤ 40
For Clay
4X1 + 3X2 ≤ 120
4(5) + 3(10) ≤ 120
50 ≤ 120
Infeasible Solution
Z= $40X1 + $50X2
Z= $40(10) + $50(20)
Z= $400 + $1,000
Z= $1,400
1X1 + 2X2 ≤ 40
1(10) + 2(20) ≤ 40
10 + 40 ≤ 40
50 ≤ 40
Graphical Solution
x2 are mugs
Where
X1 = number of bowls produced
X2 = number of mugs produced
The first step in drawing the graph of the model is to plot the constraints on the graph. This
is done by treating both constraints as equations (or straight lines) and plotting each line on
the graph. Let’s consider the labor constraint line first:
x1 + 2x2 ≤ 40
A simple procedure for plotting this line is to determine two points that are on the line and
then draw a straight line through the points. One point can be found by letting x1=0 and
solving for x2:
(0) + 2x2 = 40
X2 = 20
Graphical Solution con’t
x1 + 2(0) = 40
X1 = 40
10 + 2(10) ≤ 40
30 ≤ 40 hr.
Labor constraint area
Graphical Solution con’t
We draw the line for the clay constraint the same way as the one for
the labor constraint— by finding two points on the constraint line and
connecting them with a straight line. First, let x1=0 and solve for x2 :
4(0) + 3x2 = 120
x2 = 40
Performing this operation results in a point, x1=0, x2=40. Next, we let
x2=0, and then solve for x1:
4x1 + 3(0) = 120
x1 = 30
Graphical Solution con’t
Where
X1 = number of bowls produced
X2 = number of mugs produced
Where
X1 = number of bowls produced
X2 = number of mugs produced
Where
X1 = number of bowls produced
X2 = number of mugs produced
Isoprofit Approach
-“iso” means equal/same
-the profit anywhere on the
line is the same.
Graphical Solution con’t
Where
X1 = number of bowls produced
X2 = number of mugs produced
Where
X1 = number of bowls produced
X2 = number of mugs produced
Where
X1 = number of bowls produced
X2 = number of mugs produced
Point B coordinates:
x1 = 24
x2 = 8
Z = $40x1 + $50x2
Z = $40(24) + $50(8)
= $1,360
Finding the optimal solution:
Corner Point Solution
x1 + 2x2 = 40
x1 = 40 - 2x2
and
4x1 + 3x2 = 120
4x1 = 120 - 3x2
x1 = 30 - (3x2/4)
Now, we let in the first equation equal in the second equation,
40 - 2x2 = 30 - (3x2/4)
and solve for :
5x2/4 = 10
x2 = 8
Substituting into either one of the original equations gives a value for :
x1 = 40 - 2x2
x1 = 40 - 2(8)
x1 = 24
Thus, the optimal solution at point B is x1 = 24 and x2 = 8.
Substituting these values into the objective function gives the
maximum profit,
Z = $40x1 + $50x2
Z = +40(24) + 50(8)
= $1,360
A Minimization Model
Example:
A farmer is preparing to plant a crop in the spring and needs to
fertilize a field. There are two brands of fertilizer to choose
from, Super-gro and Crop-quick. Each brand yields a specific
amount of nitrogen and phosphate per bag, as follows:
The farmer’s field requires at least 16 pounds of nitrogen and at least 24
pounds of phosphate. Super-gro costs $6 per bag, and Crop-quick costs $3.
The farmer wants to know how many bags of each brand to purchase in
order to minimize the total cost of fertilizing.
Fertilizing
farmer’s
field
Summary of LP Model Formulation
Steps
Step 1: Define the decision variables
How many bags of Super-gro and Crop-quick to buy
Step 2: Define the objective function
Minimize cost
Step 3: Define the constraints
The field requirements for nitrogen and phosphate
Decision Variables
x1 = bags of Super-gro
X2 = bags of Crop-quick
The Objective Function
Where
$6x1 = cost of bags of Super-gro
$3x2 = cost of bags of Crop-quick
Model Constraints
subject to
2x1 + 4x2 ≥ 16 lbs. of nitrogen
4x1 + 3x2 ≥ 24 lb. of phosphate
x1, x2 ≥ 0
Graphical Solution of a Minimization
Model
FIGURE 2.16. Constraint lines for fertilizer model FIGURE 2.17. Feasible solution area
The final step in the graphical
solution approach is to solve
for the values of x1 and x2 at
point A. Because point A is on
the x2 axis, x1=0; thus,
Z = $6x1 + $3x2
Z = $6(0) + $3(8)
Z=$24
Irregular Types of Linear Programming Problems
2. Infeasible Solutions
Every possible solution violates
at least one constraint:
3. An Unbounded Problem