Professional Documents
Culture Documents
T he urban bus rout ing problem in t he Tunisian case by t he hybrid art ificial ant colony algorit hm
Rafaa Mraihi
A real geographical applicat ion for t he School Bus Rout ing Problem
Crist iano M Silva
A mathematical formulation for a school bus routing problem
ABSTRACT
The school bus routing problem discussed in this paper, is similar to the standard vehicle routing problem, but has several
interesting additional features. In the standard VRP all stops to visit are given. In our school bus routing problem, we assume
that a set of potential stops is given, as well as a set of students that can walk to one or more of these potential stops. The
school buses used to pick up the students and transport them to their schools have a finite capacity. The goal of this routing
problem is to select a subset of stops that will actually be visited by the buses, determine which stop each student should
walk to and develop a set of tours that minimize the total distance travelled by all buses. We develop an integer programming
formulation for this problem, as well as a problem instance generator. We then show how the problem can be solved using a
commercial integer programming solver and discuss some of our results on small instances.
Keywords: Schoolbus, routing, stop selection, mathematical programming, exact algorithm
1. INTRODUCTION
1552
problem formulation has other applications. For example, velop a multi-objective optimization problem, one of the
some parcel delivery services nowadays offer the option of objectives being the minimization of the total walking dis-
delivering at a set of pre-defined drop-off points. This has tance by all students.
obvious cost-saving advantages over delivering at any lo-
cation specified by the customer. Customers have to de- 3. PROBLEM FORMULATION
cide beforehand at which drop-off point they wish to pick
up their items. It can be envisaged that customers may be As should be clear from the previous discussion, most pa-
asked to specify more than one drop-off point and that the pers on the routing of school buses have focussed on cap-
parcel delivery company will then choose among the ones turing as many aspects of reality as possible, building in-
chosen by at least one customer in such a way that rout- tricate multi-objective models with many complex con-
ing costs are minimized but every customer can pick up straints. In this paper, we focus on a very basic version
his parcel at one of the drop-off points he specified. Cus- of this problem to develop efficient methods that take the
tomers may e.g. be notified by a mobile phone message structure of the problem into account. We focus specifi-
of the drop-off points their package will be delivered. In a cally on the stop selection aspect. Our problem formula-
more complex setting, the price of the delivery may depend tion has only a single school, one type of student and one
on the number of drop-off points specified by the customer. type of bus, with fixed capacity. We optimize the standard
vehicle routing criterion: the total distance travelled by all
The objective of this paper is to define the school bus rout- vehicles.
ing problem as a mixed integer linear programming prob-
lem and solve it using both exact and heuristics methods. The schoolbus routing problem can be expressed as an inte-
As will become clear from the literature review, previous ger linear programming problem. We assume that the graph
research has focused mainly on building intricate multi- on which the problem is defined, is directed. The follow-
objective models of similar problems. The focus on this ing formulation builds upon the one discussed on page 15
paper is on understanding the problem in its simple form of Toth and Vigo [9].
and building a powerful meta-heuristic to solve large in-
3.1. Data
stances quickly.
cij Cost of traversing arc ij
2. LITERATURE REVIEW K Number of buses
C Capacity of the buses
Contrary to the literature on the ordinary vehicle routing V Set of all potential stops
problem and several of its extensions (e.g. time windows), E Set of all arcs between stops
only a limited amount of research has considered the rout- S Set of all students
ing of school buses. In the literature on routing of school sli Binary variable that indicates whether student l
buses, only a small number of papers considers the simul- can walk to stop i or not
taneous selection of stops.
3.2. Decision variables
Most school bus vehicle routing formulations focus on for-
mulating extra constraints and/or objectives to take some xijk number of times vehicle k traverses arcs
student-related factors into account. Bodin and Berman [2], from i to j
Braca et al. [4], and Desrosiers et al. [6], add a maximum yik 1 if vehicle k visits stop i, 0 otherwise
travel-time constraint for each student and/or a time win- zilk 1 if student l is picked up by vehicle k at stop i,
dow for arrival at the school. Bennett and Gazis [1] add the 0 otherwise
total travel time of all children as an objective.
constraints and several objectives. Interestingly, the au- min cij xijk (1)
thors note that local government subsidizing policies may i∈V j∈V k=1
result in very ineffective routings, e.g. maximizing the time X
K
that students spend on a bus instead of minimizing this. The y0k ≤ K, k = 1, . . . , K (2)
authors do not consider automatic stop selection in their k=1
problem formulation. X X
xijk = xjik = yik , ∀i ∈ V, k = 1, . . . , K (3)
Only a limited number of papers on school bus routing con- j∈V j∈V
XX
siders the automatic selection of bus stops to be a part of the xijk ≥ yhk ,
optimization problem. In Dulac et al. [7], students are as-
i∈S j ∈S
/
signed to an intersection of streets adjacent to the street of
their residence. A subset of these potential bus stops is then ∀S ⊆ V \ {0}, h ∈ S, k = 1, . . . , K (4)
selected and a VRP solved. In Chapleau et al. [5], potential X
K
stops are first clustered, after which stops are selected so yik ≤ 1, ∀i ∈ V \ {0} (5)
that a maximum number of students has a stop within walk- k=1
ing distance. The school bus routing problem discussed in
X
K
Bowerman et al. [3] includes a maximum walking distance zilk ≤ sli , ∀l ∈ S, ∀i ∈ V (6)
for a student to his/her assigned bus stop. The authors de- k=1
1553
XX
zilk ≤ C, ∀k = 1, . . . , K (7) (xmax , ymax ).
i∈V l∈S
For each generated stop, ns student positions are generated
zilk ≤ yik , ∀i, l, k (8)
at a distance of maximum wmax from the stop. This is done
XX
K by first generating for each student j an angle αj ∈ [0, 2π]
zilk = 1, ∀l ∈ S (9) and a distance wj from the stop. The student is then put at
i∈V k=1 (x, y)-coordinates equal to (xi +wj cos αj , yj +wj sin αj ).
yik ∈ {0, 1}, ∀i ∈ V, k = 1, . . . , K (10)
5. BENCHMARK EXACT SOLUTIONS
xijk ∈ {0, 1}, ∀i, j ∈ V |i 6= j (11)
zilk ∈ {0, 1}, ∀i, j ∈ V |i 6= j (12) An exact algorithm using the IP formulation proposed in
this paper has been implemented in a commercial IP solver
The objective function (1) minimizes the total travelled dis- and is currently used to solve (small) benchmark instances.
tance by all vehicles. Constraints (2) ensure that all ve- Preliminary results are reported using a Pentium 4, 3.20
hicles start from the depot. Constraints (3) ensure that if GHz running linux. All the source code is written using the
stop i is visited by vehicle k, then one arc should be tra- commercial ILP modelling language Xpress-Mosel 1.6.0
versed by vehicle k entering stop i and leaving stop i. Ca- and solved with the optimizer 16.10.07 from Dash Asso-
pacity cut constraints (4) ensure that each cut (V \ S, S) ciates. Only three instances have been generated for this
defined by a customer set S is crossed by a number of first experimental part.
arcs not smaller than r(S), the minimum number of ve-
hicles needed to serve set S. These constraints serve as As usual, the IP model is first solved ignoring the breaking
subtour elimination constraints. The following constraints subtour constraints (4). Once an optimal solution of the
are added or adjusted in comparison with the original for- subproblem is obtained, i.e. a lower bound of the global
mulation to cope with the special features of this specific problem, breaking subtour constraints are added one by
vehicle routing problem. Constraints (5) ensure that all are one and the subproblem with these additional constraints
visited no more than once, except the stop corresponding is solved again. This procedure is repeated until no illegal
to the depot. Constraints (6) ensure that each student walks subtours are found. The solution obtained after all these
to a single stop he or she is allowed to walk to. Constraints iterations is one of the optimal solution of the problem.
(7) ensure that the capacity of the vehicles is not exceeded. A typical execution is shown on an example with 10 stops
Constraints (8) ensure that student l is not picked up at stop and 50 students given on Figure 3. As in Figure 1, the depot
i by vehicle k if vehicle k does not visit stop i. Constraints is represented with a large square (centered in the figure),
(9) ensure that all students are picked up once. Finally, stops are represented with small squares and circles locate
constraints (10), (11), and (12) ensure that all decision vari- the students. Dotted lines indicates to which bus stop a
ables are binary. This corresponds to ensuring respectively student can walk.
that a vehicle k either visits a stop i or it does not, a vehicle
k either drives from one stop i to another stop j or it does
not, and a vehicle k either picks up a student l at stops i or
it does not.
1554
problem constraints and 3 illegal subtours are built (red
dashed arcs on the figure). The value of the objective func-
tion (1) is 245.74. This value is a lower bound of the opti-
mal objective function value.
1555
It. Subtours Cost CPU (s) ILP it.
1 (6,10) (1,9) (5,8) 294.67 84 9665
2 – 307.44 143 7575
Optimal solution 307.44 227 –
1556
paper, Computer Science Department, Slippery Rock
University, Slippery Rock, PA, USA, 2005.
[9] P. Toth and D. Vigo, editors. “The vehicle routing prob-
lem”. SIAM Monographs on Discrete Mathematics
and Applications. Society for Industrial and Applied
Mathematics, Philadelphia, PA, USA, 2001.
1557