perrygeo / optimal_tour

Find the shortest tour visiting all GeoJSON points using concorde and mapbox APIs
21 stars 2 forks source link

alternative TSP solvers #8

Closed perrygeo closed 8 years ago

perrygeo commented 8 years ago

concorde is the gold standard, basically all of the significant mathematical breakthroughs in TSP research are encapsulated in this program. It's the best but the license is restrictive, it needs a closed-source LP solver, the public code is not actively maintained and the current mechanism of calling out to a subprocess is clunky.

perrygeo commented 8 years ago

Concorde also ships with code to "solve" TSPs using the Lin–Kernighan heuristic.

mourner commented 8 years ago

Per chat, I suggest switching to LKH:

perrygeo commented 8 years ago

:+1:

LKH looks great. I'll spend some time looking into writing a python wrapper for it.

I'll likely take the short-cut of wrapping the CLI as I did in pyconcorde - building the interface first, then swapping out the implementation if/when we get around to building python bindings to the C lib.

perrygeo commented 8 years ago

Some quick notes on my initial testing with LK solvers

perrygeo commented 8 years ago

I've renamed pyconcorde to pytsp and added optional support for LKH and potentially other solvers. This allows optimal_tour to use one interface and the details of the implementation can be handled in pytsp

feeLs27 commented 6 years ago

Is it possible to install pytsp for window 10?