Solving Examples of Linear Programming Models
Solving Examples of Linear Programming Models
Linear Programming
Models
Chapter 4
Exhibit 4.1
Exhibit 4.2
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 4-8
A Product Mix Example
Solution with QM for Windows (7 of 8)
Exhibit 4.3
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 4-9
A Product Mix Example
Solution with QM for Windows (8 of 8)
Exhibit 4.4
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 4-10
A Diet Example
Data and Problem Definition (1 of 5)
Breakfast Food Fat Cholesterol Iron Calcium Protein Fiber Cost
Cal (g) (mg) (mg) (mg) (g) (g) ($)
1. Bran cereal (cup) 90 0 0 6 20 3 5 0.18
2. Dry cereal (cup) 110 2 0 4 48 4 2 0.22
3. Oatmeal (cup) 100 2 0 2 12 5 3 0.10
4. Oat bran (cup) 90 2 0 3 8 6 4 0.12
5. Egg 75 5 270 1 30 7 0 0.10
6. Bacon (slice) 35 3 8 0 0 2 0 0.09
7. Orange 65 0 0 1 52 1 1 0.40
8. Milk-2% (cup) 100 4 12 0 250 9 0 0.16
9. Orange juice (cup) 120 0 0 0 3 1 0 0.50
10. Wheat toast (slice) 65 1 0 1 26 3 3 0.07
Exhibit 4.5
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 4-14
A Diet Example
Solution with Excel Solver Window (5 of 5)
Exhibit 4.6
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 4-15
An Investment Example
Model Summary (1 of 4)
Maximize Z = $0.085x1 + 0.05x2 + 0.065 x3+ 0.130x4
subject to:
x1 $14,000
x2 - x1 - x3- x4 0
x2 + x3 $21,000
-1.2x1 + x2 + x3 - 1.2 x4 0
x1 + x2 + x3 + x4 = $70,000
x1, x2, x3, x4 0
where
x1 = amount ($) invested in municipal bonds
x2 = amount ($) invested in certificates of deposit
x3 = amount ($) invested in treasury bills
x4 = amount ($) invested in growth stock fund
Exhibit 4.7
Exhibit 4.8
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 4-18
An Investment Example
Sensitivity Report (4 of 4)
Exhibit 4.9
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 4-19
A Marketing Example
Data and Problem Definition (1 of 6)
Exposure
(people/ad or Cost
commercial)
Television Commercial 20,000 $15,000
Exhibit 4.11
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 4-23
A Marketing Example
Integer Solution with Excel (5 of 6)
Exhibit 4.12
Exhibit 4.13
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 4-24
A Marketing Example
Integer Solution with Excel (6 of 6)
Exhibit 4.14
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 4-25
A Transportation Example
Problem Definition and Data (1 of 3)
Warehouse supply of Retail store demand
Television Sets: for television sets:
1 - Cincinnati 300 A - New York 150
2 - Atlanta 200 B - Dallas 250
3 - Pittsburgh 200 C - Detroit 200
Total 700 Total 600
To Store
From Warehouse
A B C
1 $16 $18 $11
2 14 12 13
3 13 15 17
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 4-26
A Transportation Example
Model Summary (2 of 4)
Minimize Z = $16x 1A + 18x1B + 11x1C + 14x2A + 12x2B + 13x2C +
13x3A + 15x3B + 17x3C
subject to:
x1A + x1B+ x1C 300
x2A+ x2B + x2C 200
x3A+ x3B + x3C 200
x1A + x2A + x3A = 150
x1B + x2B + x3B = 250
x1C + x2C + x3C = 200
All xij 0
Exhibit 4.15
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 4-28
A Transportation Example
Solution with Solver Window (4 of 4)
Exhibit 4.16
Maximum Barrels
Component Cost/barrel
Available/day
1 4,500 $12
2 2,700 10
3 3,500 14
At least 50% of 1
Super $23
Not more than 30% of 2
At least 40% of 1
Premium
Not more than 25% of 3 20
At least 60% of 1
Extra 18
At least 10% of 2
Exhibit 4.17
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 4-33
A Blend Example
Solution with Solver Window (5 of 6)
Exhibit 4.18
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 4-34
A Blend Example
Sensitivity Report (6 of 6)
Exhibit 4.19
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 4-35
A Multi-Period Scheduling Example
Problem Definition and Data (1 of 5)
Production Capacity: 160 computers per week
50 more computers with overtime
Assembly Costs: $190 per computer regular time;
$260 per computer overtime
Inventory Holding Cost: $10/computer per week
Order schedule:
Week Computer Orders
1 105
2 170
3 230
4 180
5 150
6 250
Decision Variables:
r j = regular production of computers in week j
(j = 1, 2, …, 6)
oj = overtime production of computers in week j
(j = 1, 2, …, 6)
ij = extra computers carried over as inventory in week j
(j = 1, 2, …, 5)
Decision Variables:
ij = extra computers carried over as inventory in week j
(j = 1, 2, …, 5)
bj = computers backlogged in week j
(j = 1, 2, …, 5)
Forget about the safety inventory 100 units in Jan., Feb., March.
Forget about 300 units in April
Exhibit 4.20
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 4-40
A Multi-Period Scheduling Example
Solution with Solver Window (5 of 5)
Exhibit 4.21
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 4-41
A Data Envelopment Analysis (DEA) Example
Problem Definition (1 of 5)
Inputs Outputs
School 1 2 3 1 2 3
Delancey
.06 460 13.1 81 73 69
Exhibit 4.22
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 4-45
A Data Envelopment Analysis (DEA) Example
Solution with Solver Window (5 of 5)
Exhibit 4.23
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 4-46
Example Problem Solution
Problem Statement and Data (1 of 5)
Canned cat food, Meow Chow; dog food, Bow Chow.
■ Ingredients/week: 600 lb horse meat; 800 lb fish; 1000 lb cereal.
■ Recipe requirement: Meow Chow at least half fish
Bow Chow at least half horse meat.
■ 2,250 sixteen-ounce cans available each week.
■ Profit /can: Meow Chow $0.80
Bow Chow $0.96.
Can Content: xhm + xfm + xcm + xhb + xfb+ xcb 36,000 ounces