Bu 275
Bu 275
Peruvemba S. Ravi
Exercise: The Beaver Creek Pottery
Company (a product mix problem)
Resource Requirements
Linear Programming
• Objectives of business decisions frequently involve
maximizing profit or minimizing costs.
• Linear programming uses linear algebraic relationships
to represent a firm’s decisions, given a business
objective, and resource constraints.
• Steps in application of LP:
1. Identify problem as solvable by linear programming.
2. Formulate a mathematical model of the unstructured
problem.
3. Solve the model.
Model Components
• Decision variables - mathematical symbols representing
levels of activity by the firm.
• Objective function - a linear mathematical relationship
describing an objective of the firm, in terms of decision
variables - this function is to be maximized or minimized.
• Constraints - requirements or restrictions placed on the
firm by the operating environment, stated in linear
relationships of the decision variables.
• Parameters - numerical coefficients and constants used
in the objective function and constraints.
Summary of Model Formulation Steps
Step 1: Define the decision variables
Decision Variables:
x1 = number of bowls to produce per day
x2 = number of mugs to produce per day
Objective Function:
Maximize Z = $40x1 + $50x2
Where Z = profit per day
Resource Constraints:
Example: x1 5 bowls
x2 10 mugs
Z $40 x1 $50 x2 $700
Labor constraint check:
15 + 2 10 = 25 40 hours
Clay constraint check: 4 5 + 3 10 = 70 120 pounds
Infeasible Solutions
An infeasible solution violates at least one of the
constraints:
Example: x1 10 bowls
x2 20 mugs
Z $40 x1 $50 x2 $1400
Labor constraint check:
110 2 20 50 40 hours
Maximization and Minimization LP Problems
Maximize
Z = $40 x1 + $50 x2
subject to: 1x1 + 2 x2 40
4 x2 + 3 x2 120
x1, x2 0
Maximize
Z = $70 x1 + $20 x2
subject to: 1x1 + 2 x2 40
4 x2 + 3 x2 120
x1, x2 0
Slack Variables
• Standard form requires that all constraints be in the form
of equations (equalities).
• A slack variable is added to a constraint (weak
inequality) to convert it to an equation (=).
•A slack variable
typically represents an unused resource.
•A slack variable
contributes nothing to the objective function value.
Linear Programming Model: Standard
Form
Max 40x1+50x2 + 0s1 + 0s2
Where:
x1 = number of bowls
x2 = number of mugs
s1, s2 are slack variables
Figure 2.14 Solutions at points A, B, and C
with slack
A Minimization LP Problem
• Two brands of fertilizer Figure 2.15 Fertilizing farmer’s field
available – Super-gro,
Crop-quick.
• Field requires at least 16
pounds of nitrogen and 24
pounds of phosphate.
• Super-gro costs $6 per bag,
Crop-quick $3 per bag.
• Problem: How much of
Chemical Contribution
each brand should be
purchased to minimize the Brand Nitrogen Phosphate
total cost of fertilizer given (lb./bag) (lb./bag)
the data in the table. Super-gro 2 4
Crop-quick 4 3
LP Model Formulation
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:
2 x1 4 x2 16 lb nitrogen constraint
4 x1 3 x2 24 lb phosphate constraint
x1, x2 0 non - negativity constraint
Constraint Graph
Minimize
Z = $6 x1 + $3 x2
subject to: 2 x1 + 4 x2 16
4 x2 + 3 x2 24
x1, x2 0
Surplus Variables
• 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.
•A surplus variable
contributes nothing to the calculated value of the objective
function.
•Subtracting surplus
variables in the farmer problem constraints:
2 x1 4 x2 s1 16 nitrogen
4 x1 3 x2 s2 24 phosphate
Graphical Solution
Minimize
Z $6 x1 $3 x2 0s1 0s2
subject to: 2 x1 4 x2 – s1 16
4 x2 3 x2 – s2 24
x1, x2 , s1, s2 0
Where:
x1 = number of bowls Figure 2.20 Graph of the Beaver Creek
x2 = number of mugs Pottery example with multiple optimal
solutions
An Infeasible Problem
Every possible solution
violates at least one
constraint:
Maximize Z 5x1 3x2
subject to: 4 x1 2 x2 8
x1 4
x2 6
x1, x2 0