資源簡介
本資源采用matlab編碼,采用經典NSGAII解決TSP問題
代碼片段和文件信息
function?z=costfunction(xf1f2)
n=size(x2);
dist=0;
for?i=1:n-1
????dist=dist+f1(x(i)x(i+1));
end
dist=dist+f1(x(1)x(n));
z(1)=dist;
dist=0;
for?i=1:n-1
????dist=dist+f2(x(i)x(i+1));
end
dist=dist+f2(x(1)x(n));
z(2)=dist;
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2015-08-04?19:15??NSGA-2?TSP\
?????文件???????29109??2015-03-18?20:26??NSGA-2?TSP\A_location1_100.txt
?????文件???????29091??2015-03-18?20:26??NSGA-2?TSP\A_location2_100.txt
?????文件?????????244??2015-03-18?20:26??NSGA-2?TSP\costfunction.m
?????文件???????29094??2014-10-09?17:05??NSGA-2?TSP\location1.txt
?????文件???????29072??2015-03-18?20:26??NSGA-2?TSP\location1_100.txt
?????文件???????29036??2014-10-09?17:05??NSGA-2?TSP\location2.txt
?????文件???????29174??2015-03-18?20:26??NSGA-2?TSP\location2_100.txt
?????文件????????4163??2015-03-23?10:02??NSGA-2?TSP\non_domination_sort_mod.m
?????文件????????5024??2015-03-23?09:47??NSGA-2?TSP\NSGA_2.m
?????文件????????1461??2015-03-23?10:28??NSGA-2?TSP\replace_chromosome.m
?????文件????????1976??2015-03-23?09:29??NSGA-2?TSP\selection_individuals.m
- 上一篇:matlab漢寧窗帶通濾波器的設計
- 下一篇:簡單圖片拼接(Matlab)
評論
共有 條評論