模拟退火算法解TSP问题C++版

qq_15464 19 0 RAR 2020-01-28 02:01:56

模拟退火算法求解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

用户评论
请输入评论内容
评分:
Generic placeholder image 卡了网匿名网友 2020-01-28 02:01:56

很好的代码,用在项目中了,很实用

Generic placeholder image 卡了网匿名网友 2020-01-28 02:01:56

Generic placeholder image 卡了网匿名网友 2020-01-28 02:01:56

很不错,收获很大

Generic placeholder image 卡了网匿名网友 2020-01-28 02:01:56

注释很详细

Generic placeholder image 卡了网匿名网友 2020-01-28 02:01:56

程序可以,能够运行,但是输入的不是城市的坐标,而是各个城市间的距离

Generic placeholder image 卡了网匿名网友 2020-01-28 02:01:56

程序不错,但是输入格式和我要求的不一样