Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 851 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 851 Bytes

Genetic Algorithm for Traveling Salesman Problem

https://arxiv.org/abs/1402.4699

This package includes a powerful genetic algorithm (GA) for solving the traveling salesman problem (TSP).

To construct a powerful GA, edge swapping(ES) is applied with a local search procedure to determine good combinations of building blocks of parent solutions for generating even better offspring solutions.

Experimental results on well studied TSP benchmarks demonstrate that the proposed GA is competitive in finding very high quality solutions on instances with about 15,000 cities.

How to run

  1. go to ./src directory:
cd src
  1. run bash file run.sh and choose one of the five predefined TSP map as input:
sudo bash run.sh
  1. checkout TSP route in bestSolution.txt:
vi bestSolution.txt

License

Apache License 2.0