Written by
Zhicheng Zhang (leader), Chenyang Lei and Yuxiang Chen
on
on
MTSP-NAGA-II
This is the code of course project in Advanced Artificial Intelligence. This project uses NSGA-II to solve the problem of Multiple Traveling Salesmen Problem. The baseline code is GA-for-mTSP and we finetuned its parameters to make it more suitable for our experiment. The population select algorithm of our code was mainly based on the NSGA-II and the enhanced GA algorithm is mainly based on the arifield’s work. For more information, please visit the repository.
Contribution
| NAME | ID | CONTRIBUTION |
|---|---|---|
| Zhang Zhicheng (leader) | 12132375 | 1/3 |
| Lei Chenyang | 12132336 | 1/3 |
| Yuxiang Chen | 12132330 | 1/3 |
Instruction manual
Repeate our experiment result
- Change the dir to
baseline/code/, and run the shellrepeat_test.sh, and you will get the baseline result saved in thebaseline_run_data.json - Change the dir ro
mtsp_nsga_ii/code/, and run the python filerepeat_test.py, and you will get the improved GA result saved in theours_run_data.json - Move the two
.jsonfile you get in the previous step tosummary_figure/and runpolt_figure.pyandsummary.py, and you will get the result figure and table of this two algorithm we represent in our report.
Note: It needs a lot of time to run the experiment, as we repeat 30 times in each dataset.
Run the enhanced GA algorithm
Change the dir to mtsp_nsga_ii/code/
>python main.py
usage main.py --problem [--traveller] [--population] [--generations] [--mutation]
optional arguments:
--problem problem name
--traveller number of travellers,default 5
--population number of population,default 100
--generations number of generations, default 200
--mutation nutation rate, default 0.2
Discussion and feedback