sugia / GA-for-TSP

Genetic algorithm for Traveling salesman problem

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Genetic Algorithm for Traveling Salesman Problem

https://arxiv.org/abs/1402.4699

image

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

About

Genetic algorithm for Traveling salesman problem

License:Apache License 2.0


Languages

Language:C++ 99.8%Language:Shell 0.2%