Bus Routing Using Hsa Harmony Method
Bus Routing Using Hsa Harmony Method
ABSTRACT
A recently-developed nature-inspired algorithm, Harmony Search,
mimicking music improvisation, is introduced and applied to
transportation problem (school bus routing), and compared with
popular evolutionary algorithm (genetic algorithm). The Harmony
Search is conceptualized using the musical process of searching
for a perfect state of harmony. This algorithm was applied to a
test network consisting of one bus depot, one school and ten bus
stops with demand by commuting students. This school bus
routing example is a multi-objective problem to minimize the
number of operating buses and also the travel time of all buses,
with bus capacity and time window constraints that are considered
as penalty costs. Harmony Search could find good solution within
the reasonable time with other advantages such as no derivative
requirement and no initial value assumption. The presented
routing model is expected to be applied to large-scale real
networks in the future.
General Terms
Algorithms, Design, Economics
Keywords
Harmony Search, School Bus Routing, Optimization
1. INTRODUCTION
Transportation researchers and professionals are sometimes coped
with situations where optimal decisions need to be made.
Traditionally various mathematical techniques have been used for
supporting these optimal decisions. However, their computational
disadvantages such as requiring derivative information, initial
value assumption, or huge amount of computation and memory,
made them rely on another type of methodology, that is,
evolutionary or meta-heuristic algorithms.
Permission to make digital or hard copies of all or part of this work for
personal or classroom use is granted without fee provided that copies are
not made or distributed for profit or commercial advantage and that
copies bear this notice and the full citation on the first page. To copy
otherwise, or republish, to post on servers or to redistribute to lists,
requires prior specific permission and/or a fee.
GECCO 2005, June 2529, 2005, Washington, DC, USA.
Copyright 2004 ACM 1-58113-000-0/00/0004$5.00.
Subject to
xi X i , i = 1,2,..., N
f (x)
is an objective function;
Where
decision variable
for
each
xi ; X i
(2)
decision
variable,
that
is,
x1
2
x
HM =
...
HMS
x
(3)
x1 )
x11 ~ x1HMS ).
f (x)
(1)
(4)
The HMCR sets the rate of choosing one value from the historical
values stored in the HM, and (1-HMCR) sets the rate of randomly
choosing one value from the possible range of values.
Next,
each
component
of
the
new
harmony
vector,
adjusted. This procedure uses the PAR parameter that sets the rate
of adjustment for the pitch from the HM as follows:
PAR
Yes w.p.
xi
No w.p. (1 PAR)
(5)
xi (k ) (the
adjusted value of xi ( k ) is
assumed to be
xi xi (k + m)
xi
is Yes and
xi
is
Xi
), the pitch-
(6)
kth element in
m
is
the
m {..., 2, 1, 1, 2, ...} .
Where
neighboring
index,
4. PROBLEM FORMULATION
is better than
DNED = union
( DN ED )
xi
VS
= vehicle set
i DN , k VS
x = vector of decision variables xi ,
nbus(x)
lkijk
i DN
4.4 Formulation
Minimize
k iSTDN jDNED
k VS , i STDN , j DNED
4.2 Parameters
(7)
subject to
(8)
DM
(9)
k
i
BC k , k VS
iSTDN jDNED
spij lk ijk + DM ik bt TW k , k VS
i
(10)
nset (VS )
k
i
VS
i by bus k ,
i DN , k VS
TW k
k
ij
DM
vtmk
ij
vcp k
sp lk
k VS
4.3 Sets
DN
ST
routing costs and computing times are $399,870 and 6.6 seconds
in HS, and $409,597 and 6.7 seconds in GA on Pentium II 233
MHz.
5. COMPUTATIONAL RESULTS
In order to apply the HS algorithm to the school bus routing
problem, parameters of HS algorithm are specified such as the
number of musical instruments (= 10 of demand nodes), pitch
range of each instrument (= {bus 1, bus 2, bus 3, bus 4}),
Harmony Memory Size (HMS) (= 10 ~ 100), Harmony Memory
Considering Rate (HMCR) (= 0.3 ~ 0.95), and stopping criteria (=
1000 improvisation). Next, harmonies (solution vectors) are
randomly generated from the possible range as many as HMS and
sorted by objective function value.
In Step 3, a new harmony is generated from the HM. For instance,
the bus of the first demand node in the new vector can be chosen
any bus out of the stored buses (for example, {bus3, bus1, bus 2,
bus 2, bus 3, bus 1, bus 4, bus 2, bus 4, bus 2}) of the first
demand node in HM. The buses of other demand nodes can be
chosen in the same manner. On the other hand, in smaller
possibility (1-HMCR), a bus can be chosen from all the possible
range {bus 1, bus 2, bus 3, bus 4}.
The new harmony x is put in the objective function to obtain
total cost which consists of fixed bus cost, bus moving cost, and
two penalty costs. If bus k violates equation 9, the variable for
HMCR
0.3
0.5
0.7
0.9
0.95
10
410185
410290
407665
410185
410500
20
410185
410185
410185
307980
307980
40
410185
410395
410185
410185
410185
100
410185
410185
410185
410185
410185
HMS
0.01
0.03
0.05
0.07
0.1
10
410395
509240
410185
410185
407350
20
307980
410185
406930
410185
410185
40
410290
410185
410185
410185
406930
100
410395
410290
410185
410185
410290
PS
bus capacity violation, vcp , becomes 1, and penalty cost for the
capacity violation is added. If bus k violates equation 10, the
k
Bus
Cost ($)
Routes
# of
Students
Travel
Time
(min)
Depot 8 9 10
School
45
31.5
Depot 4 5 6 School
45
28.5
Depot 1 2 3 7
School
40
29.0
307,980
Do Nothing
Depot 2 6 School
35
25.5
Depot 1 3 7 School
25
27.5
Depot 5 9 10 School
45
27.5
Depot 4 8 School
25
29.5
410,185
6. CONCLUSIONS
A newly developed algorithm, Harmony Search is modeled for
solving the school bus routing problem, and the results of HS
computation are compared with those of genetic algorithm. HS
mimics musician's behaviors in music improvisation process.
Musician's behaviors such as memory considering, pitch adjusting,
and random choosing are effectively translated as local and global
solution search schemes.
7. REFERENCES