Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/heatingma/tsp_data

Generating, Reading, Writing, and Solving TSP Data Files
https://github.com/heatingma/tsp_data

Last synced: about 2 months ago
JSON representation

Generating, Reading, Writing, and Solving TSP Data Files

Awesome Lists containing this project

README

        

# TSP_DATA
Generating, Reading, Writing, and Solving TSP Data Files

example:

```python

from solver.gurobi_solver import gurobi_solver
from tsp_data.utils import generate_opt_tour_file

filename = "tsp_data/examples/tsp_data_calculate/tsp/burma14.tsp"
save_path = "tsp_data/examples/tsp_data_calculate/tour_by_gurobi/burma14.opt.tour"
tours = gurobi_solver(filename)
generate_opt_tour_file(tours,save_path)

```