资源简介

5个求解车辆路径问题(VRP)的MATLAB算法源程序和相应数据(数据也在m文件里),包括三种遗传算法,SA算法和禁忌搜索算法的m文件

资源截图

代码片段和文件信息

path=children(il1:l2-1);
l=length(path);
data(path3);
sum(data(path3));
for k=1:l
    if k==1
        fitness_value_c(i)=fitness_value_c(i)+sum(data(path3))*dis(1path(1))*3;
    else
        fitness_value_c(i)=fitness_value_c(i)+sum(data(path(k:l)3))*dis(path(k-1)path(k))*3;
    end
        
end 
fitness_value_c(i)=fitness_value_c(i)+dis(path(l)1)*2;

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-09-02 20:56  VRP算法\
     目录           0  2016-09-02 20:55  VRP算法\GAforVRP\
     文件        3704  2013-08-02 20:52  VRP算法\GAforVRP\GAVRP.m
     文件         335  2013-08-02 20:52  VRP算法\GAforVRP\fitness_P.m
     文件         372  2013-08-02 20:52  VRP算法\GAforVRP\fitness_c.m
     文件        1330  2013-08-02 20:52  VRP算法\GAforVRP\jiaocha.m
     文件        4980  2013-08-02 20:52  VRP算法\GAforVRP\matlab.mat
     目录           0  2016-09-02 20:55  VRP算法\SAforVRP\
     文件         249  2013-08-02 20:00  VRP算法\SAforVRP\CalculateTotalDistance.m
     文件         934  2013-08-02 20:00  VRP算法\SAforVRP\ConvertToVRPSolution.m
     文件         348  2013-08-02 19:58  VRP算法\SAforVRP\GenerateDistanceMatrix.m
     文件         108  2013-08-02 19:59  VRP算法\SAforVRP\GenerateSolusiRandom.m
     文件         411  2013-08-02 19:54  VRP算法\SAforVRP\Perform2Opt.m
     文件         687  2013-08-02 19:54  VRP算法\SAforVRP\PerformInsert.m
     文件         403  2013-08-02 19:54  VRP算法\SAforVRP\PerformSwap.m
     文件        3197  2013-08-02 19:54  VRP算法\SAforVRP\SA_VRP.m
     目录           0  2016-09-02 20:55  VRP算法\geneticVRP\
     文件         739  2008-08-19 13:06  VRP算法\geneticVRP\VRP.m
     文件          52  2008-08-05 10:20  VRP算法\geneticVRP\exchange.m
     文件        4621  2008-08-19 12:58  VRP算法\geneticVRP\geneticVRP.m
     文件         165  2008-08-05 10:20  VRP算法\geneticVRP\immuni.m
     文件        1912  2008-08-05 10:20  VRP算法\geneticVRP\intercross.m
     文件         113  2008-08-05 10:20  VRP算法\geneticVRP\mutate.m
     文件        1013  2008-08-19 15:55  VRP算法\geneticVRP\myLength.asv
     文件        1013  2008-08-19 15:57  VRP算法\geneticVRP\myLength.m
     目录           0  2016-09-02 20:55  VRP算法\tabu-search-matlab\
     文件         411  2011-02-24 15:02  VRP算法\tabu-search-matlab\Perform2Opt.m
     文件         687  2011-02-24 15:02  VRP算法\tabu-search-matlab\PerformInsert.m
     文件         403  2011-02-24 15:02  VRP算法\tabu-search-matlab\PerformSwap.m
     文件        3197  2011-02-24 14:09  VRP算法\tabu-search-matlab\SA_VRP.m
     文件        6442  2011-06-09 21:39  VRP算法\tabu-search-matlab\TS_VRP1.m
............此处省略10个文件信息

评论

共有 条评论