pytsp icon indicating copy to clipboard operation
pytsp copied to clipboard

readme.md example outdated

Open eloiup opened this issue 6 years ago • 0 comments

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

eloiup avatar Nov 27 '18 16:11 eloiup