多车型组合调度的建模

  • c4_286147
    了解作者
  • 2.5KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-04-20 01:12
    上传日期
多车型组合调度的建模,基于MATLAB实现,子函数形式书写,方便调用,
多车型组合调度的建模.rar
  • danxianBusScheduling.m
    430B
  • danxianNewBusScheduling.m
    2.1KB
  • BusScheduling.m
    749B
  • NewBusScheduling.m
    2.1KB
内容介绍
function ObjVal = danxianNewBusScheduling(Chrom) % Dimension of objective function [Row,Dim] = size(Chrom); % mm=zeros(Row,Dim); bus=Chrom(:,1); % rate=Chrom(:,2); % Time=zeros(Row,1); ObjVal=zeros(Row,1); % Up=[674,625,49,0]+200; % % Dn=[0,621,235,492]+200; % Up=[374,425,49,39,123,45,565,485,489,152,452,75,458,68,456,256,236,482,500,536,264,452,123,456,289,365,432,247,124,436,351,0]; % Dn=[0,458,482,145,264,332,148,266,244,172,256,248,163,154,286,233,418,153,482,462,458,324,842,352,218,324,236,124,352,256,325,627]; % uj=[674,625,49,39,123,45,565,485,489,152,452,75,458,68,456,256,236,482,500,536,264,452,123,456,452]; Up=[426,459,382,366,366,279,177,250,275,360,352,264,262,245,263,452,396,361,349,336,324,245,213,143,136,243,264,242,174,148,56,0]; Dn=[0,24,48,102,156,183,267,220,309,352,362,342,396,521,545,521,421,403,362,220,152,108,156,224,301,321,325,315,241,244,332,335]; mk=ceil(120./bus); station=32; for row=1:Row up=ceil(Up/(mk(row))); dn=ceil(Dn/(mk(row))); mark=0; time=0; BusCost=0; surplus=zeros(1,station); for j=1:mk(row) BusPeople=0; BusCost=BusCost+1.4056*19.2; for i=1:station BusRoom=70-BusPeople-dn(i); BusPeople=BusPeople+up(i)-dn(i)+surplus(i); surplus(i)=0; if(BusPeople>70) surplus(i)=BusPeople-70; BusPeople= 70; end; if(surplus(i)+up(i)<=BusRoom) time=time+up(i)*bus(row)*0.5+surplus(i)*bus(row)*1.5; % surplus(i)=0; else time=time+BusRoom*bus(row)*0.5; % surplus(i)=surplus(i)+up(i)-BusRoom; end; if(surplus(i)>=7) mark=mark+1; end; end; end; if(mark>0) ObjVal(row)=10000; else ObjVal(row)=time*0.5*0.0205+BusCost*0.5; end; % ObjVal=-20*exp(-0.2*(1^0.5))-exp(-1)+20+exp(1); end
评论
    相关推荐
    • Matlab合集
      冈萨雷斯数字图像处理MATLAB版.中文版+数字图像处理第二版中文版(冈萨雷斯)+MATLAB-R2014a完全自学一本通+MATLAB R2016a完全自学一本通 素材文件+[模式识别与智能计算:MATLAB技术实现(第2版)].杨淑莹.扫描版
    • Matlab教程
      MatlaB经典ppt,主要讲解了MatlaB的入门知识,图形编程以及仿真。
    • matlab 课件
      matlab 功能很强大,本课件详细的介绍了matlab在科学计算中的应用。
    • matlab编译器
      matlab编译为exe文件所需要的文件; 使用时解压,将解压后文件拖入至matlab命令行即可
    • matlab
      matlab的基础知识进行介绍
    • MatLab
      “#MatLab
    • MATLAB编译器
      基于MATLAB 2018b版本介绍MATLAB编译器。介绍如何利用编译器将MATLAB代码编译为独立应用程序或组件,并在没有安装MATLAB的计算机上进行部署。
    • matlab入门
      matlab的入门教程,很值得仔细看看,对提高matlab能力有帮助
    • matlab
      matlab经典课堂讲义
    • matlab
      matlab