pytsp
pytsp copied to clipboard
readme.md example outdated
from pyconcorde import atsp_tsp, run_concorde, dumps_matrix
shld be
from pytsp import atsp_tsp, run, dumps_matrix
distance matrix can be easily generated with scipy.spatial.distance_matrix no need for Mapbox Distance API
outf = "/tmp/myroute.tsp"
with open(outf, 'w') as dest:
dest.write(dumps_matrix(matrix_sym, name="My Route"))
makes a tsp file (myroute.tsp)
yet
tour = run(outf, start=10, solver="concorde")
tour = run(outf, start=10, solver="LKH")
requires a .sol and a .out file
tried changing outf to "xyz.out" and "xyz.out" without success
got stuck here