Week4 LP Modeling Examples
Week4 LP Modeling Examples
Modeling Examples
Chapter 4
Exhibit 4.3
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 4-7
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-8
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
(Cost) Z = $0.509
x1 <= $14,000
x2 <= x1 + x3 + x4
x2 + x3 >= $21,000
x1 + x2 + x3 + x4 = $70,000
Z = $6,818.18
x1/(x1 + x2 + x3 + x4)<=0.20
(x2+x3)/(x1+x2+x3+x4)>=0.30
and
x1 + x2 + x3 + x4 <=70,000
4-29
Exercise
Labor Scheduling
The bank now employs 12 full-time tellers, but
many people are on its roster of available part-
time employees.
A part-time employee must put in exactly 4
hours per day but can start anytime between 9
A.M. and 1 P.M.
Fulltimers, on the other hand, work from 9 A.M.
to 5 P.M. but are allowed 1 hour for lunch.
Half the full-timers eat at 11 A.M., the other
half at noon.
F = Full-time tellers
P1 = Part-time tellers starting at 9 AM (leaving at 1 PM)
P2 = Part-time tellers starting at 10 AM (leaving at 2 PM)
P3 = Part-time tellers starting at 11 AM (leaving at 3 PM)
P4 = Part-time tellers starting at noon (leaving at 4 PM)
P5 = Part-time tellers starting at 1 PM (leaving at 5 PM)
4-32
Labor Scheduling Exercise
Objective is to minimize total daily
manpower cost
4-33
Labor Scheduling Exercise
For each hour, the available labor-hours
must be at least equal to the required labor-
hours.
Only 12 full-time tellers are available
Part-time worker-hours cannot exceed 50%
of total hours required each day, which is
the sum of the tellers needed each hour.
How to formulate these constraints????
4-35
Labor Scheduling Exercise
4-36
Labor Scheduling Exercise
Part-time worker-hours cannot
exceed 50% of total hours required
each day, which is the sum of the
tellers needed each hour.
4(P1 + P2 + P3 + P4 + P5) ≤ .50(10 + 12 + 14 + 16 + 18
+ 17 + 15 + 10) or
4(P1+ P2+ P3+ P4+ P5) ≤ .50(112)
4-37
Labor Scheduling Exercise
Minimize total daily
= $75F + $24(P1 + P2 + P3 + P4 + P5)
manpower cost
F + P1 ≥ 10 (9 AM - 10 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 + P4 ≥ 16 (noon - 1 PM needs)
F + P2 + P3 + P4 + P5 ≥ 18 (1 PM - 2 PM needs)
F + P3 + P4 + P5 ≥ 17 (2 PM - 3 PM needs)
F + P4 + P5 ≥ 15 (3 PM - 7 PM needs)
F + P5 ≥ 10 (4 PM - 5 PM needs)
F ≤ 12
4(P1 + P2 + P3 + P4 + P5) ≤ .50(112)
4-38
Labor Scheduling Exercise
4-39