Skip to content

MMartynamajchrzak/GreedyAlgorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GreedyAlgorithm

Solving travelling salesman problem using genetic algorithm.

Usage

There are different files to test, the only thing you have to do to test it is changing index of files_to_test.


files_to_test = ['files/ali535.tsp', 'files/berlin11_modified.tsp', 'files/berlin52.tsp',
                     'files/fl417.tsp', 'files/kroA100.tsp', 'files/kroA150.tsp',
                     'files/kroA200.tsp', 'files/nrw1379.tsp', 'files/pr2392.tsp']
                     

# choose one of the files from above
file_name = files_to_test[1]

Specifically last last line from above.

About

Genetic algorithm written in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages