Linear Programming: Quantitative Module
Linear Programming: Quantitative Module
B
Q U A N T I T A T I V E M O D U L E
Linear Programming
DISCUSSION QUESTIONS
1. Students may select from eight LP applications given in the
introduction. These include school bus scheduling, police patrol
allocation, scheduling bank tellers, selecting product mix, picking
blends to minimize cost, minimizing shipping cost, developing
production schedules, and allocating space.
2. LP theory states that the optimum lies on a corner. All three
solution techniques make use of the corner point feature.
3. The feasible region is the area bounded by the set of problem
constraints. A feasible solution is any combination of x, y coordi-
nates (or x
1
, x
2
coordinates) that is in or on the feasible region.
4. Each LP problem that has been formulated correctly does
have an infinite number of possible solutions. Any point within
the feasible region is a solution that satisfies all constraints (al-
though it is not necessarily optimal). In addition, for any problem
in which the optimal solution lies on a constraint that is parallel to
the objective function, all points along that constraint are also
both feasible and optimal.
5. The objective function contains the profit or cost information
that enables us to determine whether one solution is better than an-
other solution. Our choice of best depends only on the objective.
6. Before activity values can be placed into the objective, they
must meet the constraints. Notice that the objective function has no
minimum-required profit level unless it is included as a constraint.
7. As long as the costs do not change, the diet problem always
provides the same answer. In other words, the diet is the same
every day. Unlike animals, people enjoy variety, and variety can-
not be included as a linear constraint.
8. The number of feasible solutions is infinite. We only need to
consider extreme pointscorner pointsto find the optimal solu-
tion. If we use isoprofit lines, we only need to examine one corner
point to determine the optimal solution.
9. Shadow price or dual: the value of one additional unit of a
resource, such as one more hour of a scarce labor resource or one
more dollar to invest.
10. The iso-cost line is moved down in a minimization problem
until it no longer intersects with any constraint equation. The last
point in the feasible region that the line touches is the optimal
corner point.
11. The corner point method examines the profit at every corner
point, whereas the iso-profit line method draws a series of parallel
profit lines until one line finally touches the last tip (corner point)
of the feasible region. That last point touched is the optimal solu-
tion, so other corner points need not be tested.
12. When two constraints do not cross at an axis, we use simul-
taneous equationsthere is only one point where two linear equa-
tions (constraints) cross.
13. (a) Adding a new constraint will reduce the size of the feasi-
ble region unless it is a redundant constraint. It can never
make the feasible region any larger.
(b) A new constraint can only reduce the size of the feasible
region; therefore the value of the objective function will
either decrease or remain the same. If the original solu-
tion is still feasible, it will remain the optimal solution.
ACTIVE MODEL EXERCISE
ACTIVE MODEL B.1: LP Graph
1. By how much does the profit on Walkmans need to rise to
make it the only product manufactured?
If the profit per walkman is more than $10 per unit then
it is the only product that should be manufactured.
2. By how much does the profit on Walkmans need to fall to
stop manufacturing it?
At $6.66 and below we should not manufacture any
Walkmans.
3. What happens to the profit as the number of assembly hours
increases by 1 hour at a time? For how many hours does this
hold true?
The profit rises by $.50 per hour until we reach 120 hours
at which point the rise stops.
4. What happens if we can reduce the electronics time for
Watch-TVs to 2.5 hours?
The profit rises by $70.
286 QUANTITATIVE MODULE B LI NEAR PROGRAMMI NG
END-OF-MODULE PROBLEMS
X Y Z = 4X + 6Y
0 0 0
4 0 16
0 4 24
1.33 3.33 25.33 (optimal)
Feasible corner points (x,y): (0,3), (0,10), (2.4,8.8), (6.75,3).
Maximum profit 100 at (0,10).
B.3 (a) The optimal solution of $26 profit lies at the point
X
1
= 2, X
2
= 3.
(b) If the first constraint is altered to 1X
1
+ 3X
2
s 8, the fea-
sible region and optimal solution shift considerably, as
follows.
B.1
B.2
QUANTITATIVE MODULE B LI NEAR PROGRAMMI NG 287
B.4 (a) Corner points (0,50), (50,50), (0,200), (75,75), (50,150).
(b) Optimal solutions: (75,75) and (50,150). Both yield
profit of $3,000.
B.5
X Y Z = 24X + 15Y
0 20 300
11 0 264
3.86 4.54 160.86 (optimal)
B.6 (a) Let x
1
= number of liver flavored biscuits in a package
x
2
= number of chicken flavored biscuits in a package
Minimize x
1
+ 2x
2
Subject to x
1
+ x
2
> 40
2x
1
+ 4x
2
> 60
x
1
s 15
x
1
, x
2
> 0
(b) Corner points are (0,40) and (15,25). Optimal solution is
(15,25) with cost of 65.
(c) Minimum cost = 65 cents.
288 QUANTITATIVE MODULE B LI NEAR PROGRAMMI NG
B.7
Let x
1
= number of air conditioners to be produced
x
2
= number of fans to be produced
Maximize 25x
1
+ 15x
2
Subject to 3x
1
+ 2x
2
s 240 (wiring)
2x
1
+ 1x
2
s 140 (drilling)
x
1
, x
2
> 0 (nonnegativity)
Profit:
@a: (x
1
= 0, x
2
= 0) Obj = $0
@b: (x
1
= 0, x
2
= 120) Obj = 25 0 + 15 120 = $1,800
@c: (x
1
= 40, x
2
= 60) Obj = 25 40 + 15 60 = $1,900*
@d: (x
1
= 70, x
2
= 0) Obj= 25 70 + 15 0 = $1,750
* The optimal solution is to produce 40 air conditioners and
60 fans each period. Profit will be $1,900.
B.8
Let x
1
= number of Model A tubs produced
x
2
= number of Model B tubs produced
Maximize 90x
1
+ 70x
2
Subject to 125x
1
+ 100x
2
s 25,000 (steel)
20x
1
+ 30x
2
s 6,000 (zinc)
x
1
, x
2
> 0 (nonnegativity)
Profit:
@a: (x
1
= 0, x
2
= 200) Obj = 90 0 + 70 200
= $14,000.00
@b: (x
1
= 85.71, x
2
= 142.86) Obj = 90 85.71 + 70 142.86
= $17,714.10
@c: (x
1
= 200, x
2
= 0) Obj = 90 200 + 70 0
= $18,000.00*
* The optimal solution is to produce 200 Model A tubs, and 0
Model B tubs. Profit will be $18,000.
B.9 (a) X
1
= number of mattresses
X
2
= number of box springs
Minimize cost = 20X
1
+ 24X
2
subject to X
1
+ X
2
> 30
X
1
+ 2X
2
> 40
X
1
= 20, X
2
= 10, cost = $640
B.10
Let x
1
= number of Alpha-4 computers
x
2
= number of Beta-5 computers
Maximize: 1200x
1
+ 1800x
2
Subject to 20x
1
+ 25x
2
= 800 (total hours)
x
1
> 10 (Alpha-4s)
x
2
> 15 (Beta-5s)
x
1
, x
2
> 0 (nonnegativity)
Profit:
@ a: (x
1
= 10, x
2
= 24) Obj = 1200 10 + 1800 24
= $55,200*
@ b: (x
1
= 21.25, x
2
= 15) Obj = 1200 21.25 + 1800 15
= $52,500
* The optimal solution is to produce 10 Alpha-4 and 24 Beta-5
computers per period. Profit is $55,200.
(b)
QUANTITATIVE MODULE B LI NEAR PROGRAMMI NG 289
B.11 Let: X
1
= number of pounds of compost in each bag
X
2
= number of pounds of sewage waste in each bag
Minimize cost = 5X
1
+ 4X
2
(in cents)
Subject to X
1
+ X
2
> 60 (pounds per bag)
X
1
> 30 (pounds compost per bag)
X
2
s 40 (pounds sewage per bag)
Corner point a:
(X
1
= 30, X
2
= 40) cost = 5(30) + (4)(40) = $3.10
Corner point b (which is optimal):
(X
1
= 30, X
2
= 30) cost = 5(30) + (4)(30) = $2.70
Corner point c:
(X
1
= 60, X
2
= 0) cost = 5(60) + (4)(0) = $3.00
B.12
The optimal point, a, lies at the intersection of the
constraints:
3x
1
+ 2x
2
> 120
x
1
+ 3x
2
> 90
To solve these equations simultaneously, begin by writing
them in the form shown below:
3x
1
+ 2x
2
= 120
x
1
+ 3x
2
= 90
Multiply the second equation by 3, and add it to the first:
3x
1
+ 2x
2
= 120 3x
1
+ 2x
2
= 120
3(x
1
+ 3x
2
= 90) 3x
1
9x
2
= 270
7x
2
= 150
Therefore, x
2
= 150/7 = 21.43. Given: 3x
1
+ 2x
2
= 120 then
3x
1
= 120 2x
2
= 120 2 21.43
and
= =
1
77.14
25.71
3
x
Thus, the optimal solution is: x
1
= 25.71, x
2
= 21.43
The cost is given by:
C = x
1
+ 2x
2
= 25.71 + 2 21.43 = $68.57
B.13 The last constraint is not linear because it contains the
square root of x and the objective function and first constraint are
not because of the x
1
x
2
term.
B.14 (a) Using software, we find that the optimal solution is:
x
1
= 7.95
x
2
= 5.95
x
3
= 12.60
Profit = $143.76
(b) There is no unused time available on any of the three
machines.
(c) An additional hour of time on the third machine would
be worth $0.26.
(d) Additional time on the second machine would be
worth $0.786 per hour for a total of $7.86 for the addi-
tional 10 hours.
B.15 (a)
290 QUANTITATIVE MODULE B LI NEAR PROGRAMMI NG
(c) If X
1
s profit coefficient was overestimated, but should
only have been $1.25, it is easy to see graphically that
the solution at point b remains optimal.
B.16 (a) Let X
ij
number of students bused from sector i to
school j. Objective:
subject to
700 (number students in sector )
500 (number students in sector )
100 (number students in sector )
800 (number students in sector )
400(number s
AB AC AE
BB BC BE
CB CC CE
DB DC DE
EB EC EE
X X X
A
X X X
B
X X X
C
X X X
D
X X X
tudents in sector )
900 (school capacity)
900 (school capacity)
900 (school capacity)
AB BB CB DB EB
AC BC CC DC EC
AE BE CE DE EE
E
X X X X X
B
X X X X X
C
X X X X X
E
d
d
d
(b) Solution: X
AB
400
X
AE
300
X
BB
500
X
CC
100
X
DC
800
X
EE
400
Distance 5,400 student miles
X
1
$ invested in Treasury notes
X
2
$ invested in bonds
Maximize ROI 0.08X
1
0.09X
2
X
1
t $125,000
X
2
d $100,000
X
1
X
2
$250,000
X
1
, X
2
t 0
Point a (X
1
150,000, X
2
100,000),
ROI $21,000 (optimal solution)
Point b (X
1
250,000, X
2
0), ROI $20,000
(b)
B.17
minimize total travel miles = 5 8 6
0 4 12
4 0 7
7 2 5
12 7 0
AB AC AE
BB BC BE
CB CC C E
DB DC DE
EB EC EE
X X X
X X X
X X X
X X X
X X X
QUANTITATIVE MODULE B LI NEAR PROGRAMMI NG 291
B.18 Problem Data Solution
Period
Time Period
Workers
Required
Hire
Solution 1
Hire
Solution 2
Hire
Solution 3
1 3 AM7 AM 3 0 3 3
2 7 AM11 AM 12 16 9 14
3 11 AM3 PM 16 0 7 2
4 3 PM7 PM 9 9 2 7
5 7 PM11 PM 11 2 9 4
6 11 PM3 AM 4 3 0 0
_ = 30 _ = 30 _ = 30
Let x
i
= number of workers reporting for the start of work
in period i, where i = 1, 2, 3, 4, 5, or 6. The equations
become:
Objective:
x
1
+ x
2
+ x
3
+ x
4
+ x
5
+ x
6
(Minimize staff size)
Subject to:
1 2
2 3
3 4
4 5
5 6
1 6
1 2 3 4 5 6
12
16
9
11
4
3
, , , , , 0
x x
x x
x x
x x
x x
x x
x x x x x x
+ >
+ >
+ >
+ >
+ >
+ >
>
Note that three alternate optimal solutions are provided to
this problem. All solutions could be implemented using
only 30 staff members.
B.19 (a) Let X
1
= wren houses
X
2
= bluebird houses
Maximize Profit = 6X
1
+ 15X
2
4X
1
+ 2X
2
s 60
4X
1
+ 12X
2
s 120
Corner Points
X1 X2 Profit
0 0 0
15 0 90
0 10 150
12 6 162 (Optimal)
The maximum value of the objective is $162, obtained by
producing 12 wren houses and 6 bluebird houses.
B.20 The original equations are:
Objective: 9x
1
+ 12x
2
(maximize)
Subject to: x
1
+ x
2
s 10 (gallons, varnish)
x
1
+ 2x
2
s 12 (lengths, redwood)
where: x
1
= number of coffee tables/week
x
2
= number of bookcases/week
Optimal: x
1
= 8, x
2
= 2, Profit = $96
B.21 (a) Using the isoprofit line or corner point method, we see
that point b (where X
1
= 37.5 and X
2
= 75) is optimal if
the profit = $3X
1
+ $2X
2
.
(b) If the profit changes to $4.50 per unit of X
1
, the opti-
mal solution shifts to point c.
(c) If the objective function becomes P = $3X
1
+ $3X
2
, the
corner point b remains optimal.
B.22
(b)
292 QUANTITATIVE MODULE B LI NEAR PROGRAMMI NG
The original equations are:
Objective: 4x
1
5x
2
(minimize)
Subject to: x
1
2x
2
t 80
3x
1
x
2
t 75
The optimal solution is found at the intersection of the two
constraints:
x
1
2x
2
t 80
3x
1
x
2
t 75
To solve these equations simultaneously, begin by writing
them in the form shown below:
x
1
2x
2
80
3x
1
x
2
75
Multiply the second equation by 2 and add it to the first:
1 2 1 2
1 2 1 2
2 80 2 80
2(3 75) 6 2 150
5 70 z
x x x x
x x x x
x
o
o
Thus, x
1
70/5 14. Given: x
1
2x
2
80,
2x
2
80 x
1
80 14 or x
2
66/2 33.
The cost is given by:
C 4x
1
5x
2
4 u 14 5 u 33 221
B.23 Let x
1
the number of class A containers to be used
x
2
the number of class K containers to be used
x
3
the number of class T containers to be used
The appropriate equations are:
Maximize: 9x
1
7x
2
15x
3
Subject to: 2x
1
x
2
3x
3
d 130 (Material)
2x
1
6x
2
4x
3
240 (Time)
x
1
, x
2
, x
3
t 0 (nonnegativity)
Using software we find that the optimal solution is:
x
1
0, x
2
14.29, x
3
38.57
and
Profit $678.57
B.24 (a) The unit profit of the air conditioner must fall in the
range $22.50$30.00
(b) The shadow price for the wiring constraint is $5.00,
and it holds within the range 210280 hours.
Let: X
1
number of TV spots
X
2
number of newspaper ads
Maximize exposures 35,000X
1
20,000X
2
2
1
1
1
2
Subject to: 3,000 1, 250 $100,000
5
25
10
X X
X
X
X
d
t
d
t
1 2
1 2
1 2
Point ( 5, 10), exposure = 375,000
Point ( 5, 68), exposure = 175,000 + 1,360,000
= 1,535,000 (this is optimal)
Point ( 25, 20), exp
a X X
b X X
c X X
1 2
osure 875, 000 400, 000
1, 275,000
Point ( 25, 10), exposure 875,000 + 200,000
1,075,
d X X
000
B.26 (a) Minimize:
1 1 1 2 2 2 3 3 3
6 5 3 8 10 8 11 14 18
a b c a b c a b c
x x x x x x x x x
1 2 3
1 2 3
1 2 3
1 1 1
2 2 2
3 3 3
Subject to: 7
12
5
6
8
10
All variables 0
a a a
b b b
c c c
a b c
a b c
a b c
x x x
x x x
x x x
x x x
x x x
x x x
d
d
d
t
(b) Solution:
1
2
2
3
3
6
3
5
7
3
Cost $219
b
b
c
a
b
x
x
x
x
x
+ + + + + +
+ + + + + +
+ + + + + +
+ +
3 4 5 6 7
1 5 6 7
74 83 7 14 8 26
22 28 19 63 50
All 0
i
X X X X X
X X X X
X
+ + + +
+ + +
1
2
3
4
Optimal solution: 7.5 (C - 30)
15.0 (C - 92)
0.0 (D - 21)
27.5 (E - 11)
Cost $3.35
x
x
x
x
INTERNET CASE STUDIES*
MEXICANA WIRE WORKS
1. Maximize P = 34W75c 30W33c 60W5x 25W7x
d
d
d
d
d
d
d
d
t
t
Subject to: 1 75 1400
1 33 250
1 5 1510
1 7 1116
1 75 2 33 0 5 1 7 4, 000
1 75 1 33 4 5 1 7 4,200
1 75 3 33 0 5 0 7 2, 000
1 75 0 33 3 5 2 7 2, 300
1 75 150
1 7 600
W c
W c
W x
W x
W c W c W x W x
W c W c W x W x
W c W c W x W x
W c W c W x W x
W c
W x
*Solutions to cases that appear on our companion web site
(www.prenhall.com/heizer).
300 QUANTITATIVE MODULE B LI NEAR PROGRAMMI NG
2
3
Solution:
Produce: 1100 units of W75cbackorder 300 units
250 units of W33cbackorder 0 units
0 units of W5xbackorder 1,510 units
600 units of W7xbackorder 516 units
Maximized profit will be $59,900.
By addressing quality problems listed earlier, we could increase
our capacity by up to 3 percent reducing our backorder level.
2. Bringing in temporary workers in the Drawing Department
would not help. Drawing is not a binding constraint. However, if
these former employees could do rework, we could reduce our
rework inventory and fill some of our back orders, thereby in-
creasing profits. We have about a third of a months output in
rework inventory. Expediting the rework process would also free
up valuable cash.
3. The plant layout is not optimum. When we install the new
equipment, an opportunity for improving the layout could arise.
Exchanging the locations of Packaging and Extrusion would cre-
ate a better flow of our main product. Also, as we improve our
quality and reduce our rework inventory, we could capture some
of the space now used for rework storage and processing and put
it to productive use.
Our machine utilization of 63% is quite low. Most manufac-
turers strive for at least an 85% machine utilization. If we could
determine the cause(s) of this poor utilization, we might find a key
to a dramatic increase in capacity.
COASTAL STATES CHEMICAL
This case illustrates the use of linear programming in production
planning.
1. To develop the model:
Let: x
1
= tons of phosphoric acid produced per day
x
2
= tons of urea produced per day
x
3
= tons of ammonium phosphate produced per day
x
4
= tons of ammonium nitrate produced per day
x
5
= tons of chlorine produced per day
x
6
= tons of caustic soda produced per day
x
7
= tons of vinyl chloride monomer produced per day
x
8
= tons of hydrofluoric acid produced per day
The appropriate model equations then become:
Maximize: 60x
1
+ 80x
2
+ 90x
3
+ 100x
4
+ 50x
5
+ 50x
6
+ 65x
7
+ 70x
8
Subject to: Demand Constraints:
1
2
3
4
5
6
7
8
320
200
270
300
480
600
300
320
x
x
x
x
x
x
x
x
s
s
s
s
s
s
s
s
Supply constraint (with no curtailment):
5.5x
1
+ 7x
2
+ 8x
3
+ 10x
4
+ 15x
5
+ 16x
6
+ 12x
7
+ 11x
8
s 36,000
(a) Supply constraint (20 percent gas curtailment):
5.5x
1
+ 7x
2
+ 8x
3
+ 10x
4
+ 15x
5
+ 16x
6
+ 12x
7
+ 11x
8
s 28,800
(Note: 36000 cu. ft. 10
3
0.80 = 28,800 cu. ft. 10
3
)
(b) Supply constraints (40 percent gas curtailment):
5.5x
1
+ 7x
2
+ 8x
3
+ 10x
4
+ 15x
5
+ 16x
6
+ 12x
7
+ 11x
8
s 21,600
(Note: 36000 cu. ft. 10
3
0.60 = 21,600 cu. ft. 10
3
)
With a 20 percent natural gas curtailment, the optimal pro-
duction schedule, in tons/day, is:
1
2
3
4
5
6
7
8
320
200
270
300
Profit: $174,650
480
385
300
320
x
x
x
x
x
x
x
x
=
`
=
=
)
With a 40 percent natural gas curtailment, the optimal
production schedule, in tons/day, is:
1
2
3
4
5
6
7
8
320
200
270
300
Profit: $151,933.50
410.67
0
300
320
x
x
x
x
x
x
x
x
=
`
=
=
)
2. Obviously, those products that have high energy consumption
factors must undergo extensive scrutiny to conserve energy. These
products include chlorine (15.0) and caustic soda (16.0). Energy
consumption is high for these chemicals because they are pro-
duced by electrolytic cell operation. The caustic soda also requires
extensive steam heated evaporation beyond production at the cells.
Energy conservation measures include elimination of steam leaks
as well as electrical ground and proper insulation of equipment.
3. These products are all produced by large-volume, capital-
intensive plants. Emergency shutdowns often result in loss of raw
materials, pollution, potential personnel hazards, and equipment
damage. These plants are staffed for normal operations, and
emergency rate reductions often require operator manpower be-
yond normal staffing. Consequently, these plants may be out of
control during unplanned and drastic rate reductions.
4. Normal profit: $185,400/day
Profit with a 20 percent curtailment: $174,650/day
Profit with a 40 percent curtailment: $151,933/day
CHASE MANHATTAN BANK
This scheduling problem can be solved most expeditiously using
linear programming. Let F denote the number of full-time employ-
ees. Some number, F1, of them will work one hour of overtime
between 5 PM and 6 PM each day and some number, F2, of the full-
time employees will work overtime between 6 PM and 7 PM. There
will be seven sets of part-time employees who begin their work
day at hour j, j = 1, 2, . . . ,7, with P1 being the number of workers
beginning at 9 AM, P2 at 10 AM, . . . , P7 at 3 PM. Note that because
part-time employees must work a minimum of four hours, none
QUANTITATIVE MODULE B LI NEAR PROGRAMMI NG 301
can start after 3 PM because the entire operation ends at 7 PM.
Similarly, some number of part-time employees, Qj, leave at the
end of hour j, j = 4, 5, . . . , 9.
The workforce requirements for the first two hours, 9 AM and
10 AM, are:
F + P1 14
F + P1 + P2 25
At 11 AM half of the full-time employees go to lunch; the re-
maining half go at noon. For those hours:
0.5F + P1 + P2 + P3 26
0.5F + P1 + P2 + P3 + P4 38
Starting at 1 PM, some of the part-time employees begin to
leave. For the remainder of the straight-time day:
1 2 3 4 5 4 55
1 2 3 4 5 6 4 5 60
1 2 3 4 5 6 7 4 5 6 51
1 2 3 4 5 6 7 4 5 6 7 29
F P P P P P Q
F P P P P P P Q Q
F P P P P P P P Q Q Q
F P P P P P P P Q Q Q Q
+ + + + +
+ + + + + +
+ + + + + + +
+ + + + + + +
For the two overtime hours:
1 2 3 4 5 6
7 4 5 6 7 8 14
1 2 3 4 5 6
7 4 5 6 7 8 9 9
F P P P P P P
P Q Q Q Q Q
F P P P P P P
P Q Q Q Q Q Q
+ + + + + +
+
+ + + + + +
+
If the left-hand sides of these 10 constraints are added, one
finds that 7F hours of full-time labor are used in straight time
(although 8F are paid for), F1 + F2 full-time labor hours are used
and paid for at overtime rates, and the total number of part-time
hours is:
10 1 9 2 8 3 7 4 6 5 5 6 4 7
6 4 5 5 4 6 3 7 2 8 9 128.4
P P P P P P P
Q Q Q Q Q Q
+ + + + + +
which is 40% of the days total requirement of 321 person hours.
This also leads to the objective function. The total daily labor
cost, which must be minimized, is:
8(10.11) 8.08( 1 2)
7.82(10 1 9 2 8 3 7 4 6 5 5 6 4 7
6 4 5 5 4 6 3 7 2 8 9)
Z F F F
P P P P P P P
Q Q Q Q Q Q
= + +
+ + + + + + +
Total overtime for a full-time employee is restricted to five
hours or less, an average of one hour or less per day per employee.
Thus, the number of overtime hours worked per day cannot exceed
the number of full-time employees:
F1 + F2 F
Because part-time employees must work at least four hours
per day,
Q4 P1
for those leaving at the end of the fourth hour. At the end of the
fifth hour, those leaving must be drawn from the P1 Q4 remain-
ing plus the P2 that arrived at the start of the second hour:
Q5 P1 + P2 Q4
Similarly, for the remainder of the day:
6 1 2 3 4 5
7 1 2 3 4 4 5 6
8 1 2 3 4 5 4 5 6 7
9 1 2 3 4 5 6 4 5 6 7 8
Q P P P Q Q
Q P P P P Q Q Q
Q P P P P P Q Q Q Q
Q P P P P P P Q Q Q Q Q
+ +
+ + +
+ + + +
+ + + + +
To ensure that all part-timers who began at 9 AM do not work
more than seven hours:
Q4 + Q5 + Q6 + Q7 P1
Similarly:
Q4 + Q5 + Q6 + Q7 + Q8 P1 + P2
Q4 + Q5 + Q6 + Q7 + Q8 + Q9 P1 + P2 + P3
Finally, to ensure that all part-time employees leave at some time:
P1 + P2 + P3 + P4 + P5 + P6 + P7 = Q4 + Q5 + Q6 + Q7
+ Q8 + Q9
The resulting problem has 16 variables and 22 constraints. If inte-
ger programming software with sufficient capacity is not avail-
able, the linear programming problem can be solved and the solu-
tion rounded, making certain that none of the constraints have
been violated. Note that the integer programming solution might
also need to be adjustedif F is an odd integer, 0.5F will not be
an integer and the requirement that half of the full-time employ-
ees go to lunch at 11 AM and the other half at noon will have to be
altered by assigning the extra employee to the appropriate hour.
1. The least-cost solution requires 29 full-time employees, 9 of
whom work two hours of overtime per day. In actuality, 18 of the
full-time employees would work overtime on two different days and
9 would work overtime on one day. Fourteen of the full-time work-
ers would take lunch at 11 AM and the other 15 would take it at
noon. Eleven part-timers would begin at 11 AM with 9 of them leav-
ing at 3 PM and the other 2 at 4 PM. Fifteen part-time employees
would work from noon until 4 PM and 5 would work from 2 PM until
6 PM. The resulting cost of 232 hours of straight time, 18 hours of
overtime, and 126 hours of part-time work is $3,476.28 per day.
This solution is not uniqueother work assignments can be
found that result in this same cost.
2. The same staffing would be used every day. In fact, one
would expect different patterns to present themselves on different
days; for example, Fridays are usually much busier bank days
than the others. In addition, the person hours required for each
hour of the day are assumed to be deterministic. In a real situation,
wide fluctuations will be experienced in a stochastic manner.
The optimal solution results in a considerable amount of idle
time, partly caused by the restriction that employees can start at the
beginning of an hour and leave at the end. Eliminating this restriction
might yield better results at the risk of increasing the problem size.