资源简介

MATLAB实现遗传算法,求最短路径,经检验比较稳定。

资源截图

代码片段和文件信息

%Function init_population
function v=init_population(n1s1)
v=round(rand(n1s1));

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-07-15 08:59  Short road\
     文件          83  2011-07-15 08:58  Short road\init_population.m
     文件         411  2011-07-15 08:58  Short road\short_road_crossover.asv
     文件         417  2011-07-15 08:58  Short road\short_road_crossover.m
     文件         213  2011-07-15 08:58  Short road\short_road_fun.m
     文件        3134  2011-07-15 08:58  Short road\short_road_ga.asv
     文件        3260  2011-07-15 08:58  Short road\short_road_ga.m
     文件         274  2011-07-15 08:58  Short road\short_road_roulette.m

评论

共有 条评论