An open API service indexing awesome lists of open source software.

https://github.com/njmarko/ga-traveling-salesman

Traveling salesman problem solved using genetic algorithm
https://github.com/njmarko/ga-traveling-salesman

genetic-algorithm hamiltonian-cycle traveling-salesman traveling-salesman-problem traveling-salesperson-problem tsp tsp-problem

Last synced: 10 days ago
JSON representation

Traveling salesman problem solved using genetic algorithm

Awesome Lists containing this project

README

        

# ga-traveling-salesman
Traveling salesman problem solved using genetic algorithm

![Traveling salesman visualisation](https://github.com/njmarko/ga-traveling-salesman/blob/master/resources/ga-traveling-salesman-graph.gif)

## GA details
Graph is visualised with pyplot library in realtime.

Selection method: Roulette selection

Crossover: Ordered crossover

Mutation: Swap mutation

### Credits
Gif was created using [ezgif.com](https://ezgif.com/)

[Tutorial](https://towardsdatascience.com/evolution-of-a-salesman-a-complete-genetic-algorithm-tutorial-for-python-6fe5d2b3ca35) that was followed