资源简介
[vrp] 用matlab解决vrp问题,本程序为遗传算法解决基本VRP问题的例程。各供货点距离矩阵及遗传算法参数在VRP.M中给出。以路径长度作为遗传算法的适应度函数,约束函数通过在LEN中增加惩罚因子体现,本程序简便起见将不满足约束的直接加100;
[vrp-in-GA] 使用matlab编写遗传算法,解决车辆路径最优化问题。
[VRPcode] VRP问题的matlab实现源代码,遗传算法,标准VRP问题
[latestvrp] VRP problem with its variants solved using the basic Meta heuristics.Basic concepts of MATLAB for the begineers. A very helpful book with the basic commands of MATLAB.

代码片段和文件信息
function [ ArriTime TravellingTime Cost ] =ArcProcess( Leav_time D_length VelocitySet model )
%% 对每个路段的情况进行处理
% ArriTime 到达下一个站点的时间
% TravellingTime 整个路段的 运输时间
% Cost 整个路段的运输费用
% clcclear
%
% Leav_time = [7.06686758865498] ;
% D_length =[32.0156211871642] ;
% VelocitySet =[53.8554639214685;24.7485671600226;53.8554639214685] ;
% [ model ] = CreatModel( ) ;
Period = model.Period ;
ind1 = find( Leav_time>= Period( : 1 ) 1 ‘last‘ ) ;
if ( Period( ind1 2 ) - Leav_time ) *VelocitySet( ind1 ) >= D_length
TravellingTime = D_length / VelocitySet( ind1 ) ;
ArriTime = Leav_time + TravellingTime ;
Cost = model.UnitCost( ind1 ) * TravellingTime ;
else
TravellingTime1 = Period( ind1 2 ) - Leav_time ;
TravellingTime2 = ( D_length- ( Period( ind1 2 ) - Leav_time ) *VelocitySet( ind1 ) ) / VelocitySet( ind1+1 ) ;
TravellingTime = TravellingTime1 + TravellingTime2 ;
ArriTime = Leav_time + TravellingTime ;
Cost = model.UnitCost( ind1 ) * TravellingTime1 + ...
model.UnitCost( ind1+1 ) * TravellingTime2 ;
end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-05-19 17:46 VRP using GA methods\
文件 1283 2018-01-12 17:41 VRP using GA methods\ArcProcess.m
文件 3968 2018-01-13 17:48 VRP using GA methods\CreatModel.m
文件 257 2017-11-22 17:08 VRP using GA methods\Crossover.m
文件 712 2017-04-26 12:54 VRP using GA methods\DoAction.m
文件 260 2017-11-22 18:22 VRP using GA methods\Mutate.m
文件 7316 2018-01-12 17:42 VRP using GA methods\MyCost.m
文件 1563 2018-01-12 16:43 VRP using GA methods\PlotSolution.m
文件 106 2017-11-22 17:09 VRP using GA methods\RouletteWheelSelection.m
文件 14846 2018-01-12 17:40 VRP using GA methods\data.xlsx
文件 4347 2018-01-12 17:17 VRP using GA methods\ga.m
- 上一篇:Occam2DMT_Matlab
- 下一篇:南航机床数控技术课程设计
相关资源
- GaussJordan解线性方程组-matlab
- MATLAB 实现各类常见算法
- matlab编写的量子遗传算法
- fft ip core使用
- 协同进化遗传算法求解函数优化问题
- matlab开发-FlockingAlgorithm
- Gardner_for _MPSK(PSK的符号同步算法)
- MATLAB 提取Gabor特征
- 基于遗传算法的旅游全国的路径最优
- 基于遗传算法的机器人路径规划matl
- 基于FPGA分布式算法FIR滤波器verilog代码
- 多种群遗传算法的函数优化算法(源
- 遗传算法完整MATLAB程序实数法,轮盘
- 遗传算法解决最优路径、选址问题
- 遗传算法GA车间调度Matlab代码
- 求解多旅行商(MTSP)的遗传算法的
- 数字滤波器的MATLAB与FPGA实现——杜勇
- 基于遗传算法的小波神经网络在股票
- matlab开发-基于遗传算法的机器人运动
- 基于FPGA的自适应滤波器的实现
- gaze-text-detection-master
- 2维FFT的FPGA实现
- 步态识别源码
- 《Matlab遗传算法工具箱及应用》源码
- 基于Matlab和FPGA的FIR数字滤波器设计及
- 蚁群优化SVM系数
- Modelling.the.Wireless.Propagation.Channel.A.s
- Gabor滤波后的GIST特征提取matlab代码
- 遗传算法图像分割matlab+源代码
- MATLAB设计FPGA实现联合ISE和Modelsim仿真
评论
共有 条评论