Chapter Two: Linear Programming (LP)
Chapter Two: Linear Programming (LP)
CHAPTER TWO
INTRODUCTION TO LP
Objectives of business decisions frequently involve maximizing
profit or minimizing costs.
Hence, linear programming is an analytical technique in which a
firm’s decisions is represent by linear algebraic relationships,
given a business objective, and resource constraints.
Steps in application:
Identify problem as solvable by linear programming.
Formulate a mathematical model of the unstructured problem.
Solve the model.
Implementation
LP MODEL COMPONENTS AND FORMULATION
LP Model Formulation
A Maximization Example
Product mix problem - Beaver Creek Pottery Company
•How many bowls and mugs should be produced to maximize
profits given labor and materials constraints?
•Product resource requirements and unit profit:
Resource Requirements
Labor Clay Profit
Product
(hr/unit) (lb/unit) ($/unit)
Bowl 1 4 40
Mug 2 3 50
8
9
LP Model Formulation
A Maximization Example
Resource 40 hrs of labor per day
Availability: 120 lbs of clay
Decision x1 = number of bowls to produce per day
Variables: x2 = number of mugs to produce per day
Non-Negativity x1 0; x2 0
Constraints:
10
LP Model Formulation
A Maximization Example
Feasible Solutions
Infeasible Solutions
Slack Variables
A Minimization Example
Nitrogen Phosphate
Brand
(lb/bag) (lb/bag)
Super-gro 2 4
Crop-quick 4 3
24
25
LP Model Formulation
A Minimization Example
Decision Variables:
x1 = bags of Super-Gro
x2 = bags of Crop-Quick
The Objective Function:
Minimize Z = $6x1 + 3x2
Where: $6x1 = cost of bags of Super-Gro
$3x2 = cost of bags of Crop-Quick
Model Constraints:
2x1 + 4x2 16 lb (nitrogen constraint)
4x1 + 3x2 24 lb (phosphate constraint)
x1, x2 0 (non-negativity constraint)
LP Model Formulation and Constraint Graph 26
A Minimization Example
A Minimization Example
A Minimization Example
Surplus Variables
A Minimization Example
A surplus variable is subtracted from a constraint to
convert it to an equation (=).
A surplus variable represents an excess above a constraint
requirement level.
Surplus variables contribute nothing to the calculated value
of the objective function.
Subtracting surplus variables in the farmer problem
constraints:
2x1 + 4x2 - s1 = 16 (nitrogen)
4x1 + 3x2 - s2 = 24 (phosphate)
Graphical Solutions 30
A Minimization Example
Problem Statement
Example Problem
Example Problem
Step 1:
Identify decision variables.
x1 = lb of chicken in mixture (1000 lb.)
x2 = lb of beef in mixture (1000 lb.)
Step 2:
Formulate the objective function.
Minimize Z = $3x1 + $5x2
where Z = cost per 1,000-lb batch
$3x1 = cost of chicken
$5x2 = cost of beef
Solution 35
Example Problem
Step 3:
Establish Model Constraints
x1 + x2 = 1,000 lb
x1 500 lb of chicken
x2 200 lb of beef
x1/x2 2/1 or x1 - 2x2 0
x1, x2 0
The Model: Minimize Z = $3x1 + 5x2
subject to: x1 + x2 = 1,000 lb
x1 50
x2 200
x1 - 2x2 0
x1,x2 0
Example Problem 36
Example Problem