Design of a Route Guidance System with Shortest Driving Time Based on Genetic Algorithm

Similar documents
An Idea for Finding the Shortest Driving Time Using Genetic Algorithm Based Routing Approach on Mobile Devices

A genetic algorithm approach for finding the shortest driving time on mobile devices

GENETIC ALGORITHM-AIDED ROUTING ON 3D DYNAMIC NETWORKS

AN EVOLUTIONARY APPROACH TO DISTANCE VECTOR ROUTING

Network Routing Protocol using Genetic Algorithms

An Evolutionary Algorithm for the Multi-objective Shortest Path Problem

Genetic Algorithm for Dynamic Capacitated Minimum Spanning Tree

A Genetic Algorithm for Graph Matching using Graph Node Characteristics 1 2

Genetic Algorithm for Dynamic Capacitated Minimum Spanning Tree

Automata Construct with Genetic Algorithm

GENETIC ALGORITHM with Hands-On exercise

The Simple Genetic Algorithm Performance: A Comparative Study on the Operators Combination

CHAPTER 4 GENETIC ALGORITHM

Introduction to Genetic Algorithms. Based on Chapter 10 of Marsland Chapter 9 of Mitchell

A GENETIC ALGORITHM APPROACH TO OPTIMAL TOPOLOGICAL DESIGN OF ALL TERMINAL NETWORKS

Role of Genetic Algorithm in Routing for Large Network

Evolutionary Computation Part 2

Genetic Algorithms For Vertex. Splitting in DAGs 1

A Genetic Algorithm for Shortest Path Routing Problem and the Sizing of Populations

Suppose you have a problem You don t know how to solve it What can you do? Can you use a computer to somehow find a solution for you?

Mutations for Permutations

Adaptive Crossover in Genetic Algorithms Using Statistics Mechanism

Job Shop Scheduling Problem (JSSP) Genetic Algorithms Critical Block and DG distance Neighbourhood Search

Using Genetic Algorithms in Integer Programming for Decision Support

Topological Machining Fixture Layout Synthesis Using Genetic Algorithms

Solving A Nonlinear Side Constrained Transportation Problem. by Using Spanning Tree-based Genetic Algorithm. with Fuzzy Logic Controller

Solving the Shortest Path Problem in Vehicle Navigation System by Ant Colony Algorithm

Artificial Intelligence Application (Genetic Algorithm)

Genetic Algorithm Performance with Different Selection Methods in Solving Multi-Objective Network Design Problem

An Improved Genetic Algorithm based Fault tolerance Method for distributed wireless sensor networks.

Evolutionary Computation Algorithms for Cryptanalysis: A Study

Genetic Algorithms. Kang Zheng Karl Schober

Using Genetic Algorithm with Triple Crossover to Solve Travelling Salesman Problem

Genetic Algorithm for Finding Shortest Path in a Network

March 19, Heuristics for Optimization. Outline. Problem formulation. Genetic algorithms

GA is the most popular population based heuristic algorithm since it was developed by Holland in 1975 [1]. This algorithm runs faster and requires les

DGA: A Fast and Scalable Re-routing Algorithm based on Shortest Path and Genetic Algorithms

A Taguchi Approach to Parameter Setting in a Genetic Algorithm for General Job Shop Scheduling Problem

International Journal of Digital Application & Contemporary research Website: (Volume 1, Issue 7, February 2013)

Genetic Algorithms Variations and Implementation Issues

Task Graph Scheduling on Multiprocessor System using Genetic Algorithm

A Steady-State Genetic Algorithm for Traveling Salesman Problem with Pickup and Delivery

A Genetic Algorithm with Evolutionary Path-relinking for the SONET Ring Assignment Problem

DETERMINING MAXIMUM/MINIMUM VALUES FOR TWO- DIMENTIONAL MATHMATICLE FUNCTIONS USING RANDOM CREOSSOVER TECHNIQUES

Heuristic Optimisation

ARTIFICIAL INTELLIGENCE (CSCU9YE ) LECTURE 5: EVOLUTIONARY ALGORITHMS

