Learning Objectives: Linear Programming
Learning Objectives: Linear Programming
Learning Objectives
Linear Programming
3 When you complete this module you
should be able to:
1. Formulate linear models and interpret
sensitivity analysis.
2. Evaluate optimization problems based
PowerPoint presentation to accompany
Heizer and Render on linear programming models.
Operations Management, Global Edition, Eleventh Edition
Principles of Operations Management, Global Edition, Ninth Edition
© 2014
© 2014
Pearson
Pearson
Education
Education 3-1 © 2014 Pearson Education 3-2
LP Applications LP Applications
4. Selecting the product mix in a factory to 7. Developing a production schedule that will
make best use of machine- and labor- satisfy future demands for a firm’s product
hours available while maximizing the and at the same time minimize total
firm’s profit production and inventory costs
5. Picking blends of raw materials in feed 8. Allocating space for a tenant
mills to produce finished feed mix in a new shopping mall
combinations at minimum costs so as to maximize
revenues to the
6. Determining the distribution system that leasing company
will minimize total shipping cost
Requirements of an Requirements of an
LP Problem LP Problem
1. LP problems seek to maximize or 3. There must be alternative courses of
minimize some quantity (usually action to choose from
profit or cost) expressed as an 4. The objective and constraints in
objective function linear programming problems must
2. The presence of restrictions, or be expressed in terms of linear
constraints, limits the degree to equations or inequalities
which we can pursue our objective
variables 100 –
–
1. Plot the constraint equations at their limits by
Number of BlueBerrys
80 – Assembly (Constraint B)
converting each equation to an equality –
60 –
2. Identify the feasible solution space –
Number of BlueBerrys
Assembly (Constraint B) 80 –
– –
60 –
$210 = 7X1 + 5X2 60 – $210 = $7X1 + $5X2
– –
(0, 42)
Solve for
40 the
– axis intercepts of the function and 40 –
plot the line
– Electronic (Constraint A) –
20 – Feasible 20 – (30, 0)
– X2 = 42
region X1 = 30 –
|– | | | | | | | | | | X1 –
| | | | | | | | | | |
X1
0 20 40 60 80 100 0 20 40 60 80 100
Figure B.3 Number of x-pods Figure B.4 Number of x-pods
© 2014 Pearson Education 3 - 17 © 2014 Pearson Education 3 - 18
100 – 100 –
– $350 = $7X1 + $5X2 – Maximum profit line
Number of BlueBerrys
Number of BlueBerrys
80 – 80 –
$280 = $7X1 + $5X2
– –
60 – $210 = $7X1 + $5X2 60 – Optimal solution point
– – (X1 = 30, X2 = 40)
40 – 40 –
– $420 = $7X1 + $5X2 – $410 = $7X1 + $5X2
20 – 20 –
– –
|– | | | | | | | | | |
X1 |
– | | | | | | | | | |
X1
0 20 40 60 80 100 0 20 40 60 80 100
Figure B.5 Number of x-pods Figure B.6 Number of x-pods
© 2014 Pearson Education 3 - 19 © 2014 Pearson Education 3 - 20
Number of BlueBerrys
80 – –
– corner point
– and choose the one with the
60 – highest60profit
–
– –
3 3
40 – 40 –
–
Point 1 : (X1 –= 0, X2 = 0) Profit $7(0) + $5(0) = $0
20 – Point 2 : (X = 0, X2 = 80)
201 – Profit $7(0) + $5(80) = $400
– –
|–
Point 4 : (X1 |= 50, X| 2 =| 0) Profit $7(50) +| $5(0) = $350
1 –
| | | | | | | | | | | | | | | | |
1 X1 X1
0 20 40 60 80 100 0 20 40 60 80 100
4 4
Figure B.7 Number of x-pods Figure B.7 Number of x-pods
© 2014 Pearson Education 3 - 21 © 2014
© 2014
Pearson
Pearson
Education
Education 3 - 22
Number of BlueBerrys
–
2X
– 1 +and
corner point 1X2 choose
≤ 100 (assembly
the onetime)
with the corner point
– and choose the one with the
highest60profit
– highest60profit
–
4X1–+ 3X2 = 240 4X1 + 3(40) = 240 –
3 3
– 4X
40 –– 2X = –200 4X1 + 120 = 240 40 –
Point 1 : (X11–= 0, X22 = 0) Profit $7(0) + $5(0) = $0 Point 1 : (X1 –= 0, X2 = 0) Profit $7(0) + $5(0) = $0
+ 1X2 = 40 X1 = 30
Point 2 : (X = 0, X2 = 80)
201 – Profit $7(0) + $5(80) = $400 Point 2 : (X = 0, X2 = 80)
201 – Profit $7(0) + $5(80) = $400
– –
Point 4 : (X1 |= 50, X| 2 =| 0) Profit $7(50) +| $5(0) = $350 Point 4 : (X1 |= 50, X| 2 =| 0) | | Profit $7(50) +| $5(0) = $350
1 – 1 –
| | | | | | | | | | | |
X1 X1
0 20 40 60 80 100 Point 3 : (X10= 30, X20 = 40) 40 60 80
Profit $7(30) 100
+ $5(40) = $410
4 2 4
Figure B.7 Number of x-pods Figure B.7 Number of x-pods
© 2014
© 2014
Pearson
Pearson
Education
Education 3 - 23 © 2014
© 2014
Pearson
Pearson
Education
Education 3 - 24
Changes in the
Solving Minimization Problems
Objective Function
▶ Formulated and solved in much the
▶ A change in the coefficients in the same way as maximization problems
objective function may cause a different
corner point to become the optimal ▶ In the graphical approach an iso-cost line
solution is used
▶ The sensitivity report shows how much ▶ The objective is to move the iso-cost line
objective function coefficients may inwards until it reaches the lowest cost
change without changing the optimal corner point
solution point
chemical produced 60 – X1 + X2 = 60
= 2,500(30) + 3,000(30)
DEPARTMENT CAPACITY (HRS) PRODUCT MIN PRODUCTION LEVEL
= $165,000 Wiring 1,500 XJ201 150
Drilling 2,350 XM897 100
Assembly 2,600 TR29 200
Lowest total cost is at point a
Inspection 1,200 BR788 400
LP Applications LP Applications
X1 = number of units of XJ201 produced
X2 = number of units of XM897 produced Diet Problem Example
X3 = number of units of TR29 produced
X4 = number of units of BR788 produced
FEED
Maximize profit = 9X1 + 12X2 + 15X3 + 11X4 INGREDIENT STOCK X STOCK Y STOCK Z
A 3 oz 2 oz 4 oz
subject to .5X1 + 1.5X2 + 1.5X3 + 1X4 ≤ 1,500 hours of wiring
3X1 + 1X2 + 2X3 + 3X4 ≤ 2,350 hours of drilling B 2 oz 3 oz 1 oz
2X1 + 4X2 + 1X3 + 2X4 ≤ 2,600 hours of assembly C 1 oz 0 oz 2 oz
.5X1 + 1X2 + .5X3 + .5X4 ≤ 1,200 hours of inspection D 6 oz 8 oz 4 oz
X1 ≥ 150 units of XJ201
X2 ≥ 100 units of XM897
X3 ≥ 200 units of TR29
X4 ≥ 400 units of BR788
X1, X2, X3, X4 ≥0
© 2014 Pearson Education 3 - 37 © 2014 Pearson Education 3 - 38
LP Applications LP Applications
X1 = number of pounds of stock X purchased per cow each month Labor Scheduling Example
X2 = number of pounds of stock Y purchased per cow each month
NUMBER OF TELLERS NUMBER OF TELLERS
X3 = number of pounds of stock Z purchased per cow each month TIME PERIOD REQUIRED TIME PERIOD REQUIRED
9 a.m.–10 a.m. 10 1 p.m.–2 p.m. 18
Minimize cost = .02X1 + .04X2 + .025X3 10 a.m.–11 a.m. 12 2 p.m.–3 p.m. 17
11 a.m.–Noon 14 3 p.m.–4 p.m. 15
Ingredient A requirement: 3X1 + 2X2 + 4X3 ≥ 64
Noon–1 p.m. 16 4 p.m.–5 p.m. 10
Ingredient B requirement: 2X1 + 3X2 + 1X3 ≥ 80
Ingredient C requirement: 1X1 + 0X2 + 2X3 ≥ 16
F = Full-time tellers
Ingredient D requirement: 6X1 + 8X2 + 4X3 ≥ 128
P1 = Part-time tellers starting at 9 AM (leaving at 1 PM)
Stock Z limitation: X3 ≤5
P2 = Part-time tellers starting at 10 AM (leaving at 2 PM)
X1, X2, X3 ≥0
P3 = Part-time tellers starting at 11 AM (leaving at 3 PM)
Cheapest solution is to purchase 40 pounds of stock X P4 = Part-time tellers starting at noon (leaving at 4 PM)
at a cost of $0.80 per cow P5 = Part-time tellers starting at 1 PM (leaving at 5 PM)
© 2014 Pearson Education 3 - 39 © 2014 Pearson Education 3 - 40
LP Applications LP Applications
Minimize total daily Minimize total daily
= $75F + $24(P1 + P2 + P3 + P4 + P5) = $75F + $24(P1 + P2 + P3 + P4 + P5)
manpower cost manpower cost
F + P1 ≥ 10 (9 AM - 10 AM needs) F + P1 ≥ 10 (9 AM - 10 AM needs)
F + P1 + P2 ≥ 12 (10 AM - 11 AM needs) F + P1 + P2 ≥ 12 (10 AM - 11 AM needs)
1/2 F + P1 + P2 + P3 ≥ 14 (11 AM - 11 AM needs) 1/2 F + P1 + P2 + P3 ≥ 14 (11 AM - 11 AM needs)
1/2 F + P1 + P2 + P3 + P4 ≥ 16 (noon - 1 PM needs) 1/2 F + P1 + P2 + P3 + P4 ≥ 16 (noon - 1 PM needs)
F + P2 + P3 + P4 + P5 ≥ 18 (1 PM - 2 PM needs) F + P2 + P3 + P4 + P5 ≥ 18 (1 PM - 2 PM needs)
F + P3 + P4 + P5 ≥ 17 (2 PM - 3 PM needs) F + P3 + P4 + P5 ≥ 17 (2 PM - 3 PM needs)
F + P4 + P5 ≥ 15 (3 PM - 7 PM needs) F + P4 + P5 ≥ 15 (3 PM - 7 PM needs)
F + P5 ≥ 10 (4 PM - 5 PM needs) F + P5 ≥ 10 (4 PM - 5 PM needs)
F ≤ 12 F ≤ 12