• 大小: 25KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-03-21
  • 语言: Matlab
  • 标签: MATLAB  VRP  

资源简介

matlab实现的VRP问题源代码,遗传算法,标准VRP问题

资源截图

代码片段和文件信息

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;

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

评论

共有 条评论