Research Article Path Planning Using a Hybrid Evolutionary Algorithm Based on Tree Structure Encoding

A Genetic Algorithm-Based Approach for Energy- Efficient Clustering of Wireless Sensor Networks

Extending MATLAB and GA to Solve Job Shop Manufacturing Scheduling Problems

Heuristic Optimisation

The Genetic Algorithm for finding the maxima of single-variable functions

A New Selection Operator - CSM in Genetic Algorithms for Solving the TSP

THE Multiconstrained 0 1 Knapsack Problem (MKP) is

A HYBRID APPROACH IN GENETIC ALGORITHM: COEVOLUTION OF THREE VECTOR SOLUTION ENCODING. A CASE-STUDY

ANTICIPATORY VERSUS TRADITIONAL GENETIC ALGORITHM

Usage of of Genetic Algorithm for Lattice Drawing

Khushboo Arora, Samiksha Agarwal, Rohit Tanwar

IJMT Volume 2, Issue 3 ISSN:

Time Complexity Analysis of the Genetic Algorithm Clustering Method

Grid Scheduling Strategy using GA (GSSGA)

Introduction to Genetic Algorithms

Multiobjective Job-Shop Scheduling With Genetic Algorithms Using a New Representation and Standard Uniform Crossover

4/22/2014. Genetic Algorithms. Diwakar Yagyasen Department of Computer Science BBDNITM. Introduction

The study of comparisons of three crossover operators in genetic algorithm for solving single machine scheduling problem. Quan OuYang, Hongyun XU a*

Path Planning Optimization Using Genetic Algorithm A Literature Review

A Fast and Scalable Re-routing Algorithm based on Shortest Path and Genetic Algorithms

Introduction to Optimization

Meta- Heuristic based Optimization Algorithms: A Comparative Study of Genetic Algorithm and Particle Swarm Optimization

Comparative Study on VQ with Simple GA and Ordain GA

A hierarchical network model for network topology design using genetic algorithm

Solving Sudoku Puzzles with Node Based Coincidence Algorithm

Reducing Graphic Conflict In Scale Reduced Maps Using A Genetic Algorithm

Comparison of TSP Algorithms

Optimizing the Sailing Route for Fixed Groundfish Survey Stations

An Integrated Genetic Algorithm with Clone Operator

CHAPTER 6 REAL-VALUED GENETIC ALGORITHMS

Selection of Optimal Path in Routing Using Genetic Algorithm

Models and Algorithms for Shortest Paths in a Time Dependent Network

Escaping Local Optima: Genetic Algorithm

Mutation in Compressed Encoding in Estimation of Distribution Algorithm

GENETIC ALGORITHM VERSUS PARTICLE SWARM OPTIMIZATION IN N-QUEEN PROBLEM

An Application of Genetic Algorithm for Auto-body Panel Die-design Case Library Based on Grid

DERIVATIVE-FREE OPTIMIZATION

International Journal of Scientific & Engineering Research Volume 8, Issue 10, October-2017 ISSN

GENETIC ALGORITHM METHOD FOR COMPUTER AIDED QUALITY CONTROL

Genetic Algorithm-based Dynamic Vehicle Route Search using Car-to-Car Communication

Introduction to Optimization

HEURISTICS FOR THE NETWORK DESIGN PROBLEM

A THREAD BUILDING BLOCKS BASED PARALLEL GENETIC ALGORITHM

MINIMAL EDGE-ORDERED SPANNING TREES USING A SELF-ADAPTING GENETIC ALGORITHM WITH MULTIPLE GENOMIC REPRESENTATIONS

CHAPTER 6 ORTHOGONAL PARTICLE SWARM OPTIMIZATION

IMPROVING A GREEDY DNA MOTIF SEARCH USING A MULTIPLE GENOMIC SELF-ADAPTATING GENETIC ALGORITHM

Solving Travelling Salesman Problem and Mapping to Solve Robot Motion Planning through Genetic Algorithm Principle

Genetic Programming. Charles Chilaka. Department of Computational Science Memorial University of Newfoundland

Solving Traveling Salesman Problem for Large Spaces using Modified Meta- Optimization Genetic Algorithm

