Using Genetic Algorithm to Solve Travelling Salesman Optimization Problem Based on Google Map Coordinates for Duhok City Areas


  • Ziyad H.A. Al-Jabbar College of Management and Economics, Duhok University, Duhok, Kurdistan Region – Iraq



Genetic Algorithm, Optimization, Non Deterministic Problem, Travelling Salesman Problem, Google coordinate


This research aims to solve one of the Non-Deterministic Polynomial (NDP) Problems by using one of the artificial intelligence techniques, which is genetic algorithm. Travelling salesman problem (TSP) is one of the difficult optimization problems, the aim of this problem is to get the optimal solution which is represented by the shortest path for (n) visited areas of the city. The number of possible solutions that will be generated, searched and compared when solving this problem for (n) areas is equal to (n!). This number exponentially increased with the increasing of the number of areas. With the large number of areas, which produces a huge number of possible solutions, the traditional search algorithms will be collapsed, and the problem will become a hard (NDP) Problem. In this case it becomes necessary to rely on artificial intelligence techniques, which are based on the biologically-inspired principle.  During this research the travelling salesman problem was formulated and programmed in proportion to the concept of genetic algorithm (GA) to produce Travelling Salesman Genetic Algorithm (TSGA). One of the cities of Kurdistan Region of Iraq (Duhok) was selected as a case study to implement the TSGA algorithm. Initially, the study depends on Google earth program to determine the coordinates for number of Duhok’s areas. These coordinates were saved as a (.kml) file format, then the required cleaning and normalization operations were accomplished on this file to produce the pure coordinates, that were stored as an excel file format (.xls) . TSGA algorithm depends on these excel coordinates as an input file to create the initial generation of paths, then  the objective function for each path of the this generation was calculated, and then the parent selection, crossover and mutation functions were applied  to get the group of the best paths. TSGA algorithm, then, continues to regenerate a number of successive generations, and afterwards recalculate and create the new group of the best paths for each generation to enhance the result. Finally, and depending on the criterion of stopping, this algorithm will cease to create new generations and suggest the final result that represents the shortest path for visited areas. Matlab program was used to implement the TSGA algorithm and to analyze the result. The results of this algorithm were optimum and near optimum for most of the problems at a reasonable time.


Download data is not yet available.


Diaby, Moustapha. (2006) “The traveling salesman problem: a linear programming formulation”. University of Connecticut, USA.‏
Mukherjee, Swahum; Ganguly, Srinjoy; Das, Swagatam. (2012) “A Strategy Adaptive Genetic Algorithm for Solving the Travelling Salesman Problem”, SEMCCO, India. PP: 778-784.‏
Al-Sabawi Ahmed Mahmoud Mohammed, (2012) “Using the Branch and bound algorithm and genetic algorithm to solve the Travelling Salesman Problem”. Iraqi Journal of Statistical Sciences, Iraq, Volume 12, Issue 21, PP:69-96.(Arabic reference).
Grosan, Crina; ABRAHAM, Ajith. (2011) “Intelligent systems: A modern approach”. Springer Science & Business Media.‏Sivanandam, S. N.; DEEPA, S. N. (2007) “Introduction to genetic algorithms”. Springer Science & Business Media.‏
Hussein, Rana B., Thabet, Hamsa M. (2014)“The Genetic Coefficient with Some Applications”. Tanmiat Al-Rafidain Journal, Iraq, Volume 36, Issue 116. (Arabic reference).
Hazim, Ziyad.(1999), ”Comparing Different Programming Techniques for Solving. Assignment Problem”. College of computer sciences and Mathematics, University of Mosul, Iraq, M.Sc. thesis.
Al-Jawahiri, Zuhair Abdul Wahab Mohammed Hassan. (2011),”Evaluate the coordinate’s accuracy for the Google earth program”. UOBabylon Journal of Applied and Pure Sciences, Iraq, Issue No 2, Volume No 19. (Arabic reference).
(2016), “KML Data format”. Retrieved, from /data-format/ .
Abramson, M. A. (2004), “Genetic algorithm and direct search toolbox”. Natick, MA: The Math Work Inc.
Chipperfield, A. J.; Fleming, P. J. “The MATLAB genetic algorithm toolbox In Applied control techniques using MATLAB”, IEE Colloquium on (pp. 10-1). IET, 1995.



How to Cite

Al-Jabbar, Z. H. (2018). Using Genetic Algorithm to Solve Travelling Salesman Optimization Problem Based on Google Map Coordinates for Duhok City Areas. Academic Journal of Nawroz University, 7(3), 99–114.