Académique Documents
Professionnel Documents
Culture Documents
2
Learning Objectives
1. Formulate linear programming models,
including an objective function and
constraints
2. Graphically solve an LP problem with the
iso-profit line method
3. Graphically solve an LP problem with the
corner-point method
4. Construct and solve a minimization
problem
3
Why Use Linear Programming?
4
LP Applications
1. Scheduling school buses to minimize
total distance traveled
2. Allocating police patrol units to high
crime areas in order to minimize
response time to 911 calls
3. Scheduling tellers at banks so that
needs are met during each hour of the
day while minimizing the total cost of
labor
5
LP Applications
4. Selecting the product mix in a factory
to make best use of machine- and
labor-hours available while maximizing
the firms profit
5. Picking blends of raw materials in feed
mills to produce finished feed
combinations at minimum costs
6. Determining the distribution system
that will minimize total shipping cost
6
Requirements of an
LP Problem
1. LP problems seek to maximize or
minimize some quantity
2. The presence of restrictions, or
constraints
3. There must be alternative courses of
action to choose from
4. The objective and constraints in linear
programming problems must be
expressed in terms of linear equations
or inequalities
7
Formulating LP Problems
The product-mix problem at Shader Electronics
Two products
1. Shader x-pod, a portable music
player
2. Shader BlueBerry, an internet-
connected color telephone
Determine the mix of products that will
produce the maximum profit
8
Formulating LP Problems
Hours Required
to Produce 1 Unit
x-pods BlueBerrys Available Hours
Department (X1) (X2) This Week
Electronic 4 3 240
Assembly 2 1 100
Profit per unit $7 $5
Table B.1
Decision Variables:
X1 = number of x-pods to be produced
X2 = number of BlueBerrys to be produced
9
Formulating LP Problems
Objective Function:
Maximize Profit = $7X1 + $5X2
Second Constraint:
Assembly is Assembly
time used time available
2X1 + 1X2 100 (hours of assembly time)
11
Graphical Solution
Can be used when there are two
decision variables
1. Plot the constraint equations at their
limits by converting each equation
to an equality
2. Identify the feasible solution space
3. Create an iso-profit line based on
the objective function
4. Move this line outwards until the
optimal point is identified
12
Graphical Solution
X2
100
Number of BlueBerrys
80
Assembly (Constraint B)
60
40
Electronics (Constraint A)
20Feasible
region
| | | | | | | | | | | X1
0 20 40 60 80 100
Figure B.3 Number of x-pods
13
Graphical Solution
X
Iso-Profit Line Solution Method
2
100
Choose a possible
value for the
Number of BlueBerrys
objective function
80
Assembly (Constraint B)
60 $210 = 7X1 + 5X2
80
60
$210 = $7X1 + $5X2
(0, 42)
40
20 (30, 0)
| | | | | | | | | | | X1
0 20 40 60 80 100
Figure B.4 Number of x-pods
15
Graphical Solution
X2
100
$350 = $7X1 + $5X2
Number of BlueBerrys
80
$280 = $7X1 + $5X2
60
$210 = $7X1 + $5X2
40
20 $420 = $7X1 + $5X2
| | | | | | | | | | | X1
0 20 40 60 80 100
Figure B.5 Number of x-pods
16
Graphical Solution
X2
100
Maximum profit line
Number of BlueBerrys
80
60
Optimal solution point
40
(X1 = 30, X2 = 40)
20 $410 = $7X1 + $5X2
| | | | | | | | | | | X1
0 20 40 60 80 100
Figure B.6 Number of x-pods
17
Corner-Point Method
X2
100
2
Number of BlueBerrys
80
60
40
3
20
| | | | | | | | | | | X1
1
0 20 40 60 80 100
4
Figure B.7 Number of x-pods
18
Corner-Point Method
The optimal value will always be at a
corner point
Find the objective function value at each
corner point and choose the one with the
highest profit
19
Corner-Point Method
The optimal value will always be at a
Solvepoint
corner for the intersection of two constraints
Find the4Xobjective
1 + 3X2 240 (electronics time)
function value at each
2X1 + 1X
corner point 2 100
and (assembly
choose time)with the
the one
highest profit
4X + 3X = 240 4X + 3(40) = 240
1 2 1
20
Corner-Point Method
The optimal value will always be at a
corner point
Find the objective function value at each
corner point and choose the one with the
highest profit
21
Solving Minimization
Problems
Formulated and solved in much the
same way as maximization problems
In the graphical approach an iso-cost
line is used
The objective is to move the iso-cost line
inwards until it reaches the lowest cost
corner point
22
Minimization Example
X1 = number of tons of black-and-white picture
chemical produced
X2 = number of tons of color picture chemical
produced
Minimize total cost = 2,500X1 + 3,000X2
23
Minimization Example
Table B.9 X2
60
X1 + X2 = 60
50
40 Feasible
region
30
b
20
10
a
X1 = 30
X2 = 20
| | | | | | |
X1
0 10 20 30 40 50 60
24
Minimization Example
25
LP Applications
Production-Mix Example
Department
Product Wiring Drilling Assembly Inspection Unit Profit
XJ201 .5 3 2 .5 $ 9
XM897 1.5 1 4 1.0 $12
TR29 1.5 2 1 .5 $15
BR788 1.0 3 2 .5 $11
Capacity Minimum
Department (in hours) Product Production Level
Wiring 1,500 XJ201 150
Drilling 2,350 XM897 100
Assembly 2,600 TR29 300
Inspection 1,200 BR788 400
26
LP Applications
X1 = number of units of XJ201 produced
X2 = number of units of XM897 produced
X3 = number of units of TR29 produced
X4 = number of units of BR788 produced
Maximize profit = 9X1 + 12X2 + 15X3 + 11X4
28
LP Applications
X1 = number of pounds of stock X purchased per cow each month
X2 = number of pounds of stock Y purchased per cow each month
X3 = number of pounds of stock Z purchased per cow each month
The smaller vases sell for $3 each, and the larger vases would bring
$9 each.
(a) Formulate the problem
(b) Solve the problem graphically
30
In-Class Problems from the
Lecture Guide Practice Problems
Problem 2:
A fabric firm has received an order for cloth specified to contain at
least 45 pounds of cotton and 25 pounds of silk. The cloth can be
woven out of any suitable mix of two yarns A and B. They contain the
proportions of cotton and silk (by weight) as shown in the following
table:
Cotton Silk
A 30% 50%
B 60% 10%