Professional Documents
Culture Documents
W-213
Permmn Press Ltd.. 1980. Printed in Great Britain
GILLESDULAC,t JACQUES
A. FERLAND,~
and PIERRE A. FORGUESO
D6partement d’informatique, et de recherche op&ationnelle, Universite de Montreal, Canada H3C 3J7
Scope and purpose-This paper analyses an operative planning process for the transportation of students to
schools (and back home). The scale and the complexity of the problem lead the authors to use heuristic
methods both to assign students to stops and to generate routes. Several vehicle routing techniques are
analysed and compared in the context of school busing. In the final stage of the process, the solutions can
be improved through branch exchange procedures.
Abstract-In this paper, a comprehensive study of the school bus routing problem in an urban surroundings
is presented. It complements and extends over previous school bus routing studies. The problem is defined
as a multi-stage process where the stops are generated, where the students are assigned to these, and where
the bus routes are generated. Several suited versions of vehicle routing techniques are analysed and
compared. Branch exchange procedures to improve the solutions are also studied. Our numerical experi-
mentation indicates that each problem should be solved several times with different routing techniques,
followed by branch exchange procedures, to ensure reliable solutions.
I. INTRODUCTION
In this paper, a comprehensive study of the school bus routing problem in an urban surround-
ings is presented. In general, this problem occurs in a district including several schools. The first
stage of the analysis is to select the stops for each school where the students are picked up and
delivered by their bus, and to assign the students to these selected stops. In the second stage,
the routes are generated for each school independently. Thus, a vehicle routing ‘problem,
defined in terms of nodes to be covered, has to be solved for each school.
Several suited versions of vehicle routing techniques are analysed and compared. Notice
that the routes generated with most of the standard vehicle routing techniques start and end at
the same node (i.e. the school in our problem). This calls for modifications to solve our problem
since a route rarely starts at the school where it ends. As a matter of fact, a prior study using
crude vehicle routing techniques proved to be unsatisfactory by the school board authorities.
Section 2 includes the problem definition in term of both its characteristics and its
constraints and the approach of solution. The iterative steps of the approach and the techniques
are analysed in Sec. 3 and 4. For the vehicle routing aspect of the problem, the following
techniques are analysed: Clarke and Wright technique [1,2], Yellow technique [3], insertion
technique [4], Gillet and Miller technique [5], and Newton and Thomas technique 161.To further
improve the solutions, some branch exchanges procedures [7] are also studied. To conclude, the
numerical results are summarized in Sec. 4.3. These results indicate that a problem should be
solved several times with different techniques to ensure reliable solutions. As we shall see, the
I99
200 G.DULACet al.
“best solution” criterion is hardly (unlikely) defined because the quality of a solution depends
on its easiness to be scheduled, but scheduling time scale is not included yet at this stage of the
complete students’ transportation planning process.
Z.PROBLEM STATEMENT
Let G = (IV, A) be the road network of a city. The edges are the street segments and the
nodes are their intersections and the schools location. For each school in the network, the set of
students to be transported there and their locations in the network are specified. Notice that
even if there are many schools in the network, the routes are determined independently for
each of them (or for each group of schools in the same neighbourhood considered as a unique
larger school). Indeed, at this stage of the complete students’ transportation process, only the
length of each route and the number of students along each of them are relevant.
Our aim is to design efficient techniques to generate school bus routes subject to the
following constraints: (i) the bus capacities are not to be exceeded; (ii) there is an upper bound
on the transportation time; (iii) there is also an upper bound on the total distance that a student
has to walk.
The approach proposed to solve this problem includes four steps:
Step 1: Each student is assigned to a node near by his location. In general it is one of the
two nodes incident to the edge where he is located in the network.
Step 2: A set of stops is determined for each school (or group of schools). These stops are
either provided by the authorities or generated by the system.
Step 3: The students are assigned to the stops. This assignment must satisfy constraint (iii).
Step 4: A set of routes is determined for each school (or group of schools) independently.
These routes verify constraint (i) and (ii). To make it easier, constraint (ii) is replaced by an
upper bound on the number of stops and by an upper bound on the length of each route.
This approach was first proposed by Bodin and Berman in [8]. In step 1, the students of each
school in the network are assigned to a subset of the nodes in N. These are called mini-stops in
Bodin and Berman terminology. This assignment of students to mini-stops makes it easier to
compute walking distances in the network and to analyse students distribution in the network.
Next, steps 2-4 are executed for each school (or group of schools) independently. Notice
the following major differences between the implementation proposed in [8] and the one in this
paper. Bodin and Berman assume that the stops are provided by the school authorities whereas
they can be generated by the system in step 2 of our implementation. Also, to determine reliable
school bus routes, a set of heuristic are analysed and tested.
Recall that the routes generated are the inputs for a later stage of the complete students’
transportation process where the routes and school starting times are to be scheduled to
minimize the bus fleet size. Hence the easiness to schedule these routes should be the most
important criterion to compare the solutions generated by these heuristics. Thus, at the present
stage of the complete process, since the time scale is not yet introduced, the criterion used must
reflect this forthcoming scheduling stage as much as possible. The criterion, proposed here, is a
compromise between the number of routes and the sum of routes lengths. On one hand, it might
be easier to schedule a large number of short routes than a small number of long ones. On the
other hand, the fleet size might increase with the total number of routes. Thus, the solution
strategy is to determine several solutions with different techniques, and to select the solution
minimizing the product (number of routes) * (sum of routes lengths). Several other strategies
with various weights for the two factors may also be analysed, but for the purpose of our study
we limit ourselves to the above stated one.
An alternate approach to determine the routes would be to consider picking up the students
at their locations. Then the problem would be defined in terms of street segments to be covered.
However, in an urban surroundings, the authorities prefer the first alternative since the students
can walk to their stops on sidewalks. Notice that this alternate approach is likely to be adopted
in a rural surroundings.
The problem was stated in terms of routes taking students to school. The converse problem
of taking students from the school to their locations can be solved similarly.
School bus routes generator in urban su~oundings 201
Finally, in step 3, the students are assigned to stops. The procedure is to assign each student
to the nearest stop to his mini-stop. In the case where upper bounds are specified on the number
of students at some stops, if these upper bounds are exceeded when the preceding procedure is
applied, then a straightforward transportation problem can be formulated and solved.
4.ROUTES GENERATOR
Once we know the number of students assigned to each stop for a given school (or group of
schools), the bus routes are generated in step 4 according to the following constraints: (i) the
bus capacities are not exceeded; (ii) there is an upper bound on the number of stops; (iii) there
is an upper bound on the length of a route.
Several suited versions of well known vehicle routing techniques are analysed and com-
pared.
There exist two main approaches solving vehicle routing problems. They are referred to as
“route first-cluster second” and “cluster first-route second” in [8]. In the hrst approach, a giant
tour going through each stop is once determined and then broken into subtours that meet the
constraints. Newton and Thomas technique[6] illustrates this approach. Conversely, the
second approach clusters stops into subsets, for each of which a route satisfying the constraints
exists. Many techniques are available to implement this approach, and this paper includes the
following: Clarke and Wright [l], Yellow [3], Insertion [4] and Gillet and Miller [5].
The analysis was run in two stages: the comparison of the results obtained with these
techniques and their improvement by using branch exchange procedures between routes. The
results seem to replicate those in [lo] for the travelling salesman. This is not surprising since the
problem studied in this paper is, apart constraints, similar to the m-travelling salesman. In
general, the best solution generated by these heuristic techniques is within 7% of the best
known solution, and using branch exchange procedure on that solution, we reach within 2% of
the best known solution.
Notice that a 2-OPT type (HI] and [7]) branch exchange procedure is used to solve
travelling salesman subproblems when needed.
4.1 Techniquesanalysed
This Section briefly summarizes the vehicle routing algorithms and their versions suited to
our problem.
4.1.1 Clarke and Wrighttechnique. The algorithm is initialized by creating one route for
each stop. In the following iterations, the number of routes is reduced by combining two of
them. The selection of routes to be combined is based on savings.
If it is assumed that each route starts and ends at the school (as in the original version [I]),
then the saving Sir for each pair of stops i, j is
S$ is the saving for combining two routes with i and j as extreme stops if i and j are equidistant
from the school. Hence, instead of using (4.1) in our implementation, the savings are evaluated
according to the following relation
Sij = dli + dlj - hdij (4.2)
with values of A around 2.
Schoolbus routes generatorin urban su~oundings 203
In this relation, a term is added to reflect the increase in the distance to move from stop i(j) to
the school when stop j(i)is imposed as an intermediary stop, To illustrate this penalty
assume that dlj > dlj (i.e. & - dlj > 0). The triangle inequality (assumed to be satisfied)implies
that
Hence [fdli- dljj - dij = dli - dgj- dq c 0. If dli - dlj - & = 0, then Fig. 1 illustrates that stop j is
along the route from stop i to the school. If dli - dlj - 4 < 0, then, as illustrated in Fig. 2, the
penalty increases (negatively)for more acute detour.
4.1.2 Yellowt~~~i~~e. This technique is similar to Ciark and Wright but generates only one
route at a time, Given the savings evaluated with (4.2) or (4.3), the heuristic is i~ti~ized by
inducing the edge (i, j) with the largest saving as the first edge on the route. Then, the route is
enlarged from its ends choosing edges in decreasing order of their savings. When no other edge
can be induced to enlarge the current route, the procedure is repeated with the remaining
stops to generate a new one.
4.1.3 ~~e~~on tec~~~ue.This tech~que also generates only one route at a time. A route is
set to start at the farther stop from the school. Then, for each of the rern~~~ stop, we
evaluate the cost of in~~uci~ it between every pair of consecutive stops on the current route.
The stop with the smallest cost is introduced, provided that the constraints are satisfied. This
procedure is repeated with the remaining stops until no other edge can be introduced to enlarge
the current route. When some stops still remains, the procedure is reinitialized to generate a
new route.
Two relations to evaluate the cost Aw for introducing a stop k between two consecutive
stops i and j are analysed. The first relation is defined as follows:
(4.5)
where
i if dli 3 dlj
1
= ] otherwise.
Priority is given here to stops inducing the smallest detour and lying farther from the school.
Fiire 3 iIlustrates the relation.
204 G. DULACetal.
In this example
and
If (d13+ d32)= (d14+ d4J, then stop 3 is selected to be introduced in the route.
The second relation is defined as follows
where
The si~~ty of relations (4.6) and (4.1) means that this variant resembles Yellow technique. In
ad~tion it allows the introduction of a new stop between any pair of consecutive stops on the
route, so it should dominate Yellow technique.
4.1.4 Gillet and Miller (SWEEP) technique. In this technique, the stops are clustered into
subsets by sweeping an imaginary ray centered at the school. Unfortunately some geographical
constraints might be violated. Indeed, in some cases, pairs of stops cannot belong to the same
subset (e.g. two stops on opposite river banks cannot belong to the same route unless there is a
bridge near by crossing). This difficulty is obviated by checking route feasibility before
introducing a new stop.
Finally, some “look ahead” procedures [S] are incorporated in our implementation. These
procedures allow the introduction of other stops than the last one chosen.
4.1.5 ~e~fo~ and ~~~u~ ~ech~~~ue. The first step of the ~gorithm generates a giant tour
going through each stop and the school with the Clark and Wright algorithm by assuming that a
vehicle of i&rite capacity is available. This tour is next broken into routes satisfying the
constraints. Some “look ahead” procedures are also included here.
Fig. 4.
9 7
Q
J
/
/
, __,c_
//
s/
i::
before exchange after rxchonga
Fig. 5.
Table 2.
Insertion (4.5)
(INSR)
1.3 10 Routes 51.996' 50.336' 60.124 57.492 56.398 56.329 63.518 56.989
68 stops 11 Routes 60.883
545 students 12 Routes
C.P. time 5.4 5.8 17.7 20.0 4.9 13.9 2.0 3.0
1.4 10 Routes 52.551* 53.135O 60.088 56.177 56.890 57.852 69.414 61.211
77 stops 11 Routes 55.331 54.017 65.292 59.844
545 students 12 Routes 73.688 66. 684
C.P. time 6.3 6.7 17.8 20.2 5.9 17.8 3.1 4.1
C.P. time 8.2 9.1 27.19 33.15 9.02 25.13 5.61 6.22
Table 3(a),
Techniques C&Y C&W I YLW YLY INSR INSR GW N&T
Problems \ (4.2) (4.3) (4.2) (4.31 (4.5) (4.6)
C.P. time 6.3 6.3 22.7 21.0 6.3 18.5 3.6 3.5
62.774
77 stops 12 Routes 55,245 66.234 66.957 70.591
596 students 13 Routes 57.005 57.005 68.516
2.5 ia ROES I I
99 stops 11 Rautes 56.203' 68.071 59.516
585 student: 12 Routes 59.185 60.155 65.235 x:: 69.450 64.748 73.925
13 Routes 68.975 77,300
C.P. time a.3 a.4 30.8 33.7 a.8 26.5 6.8 6.1
A.
Table 3(b).
90 student C.P. time 4.2 4.1 12.5 14.8 4.0 11.6 7.3 2.7
91 student C.P. time 6.1 5.4 14.6 13.3 3.1 8.9 1 3.8 1 5.7
C.P. time in seconds, l indicates the best technique, and " tne second best technique for the problem
using criterion (4.7)
School bus routesgeneratorin urban surroundings 209
then branches (I, SI) E Pi and (J, SJ) E Pj are replaced by (I, SJ) and (J, SI) to generate the
new routes Pi and Pi if routes Pi and Pi satisfy the constraints.
Notice that there may exist a pair (I, SI)EP~, (J, S.l)EPj such that the relation is not
verified for A = 1, and such that, if a 2-OPT procedure is applied to reduce the length of P’i and
Pi,
Hence the test could be done with value of A larger than 1, and 2-OPT procedure should
be applied to P: and Pi to verify if total length decreases.
Table 3 summarizes the results before any branch exchange procedure is applied. The
solution with the smallest total length is recorded for every different number of routes and for
each variant. The total C.P. solution time in seconds including the solution time for all different
values of A is also recorded.
Notice that a study to determine the best value of A in (4.2), (4.3) and (4.6) is omitted
because it was shown by Golden et al. ([lo], 121) that each problem must be solved with
different values of A since a good value of A for one problem might be bad for another.
We could infer from the results in Table 3 that, in general, INSR (4.6) dominates INSR (4.9,
YLW (4.2) and YLW (4.3) (as expected from the discussion in Sec. 4.1.3), and that N&T
Table 4.
Table 5.
F
Techniques
Problems
1.1
83 stops
,502student~
1.2
80 stops 11 Routes
545studentI C.P. time
1.3 10 Routes
77 stops
1.5
I
96 stops
b45Students
Table 5(a).
Techniques
Problems
2.2. 11 Routes
82 stops 12 Routes
595studentsI----
C.P. time 42.0 9.2
56.?70* 61.981
55.232 54.9690
56.944
38.8 38.9 36.7 10.7
55.15s 59.640'
54.883 i 55.892
School bus routes generator in urban surroundings 211
Table S(b).
using (4.7)
Table 6.
Problems T Techniques
-
only
N.R. is the number of routes, DIST is the total distance. % OPT is the percentage of deviation
from the best known solution. and Rank is the rank of the solution obtained with the best tech-
nique followed by a branch exchange among the solutions obtained with the techniques followed
by a branch exchange.
212 G. DULACet al.
dominates G&M. Hence the analysis of branch exchange efficiency is restricted to C&W,
INSR, and N&T techniques. Thus, each problem was solved according to the pattern in Table
4, and an improvement of each solution was attempted with a branch exchange procedure.
These results, summarized in Table 5, indicate that the improvement with branch exchange is
smaller for C&W solutions than it is for other techniques solutions. This follows from the fact
that C&W technique is minimizing total length rather than locally minimizing the length of one
route at a time as does INSR technique.
Finally, in Table 6, the best solution using only a routing technique is compared with the
best solution using also a branch exchange procedure. There, the first columns summarize the
results for the best technique found in Table 3, the middle ones summarize the results using
branch exchange procedure to improve the best solution of Table 3, and the last ones
summarize the results for the best technique found in Table 5. For each problem, suppose that
the best solution in Table 5 is taken as the best known solution. Then a percentage of deviation
(% OPT) is evaluated for the two other solutions retained in Table 6. These results indicate that
7.3% is the maximum deviation using only a routing technique and that the maximum deviation
reduces to 1.7% using also a branch exchange procedure. These results replicate those of
Golden et al. [ lo] in their study of heuristics to solve the travelling salesman. These results also
indicate that the solution in the second column of Table 6 is the best or second best solution
according to % OPT.
Conclusions are very hard to draw since there is no technique dominating all the others for
every problem. Furthermore, the relative quality of the solutions obtained with the different
techniques seems to be problem dependent. Hence each problem should be solved with C&W,
INSR, and N&T. On the other hand, since a branch exchange procedure is very time consuming
and not very useful to improve solutions generated with C&W technique, its use should be
restricted to the improvement of solutions generated with INSR and N&T techniques and to the
improvement of the best solution using only a routing technique.
5. CONCLUSION
This is the initial stage of a system generating and scheduling school bus routes in time. The
routes generated are input into a subsystem to be scheduled in time, given that schools starting
and ending times are either hxed or to be determined by the system itself (see [13]). Further
reports on these other subsystems should appear in a near future.
Acknowledgement-The authors would like to express their sincere gratefulness to the authorities of Saint-Francois School
board and in particular to Lucien Bolduc for his availability and constructive comments.
REFERENCES
I. G. Clarke and J. W. Wright, Schedulingof vehicles from a central depot to a number of delivery points. Ops Res. 12,568-581
(1964).
2. B. Golden, T. Magnanti and H. Nguyen, Implementing vehicle routing algorithms. Networks 7, 113-148(1977).
3. P. C. Yellow, A Computational Modification to the Savings Method of Vehicle Scheduling. Ops Res. Quart. 21, 281-283
(1970).
4. D. Rose&ran& R. Stearns and P. Lewis, Approximate algorithms for the travelling salesperson problem. Proc. of the
15th Annual IEEE Symp. Switching and Automata Theory, 33-42 (1974).
5. B. E. Gillet and L. R. Miller, A heuristic algorithm for the vehicle-dispatch problem. Ops Res. 22, 340-349(1974).
6. R. M. Newton and W. H. Thomas, Design of school bus routes by computer. Socio-Economic Planning Sci. 3, 75-85
(1%9).
7. S. Lin, Computer solutions of the travelling-salesman problem. Bell System Tech. J. 44.2245-2269 (1%5).
8. L. Bodin and L. Berman, Routing and Scheduling of School Buses by Computer, presented at Fall 1974ORSA Meeting
in San Juan.
9. N. Christotides and P. Viola, The optimum location of multi-centers on a graph. Ops Res. Quart. 22, 145-154(1971).
IO. B. Golden, L. Bodin, T. Doyle and W. Stewart, Jr., Approximate travelling salesman algorithms. Tech. Rep. 77-005, College
of Business and Management, University of Maryland (1977).
I I. Cl. A. Croes, A method for solving travelling-salesman problems. Ops Res. 5,791-812 (1958).
12. B. L. Fox, Data Structures and Computer Science Techniques in Operations Research, Publication No. 245,
Departement d’informatique et de recherche optrationnelle, Universite de Mont&al (1976).
13. J. Desrosiers, J. A. Ferland and J.-M. Rousseau, Horaires d’tcoles et circuits d’autobus scolaires, Document de travail
No. 88, D6partement d’informatique et de recherche optrationnelle, Universite de Mont&al (1976).
14. R. D. Angel, W. L. Caudle, R. Noonan and A. Whinston, Computer-assisted school bus scheduling. Mgmt. Sci. Series B, 18,
279-288(1972).
School bus routes generator in urban surroundings 213
15. B. Bennet and D. Gazes, School bus routing by computer. Trunspn Res. 6,317-326 (1972).
16. C. Grloff, Route constrained fleet scheduling. TM~s. Sci. i0, 149-168(1976).
17. G. Dulac, Affectation des Ctudiants aux a&s d’un systeme de transport des Ccoliers, Rappo~ de stage de maitriw.
Departement d’informatique et de recherche opCrationnelle, Universitt de Montr6al(1978).
18. P. A. Forgues, Generation des parcours pour le transport scolaire, Document de travail No. 101, ~partement
d’informatique et de recherche operationnelle, Universite de Montreal (1978).