赞
踩
为了解决电商物流"最后1km"的配送问题,文章引入了卡车—无人机联合配送模式,并考虑特殊天气情况下无人机无法工作的约束,构建了以路径最短为目标的数学模型,在不同规模的算例试验中,通过卡车单独配送方案与联合配送方案对比可知无人机配送在解决物流配送问题中的重要性.
function lh = matlabUpdatePlotapp(lh,xopt,idxs,stopsLat,stopsLon, app)
% Plotting function for tsp_intlinprog example
% Copyright 2014-2018 The MathWorks, Inc.
if ( lh ~= zeros(size(lh)) ) % First time through lh is all zeros
delete(lh) % Get rid of unneeded lines
end
segments = find(round(xopt)); % Indices to trips in solution
% Loop through the trips then draw them
Lat = zeros(3*length(segments),1);
Lon = zeros(3*length(segments),1);
for ii = 1:length(segments)
start = idxs(segments(ii),1);
stop = idxs(segments(ii),2);
% Separate data points with NaN's to plot separate line segments
Lat(3*ii-2:3*ii) = [stopsLat(start); stopsLat(stop); NaN];
Lon(3*ii-2:3*ii) = [stopsLon(start); stopsLon(stop); NaN];
end
lh = plot(app.UIAxes, Lat,Lon,'k:','LineWidth',2);
drawnow; % Add new lines to plot
[1]李敏. 浅析异常天气下无人机和车辆协同配送问题.
部分理论引用网络文献,若有侵权联系博主删除。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。