模拟退火算法求解TSP问题#include#include#include#include#includeusingnamespace::std;constintMAX_CITY_SIZE=100;//最大城市个数intn;//城市个数intdist[MAX_CITY_SIZE][MAX_CITY_SIZE];//距离矩阵intcur_path[MAX_CITY_SIZE];//当前解intexd_path[MAX_CITY_SIZE];//扩展解do