Swarm Intelligence in EngineeringView this Special Issue
Dynamic Route Guidance Using Improved Genetic Algorithms
This paper presents an improved genetic algorithm (IGA) for dynamic route guidance algorithm. The proposed IGA design a vicinity crossover technique and a greedy backward mutation technique to increase the population diversity and strengthen local search ability. The steady-state reproduction is introduced to protect the optimized genetic individuals. Furthermore the junction delay is introduced to the fitness function. The simulation results show the effectiveness of the proposed algorithm.
Online route guidance is one of the most desirable features in intelligent transportation systems (ITSs) . Dynamic route guidance algorithm compute routes with minimum travel time by taking into account the rapid changes in the network traffic conditions and guide the behavior of travelers by providing them with optimal route based on real-time traffic information. As a result the travel time can be saved and the traffic congestion can be avoided.
Various algorithms are available for computing the optimal route. The most popular algorithm is the Dijkstra’s algorithm. Many variations to the Dijkstra’s algorithm such as bidirectional search and binary heap implementation have been proposed to improve its response time. The algorithm, which is widely used in vehicle navigation, is an improved version of the Dijkstra’s algorithm [2, 3]. It makes use of an appropriate heuristic function to search the most promising nodes first thereby reducing the computation time. However, the traditional optimal algorithms often cannot be used because they are too computationally intensive to be feasible for real-time operations. A number of heuristic search strategies have been developed for increasing the computational efficiency of route search. Most of these heuristic search algorithms originated in the artificial intelligence field, such as genetic algorithm (GA) . GA is an intelligence search algorithm based on the hypothesis of natural selections and natural genetics and has been successfully applied to various areas of optimization [5–10]. GA-based approaches have several advantages. Naturally, they cannot only treat the discrete variables but also overcome the dimensionality problem. In addition, they have the capability to search for the global optimum or quasi optimums within a reasonable computation time. But in engineering practice, premature convergence often happens, and sometimes the speed of convergence is very slow. Accordingly, researchers have been designing the improved genetic algorithms. Zou proposes an improved genetic algorithm for dynamic route guidance algorithm that generate initial population by random algorithm to increase the population diversity . Kanoh proposes a method for finding the quasishortest route within a given time using a genetic algorithm. In the proposed method, he improves the search rate and quality of solutions by giving direction to the search, using viruses .
In this paper, an improved genetic algorithm (IGA) for dynamic route guidance, which can overcome the aforementioned problems of the conventional GA to some extents, is developed. The proposed IGA incorporates the following three main features. First, a vicinity crossover scheme is devised to increase the diversity of population. Second, a greedy backward mutation scheme is developed to strengthen the local search ability. Third, the steady-state reproduction is introduced to protect the optimized genetic individuals. In order to test the performance of the proposed algorithm, we implement the algorithm in matlab 2009. Simulation experiments demonstrate the effectiveness of the algorithm by evaluating it on random road topologies.
The paper is organized as follows. Problem definition and mathematical formulation is introduced in Section 2. The improved genetic algorithm for dynamic route guidance algorithm is developed in Section 3. The numerical simulation is reported in Section 4. Finally, conclusions are presented in Section 5.
2. Problem Definition and Mathematical Formulation
A road traffic network is represented by a digraph that consists of a set of nodes and a set of links . Denote the number of nodes and the number of links . A link is directed from node to node . Each link has an associated average travel time function and delay function . Let denote the weight of link . It can be expressed as
A path from an origin () to destination () may be defined as a sequential list of links: and the weight of the path is the sum of weights on the individual links. The problem is to find the path that has the minimum total weight from the origin node to the destination node where and .
2.1. Link Travel Time Function
Using BPR model the average travel time for a vehicle can be expressed as where = free flow travel time on link , in minute; = volume of traffic on link per hour; = capacity of link per hour; = the average travel time for a vehicle on link , in minute.
2.2. Delay Functions for Signalized Intersections
Over the past few decades, a number of delay formulas have been proposed to account for delay at signalized intersections. Among the better known of these delay formulas are Webster and HCM 2000.
As for nonsaturated intersections, Webster model can be used. Average delay at intersection can be expressed as where = average delay at intersection, in seconds; = cycle length of the traffic light, in seconds; = green time of the traffic light/cycle length of the traffic light; = traffic volume on entering link, in vehicle per hour; = intersection saturation degree.
This model can be applied under saturated () conditions only.
As for saturated intersections (), average delay at intersection is estimated as where = average delay at intersection, in seconds; = uniform delay at intersection, in seconds; = oversaturation delay at intersection, in seconds; = saturate volume of intersection, in vehicle per hour; = intersection saturation degree.
3. The Improved Genetic Algorithm
By introducing the following new techniques, the performance of a simple genetic algorithm for dynamic route guidance algorithm has been improved essentially. Various characteristics of this proposed IGA are shown in Table 1.
3.1. Coding and Initial Population
We regard each route from the origin node to the destination node as a chromosome and express it as a sequence of nodes. The first gene in the chromosome is always the origin node, and the last gene in the chromosome is always the destination node. Since different paths may have different number of intermediate nodes, the chromosomes will be of variable length. However, the maximum length of a chromosome cannot exceed the total number of nodes in the network. Any repeated nodes in the chromosome signify that the path represented by the chromosome contains a loop and in network routing, any loop should be eliminated. At the beginning, the population is filled with chromosomes that represent random paths.
The algorithm to generate the random path is adapted from . The algorithm goes as follows.
Step 1. Start from the origin node.
Step 2. Randomly choose, with equal probability, one of the nodes that are connected to the current node.
Step 3. If the chosen node has not been visited before, mark that node as the next node in the path. Otherwise, find another node.
Step 4. If all the neighboring nodes have been visited, go back to Step 1.
Step 5. Otherwise, repeat Step 2 by using the next node as the current node. Do this until the destination node is found.
3.2. Fitness Function
For the dynamic route guidance problem, the lower the total weight of the path, the better the solution. The fitness function is defined as follows:
In this GA, roulette wheel (Monte Carlo) method is adopted as the selection operator. Chromosomes with better fitness will have a higher probability to be selected.
3.4. Steady-State Reproduction
To avoid the highest fitness chromosome destroyed in the process of crossover and mutation, we adopt steady-state reproduction and replace the worst chromosome produced by the genetic operators with the best chromosome in the previous population.
3.5. Vicinity Crossover Strategy
The common way of crossover is the two chromosomes selected must have at least one common node other than the origin and destination nodes. The common node is called the crossover point. Crossover operation will be carried out on crossover point. In this paper, we propose a new vicinity crossover strategy. The main idea is crossover operation will be carried out not on common point but on vicinity point. The vicinity point is the two adjacent points that the distance between them less than the given maximal vicinity value in the networks. The distance between vicinity points is vicinity value. To ensure that the paths generated by the crossover operation are still valid paths, the two chromosomes selected must have at least one vicinity node other than the origin and destination nodes. If more than one vicinity node exists, one of them will be randomly chosen with equal probability. For the sake of clearly describing the concept of vicinity crossover strategy, we consider the following example. The topology of network is shown in Figure 1(a). Assume origin node is 1, destination node is 8 and maximal vicinity value is 3.
(a) The topology of network
(b) Vicinity crossover operation
(c) Repair the loops generated in crossover operation
Assume we have the following parent chromosomes. Parent chromosome1 = . Parent chromosome2 = .where node 1 and node 8 are the origin node and destination node respectively. In this example, the vicinity nodes are node 5 of parent chromosome1 and node 2 of parent chromosome2, node 3 of parent chromosome2 and node 4 of parent chromosome1. Therefore, crossover operation will exchange the first portion of chromosome1 with the second portion of chromosome2 and vice versa. The vicinity value of node 5 and node 2 is 2. Hence 5 3 2 is a generated vicinity path. The vicinity value of node 3 and node 4 is 1.
As a result, the following child chromosomes will be generated. Child chromosome1: . Child chromosome2: .
These two chromosomes would then become new members of the population as shown in Figure 1(b). It is possible that loops may occur after crossover operation is performed. Loops in a chromosome can be repaired by performing a search along the chromosome to find repeated nodes. The nodes in between the repeated nodes are then eliminated. For example, in Figure 1(c), assume that we have the following chromosome that contains a loop. Chromosome with loop: .
In this case, there are two node 3 in the chromosome which signifies that the path contains a loop. This chromosome can be fixed by eliminating one of the node 3 and all the other nodes in between the two node 3’s. The fixed chromosome would become like this. Fixed chromosome: .
The fixed chromosome can be searched again just in case there are multiple loops in the chromosome. The vicinity crossover strategy will increase population diversity.
3.6. Greedy Backward Mutation Strategy
Instead of bitwise mutation, a new greedy backward mutation strategy is used. The main idea is the following. For each chromosome that is chosen to be mutated, if the correlation degree of intermediate nodes in the path from origin to destination (i.e., the origin and destination node cannot be chosen as the mutation point) is greater than 2, then the intermediate nodes will be chosen as candidate nodes. A mutation point will be chosen randomly, with equal probability, among the candidate nodes. Once the mutation point is chosen, the chromosome will be changed starting from the node before the mutation point and backwards. To explain this procedure, we still use the network as shown in Figure 1(a) and the procedure of greedy backward mutation is shown in Figure 2.
Assume that the following chromosome has been chosen to be mutated. Original chromosome: .
Where 1 and 8 are the origin node and the destination node, respectively. Assume also that the node 4 has been chosen as the mutation point. The mutated chromosome would become like this. Mutated chromosome: .
The mutated chromosome now contains a new backward path from 4 to 1, where is the th new node in the path. The new path is generated randomly; the same way as the paths in the initial population is generated.
4. Simulation Results
To test the effectiveness of the proposed IGA for dynamic route guidance, we implement the algorithm and conduct a series of simulation experiments. The algorithm has been coded in Matlab 2009 and implemented on an Intel Core 2, CPU 2.53 Ghz, RAM 2 GB, Windows XP System. Several main performance metrics are considered: number of generation, population size, convergence ability, and convergence speed.
We performed a set of experiments on a virtual square matrix map. The virtual maps of square matrix had sizes of , , , and . As shown in Figure 3, the origin was at the upper left corner and the destination was at the lower right corner. The distances between nodes were varied from 10 to 50.
We generate 20 random datasets using the virtual square matrix maps. Figure 4 shows the number of generations required to find a feasible solution. From the numerical results, we observe that all 20 datasets are able to converge to a feasible solution and the proposed IGA is correct. From the result, it can also be seen that most of time, the number of generations required to find a feasible solution is quite low and acceptable. However, in some cases, the number of generations required to find a feasible solution can exceed 200. The difference is quite large. The fact is probably caused by the state of initial population. The quality of initial population may be very low and takes many generations to find a feasible solution.
To solve the problem above, we can adjust the population size. Figure 5 shows the effect of population size on the average number of generations needed to find a solution. We execute the algorithm 10 times and record the average value. From Figure 5, we can conclude that the average number of generations become less with the increase of population size and is acceptable most of time.
We compare our improved genetic algorithm (IGA) with simple genetic algorithm (SGA) on virtual square matrix maps. Table 2 showed all of the simulation parameters for IGA and SGA.
Table 3 gives the average number of generational processes to find the optimal path. It shows that our IGA converges very fast, less than 20 generations even when the number of nodes growing to 1024. Also for a complex map with thousands of nodes, the average number of generational processes for the genetic algorithm beginning to converge is still small enough for real time applications.
Table 4 shows the experiment results of the minimal path weight and average path weight for our IGA and SGA for different network sizes. IGA achieves better minimum weight and average weight than SGA for all scenarios.
This paper presented an improved genetic algorithm for dynamic route guidance algorithm. Several details of the genetic algorithm such as vicinity crossover scheme, greedy backward mutation scheme, and steady-state reproduction have been specifically designed for solving this problem while other details are adapted from previous works. The simulation results show that the proposed algorithm works well in finding an optimal path for real-time applications and converges much faster to better solutions. The performance gets better with larger population size.
This work supported by the National Nature Science Foundation of China (no. 70971136) and supported by the Youth Foundation of Institute of Sciences, PLA University of Science and Technology (no. KYLYZL001235).
S. Yussof and O. H. See, “QoS routing for multiple additive QoS parameters using genetic algorithm,” in Proceedings of the 13th IEEE International Conference on Networks jointly held with the 7th IEEE Malaysia International Conference on Communications, pp. 99–104, November 2005.View at: Publisher Site | Google Scholar
N. Huimin, C. Mingming, and Z. Minghui, “Optimization theory and method of train operation scheme for urban rail transit,” China Railway Science, vol. 32, pp. 128–133, 2011 (Chinese).View at: Google Scholar
H. Kanoh, “Dynamic route planning for car navigation systems using virus genetic algorithms,” International Journal of Knowledge-Based and Intelligent Engineering Systems, vol. 11, no. 1, pp. 65–78, 2007.View at: Google Scholar