This project uses conda environment.
You can download Anaconda from https://www.anaconda.com/products/individual .
git clone https://github.com/lingxiaomeng/AAI.git
cd AAI
conda env create -f environment.yml
You can use jupyter run this code.
-
main.ipynb run baseline and ours for 30 times and save all results to results.txt.
-
plot.ipynb plot the results.txt file.
You can also run main.py or plot.py directly with
conda activate mtsp
python main.py
python plot.py
Our algorithm is based on baseline.
Our code is in ./GA_for_mTSP/ours/
We use instances from https://github.com/picashuo/opgamoea/tree/c65056249bf7bb3334bdfc02ab584c108ccd9048/instances/TSP
- MTSP-51.
- MTSP-100.
- MTSP-150.
- Pr76.
- Pr152.
- Pr226.
Baseline: https://github.com/Anupal/GA-for-mTSP/tree/master/mtsp