A GENETIC ALGORITHM SOLUTION TO SOLVE THE SHORTEST PATH PROBLEM IN OSPF AND MPLS

Crew Scheduling Problem: A Column Generation Approach Improved by a Genetic Algorithm. Santos and Mateus (2007)

Genetic Algorithms. Chapter 3

Solving ISP Problem by Using Genetic Algorithm

SOLVING THE SHORTEST PATH PROBLEM WITH IMPRECISE ARC LENGTHS USING A TWO-STAGE TWO-POPULATION GENETIC ALGORITHM. Feng-Tse Lin and Teng-San Shih

Transcription:

Design of a Route Guidance System with Shortest Driving Time Based on Genetic Algorithm UMIT ATILA 1, ISMAIL RAKIP KARAS 2, CEVDET GOLOGLU 3, BEYZA YAMAN 2, ILHAMI MUHARREM ORAK 2 1 Directorate of Computer Center Gazi University, 06500 Besevler, Ankara TURKEY 2 Department of Computer Engineering Karabuk University 78050 Karabuk TURKEY 3 Department of Mechanical Engineering Karabuk University 78050 Karabuk TURKEY umitatila@gmail.com, {ismail.karas, cgologlu, beyzayaman, imorak}@karabuk.edu.tr http://muh.karabuk.edu.tr Abstract: - Nowadays, with the advancement of the technology on mobile devices, route guidance systems that assist drivers on the traffic have become widespread in daily life. For an accurate routing, a route guidance system should consider the effectual factors of traffic flow such as density and allowable velocity limits of the roads. With the increase of effectual factors and amount of nodes in road network, the computational cost increases. It is not proper to find exact optimal solution in real time for the road networks with excessive number of nodes using some well known deterministic methods such as Dijkstra's algorithm on navigation systems using mobile devices with limited processing speed and memory capacity. This paper proposes a route guidance system and a Genetic Algorithm (GA) approach applied on this routing system to find the shortest driving time. Excluding classical methods, a gene search method of chromosomes named "firstmatched-genes" on crossover operation had been introduced. The efficiency of the genetic algorithm was tested by applying on the networks with different sizes and a mobile application on the traffic network of Ankara was presented. Key-Words: - Genetic algorithm; navigation; route guidance; shortest path; shortest driving time; optimization 1 Introduction The logic behind navigation systems provides the users with the shortest path between departure and destination points. The downside of the current navigation systems is ignoring important decision variables including the traffic density and allowable velocity limits of the roads. Shortest path problem can be defined as finding the shortest path between two vertices of a directed graph where each arc has been weighted. The shortest path is considered as one of the most fundamental network optimization problems. This problem comes up in practice and arises as a sub problem in many network optimization algorithms [1]. One of the most popular algorithm is the Dijkstra's algorithm conceived, which solves the shortest path problem in O(n 2 ) time on a graph with n number of nodes and positive edge weights [2]. In last decade, there have been number of approaches used Genetic algorithm (GA) in the solution of the shortest path problems. GA is a heuristic technique developed by John Holland in 1975 based on genetic and natural selection principles [3]. Goldberg proved that GA is one of the powerful search methods in both theory and practice [4]. GA starts with generating an initial population by random selection of the individuals named chromosomes that each encodes the solution of the problem. Each chromosome that encodes a candidate solution of the problem is made with a combination of significant genes [5]. GA founded based on two fundamental evolutionary concepts: ISBN: 978-960-474-281-3 61

