垃圾回收物流仿真系统设计-物流运作(编辑修改稿)内容摘要:
VEHICLE (road7_0,1) = dumpcart2 roadchoiceb (num) = 0 ENDIF NEXT 程序解释: 第一行至第十一行,如果即将停泊的车辆是 dumpcart1,同时系统此时对车辆 dumpcart1的需求是零(第三行);先统计车辆 dumpcart1在当天收集工作的完成时间,并判断是否超过了12点,然后计算当天的时间惩罚成本 timecost(第三至第六行 );统计车辆的运行距离 (第七至第八行 );对两个变量置零(第九至第十行)。 第十二行至第二十二行,统计如果即将停泊的车辆是 dumpcart2的一些数据,解释同dumpcart1一样。 第二十四行至第三十行,对路径选择变量数组置零。 目标函数 objfun()中的程序如下: sumcost = 0 !统计总费用的变量置零 sumcost = initialcosta + initialcostb + sumcost。 将车辆的购置成本加到总费用变量中 sumcost = (laborneedb + laborneeda) * 60 * (runtimea (2) + 1) + sumcost !将工作人员工资添加到总费用变量 sumcost = DISTANCE (dumpcart001) / 10 * permilecosta + DISTANCE (dumpcart002) / 10 * permilecostb + sumcost !将车辆的运行费用添加到总费用变量 sumcost = timecosta + timecostb + sumcost。 将时间惩罚成本添加到总费用变量 RETURN sumcost !返回变量 sumcost给目标函数 5.仿真运行与结果分析 我们现在采用如下两种配置,来运行该仿真模型,仿真时间为一年(即 365*1440分钟)。 项目 方案 车辆名称 载重量 (吨) 随 车 人员(人) 时 间 惩罚因子 方案一 Dumpcart(1) 3 1 2 Dumpcart(2) 1 2 方案二 Dumpcart(1) 5 3 2 Dumpcart(2) 3 2 其它的项目在两个方案中的值完全相同,参见前面的表格。 通过仿真运行后得到如下数据: 方案 运行 距离km 运行 时间 h 时间 成本 万元 收集 时间 h 卸载 时间 h 可变 成本 万元 固定 成本 万元 人员 工资 万元 总成本万元 总成本万元 一 Dumpcart(1) 73691 2310 744 407 5 Dumpcart(2) 74336 2263 813 217 二 Dumpcart(1) 54657 1366 342 157 7 63 Dumpcart(2) 54489 1292 2 332 86 5 为了更清晰的比较两种方案的成本参数,将上表的数据绘制成直方图如下: 从成本数据比较图上可以看出,当采用方案二时,车辆吨位数和随车人员的增加,使得固定成本、人员工资都比方案一要大;同时,回收速度要比方案一快的多,使得可变成本和居民满意度较高;时间惩罚成本低于零,即取得了很好的市场评价和公司品牌效应。 在这两种方案下,每年方案二的物流成本比方案一要少 万元。 从运行参数比较图上可以看出,两种方案的物流成本差异收集时间、卸载时间、运行时间、运行距离的差异引起的。 由于方案一的车辆吨位和随车人员都比方案二要少,所以同是收集等量垃圾,它的收集时间和卸载时间都比方案二长,它的收集次数要比方案二多,即运行距离比方案二长。 附:以上程序当中所涉及的函数介绍如下 MODEL INFORMATION: Model Name: dumpreverse Model Title: the simulation for reverse logistics Model Author: jiannywang, NUAA Creation Date: Sun Mar 10 09:26:20 20xx Initial Actions: XLReadArray (\\,input,$B$3:$B$9,personum) FOR num = 1 TO 7 meandump (num) = * personum (num) * 1000 NEXT ELEMENT NAME: dump1 Element Type: Part Type: Variable attributes Group number: 1 Inter Arrival Time: First Arrival at: Maximum Arrivals: Unlimited Input / Output Rules Output: PUSH to dump001(1) Actions Create: IF IUNIFORM (1,3,101) = 1 dumpreusable = yes ELSE dumpreusable = no ENDIF moddemand (1) = MOD (moddemand (1),cartcapacity) + 1 IF moddemand (1) = cartcapacity moddemand (1) = 0 ENDIF _____________________________________________________________ ELEMENT NAME: dump1a Element Type: Part Type: Variable attributes Group number: 1 Inter Arrival Time: First Arrival at: Maximum Arrivals: Unlimited Input / Output Rules Output: PUSH to dump001a(1) Actions Create: IF IUNIFORM (1,3,101) = 1 dumpreusable = yes ELSE dumpreusable = no ENDIF moddemand (1) = MOD (moddemand (1),cartcapacity) + 1 IF moddemand (1) = cartcapacity moddemand (1) = 0 ENDIF _____________________________________________________________ ELEMENT NAME: dump2 Element Type: Part Type: Variable attributes Group number: 1 Inter Arrival Time: First Arrival at: Maximum Arrivals: Unlimited Input / Output Rules Output: PUSH to dump002(1) Actions Create: moddemand (2) = MOD (moddemand (2),cartcapacity) + 1 IF moddemand (2) = cartcapacity moddemand (2) = 0 ENDIF _____________________________________________________________ ELEMENT NAME: dump2a Element Type: Part Type: Variable attributes Group number: 1 Inter Arrival Time: First Arrival at: Maximum Arrivals: Unlimited Input / Output Rules Output: PUSH to dump002a(1) Actions Create: moddemand (2) = MOD (moddemand (2),cartcapacity) + 1 IF moddemand (2) = cartcapacity moddemand (2) = 0 ENDIF _____________________________________________________________ ELEMENT NAME: dump3 Element Type: Part Type: Variable attributes Group number: 1 Inter Arrival Time: First Arrival at: Maximum Arrivals: Unlimited Input / Output Rules Output: PUSH to dump003(1) Actions Create: moddemand (3) = MOD (moddemand (3),cartcapacity) + 1 IF moddemand (3) = cartcapacity moddemand (3) = 0 ENDIF _____________________________________________________________ ELEMENT NAME: dump3a Element Type: Part Type: Variable attributes Group number: 1 Inter Arrival Time: First Arrival at: Maximum Arrivals: Unlimited Input / Output Rules Output: PUSH to dump003a(1) Actions Create: moddemand (3) = MOD (moddemand (3),cartcapacity) + 1 IF moddemand (3) = cartcapacity moddemand (3) = 0 ENDIF _____________________________________________________________ ELEMENT NAME: dump4 Element Type: Part Type: Variable attributes Group number: 1 Inter Arrival Time: First Arrival at: Maximum Arrivals: Unlimited Input / Output Rules Output: PUSH to dump004(1) Actions Create: moddemand (4) = MOD (moddemand (4),cartcapacity) + 1 IF moddemand (4) = cartcapacity moddemand (4) = 0 ENDIF _____________________________________________________________ ELEMENT NAME: dump4a Element Type: Part Type: Variable attributes Group number: 1 Inter Arrival Time: First Arrival at: Maximum Arrivals: Unlimited Input / Output Rules Output: PUSH to dump004a(1) Actions Create: moddemand (4) = MOD (moddemand (4),cartcapacity) + 1 IF moddemand (4) = cartcapacity moddemand (4) = 0 ENDIF _____________________________________________________________ ELEMENT NAME: dump5 Element Type: Part Type: Variable attributes Group number: 1 Inter Arrival Time: First Arrival at: Maximum Arrivals: Unlimited Input / Output Rules Output: PU。垃圾回收物流仿真系统设计-物流运作(编辑修改稿)
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。
用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。