Skip to content

This project uses python-tsp and geopandas library to find the shortest path between district cities within chosen voivodeships in Poland, it also provides a map visualization of the solution. Script can be adapted to solve TSP problem in any region by replacing shapefiles.

Notifications You must be signed in to change notification settings

MichaelFish199/TravellingSalesmanProblem-in-PolishVoivodeships

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

TravellingSalesmanProblem-in-PolishVoivodeships

This project uses the python libraries 'geopandas' and 'python-tsp' to solve the Travelling Salesman Problem in Polish Voivodeships.

The script uses the shapefiles of Polish Voivodeships and district cities, and plots the chosen voivodeships on the map along with all district cities. The script then selects all district cities within the chosen voivodeships and applies the TSP algorithm to find the shortest path visiting all the selected cities. The script also provides a visual representation of the shortest path on the map. This project can be used as a starting point for solving the TSP problem in any region, by replacing global variable containing chosen regions.

Data comes from: https://www.diva-gis.org/datadown

path

About

This project uses python-tsp and geopandas library to find the shortest path between district cities within chosen voivodeships in Poland, it also provides a map visualization of the solution. Script can be adapted to solve TSP problem in any region by replacing shapefiles.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published