The travelling salesman problem (TSP) asks the following question: "Given a list of cities and the distances between each pair of cities, what is the shortest possible route that visits each city and returns to the origin city? [1] I tried to implement genetic algorithm in Python to solving this problem.
This project requires the following dependencies:
- Python(>= 3)
- NumPy
- Matplotlib
Run TSP.py.
[1] Wikipedia