How chaohongwu719/mtsp-practice works
This repository is a multi-vehicle routing/TSP comparison for temple locations. Its main workflow loads a symmetric distance matrix, runs exact Gurobi formulations and heuristic solvers, reports routes and costs, and can render routes on a map. The graph preserves the separate solver approaches and the cluster-then-route stages. Relationships are limited to calls shown in excerpts; the README is empty, and spreadsheet/CSV contents were not inspected.
Main entry points: TSP_main.py Run comparison · TSP_data.py Matrix loader · TSP_SA.py Simulated annealing · clusterThenRouting_v3.py Cluster routes
Components 11
Routing inputs
- Distance matrix
distance_matrix.csv - Temple coordinates
期末分組報告_宮廟經緯度.xlsx - Matrix loader
TSP_data.py
Exact solvers
- MTZ optimizer
TSP_MTZ.py - DFJ optimizer
TSP_DFJ.py
Heuristic solvers
- Simulated annealing
TSP_SA.py - Cluster routes
clusterThenRouting_v3.py
Results and display
- Run comparison
TSP_main.py - Route map
draw.py - Costs and schedules
TSP_main.py
Other components
- Engineer
Connections 12
- Engineer → Run comparison: runs
TSP_main.py - Run comparison → Matrix loader: loads
TSP_main.py - Matrix loader → Distance matrix: reads
- Run comparison → MTZ optimizer: solves with
TSP_main.py - Run comparison → DFJ optimizer: solves with
TSP_main.py - Run comparison → Simulated annealing: solves with
TSP_main.py - Run comparison → Cluster routes: solves with
TSP_main.py - Simulated annealing → Matrix loader: loads
TSP_SA.py - Cluster routes → Matrix loader: loads
clusterThenRouting_v3.py - Run comparison → Route map: renders routes
TSP_main.py - Route map → Temple coordinates: reads coordinates
draw.py - Run comparison → Costs and schedules: prints results
TSP_main.py