A Darwinian notion of fitness, which describes an individual s ability to survive Genetic operators, which determine the next generation s genetic makeup based upon the current generation [6]. The first step starts with obtaining the values that fitness function returns for each chromosome and selecting the best chromosomes of initial population, which will form the individuals of the next generation. The parents selected for regeneration are replaced by crossover operation and changed by mutation operation to produce child chromosomes. The chromosomes that are not passed through crossover or mutation and newly generated child chromosomes form a new population [5]. The generation of new populations repeats till defined number of times in advance or is being continued until not having better chromosomes (Fig.1). distance weights. The complete chromosome of a candidate was divided into node fields, which were equal to the number of nodes in the network. They proposed different crossover and mutation methods, which are appropriate their chromosome encoding. They tested their proposed algorithm on networks with 10, 20, 50 and 100 routers and results demonstrated consistent and speedy convergence for the tested scenarios. This study presents a route guidance system and a GA approach applied on this routing system to find the shortest driving time. Proposed guidance system provides driving advice for the drivers considering not only the distances but also traffic density and the allowable velocity limits of the roads. Thus, it computes the shortest driving time instead of the shortest path. The rest of the paper is organized in four sections: describing the shortest driving time problem and the genetic algorithm proposed to solve this problem; the basic design of the proposed route guidance system; experimental results of the genetic algorithm obtained from the networks with different sizes; and the general conclusions of the study. 2 Proposed Genetic Algorithm for Route Guidance System Fig.1 Steps of the Genetic Algorithm Munemoto et al. implemented a GA, which is practically feasible on wired or wireless network environment [7]. Inagaki et al. proposed an algorithm with fixed length chromosomes [8]. Ahn and Ramakrishna reported that the algorithm proposed by Munemoto required a relatively large population for an optimal solution due to the constraints on the crossover mechanism. Furthermore, it was reported that this was not suitable for large networks or real-time communications [9]. On the other hand, they suggested that the algorithm proposed by Inagaki et al. required a large population to attain an optimal or high quality of solution due to its inconsistent crossover mechanism [8]. They proposed a GA for solving the shortest path problem that uses chromosomes with variable lengths. They showed that as the number of the nodes becomes more than 20, the computing time by adopting the GA was less than that by adopting the Djikstra algorithm. Hasan et al. produced a different solution for the shortest path problem using GA [10]. They employed a chromosome-coding scheme using node indices and 2.1 Shortest Driving Time It is possible to describe underlying topology of a network with directed graph G=(N,A) where N is the set of the nodes, of cardinality n, and A is the set of the arcs, of cardinality m. There is a cost Tij for each (i,j) A. These costs are defined in a cost matrix C=[Tij]. Source and destination nodes are respectively shown as B and V. The connection information of the nodes with each other is described in an adjacency matrix I ij shown below: In shortest driving time problem, the cost is T ij which defines the driving time from node i to node j. Using the above definitions, the shortest driving time problem can be formulated as a combinatorial optimization problem minimizing the objective function below as follows [9]: minimize (1) ISBN: 978-960-474-281-3 62

