Professional Documents
Culture Documents
13 SCHEDULING
Objectives
After studying this chapter you should
13.0 Introduction
In the previous chapters it was possible to find the critical path for
complex planning problems, but no consideration was given to
how many workers would be available to undertake the activities,
or indeed to how many workers would be needed for each activity.
You will see how scheduling methods can be applied to Critical
Path Analysis problems but, importantly, it will be shown that such
methods do not necessarily give the optimal solution every time.
You will also see how this scheduling problem is related to binfilling problems, and to a similar problem called the knapsack
problem in which the items carried not only have particular
weight, but also have an appropriate value.
Activity 1
Find the critical path for the activity network shown below.
H
2
2
2
5
5
10
Finish
0
0
Start
D
2
10
0
0
10
10
203
Chapter 13 Scheduling
13.1 Scheduling
As in Activity 1, the following operating rules will be assumed:
1.
2.
3.
17
17
7
0
5
7
7
C
0
12
17
19
22
24
15
10
0
25
25
2
E
2
10
B
Start
0
0
27
27
J
2
29
29
Finish
Chapter 13 Scheduling
Workers
1
A
7
Time
D
25
27
29
F
I
J
32
22
0987654321
987654321
0987654321
0987654321
0
17
30
Example
The problem in Activity 1 has the following
activity network and critical path. Use the
method above to
2
schedule four
A
workers for
0
0
this project.
2
2
B
0
15
Start
H
2
2
2
2
L
5
7
7
J
2
2
K
2
2
10
Finish
17
17
C
0
0
15
0
15
E
0
0
7
F
0
7
G
0
7
10
10
10
205
Chapter 13 Scheduling
Solution
Workers
1
A
0
2
B
D
As no worker is ever idle, and they all finish at time 17, this must
be an optimum solution - you cannot do better! So the algorithm
does not always produce the optimum solution. Currently no
procedure exists which always guarantees to give the optimum
scheduling solution, except the method of exhaustion where every
possible schedule is tested.
I
12
14
15
765432210987654321
1
2
765432210987654321
1
765432110987654321
1
765432210987654321
765432210987654321
1
765432210987654321
1
2
765432110987654321
1
765432110987654321
2
765432210987654321
765432210987654321
1
7654322
1
765432110987654321654321
210987654321
1
7
765432110987654321654321
7654322
7
It should not take too long to find a schedule which completes the
project in time 17. A possible solution is shown in the second
diagram .
25
Workers
Activity 2
A possible revision of the method is to :
1
A
2
B
3
C
4
D
0
2
17
Activity 3
Design your own method of scheduling. Try it out on the two
examples above.
Exercise 13A
1. Use the first scheduling method to find a solution
to Question 3 in Section 12.4, using two workers.
Does this produce an optimum schedule?
2. Find a schedule for the problem given in Question
3, Exercise 12A, using 2 workers and the two
scheduling algorithms given in this section.
Does either of these methods provide an optimal
solution?
206
10
12
14
Chapter 13 Scheduling
A B C D E F G H
J K
Duration
(in days)
Activity 4
Show that there is a solution to this problem which uses only
five workers.
207
Chapter 13 Scheduling
654321
654321
654321
10
Capacity
5
C
Bin number
7654321
7654321
7654321
7654321
7654321
7654321
7654321
7654321
7654321
7654321
6
765432654321
1
765432654321
154321
765432654321
1
7
1
7654326
1
7654321
765432654321
7654321
1
154327
7
1654321
765432654321654327654321
6
7
765432154321654321654321
1
76543215432165432165432
6
7
7
15
Using this method, six bins are needed, but you should have
found a solution in Activity 4 which needs just five bins. So this
method does not necessarily produce the optimum solution.
How can the first-fit method be improved?
Looking at the way the method works, it seems likely that it
might be improved by just reordering the items into decreasing
order of size, so that the items of largest size are packed first.
Then you have the first-fit decreasing method :
1. Reorder the items in decreasing order of size.
2. Apply the first fit procedure to the reordered list.
You will see how this works using the same problem as above.
First reorder the activities in decreasing size.
Activity
D F A K B J E
G H C
Duration
(in days)
10
7654321
7654321
7654321
7654321
7654321
7654321
7654321
7654321
7654321
7654321
7654321
7654321
7654321
7654321
7654321
7654321
7654321654321
7
7654321654321
7
15
208
Chapter 13 Scheduling
Plumbing
Advertising
Example
A builder has piping of standard length 12 metres.
The following sections of various lengths are required
Section
A B C D E F G
J K L
Length
(in metres)
H
4
first-fit method,
(b)
(c)
to find a solution.
Solution
(a) First-fit method
6
321098765432654321
654321
321098765432154321
321098765432154327
6
1
3210987654321
6
1654321
32109876543215432765432110987654321
654327654321
1
32109876543215432765432210987654321
6
2
1
1
1
32109876543215432165432210987654321
6
7
1
12
4
0
B
A
1
E
2
K
5
L K J
H G F
E D C B A
Length
(in metres)
209
Chapter 13 Scheduling
210987654321
210987654321
I
8
4
7654321
7654321
7654321
1
765432154321
6
765432654321
765432654321
1
765432654321
1
765432654321
1
765432654321
1
765432654321
1
765432654321
1
7654326
1
765432154321
654321
1
765432154321
765432654321
6
12
E
F
A
5
H
4
G
0
3210987654321
3210987654321
3210987654321
3210987654321
3210987654321
3210987654321
3210987654321
3210987654321
3210987654321
3210987654321
3210987654321
3210987654321
3210987654321
3210987654321
12
Example
Find an optimum solution for fitting items of size
7, 6, 6, 6, 4, 3
into bins of size 11.
Solution
Noting that
bin size
7+6+6+6+4+3
11
32
11
= 2 10 ,
11
11
10
8
6
4
2
0
210
654321
654321
654321
654321
654321
654321
654321654321
7
654321
7
65432165432165432154321
7
6
65432165432165432154321
7
7
6
Chapter 13 Scheduling
Exercise 13B
1. A project consists of eight activities whose
durations are as follows. There are no precedence
relations.
Activity
Duration
(hours)
Size
Number
3 1m2
60
42m
49
75 m
12
Number
Cost ()
Reading time
(hours)
Chapter 13 Scheduling
Activity 5
By trial and error, find the solution to the traveller's problem.
As you have probably seen, with just a few items it is easy enough
to find the optimum solution. However, in the example above, if
there was a choice of, say, 10 or 15 books, the problem of finding
the optimum solution would now be far more complex.
The first step in the branch and bound method is to list the items
in decreasing order of reading time per unit cost.
Item
Cost
('weight')
Reading time
('value')
0.8
Reading time
per unit cost
('value per
unit weight')
Reordering,
Number
Item
Cost ( w )
Value ( v )
Value per
unit cost
212
Chapter 13 Scheduling
For example let us look at the possible branches from (1, 0, 0, 0, 0).
(1, 1, 0, 0, 0) w = 8 v = 13
(1, 0, 1, 0, 0) w = 5 v = 8
(1, 0, 0, 0, 0)
(1, 0, 0, 1, 0) w = 6 v = 9
(1, 0, 0, 0, 1) w = 7 v = 8
The 'square' shows that there can be no further branching from this
point. For example, there is a square by (1, 1, 0, 0, 0) because the
total allowed cost (weight) of 8 has been reached. Also we always
add additional 1s to the right of the last 1so that, for example, you
could branch from (1, 0, 0, 1, 0) to (1, 0, 0, 1, 1) but you would
never consider branching from (1, 0, 0, 1, 0) to (1, 0, 1, 1, 0). So
when, in the example above, x5 is 1, no further branching is possible
: that accounts for the square by (1, 0, 0, 0, 1). Note that the best
solution (i.e. maximum v) at this stage is v = 13 .
You start the full process at the null solution (0, 0, 0, 0, 0), now
written more simply as 0 0 0 0 0, and then keep repeating the
process as outlined below.
10000
v=4
01000
w=6
v=9
00100
w=3
v=4
00010
w=4
v=5
00001
00000
w=2
w=5
v=4
You can now branch from any of the four vertices which are not
squared: for example, the branches from 1 0 0 0 0 are as shown
above and the branches from 0 1 0 0 0 are as shown below :
01100
01010
w = 10
01001
01000
w=9
w = 11
213
Chapter 13 Scheduling
1 1 0 0 0 w=8
v = 13
1 0 1 0 0 w=5
w=2 1 0 0 0 0
v=4
v=8
1 0 0 1 0 w=6
v=9
1 0 1 1 0 w=9
1 0 1 0 1 w = 10
1 0 0 1 1 w = 11
1 0 0 0 1 w=7 v=8
0 1 1 0 0 w=9
0 1 0 1 0 w = 10
01000
w=6 v=9
0 1 0 0 1 w = 11
00000
00100 w=7
w=4 00100
v=4
v=9
0 0 1 1 1 w = 12
0 0 1 0 1 w=8
v=8
00010 w=4
v=5
0 0 0 1 1 w=9
0 0 0 0 1 w=5
v=4
Exercise 13C
1. Suppose that a hiker can pack up to 9 kg of items
and that the following items are available to take.
The value of each item is also specified.
Item
Weight (kg)
Value
3
2
8
12
6
9
4
3
2
5
Use (hours/day)
Income (1000/year)
8
72
12
102
13
143
4
38
214
Chapter 13 Scheduling
Item
Production time
(in days)
Value
14
Duration
9 10 11
Weight (kg)
Value
(c)
Length
Number Required
15 m
12 m
11 m
7m
3m
1
2
1
3
2
A B C D E F G H I
Duration
5 9 1 7 3 2 8 4 6
(b)
m
m
m
m
2
2
1
1
Length
Number Required
11 m
9m
7m
5m
3m
1
1
2
2
12
215
Chapter 13 Scheduling
216