Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/heatingma/tsp_data
- Owner: heatingma
- Created: 2023-07-15T17:51:53.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-15T17:54:59.000Z (over 1 year ago)
- Last Synced: 2023-07-15T18:54:46.534Z (over 1 year ago)
- Language: Python
- Size: 11.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TSP_DATA
Generating, Reading, Writing, and Solving TSP Data Filesexample:
```python
from solver.gurobi_solver import gurobi_solver
from tsp_data.utils import generate_opt_tour_filefilename = "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)```