subject to and { 1, if i=b -1, if i=v 0, otherwise. (2) (3) In shortest driving time problem, cost Tij is calculated as follows: dij = distance from node i to node j vij = allowable velocity limit from node i to node j yij = traffic density from node i to node j On calculation of the driving time from node i to node j, allowable velocity limits and traffic densities from node i to node j are considered. In this case, driving time can be formulated as showing below: 2.3 Creating Initial Population To produce the initial population DFS (Depth First Search), algorithm is reorganized to produce random paths from source to destination. 2.4 Fitness Function The fitness function is the object to be optimized. The fitness function must accurately measure the quality of the chromosome in the population and must have computational efficiency; therefore, the fitness function has a critical importance. The cost of the fitness function described in [9] rearranged according to the formula given in Section 2.1 to compute the shortest driving time as follows: fi : fitness function of the i th chromosome gi ( j ) : j th gene of the i th chromosome l : length of the chromosome D : distance between two nodes V : allowable velocity limit between two nodes Y : traffic density between two nodes (5) (4) 2.2 Genetic Encoding In the chromosome structure of proposed GA, node numbers of the route from source to destination are stored as positive integer numbers. Each locus of the chromosome represents an order of a node in a routing path. The chromosome length is static. The total number of nodes N is the length of each chromosome in the network. The node numbers that represent the routing path from source (B) to destination (V) are encoded in the chromosome. If the node number of the solution is smaller than the total node number N, unused genes of the chromosome is assigned by zero value. The chromosome encoding of the proposed GA is shown in Fig.2. Fig.2 Chromosome encoding of a routing path 2.5 Selection (Reproduction) of a New Generation The selection (reproduction) operator is intended to improve the average quality of the population by giving the high-quality chromosomes a better chance to be copied into the next generation. In this study, roulette wheel selection method, which is a proportionate selection method that picks out chromosomes based on their fitness values relative to the fitness of the other chromosomes in the population, was performed. 2.6 Crossover The crossover operator generates new individuals called offspring, by recombining the genetic material of two individuals, deemed the parents. Individuals with higher fitness scores are selected with greater probability to be parents and pass on their genes to the next generation. In this study a new gene search method named "first-matched gene" is presented in which the first genes matched on two chromosomes as crossover points were selected. Difference of the crossover phase used in this study from classical crossover is that crossover points do not have to be in the same locus of chromosomes. In the end of the crossover operation, two child chromosomes is obtained. If these child chromosomes are infeasible, a repair function for ISBN: 978-960-474-281-3 63

dealing with the infeasible chromosomes is performed. Steps of the crossover phase are shown in Fig.3. 2.8 Termination of the Genetic Algorithm To terminate the genetic algorithm, the fitness value of the best chromosome on each generation is checked. If the fitness value of the best chromosome obtained does not change for 10 generations, the algorithm is stopped. Fig.3 Crossover phase 2.7 Mutation Mutation operation maintains the genetic diversity of the population and changes the genes of the selected chromosomes and keeps away from local optima. Through mutation, GAs can search previously unexplored sections of the solution space. Mutations consequently assure that the entire search space is connected [11]. A random path is generated using reorganized DFS algorithm from the mutation node to the destination node which is also used for creating initial population. This random generated path is exchanged with the genes starting from mutation point. The mutated chromosome may be feasible. In this case, a repair function for dealing with these infeasible chromosomes is performed. Steps of the mutation phase are shown in Fig.4. 3 Structure of the Designed Route Guidance System The system had been designed for navigation devices and pocket computers that use Microsoft Mobile Operating Systems. By using genetic algorithm, it is intended to avoid the loss on the performance of these devices with restricted memory and processor capacities even on large networks with thousands of nodes. Realtime traffic conditions are obtained from a XML service. This service produces XML based data about the traffic condition periodically. Client devices also take the data periodically. The maps that supposed to be used in the route guidance system should be loaded on the device in advance and therefore only the traffic density is obtained from the XML service over Internet connection in realtime. The route guidance system is shown in Figure 5. Fig.5 Route guidance system The traffic density is simulated in the map loaded on the navigation device. Colors of the roads on the map are based on final velocity limits of the roads calculated by considering the traffic densities and allowable velocity limits of the roads. The roads are divided into four groups according to final velocity limits. The color codes of these groups are described in Table 1. Table 1. Velocity ranges for coloring the map in route guidance system Fig.4 Mutation phase ISBN: 978-960-474-281-3 64

Colors Velocity Limit Ranges (km/h) Red 0-30 Orange 30-50 Yellow 50-70 White 70-90 A sample map loaded on a pocket pc is shown in Fig.6. The obtained road after calculation is shown to users in blue color. Table 2. Results obtained from 100 performs of proposed genetic algorithm on 10 different routes. Source-Destination Average Generation Failure Ratio (%) 5-8 12 0 1-13 12 0 4-43 12.1 0 10-14 12.7 5 7-24 16.7 0 40-10 14 0 2-24 27.9 10 14-18 16 4 12-10 12 0 20-54 12 0 Test results performed on random generated graphs with 10, 50, 250 and 1000 nodes are presented below. Table 3 shows the average generations of the genetic algorithm to find the shortest driving time. Table 3. Average generations to find the optimum path Fig.6 Map screen for the route guidance system Population Size Number of Nodes 10 50 250 1000 30 17.05 19.43 33.09 36.4 50 14.16 19.41 30.57 33.2 100 12.45 16.13 27.53 28.2 200 12.01 13.22 25.24 27.6 400 12 12.21 21.37 23.43 800 12 12.01 18.14 20.12 4 Results The route guidance system had been developed using C# programming language. Windows Mobile 5.0 Pocket PC R2 emulator installed on Microsoft Visual Studio 2008 is used on experiments. Beside the traffic network of Ankara city with 54 nodes, random generated graphs with 10, 50, 250 and 1000 nodes used. Distances, velocity limits and updated traffic density obtained from XML service periodically generated randomly. Experiments done 100 times for each case are given on result tables. Our first results are taken from the city map of Ankara with 54 common nodes. Performance measurement values like failure ratio and average generations of the results obtained by proposed genetic algorithm is listed in Table 2. As given in Table 3, even the number of nodes grew to 1000, the average generation to find the optimum path was not much than 36.4 in worst case and by increasing the population size it was seen that the algorithm found solutions in less generations. When the number of nodes grew by 10 times from 10 to 1000, the time needed for finding the solution grew only by nearly 2 times. Table 4 shows the average difference of the exact routes and approximate routes found by the proposed genetic algorithm. Table 4. Average difference of the exact routes and approximate routes in % Number of Nodes 10 50 250 1000 Population Size 30 0.6 20.7 140.1 159.3 50 0 9.1 79.8 87.3 100 0 3.6 57.1 71.2 200 0 0.3 34.7 52.8 400 0 0 20.2 33.1 800 0 0 4 12.4 ISBN: 978-960-474-281-3 65

According to the results given in Table 4, approximate solutions found by the proposed genetic algorithm were very close to exact solutions with the node number 10 and 50. On a graph with 10 nodes, exact solutions obtained when the population size was 50 or greater. When the node number grew to 50, the exact solutions obtained with population starting from 400. By increasing the population size, it was seen that the algorithm got closer to exact solutions. When the node number was 1000, average difference of the exact and the approximate routes was cut from 159.3% to 12.4% with the increase of population size from 30 to 800. 5 Conclusion When the amount of data being processed is too large on handheld devices, it is not proper to find exact solutions. The GA presented in this paper finds the acceptable approximate solutions effectively even on large networks while considering real-time information. Results obtained from experiments shows that a route guidance system that computes the shortest driving time considering the real-time traffic information can be designed using GA for handheld devices produced with limited processor and memory capacities. the 1999 IEEE International Symposium, 1999, pp. 137-140. [9]Ahn CW, Ramakrishna RS, A Genetic Algorithm for Shortest Path Routing Problem and the Sizing of Populations, IEEE Transactions on Evolutionary Computation, 2002, Vol.6, No.6,pp.566-579. [10]Hasan BS, Khamees MA, Mahmoud ASH, A Heuristic Genetic Algorithm for the Single Source Shortest Path Problem, 5th IEEE/ACS International Conference on Computer Systems and Applications, 2007, pp.187-194. [11]Cedric D, Pawan D, Genetic algorithms for rerouting shortest paths in dynamic and stochastic networks, European Journal of Operational Research, 2003, Vol.144,pp.27-38. References: [1] Xu MH, Liu YQ, Huang QL, Zhang YX, Luan GF, An improved Dijkstra s shortest path algorithm for sparse network, Applied Mathematics and Computation, 2007, Vol.185, No.1 pp.247-254. [2]Dijkstra EW, A Note on Two Problems in Connection with Graphs. Numerische Mathematik, 1959,Vol.1, No.1,pp.269-271. [3]Holland JH, Adaptation in natural and artificial system, The University of Michigan Press, 1975. [4]Goldberg DE, Genetic Algorithms in Search Optimizations and Machine Learning, Boston, Addison-Wesley Longman Publishing Co, 1989. [5]Whitley D, A genetic algorithm tutorial, Statistics and Computing, 1994, Vol.4, No.2,pp.65-85. [6]De Jong K, Learning with Genetic Algorithms: An Overview, Machine Learning, 1988, Vol.3, pp.121 138. [7]Munemoto M, Takai Y, Sato YA, A migration scheme for the genetic adaptive routing algorithm, In Proceedings of the Systems, Man, and Cybernetics IEEE International Conference, 1998, pp.2774 2779. [8]Inagaki J, Haseyama M, Kitajima H, A genetic algorithm for determining multiple routes and its applications, In Circuits and Systems, Proceedings of ISBN: 978-960-474-281-3 66