Skip to content

A bespoke python genetic algorithm to solve the generalised 2D travelling salesman problem.

License

Notifications You must be signed in to change notification settings

padj/Genetic_Algorithm_TSP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Genetic_Algorithm_TSP

A bespoke python genetic algorithm to solve the generalised 2D travelling salesman problem. The code is mostly modular to allow for comparisons of GA parameters. Future additions will see implementation of additional selection and crossover processes.

HOW TO:

  1. Download and unzip files.
  2. Open TSP_run.py and modify the user inputs to suit your needs.
  3. Run TSP_run.py
  4. Review outputs.

User inputs:

  1. total_number_towns
  2. total_GA_population_size
  3. town_location_limit_lowerX
  4. town_location_limit_upperX
  5. town_location_limit_lowerY
  6. town_location_limit_upperY
  7. elitism_rate
  8. mutation_rate
  9. maximum_number_generations
  10. stagnation_criteria

Releases

No releases published

Packages

No packages published

Languages