% 蚁群算法 clear close clc n = 10; % 城市数量 m = 100; % 蚂蚁数量 alfa = 1.5; beta = 2.5; rho = 0.1; Q = 1000; maxgen = 50; x = [2 14 9 6 3 2 4 8 12 5]; y = [8 9 12 4 1 2 5 8 1 15]; % x = [37,49,52,20,40,21,17,31