CN117094629A - Dangerous goods full-load distribution path optimization and vehicle dispatching method - Google Patents

Dangerous goods full-load distribution path optimization and vehicle dispatching method Download PDF

Info

Publication number
CN117094629A
CN117094629A CN202311199824.1A CN202311199824A CN117094629A CN 117094629 A CN117094629 A CN 117094629A CN 202311199824 A CN202311199824 A CN 202311199824A CN 117094629 A CN117094629 A CN 117094629A
Authority
CN
China
Prior art keywords
vehicle
distribution center
demand
path
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311199824.1A
Other languages
Chinese (zh)
Other versions
CN117094629B (en
Inventor
柴获
何瑞春
韩桢铖
熊一辉
董凯凯
张会茹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lanzhou Jiaotong University
Original Assignee
Lanzhou Jiaotong University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lanzhou Jiaotong University filed Critical Lanzhou Jiaotong University
Priority to CN202311199824.1A priority Critical patent/CN117094629B/en
Publication of CN117094629A publication Critical patent/CN117094629A/en
Application granted granted Critical
Publication of CN117094629B publication Critical patent/CN117094629B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • G06Q10/0835Relationships between shipper or supplier and carriers
    • G06Q10/08355Routing methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • G06Q10/047Optimisation of routes or paths, e.g. travelling salesman problem
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06311Scheduling, planning or task assignment for a person or group
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06315Needs-based resource requirements planning or analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/40Engine management systems

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Game Theory and Decision Science (AREA)
  • Educational Administration (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明属于配送路径规划技术领域,公开了一种危险品满载配送路径优化和车辆调度方法,该方法包括建立车辆数量、车辆行驶总成本和总风险、配送时间的模型、建立车辆路径优化数学模型P1、建立车辆调度模型P2、进行两阶段方法求解(包括即路径优化求解方法、车辆调度优化求解方法),本发明通过求解模型P1可获得由配送中心到达各个需求点及配送完成后返回配送中心的车辆行驶路线,将车辆调度问题可转化为带时间窗的VRP问题,通过求解P2模型,可获得车辆调度优化方案。本发明通过优化行驶路线和科学调度车辆,可使运输过程达到运输成本、运输风险最小,同时分配车辆数最少且保证车辆运输任务量的公平性。

The invention belongs to the technical field of distribution path planning, and discloses a method for optimizing the full-load distribution path of dangerous goods and vehicle dispatching. The method includes establishing a model of the number of vehicles, the total cost and total risk of vehicle travel, and distribution time, and establishing a mathematical model for vehicle path optimization. P1. Establish a vehicle dispatch model P2 and perform a two-stage solution (including path optimization solution method and vehicle dispatch optimization solution method). By solving the model P1, the present invention can obtain the arrival from the distribution center to each demand point and the return to the distribution center after the distribution is completed. Based on the vehicle driving route, the vehicle scheduling problem can be transformed into a VRP problem with a time window. By solving the P2 model, the vehicle scheduling optimization plan can be obtained. By optimizing driving routes and scientifically dispatching vehicles, the present invention can minimize transportation costs and transportation risks in the transportation process, while allocating the least number of vehicles and ensuring fairness in the amount of vehicle transportation tasks.

Description

一种危险品满载配送路径优化和车辆调度方法A method for optimizing the delivery route and dispatching vehicles for fully loaded dangerous goods

技术领域Technical Field

本发明涉及配送路径规划技术领域,具体涉及一种危险品满载配送路径优化和车辆调度方法。The present invention relates to the technical field of distribution route planning, and in particular to a method for optimizing the distribution route of fully loaded dangerous goods and dispatching vehicles.

背景技术Background Art

满载车辆调度问题由Ball,Bodin,Golden等人于1983年提出,指配送中心与需求点间需要车辆多车次满载执行,该问题又称为多重运输调度问题。危险品运输过程中,如果任务点的需求量不小于运输车辆的容量,执行每项运输任务的车辆可能不止一辆,车辆为完成配送任务,需要满载运行。例如,汽车加油站油品的运输问题,加油站的储罐容量通常为30-120m3,而常见的油罐车罐体核载量为3-30m3,一个加油站需要多辆罐车满载运输才能满足要求。The fully loaded vehicle scheduling problem was proposed by Ball, Bodin, Golden and others in 1983. It refers to the need for multiple fully loaded vehicles to perform between the distribution center and the demand point. This problem is also called the multiple transportation scheduling problem. In the process of dangerous goods transportation, if the demand at the task point is not less than the capacity of the transportation vehicle, there may be more than one vehicle to perform each transportation task. In order to complete the distribution task, the vehicle needs to run fully loaded. For example, the transportation problem of oil products at gas stations. The storage tank capacity of gas stations is usually 30-120m3 , while the common tanker tank capacity is 3-30m3. A gas station needs multiple tankers to transport fully loaded to meet the requirements.

满载车辆危险品运输路径优化是一个多目标优化问题,配送中心与需求点间可能存在多条非支配路径,需要根据风险偏好选择相应的路径安排车辆运输,当选择运输路径后,通过调度运输车辆使更少的车辆参与配送任务,即需要每辆车承担尽可能多的运输任务,即在整个运输任务开始至所有任务完成这个过程中的空闲时间最少。只有优化行驶路线和科学调度车辆,才能使完成所有运输任务的行运输成本、总风险最小,同时分配车辆数最少且保证车辆运输任务的公平性,那么如何优化路径、如何优化车辆调度是需要解决的技术问题。The optimization of the transportation route of fully loaded vehicles for dangerous goods is a multi-objective optimization problem. There may be multiple non-dominated routes between the distribution center and the demand point. It is necessary to select the corresponding route to arrange vehicle transportation according to risk preference. After selecting the transportation route, fewer vehicles are required to participate in the distribution task by dispatching the transportation vehicles, that is, each vehicle needs to undertake as many transportation tasks as possible, that is, the idle time in the process from the beginning of the entire transportation task to the completion of all tasks is minimized. Only by optimizing the driving route and scientifically dispatching vehicles can the transportation cost and total risk of completing all transportation tasks be minimized, while the number of vehicles allocated is minimized and the fairness of vehicle transportation tasks is guaranteed. Therefore, how to optimize the route and how to optimize vehicle scheduling are technical problems that need to be solved.

发明内容Summary of the invention

本发明的目的是为了解决现有技术危险品满载配送中的技术问题,提供了一种危险品满载配送路径优化和车辆调度方法。The purpose of the present invention is to solve the technical problems in the prior art of dangerous goods full-load distribution, and to provide a dangerous goods full-load distribution path optimization and vehicle scheduling method.

为了达到上述目的,本发明采用以下技术方案:In order to achieve the above object, the present invention adopts the following technical solutions:

一种危险品满载配送路径优化和车辆调度方法,其特征是,包括以下步骤:A method for optimizing the distribution path and dispatching vehicles for a fully loaded dangerous goods distribution, characterized in that it comprises the following steps:

步骤1)、建立车辆数量、车辆行驶总成本和总风险、配送时间的模型;Step 1) Establish a model for the number of vehicles, total cost and total risk of vehicle travel, and delivery time;

1.1)、设在需求点d的需求量为qd,每辆车的核载量为g,设qd≥g,即一辆车只能完成一项任务的全部或其中的一部分,完成任务点d的配送任务需要车辆数为ad,则完成所有需求点的配送任务需要总的车辆数为Σdad1.1) Let the demand at the demand point d be q d , the core load of each vehicle be g, and let q d ≥ g, that is, a vehicle can only complete all or part of a task. The number of vehicles required to complete the delivery task at the task point d is a d , then The total number of vehicles required to complete the delivery task of all demand points is Σ d a d ;

1.2)、运输车辆在路段(i,j)上运输危险品产生运输成本分两种情况,满载运输成本为空驶成本为则完成由配送中心o出发到达需求点d的运输成本c1 od为所经路段运输成本之和,即:1.2) There are two cases where the transportation cost of transporting dangerous goods by transport vehicles on road section (i, j) is: The cost of empty driving is Then the transportation cost c 1 od from distribution center o to demand point d is the sum of the transportation costs of the sections passed, that is:

变量表示路段(i,j)∈E在由配送中心o出发到达需求点d的路径上,否则 variable Indicates that the road segment (i, j) ∈ E is on the path from the distribution center o to the demand point d, otherwise

空车返回时路径为需求点d到配送中心o间的成本最小的路径行驶,用表示,则完成需求点d的配送任务,运输费用为 When the empty vehicle returns, the path is the path with the minimum cost from the demand point d to the distribution center o. If we say that the delivery task of demand point d is completed, the transportation cost is

1.3)、运输车辆在路段(i,j)上运输危险品产生的风险为rij,完成由配送中心o出发到达需求点d的配送任务的运输总风险为:1.3) The risk of transporting dangerous goods on road section (i, j) is r ij , and the total risk of transporting from distribution center o to demand point d is:

1.4)、设车辆在路段(i,j)上的行驶时间为车辆平均装载时长为Δt1,卸载时长为Δt2,车辆从配送中心o到达需求点d车辆行驶时间为1.4) Assume that the driving time of the vehicle on the road section (i, j) is The average loading time of a vehicle is Δt 1 , the unloading time is Δt 2 , and the driving time of a vehicle from distribution center o to demand point d is

车辆从需求点d返回配送中心o的行驶时间为The travel time of a vehicle from demand point d to distribution center o is

车辆从配送中心o出发到完成需求点d的配送任务返回配送中心共计用时为:The total time it takes for a vehicle to depart from distribution center o, complete the delivery task at demand point d and return to the distribution center is:

假设车辆从配送中心出发时刻为则完成需求点d返回配送中心的时刻为 Assume that the vehicle departs from the distribution center at The time to complete the demand point d and return to the distribution center is

1.5)设车辆从配送中心出发最早时间和返回配送中心最晚时间窗为[bd,ed],则1.5) Assume that the earliest time for a vehicle to depart from the distribution center and the latest time window for its return to the distribution center are [b d , ed ], then

车辆到达需求点d的时刻必须满足以下条件:The time when the vehicle arrives at the demand point d must meet the following conditions:

车辆从配送中心o出发的时刻必须满足以下条件:The time when the vehicle departs from distribution center o The following conditions must be met:

同时,也需要满足配送中心的时间窗[b0,e0],即At the same time, the time window [b 0 ,e 0 ] of the distribution center must also be met, that is

步骤2)、建立车辆路径优化数学模型P1;Step 2), establish a vehicle path optimization mathematical model P1;

P1模型为:The P1 model is:

min f=(f1,f2) (10)min f=(f 1 ,f 2 ) (10)

s.t.s.t.

其中:in:

式(10)表示由两个目标函数组成的最小化目标向量;Formula (10) represents the minimization objective vector composed of two objective functions;

式(11)为运输成本函数表达式;Formula (11) is the expression of transportation cost function;

式(12)为运输风险函数表达式;Formula (12) is the expression of transportation risk function;

式(13)保证配送中心o到需求节点d间形成一条完整的运输路径;Formula (13) ensures that a complete transportation path is formed from the distribution center o to the demand node d;

式(14)为决策变量;Formula (14) is the decision variable;

N表示n个节点的集合,E表示节点间路段的集合;N represents the set of n nodes, and E represents the set of road segments between nodes;

步骤3)、建立车辆调度模型P2,令xijk(xijk∈[0,1])为车辆k完成作业i后是否去执行作业j,如果是,xijk=1,否则xijk=0;yik(yik∈[0,1])为作业i是否由车辆k来执行,如果是,yik=1,否则yik=0;对于作业i,如果i∈Jd其时间窗为服务时长为Δt0dStep 3) Establish the vehicle scheduling model P2, let xijk ( xijk ∈[0,1]) be whether vehicle k will perform task j after completing task i, if yes, xijk = 1, otherwise xijk = 0; yik ( yik ∈[0,1]) be whether task i is performed by vehicle k, if yes, yik = 1, otherwise yik = 0; for task i, if i∈J d, its time window is The service duration is Δt 0d ;

P2模型为:The P2 model is:

s.t.s.t.

其中:式(15)表示目标函数,函数中表示最少车辆数,M为整数,保证车辆数目标的优先级,表示在同等车辆数的情况下,所有车辆运行时间的标准差最小,以保证每辆车承担的运输任务强度达到公平,式(16)-(19)保证每辆车同时只能进行一项作业,依次执行,每项作业只有同一辆来完成,式(20)表示车辆k到达节点j的时刻,式(21)保证到达节点j的时刻必须满足时间窗约束;式(22)、(23)为车辆的最早出发和最晚返回时刻的时间窗要求,式(24)、(25)为决策变量;K为车辆集合、C为配送节点集合;Where: Formula (15) represents the objective function, In the function Represents the minimum number of vehicles, M is an integer, ensuring the priority of the vehicle number target, It means that when the number of vehicles is the same, the standard deviation of the running time of all vehicles is the smallest to ensure that the intensity of the transportation task undertaken by each vehicle is fair. Formulas (16)-(19) ensure that each vehicle can only perform one operation at the same time and execute them in sequence. Each operation is completed by only one vehicle. Formula (20) represents the time when vehicle k arrives at node j. Formula (21) ensures that the time when it arrives at node j must meet the time window constraint. Formulas (22) and (23) are the time window requirements for the earliest departure and latest return time of the vehicle. Formulas (24) and (25) are decision variables. K is the vehicle set and C is the distribution node set.

步骤4)、进行两阶段求解;Step 4), perform two-stage solution;

4.1)、P1模型即路径优化求解方法:第一阶段采用脉冲算法获得配送中心到每个需求节点间的所有路径的Pareto解;第二阶段将在第一阶段获得配送中心到每个需求节点间Pareto路径进行编码,采用NSGA-II算法求解;4.1) P1 model, i.e., path optimization solution method: In the first stage, the pulse algorithm is used to obtain the Pareto solution of all paths from the distribution center to each demand node; in the second stage, the Pareto path from the distribution center to each demand node obtained in the first stage is encoded and solved using the NSGA-II algorithm;

4.2)、P2模型即车辆调度优化求解方法:4.2) P2 model, i.e., vehicle scheduling optimization solution method:

第一、初始化需求信息;First, initialize the demand information;

第二、采用脉冲算法求配送中心o到需求节点d间的Pareto路径;Second, the pulse algorithm is used to find the Pareto path from distribution center o to demand node d;

第三、采用基于NSGA-II多目标优化方法求配送中心o到所有需求节点间的Pareto路径;Third, the Pareto path between distribution center o and all demand nodes is obtained by using the NSGA-II multi-objective optimization method;

第四、决策人员根据风险偏好选择其中一种路径方案;Fourth, the decision maker chooses one of the path options based on risk preferences;

第五、采用基于UMDA的VRP求解方法获得该路径方案下的车辆调度时刻表即车辆调度方案。Fifth, the UMDA-based VRP solving method is used to obtain the vehicle scheduling schedule under the path plan, that is, the vehicle scheduling plan.

进一步地,步骤4.1)中第一阶段配送中心到各需求节点间的路径分别为 表示配送中心节点o到需求节点d间的Pareto路径集。3.根据权利要求1所述的一种危险品满载配送路径优化和车辆调度方法,其特征是:所述步骤4.1)中在第二阶段NSGA-II算法中根据编码方式、适应度函数和种群更新策略。Furthermore, the paths from the first-stage distribution center to each demand node in step 4.1) are Represents the Pareto path set from the distribution center node o to the demand node d. 3. A method for optimizing the path and dispatching vehicles for the full-load distribution of dangerous goods according to claim 1, characterized in that: in the second stage NSGA-II algorithm in step 4.1), according to the encoding method, fitness function and population update strategy.

进一步地,编码方式为个体编码,采用自然数编码,编码长度为m,格式为n1,n2...nm,其中:编码中第i个值为ni,则表示配送中心o到需求节点di间采用第条路径运输。Furthermore, the encoding method is individual encoding, using natural number encoding, the encoding length is m, and the format is n 1 , n 2 ...n m , where: The i-th value in the code is n i , which means that the distribution center o is connected to the demand node d i by the Transport routes.

进一步地,适应度函数采用[c_value,r_value]=f(indi)表示个体indi的适应度,其中c_value和r_value分别为按照个体indi中的路径选择方案时行运输的成本和风险。Furthermore, the fitness function uses [c_value, r_value] = f(indi) to represent the fitness of individual indi, where c_value and r_value are the cost and risk of transportation according to the path selection plan in individual indi, respectively.

进一步地,种群更新策略中种群通过交叉获得新个体,交叉操作采用整数交叉法;首先从种群中随机选取两个个体,随机生成两个位置pos1和pos2(pos1<pos2),将两个个体pos1到pos2位进行互换,生成两个新个体;Furthermore, in the population update strategy, the population obtains new individuals through crossover, and the crossover operation adopts the integer crossover method; first, two individuals are randomly selected from the population, two positions pos1 and pos2 (pos1<pos2) are randomly generated, and the positions pos1 to pos2 of the two individuals are swapped to generate two new individuals;

变异操作采用整数变异法得到新个体,随机选择一个个体,并随机生成两个位置pos1和pos2(pos1<pos2),将被选个体pos1到pos2位与逐个与做差运算并取绝对值,生成一个新个体。The mutation operation uses integer mutation method to get a new individual. An individual is randomly selected and two positions pos1 and pos2 (pos1 < pos2) are randomly generated. The selected individual pos1 to pos2 are compared one by one. Perform the difference operation and take the absolute value to generate a new individual.

本发明相对与现有技术,具有以下有益效果:Compared with the prior art, the present invention has the following beneficial effects:

本发明通过求解模型P1可获得由配送中心到达各个需求点及配送完成后返回配送中心的车辆行驶路线,根据风险偏好选择车辆行驶线路后,决策者该如何确定车辆派车计划仍然是一个需要解决的问题。在可调派车辆数量有限的情况下,派车数量是一个需要考虑的优化目标。By solving model P1, the present invention can obtain the vehicle driving routes from the distribution center to each demand point and return to the distribution center after delivery. After selecting the vehicle driving route according to risk preference, how the decision maker should determine the vehicle dispatch plan is still a problem that needs to be solved. When the number of dispatchable vehicles is limited, the number of dispatched vehicles is an optimization goal that needs to be considered.

当决策者根据风险偏好选择了某路径方案后,为了达到更少的车辆参与配送任务的目的,则需要每辆车承担尽可能多的运输任务,即在整个运输任务开始所有任务完成这个过程中的空闲时间最少。本发明将车辆调度问题可转化为带时间窗的VRP问题,通过求解P2模型,可获得车辆调度优化方案。When the decision maker selects a certain route plan based on risk preference, in order to achieve the goal of fewer vehicles participating in the distribution task, each vehicle needs to undertake as many transportation tasks as possible, that is, the idle time in the process of starting the entire transportation task and completing all tasks is minimized. The present invention converts the vehicle scheduling problem into a VRP problem with a time window, and by solving the P2 model, a vehicle scheduling optimization solution can be obtained.

本发明通过安排车辆运输方案,通过优化路径、优化车辆调度方案,可使运输过程达到运输成本、运输风险最小,同时分配车辆数最少且保证车辆运输任务量的公平性。The present invention arranges vehicle transportation plans, optimizes routes, and optimizes vehicle dispatching plans, so that the transportation cost and transportation risk of the transportation process can be minimized, while the number of vehicles allocated is minimized and the fairness of vehicle transportation tasks is guaranteed.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为车辆出发到达时间线。Figure 1 shows the vehicle departure and arrival timeline.

图2为本发明经调整作业时间后的车辆出发到达时间线。FIG. 2 is a timeline of vehicle departure and arrival after adjusting the operation time according to the present invention.

图3为作业调度转化为VRP问题的示意图。Figure 3 is a schematic diagram of the transformation of job scheduling into a VRP problem.

图4为配送中心到各需求节点间的路径连接后总的成本和总风险示意图。Figure 4 is a schematic diagram of the total cost and total risk after the paths between the distribution center and each demand node are connected.

图5为NSGA-II算法中个体编码方式。Figure 5 shows the individual encoding method in the NSGA-II algorithm.

图6单车型危险品运输车辆调度问题求解流程图。Figure 6 Flowchart for solving the scheduling problem of a single-model hazardous goods transport vehicle.

图7为本发明实施例中小规模测试网络图。FIG. 7 is a diagram of a small-scale test network in an embodiment of the present invention.

图8为本发明路径选择Pareto解。FIG8 is a Pareto solution for path selection of the present invention.

图9两阶段算法(TSA)与一般NSGA-II算法(GGA)比较图。Fig. 9 Comparison between the two-stage algorithm (TSA) and the general NSGA-II algorithm (GGA).

具体实施方式DETAILED DESCRIPTION

下面结合附图和具体实施方式对本发明作进一步说明。The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

在此配送过程中,为了简化作业流程,做如下假设:In this delivery process, in order to simplify the operation process, the following assumptions are made:

(1)危险品运输车辆满载运输时,其风险只与行驶路段的风险有关,与车辆装载量及车况等无关,即风险计算按该行驶路段的风险度量值计算。(1) When a hazardous goods transport vehicle is fully loaded, its risk is only related to the risk of the driving section and has nothing to do with the vehicle load and vehicle condition. In other words, the risk is calculated based on the risk measurement value of the driving section.

(2)危险品运输车辆空载运输时,其风险值为0,即车辆在需求点卸载危险品完成后返回配送中心时,选择成本小(距离最短或时间最短)的路径行驶。(2) When a hazardous goods transport vehicle is empty, its risk value is 0, that is, when the vehicle returns to the distribution center after unloading hazardous goods at the demand point, it chooses a route with the lowest cost (shortest distance or shortest time).

步骤1)、建立车辆数量、车辆行驶总成本和总风险、配送时间的模型;Step 1) Establish a model for the number of vehicles, total cost and total risk of vehicle travel, and delivery time;

1.1)、假定要完成m个需求点的危险品配送任务,每项任务的需求量为q1,q2,…,qm,需求点d的配送时间窗为[bd,ed],配送中心o与需求点d间存在若干条路径Pod,设在需求点d的需求量为qd,每辆车的核载量为g,设qd≥g,即一辆车只能完成一项任务的全部或其中的一部分,完成任务点d的配送任务需要车辆数为ad,则ad=qd/g,当qd/g为整数时,ad=qd/g;当qd/g不为整数时,完成所有需求点的配送任务需要总的车辆数为∑dad,车辆需求数在需求点的需求量已知的情况下为常量。虽然总的车辆数为常量,但是同一车辆在满足时间窗条件的情况下,可参与多个需求点的配送任务,对于总的派车数及车辆出发到达时刻等在车辆调度优化中进行研究。1.1) Assume that m demand points need to be completed There are dangerous goods distribution tasks, the demand for each task is q 1 ,q 2 ,…,q m , the distribution time window of demand point d is [b d , ed ], there are several paths P od between distribution center o and demand point d, the demand at demand point d is q d , the core load of each vehicle is g, and q d ≥g, that is, a vehicle can only complete all or part of a task. The number of vehicles required to complete the distribution task at task point d is a d , then a d =q d /g. When q d /g is an integer, a d =q d /g; when q d /g is not an integer, The total number of vehicles required to complete the delivery task of all demand points is ∑ d a d . The number of vehicles required is a constant when the demand of the demand point is known. Although the total number of vehicles is a constant, the same vehicle can participate in the delivery tasks of multiple demand points if the time window conditions are met. The total number of dispatched vehicles and the departure and arrival times of vehicles are studied in vehicle scheduling optimization.

1.2)、运输车辆在路段(i,j)上运输危险品产生运输成本分两种情况,满载运输成本为空驶成本为则完成由配送中心o出发到达需求点d的运输成本c1 od为所经路段运输成本之和,即:1.2) There are two cases where the transportation cost of transporting dangerous goods by transport vehicles on road section (i, j) is: The cost of empty driving is Then the transportation cost c 1 od from distribution center o to demand point d is the sum of the transportation costs of the sections passed, that is:

变量表示路段(i,j)∈E在由配送中心o出发到达需求点d的路径上,否则 variable Indicates that the road segment (i, j) ∈ E is on the path from the distribution center o to the demand point d, otherwise

空车返回时路径为需求点d到配送中心o间的成本最小的路径行驶,用表示,其值可采用最短路径求解算法获得,则完成需求点d的配送任务,运输费用为 When the empty vehicle returns, the path is the path with the minimum cost from the demand point d to the distribution center o. It means that its value can be obtained by using the shortest path solving algorithm. Then the delivery task of demand point d is completed, and the transportation cost is

1.3)、运输车辆在路段(i,j)上运输危险品产生的风险为rij,完成由配送中心o出发到达需求点d的配送任务的运输总风险为:1.3) The risk of transporting dangerous goods on road section (i, j) is r ij , and the total risk of transporting from distribution center o to demand point d is:

1.4)、设车辆在路段(i,j)上的行驶时间为车辆平均装载时长为Δt1,卸载时长为Δt2,车辆从配送中心o到达需求点d车辆行驶时间为1.4) Assume that the driving time of the vehicle on the road section (i, j) is The average loading time of a vehicle is Δt 1 , the unloading time is Δt 2 , and the driving time of a vehicle from distribution center o to demand point d is

车辆从需求点d返回配送中心o的行驶时间为The travel time of a vehicle from demand point d to distribution center o is

车辆从配送中心o出发到完成需求点d的配送任务返回配送中心共计用时为:The total time it takes for a vehicle to depart from distribution center o, complete the delivery task at demand point d and return to the distribution center is:

假设车辆从配送中心出发时刻为则完成需求点d返回配送中心的时刻为 Assume that the vehicle departs from the distribution center at The time to complete the demand point d and return to the distribution center is

1.5)设车辆从配送中心出发最早时间和返回配送中心最晚时间窗为[bd,ed],则1.5) Assume that the earliest time for a vehicle to depart from the distribution center and the latest time window for its return to the distribution center are [b d , ed ], then

车辆到达需求点d的时刻必须满足以下条件:The time when the vehicle arrives at the demand point d must meet the following conditions:

车辆从配送中心o出发的时刻必须满足以下条件:The time when the vehicle departs from distribution center o The following conditions must be met:

同时,也需要满足配送中心的时间窗[b0,e0],即At the same time, the time window [b 0 ,e 0 ] of the distribution center must also be met, that is

步骤2)、建立车辆路径优化数学模型P1;Step 2), establish a vehicle path optimization mathematical model P1;

P1:P1:

minf=(f1,f2) (10)minf=(f 1 ,f 2 ) (10)

s.t.s.t.

其中:in:

式(10)表示由两个目标函数组成的最小化目标向量;Formula (10) represents the minimization objective vector composed of two objective functions;

式(11)为运输成本函数表达式;Formula (11) is the expression of transportation cost function;

式(12)为运输风险函数表达式;Formula (12) is the expression of transportation risk function;

式(13)保证配送中心o到需求节点d间形成一条完整的运输路径;Formula (13) ensures that a complete transportation path is formed from the distribution center o to the demand node d;

式(14)为决策变量;Formula (14) is the decision variable;

N表示n个节点的集合,E表示节点间路段的集合。N represents the set of n nodes, and E represents the set of road segments between nodes.

通过求解模型P1可获得由配送中心到达各个需求点及配送完成后返回配送中心的车辆行驶路线,根据风险偏好选择车辆行驶线路后,决策者该如何确定车辆派车计划仍然是一个需要解决的问题。在可调派车辆数量有限的情况下,派车数量是一个需要考虑的优化目标。By solving model P1, we can obtain the vehicle routes from the distribution center to each demand point and back to the distribution center after delivery. After selecting the vehicle route according to risk preference, how decision makers should determine the vehicle dispatch plan is still a problem that needs to be solved. When the number of dispatchable vehicles is limited, the number of dispatched vehicles is an optimization goal that needs to be considered.

当决策者根据风险偏好选择了某路径方案后,为了达到更少的车辆参与配送任务的目的,则需要每辆车承担尽可能多的运输任务,即在整个运输任务开始所有任务完成这个过程中的空闲时间最少。When the decision maker selects a route plan based on risk preference, in order to achieve the goal of having fewer vehicles involved in the delivery task, each vehicle needs to take on as many transportation tasks as possible, that is, the idle time in the process from the beginning of the entire transportation task to the completion of all tasks is minimized.

为便于分析,将每个需求点的每一次配送任务分解成若干个作业,即每辆车的一次配送为一个作业,对于任意一个作业,任务需在最早开始时间到最晚结束时间范围内完成,如图1所示配送中心的所有任务可以以时间线方式表示。从图中可以看出,要使整个配送周期内使用车辆数最少,即投影到总的时间线上的作业(深色块)尽可能不重叠,因为深色块在时间线上重叠,其对应的作业必须分配不同的车辆。因此,针对最少车辆数的优化目标可以看成是通过滑动各自任务时间线上的深色块,使投影到总时间线上的作业尽可能是不重叠,这样可达到使用最少的车辆。For the convenience of analysis, each delivery task of each demand point is decomposed into several jobs, that is, one delivery of each vehicle is one job. For any job, the task must be completed within the range of the earliest start time to the latest end time. As shown in Figure 1, all tasks of the distribution center can be represented in a timeline. As can be seen from the figure, in order to minimize the number of vehicles used in the entire delivery cycle, the jobs (dark blocks) projected onto the total timeline should not overlap as much as possible, because the dark blocks overlap on the timeline, and their corresponding jobs must be assigned different vehicles. Therefore, the optimization goal for the minimum number of vehicles can be regarded as sliding the dark blocks on the timelines of each task so that the jobs projected onto the total timeline are as non-overlapping as possible, so as to achieve the minimum use of vehicles.

如图2为经过调整部分作业开始时间后的作业时间线,由图中总时间线上的作业重叠情况来看,当前所有的配送任务仅需要两辆车,达到了优化车辆数的目标。这种方法给车辆调度的优化提供了一个思路,即通过在作业过程满足时间窗要求的前提下,可通过调节作业开始时间使车辆数优化目标达到最优。然而图2的调度结果对于车辆承担任务的均衡性来说,并不是一个最好的结果(第1辆车完成8个作业,而第2辆车仅完成1个作业),因此,在作业调度优化过程中还需考虑车辆作业分布均衡性。Figure 2 shows the operation timeline after adjusting the start time of some operations. Judging from the overlap of operations on the total timeline in the figure, all current delivery tasks only require two vehicles, achieving the goal of optimizing the number of vehicles. This method provides an idea for optimizing vehicle scheduling, that is, by adjusting the operation start time under the premise that the operation process meets the time window requirements, the optimization goal of the number of vehicles can be achieved. However, the scheduling result in Figure 2 is not the best result for the balance of tasks undertaken by vehicles (the first vehicle completes 8 operations, while the second vehicle only completes 1 operation). Therefore, the balance of vehicle operation distribution must also be considered in the process of optimizing operation scheduling.

通过以上分析,每个作业只能由一辆车来执行,车辆执行完一个作业后转入下一个作业,如果将每个作业看作二维平面的节点,将所有需求点按节点编号排列,然后对其配送任务中每个作业以此编号,如到需求点d1配送任务的作业为d2的作业为d3的作业为依次类推,J=Jd1∪Jd2∪...∪Jdm表示所有作业集合。该车辆调度问题可转化为带时间窗的VRP问题(如图3),其目标函数为最少车辆数。对于作业i,如果i∈Jd其时间窗为服务时长为Δt0d。由于节点代表作业信息,所以不包含需求量信息,可视为0,对于运输车辆相应也无容量约束。Through the above analysis, each job can only be performed by one vehicle. After completing one job, the vehicle will move on to the next job. If each job is regarded as a node on a two-dimensional plane, all demand points are arranged according to the node number, and then each job in the delivery task is numbered accordingly, such as the job of the delivery task to demand point d 1 is D 2 's homework is D 3 's homework is By analogy, J = J d1J d2 ∪ ... ∪ J dm represents the set of all jobs. The vehicle scheduling problem can be transformed into a VRP problem with a time window (as shown in Figure 3), and its objective function is the minimum number of vehicles. For job i, if i∈J d, its time window is The service time is Δt 0d . Since the node represents the operation information, it does not contain the demand information and can be regarded as 0. There is no capacity constraint for the transport vehicle.

步骤3)、建立车辆调度模型P2,令xijk(xijk∈[0,1])为车辆k完成作业i后是否去执行作业j,如果是,xijk=1,否则xijk=0;yik(yik∈[0,1])为作业i是否由车辆k来执行,如果是,yik=1,否则yik=0;对于作业i,如果i∈Jd其时间窗为服务时长为Δt0dStep 3) Establish the vehicle scheduling model P2, let xijk ( xijk ∈[0,1]) be whether vehicle k will perform task j after completing task i, if yes, xijk = 1, otherwise xijk = 0; yik ( yik ∈[0,1]) be whether task i is performed by vehicle k, if yes, yik = 1, otherwise yik = 0; for task i, if i∈J d, its time window is The service duration is Δt 0d ;

P2模型为:The P2 model is:

s.t.s.t.

其中:式(15)表示目标函数,函数中表示最少车辆数,M为整数,保证车辆数目标的优先级,表示在同等车辆数的情况下,所有车辆运行时间的标准差最小,以保证每辆车承担的运输任务强度达到公平,式(16)-(19)保证每辆车同时只能进行一项作业,依次执行,每项作业只有同一辆来完成,式(20)表示车辆k到达节点j的时刻,式(21)保证到达节点j的时刻必须满足时间窗约束;式(22)、(23)为车辆的最早出发和最晚返回时刻的时间窗要求,式(24)、(25)为决策变量;K为车辆集合、C为配送节点集合;Where: Formula (15) represents the objective function, In the function Represents the minimum number of vehicles, M is an integer, ensuring the priority of the vehicle number target, It means that when the number of vehicles is the same, the standard deviation of the running time of all vehicles is the smallest to ensure that the intensity of the transportation task undertaken by each vehicle is fair. Formulas (16)-(19) ensure that each vehicle can only perform one operation at the same time and execute them in sequence. Each operation is completed by only one vehicle. Formula (20) represents the time when vehicle k arrives at node j. Formula (21) ensures that the time when it arrives at node j must meet the time window constraint. Formulas (22) and (23) are the time window requirements for the earliest departure and latest return time of the vehicle. Formulas (24) and (25) are decision variables. K is the vehicle set and C is the distribution node set.

步骤4)、进行两阶段求解;Step 4), perform two-stage solution;

4.1)、P1模型即路径优化求解方法:第一阶段采用脉冲算法获得配送中心到每个需求节点间的所有路径的Pareto解,直接采用NSGA-II需要将所有节点间的路径全部纳入计算,网络规模较大时,进化算法难以获得最优解,可以考虑先将部分不可能成为最优解的路径进行排除。模型P1的优化目标是获得配送中心到所有需求节点间的总成本和总风险的Pareto解集,如果将此计算过程看成是配送中心到各自需求节点间的路径连接起来,再求连接后路径上运输的成本和风险(图4)。采用表示从配送中心到需求节点d之前的路径的成本和风险,分别表示从需求节点d返回配送中心之后的成本和风险。假设为Pareto解集中的一个解,如果(cd,rd)<(c′d,r′d)(<表示支配),则不会出现在Pareto解集中。该结论很容易用通过反证法证明,如果是Pareto解集中的一个解,则至少满足两个条件其中一个,即c′d≤cd或r′d≤rd中必有一个成立,这与(cd,rd)<(c′d,r′d)相矛盾。4.1) Model P1 is the path optimization solution method: In the first stage, the pulse algorithm is used to obtain the Pareto solution of all paths from the distribution center to each demand node. Directly using NSGA-II requires that all paths between nodes be included in the calculation. When the network scale is large, it is difficult for the evolutionary algorithm to obtain the optimal solution. You can consider excluding some paths that cannot become the optimal solution. The optimization goal of model P1 is to obtain the Pareto solution set of the total cost and total risk from the distribution center to all demand nodes. If this calculation process is regarded as connecting the paths from the distribution center to each demand node, then the cost and risk of transportation on the connected paths are calculated (Figure 4). represents the cost and risk of the path from the distribution center to the demand node d, They represent the cost and risk after returning from the demand node d to the distribution center. Assume is a solution in the Pareto solution set. If (c d , r d )<(c′ d , r′ d ) (< indicates dominance), then will not appear in the Pareto solution set. This conclusion can be easily proved by contradiction if is a solution in the Pareto solution set, then at least or One of the two conditions, namely c′ d ≤c d or r′ d ≤r d, must hold, which contradicts (c d ,r d )<(c′ d ,r′ d ).

由以上分析可知,要获得模型P1的Pareto解集,可以先对配送中心到每个需求节点间的路径求Pareto解,只有该部分路径才可能出现在模型的Pareto路径集中。第二阶段将在第一阶段获得配送中心到每个需求节点间Pareto路径进行编码,采用NSGA-II算法求解。第一阶段配送中心到各需求节点间的路径分别为 表示配送中心节点o到需求节点d间的Pareto路径集。两阶段方法在第二阶段计算时无需考虑除Pareto路径外的其它路径,相比直接采用NSGA-II算法求解可大大减少计算量,相同的种群规模和迭代次数的情况下,获得最优解的机会明显增加。From the above analysis, we can know that to obtain the Pareto solution set of model P1, we can first find the Pareto solution of the path from the distribution center to each demand node. Only this part of the path may appear in the Pareto path set of the model. In the second stage, the Pareto path from the distribution center to each demand node obtained in the first stage will be encoded and solved using the NSGA-II algorithm. The paths from the distribution center to each demand node in the first stage are Represents the Pareto path set from the distribution center node o to the demand node d. The two-stage method does not need to consider other paths except the Pareto path in the second stage calculation. Compared with directly using the NSGA-II algorithm to solve, the amount of calculation can be greatly reduced. Under the same population size and number of iterations, the chance of obtaining the optimal solution is significantly increased.

编码方式为个体编码,采用自然数编码,编码长度为m,格式为n1,n2...nmThe encoding method is individual encoding, using natural number encoding, the encoding length is m, the format is n 1 , n 2 ...n m ,

其中:编码中第i个值为ni,则表示配送中心o到需求节点di间采用第条路径运输。例如配送中心0到需求节点d1-d4间的Pareto路径条数分别为2,3,5,4,则编码[1,4,3,5]表示在该个体中,选择配送中心到d1间Pareto路径集中第1条路径,选择选择配送中心到d2间Pareto路径集中第1条路径,选择选择配送中心到d3间Pareto路径集中第3条路径,选择配送中心到d4间Pareto路径集中第1条路径进行运输。in: The i-th value in the code is n i , which means that the distribution center o is connected to the demand node d i by the For example, if the number of Pareto paths from distribution center 0 to demand nodes d 1 -d 4 is 2, 3, 5, and 4 respectively, then the code [1, 4, 3, 5] means that in this individual, the first path in the Pareto path set from distribution center to d 1 is selected, the first path in the Pareto path set from distribution center to d 2 is selected, the third path in the Pareto path set from distribution center to d 3 is selected, and the first path in the Pareto path set from distribution center to d 4 is selected for transportation.

适应度函数采用[c_value,r_value]=f(indi)表示个体indi的适应度,其中c_value和r_value分别为按照个体indi中的路径选择方案时行运输的成本和风险。The fitness function uses [c_value, r_value] = f(indi) to represent the fitness of individual indi, where c_value and r_value are the cost and risk of transportation according to the path selection plan of individual indi.

种群更新策略中种群通过交叉获得新个体,交叉操作采用整数交叉法;首先从种群中随机选取两个个体,随机生成两个位置pos1和pos2(pos1<pos2),将两个个体pos1到pos2位进行互换,生成两个新个体;变异操作采用整数变异法得到新个体,随机选择一个个体,并随机生成两个位置pos1和pos2(pos1<pos2),将被选个体pos1到pos2位与逐个与做差运算并取绝对值,生成一个新个体。In the population update strategy, the population obtains new individuals through crossover, and the crossover operation adopts the integer crossover method; first, two individuals are randomly selected from the population, and two positions pos1 and pos2 (pos1 < pos2) are randomly generated. The positions pos1 to pos2 of the two individuals are swapped to generate two new individuals; the mutation operation adopts the integer mutation method to obtain new individuals, randomly select an individual, and randomly generate two positions pos1 and pos2 (pos1 < pos2), and the positions pos1 to pos2 of the selected individuals are swapped one by one with the positions pos1 to pos2 of the selected individuals. Perform the difference operation and take the absolute value to generate a new individual.

模型P2经过分析可以转化为以车辆数和每辆车承担的运输任务强度达到公平为目标的VRP问题,除目标函数需要由运输距离和车辆数变为车辆数和运输任务公平性外,其它计算步骤可以完全采用基于分布估计算法的VRPHTW求解方法进行求解。After analysis, model P2 can be transformed into a VRP problem with the goal of achieving fairness in the number of vehicles and the intensity of transportation tasks undertaken by each vehicle. Except that the objective function needs to be changed from transportation distance and number of vehicles to number of vehicles and fairness of transportation tasks, the other calculation steps can be completely solved by the VRPHTW solution method based on the distribution estimation algorithm.

4.2)、P2模型即车辆调度优化求解方法:4.2) P2 model, namely the vehicle scheduling optimization solution method:

第一、初始化需求信息d=1;First, initialize the demand information d=1;

第二、采用脉冲算法求配送中心o到需求节点d间的Pareto路径,d=d+1;Second, the pulse algorithm is used to find the Pareto path from the distribution center o to the demand node d, d = d + 1;

第三、若d大于m,采用基于NSGA-II多目标优化方法求配送中心o到所有需求节点间的Pareto路径。Third, if d is greater than m, the NSGA-II-based multi-objective optimization method is used to find the Pareto path between the distribution center o and all demand nodes.

第四、决策人员根据风险偏好选择其中一种路径方案。Fourth, decision makers choose one of the path options based on risk preferences.

第五、采用基于UMDA的VRP求解方法获得该路径方案下的车辆调度时刻表即车辆调度方案。Fifth, the UMDA-based VRP solving method is used to obtain the vehicle scheduling schedule under the path plan, that is, the vehicle scheduling plan.

实施例:Example:

测试运输网络,图7中节点0为配送中心,节点1,2,4,7,8为需求点。网络中各路段的距离和风险见表1,各个需求点的需求量及时间窗见表2。运输车辆的核载量为g=13.5m3,平均装载时长为Δt1=0.75h,卸载时长为Δt2=0.75h,车辆行驶平均速度为45km/h,满载运输成本为50元/km,空车运输成本为10元/km。通过安排车辆运输方案,使运输过程达到运输成本、运输风险最小。Test the transportation network. In Figure 7, node 0 is the distribution center, and nodes 1, 2, 4, 7, and 8 are demand points. The distance and risk of each section in the network are shown in Table 1, and the demand and time window of each demand point are shown in Table 2. The nuclear load of the transport vehicle is g = 13.5m 3 , the average loading time is Δt 1 = 0.75h, the unloading time is Δt 2 = 0.75h, the average vehicle speed is 45km/h, the full-load transportation cost is 50 yuan/km, and the empty-car transportation cost is 10 yuan/km. By arranging the vehicle transportation plan, the transportation process can achieve the minimum transportation cost and transportation risk.

表1各路段长度及运输车辆在该路段上行驶的风险Table 1 Length of each road section and the risk of transport vehicles driving on the road section

表2为所有需求节点的需求量和接受卸载的时间窗,为硬时间窗,必须在规定时间内到达,如果早于最早开始时间到达,则需要等待。车辆从配送中心出发最早时间和返回配送中心最晚时间分别为08:00和20:00。Table 2 shows the demand and the time window for accepting unloading of all demand nodes. It is a hard time window and must arrive within the specified time. If it arrives earlier than the earliest start time, it needs to wait. The earliest time for a vehicle to depart from the distribution center and the latest time to return to the distribution center are 08:00 and 20:00 respectively.

表2需求点需求量及时间窗Table 2 Demand points and time windows

经过步骤4.1后可获得配送中心到各需求点的Pareto最短路径(出发路径)和距离最短路径(返回路径)(见表3)。After step 4.1, the Pareto shortest path (departure path) and the shortest distance path (return path) from the distribution center to each demand point can be obtained (see Table 3).

表3配送中心到各需求点出发路径返回可选路径Table 3 Optional paths returned from the distribution center to each demand point

在获得配送中心到各个需求节点间的Pareto路径集后,采用改进NSGA-II算法,获得从配送中心到所有需求节点间运输总成本和总风险的Pareto解(图8为Pareto解分布情况,表4经过对Pareto解对应个体解码后的路径选择方案)。After obtaining the Pareto path set from the distribution center to each demand node, the improved NSGA-II algorithm is used to obtain the Pareto solution of the total transportation cost and total risk from the distribution center to all demand nodes (Figure 8 shows the distribution of Pareto solutions, and Table 4 shows the path selection plan after decoding the corresponding individuals of the Pareto solution).

表4路径选择方案(Pareto解,方案1~方案14)Table 4 Path selection scheme (Pareto solution, scheme 1 to scheme 14)

当选择了某个运输方案后,针对方案中的路径,采用上述模型P2求解方法,可获取在该路径方案下的车辆调度时刻表,选择表4中路径方案1情况下的车辆调度方案(表5),共有17个配送任务,需要5辆车执行。其中节点列表示运输车辆到达的配送节点,时刻表中分别为开始装载,车辆由配送中心出发,到达需求节点开始卸载,卸载完成开始返回配送中心和到达配送中心的时刻。After a transportation plan is selected, the vehicle scheduling schedule under the path plan can be obtained by using the above model P2 solution method for the path in the plan. The vehicle scheduling plan under path plan 1 in Table 4 (Table 5) is selected. There are 17 delivery tasks in total, which require 5 vehicles to perform. The node column represents the delivery node where the transport vehicle arrives. The timetable includes the start of loading, the departure of the vehicle from the distribution center, the start of unloading at the demand node, the return to the distribution center after unloading, and the arrival of the distribution center.

表5运输总成本最小情况下的车辆调度时刻表(方案1)Table 5 Vehicle dispatching schedule with minimum total transportation cost (Scheme 1)

表6为选择方案14情况下的车辆调度方案,配送任务仍为17个,但需要6辆车执行。由此可看出,选择不同路径方案时所需车辆数,以及每辆车所服务的需求节点数也不同。但经过计算可以发现,在同一路径选择方案下,调度方案并不唯一,但使用车辆数和每辆车运行时间的标准差均相同。这是由于在两个不同需求节点的需求时间窗重合部分较大时,由于到这些节点间的运输任务调换次序并不违反时间窗约束,这也与运输中实际情况相符。Table 6 shows the vehicle scheduling scheme under the condition of selecting scheme 14. There are still 17 delivery tasks, but 6 vehicles are required to execute them. It can be seen that the number of vehicles required and the number of demand nodes served by each vehicle are different when different path schemes are selected. However, after calculation, it can be found that under the same path selection scheme, the scheduling scheme is not unique, but the number of vehicles used and the standard deviation of the running time of each vehicle are the same. This is because when the demand time windows of two different demand nodes overlap a large part, the order of transportation tasks between these nodes does not violate the time window constraint, which is also consistent with the actual situation in transportation.

表6运输总风险最小情况下的车辆调度时刻表(方案14)Table 6 Vehicle dispatch schedule with minimum total transport risk (Scheme 14)

验证例:Verification example:

为了验证本发明方法的有效性,针对路径规划问题,除文中所提出的两阶段算法(TSA),同时设计了一般NSGA-II算法(GGA),与两阶段算法不同的是,在一般NSGA-II算法中,采用了基于优先级的编码方法PriorityBased Encoding,其编码长度为|N|*m,而在本发明两阶段算法中,编码长度为m。In order to verify the effectiveness of the method of the present invention, in addition to the two-stage algorithm (TSA) proposed in the paper, a general NSGA-II algorithm (GGA) is designed for the path planning problem. Different from the two-stage algorithm, the general NSGA-II algorithm adopts a priority-based encoding method PriorityBased Encoding, and its encoding length is |N|*m, while in the two-stage algorithm of the present invention, the encoding length is m.

两种算法参数设置如下:种群规模大小为100,迭代次数为50代。图9中(a)~(d)分别为迭代5、10、20和50代时获得的Pareto最优前沿,通过比较可以发现:当迭代到第10代时,采用TSA算法就可以获得最终解,而迭代到第50代时,GGA算法仍然未获得最优解。然而,这只是针对9个节点的网络,对于大规模网络,这种差距将变得更大。本发明针对路径规划设计的两阶段算法,其编码长度与网络规模没有直接关系,因此,对于大规模网络,该算法仍然有效。而第二阶段中,VRPTW的问题规模只与需求节点的数量有关,而与运输网络的规模无关,因此,本发明车辆调度方法具有较高的效率,无论是小规模还是大规模运输网络。The parameters of the two algorithms are set as follows: the population size is 100, and the number of iterations is 50 generations. Figure 9 (a) to (d) are the Pareto optimal frontiers obtained after iterations of 5, 10, 20 and 50 generations, respectively. By comparison, it can be found that when iterating to the 10th generation, the TSA algorithm can obtain the final solution, while when iterating to the 50th generation, the GGA algorithm still has not obtained the optimal solution. However, this is only for a network with 9 nodes. For large-scale networks, this gap will become larger. The two-stage algorithm designed for path planning in the present invention has a coding length that has no direct relationship with the network scale. Therefore, for large-scale networks, the algorithm is still effective. In the second stage, the problem scale of VRPTW is only related to the number of demand nodes, but has nothing to do with the scale of the transportation network. Therefore, the vehicle scheduling method of the present invention has high efficiency, whether it is a small-scale or large-scale transportation network.

Claims (6)

1.一种危险品满载配送路径优化和车辆调度方法,其特征是,包括以下步骤:1. A method for optimizing the distribution path and dispatching vehicles for a fully loaded dangerous goods distribution, characterized in that it comprises the following steps: 步骤1)、建立车辆数量、车辆行驶总成本和总风险、配送时间的模型;Step 1) Establish a model for the number of vehicles, total cost and total risk of vehicle travel, and delivery time; 1.1)、设在需求点d的需求量为qd,每辆车的核载量为g,设qd≥g,完成任务点d的配送任务需要车辆数为ad,则完成所有需求点的配送任务需要总的车辆数为Σdad1.1) Assume that the demand at the demand point d is q d , the core load of each vehicle is g, and q d ≥ g. The number of vehicles required to complete the delivery task at the task point d is a d . Then The total number of vehicles required to complete the delivery task of all demand points is Σ d a d ; 1.2)、运输车辆在路段(i,j)上运输危险品产生运输成本分两种情况,满载运输成本为空驶成本为则完成由配送中心o出发到达需求点d的运输成本c1 od为所经路段运输成本之和,即:1.2) There are two cases where the transportation cost of transporting dangerous goods by transport vehicles on road section (i, j) is: The cost of empty driving is Then the transportation cost c 1 od from distribution center o to demand point d is the sum of the transportation costs of the sections passed, that is: 变量表示路段(i,j)∈E在由配送中心o出发到达需求点d的路径上,否则 variable Indicates that the road segment (i, j) ∈ E is on the path from the distribution center o to the demand point d, otherwise 空车返回时路径为需求点d到配送中心o间的成本最小的路径行驶,用表示,则完成需求点d的配送任务,运输费用为 When the empty vehicle returns, the path is the path with the minimum cost from the demand point d to the distribution center o. If we say that the delivery task of demand point d is completed, the transportation cost is 1.3)、运输车辆在路段(i,j)上运输危险品产生的风险为rij,完成由配送中心o出发到达需求点d的配送任务的运输总风险为:1.3) The risk of transporting dangerous goods on road section (i, j) is r ij , and the total risk of transporting from distribution center o to demand point d is: 1.4)、设车辆在路段(i,j)上的行驶时间为车辆平均装载时长为Δt1,卸载时长为Δt2,车辆从配送中心o到达需求点d车辆行驶时间为1.4) Assume that the driving time of the vehicle on the road section (i, j) is The average loading time of a vehicle is Δt 1 , the unloading time is Δt 2 , and the driving time of a vehicle from distribution center o to demand point d is 车辆从需求点d返回配送中心o的行驶时间为The travel time of a vehicle from demand point d to distribution center o is 车辆从配送中心o出发到完成需求点d的配送任务返回配送中心共计用时为:The total time it takes for a vehicle to depart from distribution center o, complete the delivery task at demand point d and return to the distribution center is: 假设车辆从配送中心出发时刻为则完成需求点d返回配送中心的时刻为 Assume that the vehicle departs from the distribution center at The time to complete the demand point d and return to the distribution center is 1.5)设车辆从配送中心出发最早时间和返回配送中心最晚时间窗为[bd,ed],则1.5) Assume that the earliest time for a vehicle to depart from the distribution center and the latest time window for its return to the distribution center are [b d , ed ], then 车辆到达需求点d的时刻必须满足以下条件:The time when the vehicle arrives at the demand point d must meet the following conditions: 车辆从配送中心o出发的时刻必须满足以下条件:The time when the vehicle departs from distribution center o The following conditions must be met: 同时,也需要满足配送中心的时间窗[b0,e0],即At the same time, the time window [b 0 ,e 0 ] of the distribution center must also be met, that is 步骤2)、建立车辆路径优化数学模型P1;Step 2), establish a vehicle path optimization mathematical model P1; P2模型为:The P2 model is: minf=(f1,f2) (10)minf=(f 1 ,f 2 ) (10) s.t.s.t. 其中:in: 式(10)表示由两个目标函数组成的最小化目标向量;Formula (10) represents the minimization objective vector composed of two objective functions; 式(11)为运输成本函数表达式;Formula (11) is the expression of transportation cost function; 式(12)为运输风险函数表达式;Formula (12) is the expression of transportation risk function; 式(13)保证配送中心o到需求节点d间形成一条完整的运输路径;Formula (13) ensures that a complete transportation path is formed from the distribution center o to the demand node d; 式(14)为决策变量;Formula (14) is the decision variable; N表示n个节点的集合,E表示节点间路段的集合;N represents the set of n nodes, and E represents the set of road segments between nodes; 步骤3)、建立车辆调度模型P2,令xijk(xijk∈[0,1])为车辆k完成作业i后是否去执行作业j,如果是,xijk=1,否则xijk=0;yik(yik∈[0,1])为作业i是否由车辆k来执行,如果是,yik=1,否则yik=0;对于作业i,如果i∈Jd,其时间窗为服务时长为Δt0dStep 3), establish the vehicle scheduling model P2, let xijk ( xijk ∈[0,1]) be whether vehicle k performs task j after completing task i, if yes, xijk = 1, otherwise xijk = 0; yik ( yik ∈[0,1]) be whether task i is performed by vehicle k, if yes, yik = 1, otherwise yik = 0; for task i, if i∈J d , its time window is The service duration is Δt 0d ; P2模型为:The P2 model is: s.t.s.t. 其中:式(15)表示目标函数,函数中表示最少车辆数,M为整数,保证车辆数目标的优先级,表示在同等车辆数的情况下,所有车辆运行时间的标准差最小,以保证每辆车承担的运输任务强度达到公平,式(16)-(19)保证每辆车同时只能进行一项作业,依次执行,每项作业只有同一辆来完成,式(20)表示车辆k到达节点j的时刻;式(21)保证到达节点j的时刻必须满足时间窗约束;式(22)、(23)为车辆的最早出发和最晚返回时刻的时间窗要求,式(24)、(25)为决策变量;K为车辆集合、C为配送节点集合;Where: Formula (15) represents the objective function, In the function Represents the minimum number of vehicles, M is an integer, ensuring the priority of the vehicle number target, It means that when the number of vehicles is the same, the standard deviation of the running time of all vehicles is the smallest to ensure that the intensity of the transportation task undertaken by each vehicle is fair. Formulas (16)-(19) ensure that each vehicle can only perform one operation at the same time, and execute them in sequence. Each operation is completed by only one vehicle. Formula (20) represents the time when vehicle k arrives at node j; Formula (21) ensures that the time of arrival at node j must meet the time window constraint; Formulas (22) and (23) are the time window requirements for the earliest departure and latest return time of the vehicle. Formulas (24) and (25) are decision variables; K is the vehicle set, and C is the distribution node set; 步骤4)、进行两阶段求解;Step 4), perform two-stage solution; 4.1)、P1模型即路径优化求解方法:第一阶段采用脉冲算法获得配送中心到每个需求节点间的所有路径的Pareto解;第二阶段将在第一阶段获得配送中心到每个需求节点间Pareto路径进行编码,采用NSGA-II算法求解;4.1) P1 model, i.e., path optimization solution method: In the first stage, the pulse algorithm is used to obtain the Pareto solution of all paths from the distribution center to each demand node; in the second stage, the Pareto paths from the distribution center to each demand node obtained in the first stage are encoded and solved using the NSGA-II algorithm; 4.2)、P2模型即车辆调度优化求解方法:4.2) P2 model, i.e., vehicle scheduling optimization solution method: 第一、初始化需求信息;First, initialize the demand information; 第二、采用脉冲算法求配送中心o到需求节点d间的Pareto路径;Second, the pulse algorithm is used to find the Pareto path from distribution center o to demand node d; 第三、采用基于NSGA-II多目标优化方法求配送中心o到所有需求节点间的Pareto路径;Third, the Pareto path between distribution center o and all demand nodes is obtained by using the NSGA-II multi-objective optimization method; 第四、决策人员根据风险偏好选择其中一种路径方案;Fourth, the decision maker chooses one of the path options based on risk preferences; 第五、采用基于UMDA的VRP求解方法获得该路径方案下的车辆调度时刻表即车辆调度方案。Fifth, the UMDA-based VRP solving method is used to obtain the vehicle scheduling schedule under the path plan, that is, the vehicle scheduling plan. 2.根据权利要求1所述的一种危险品满载配送路径优化和车辆调度方法,其特征是:所述步骤4.1)中第一阶段配送中心到各需求节点间的路径分别为 表示配送中心节点o到需求节点d间的Pareto路径集。2. A method for optimizing the route and dispatching vehicles for the distribution of fully loaded dangerous goods according to claim 1, characterized in that: the routes from the distribution center to each demand node in the first stage in step 4.1) are respectively Represents the Pareto path set from distribution center node o to demand node d. 3.根据权利要求1所述的一种危险品满载配送路径优化和车辆调度方法,其特征是:所述步骤4.1)中在第二阶段NSGA-II算法中根据编码方式、适应度函数和种群更新策略。3. A method for optimizing the route and dispatching vehicles for fully loaded dangerous goods distribution according to claim 1, characterized in that: in the step 4.1), in the second stage NSGA-II algorithm, the encoding method, fitness function and population update strategy are used. 4.根据权利要求3所述的一种危险品满载配送路径优化和车辆调度方法,其特征是:所述编码方式为个体编码,采用自然数编码,编码长度为m,格式为n1,n2...nm4. A method for optimizing the route and dispatching vehicles for full-load distribution of dangerous goods according to claim 3, characterized in that: the coding method is individual coding, using natural number coding, the coding length is m, the format is n 1 , n 2 ...n m , 其中:编码中第i个值为ni,则表示配送中心o到需求节点di间采用第条路径运输。in: The i-th value in the code is n i , which means that the distribution center o is connected to the demand node d i by the Transport routes. 5.根据权利要求3所述的一种危险品满载配送路径优化和车辆调度方法,其特征是:所述适应度函数采用[c_value,r_value]=f(indi)表示个体indi的适应度,其中c_value和r_value分别为按照个体indi中的路径选择方案时行运输的成本和风险。5. A method for optimizing the path and dispatching vehicles for full-load distribution of dangerous goods according to claim 3, characterized in that: the fitness function uses [c_value, r_value] = f(indi) to represent the fitness of individual indi, where c_value and r_value are the cost and risk of transportation according to the path selection plan of individual indi, respectively. 6.根据权利要求3所述的一种危险品满载配送路径优化和车辆调度方法,其特征是:所述种群更新策略中种群通过交叉获得新个体,交叉操作采用整数交叉法;首先从种群中随机选取两个个体,随机生成两个位置pos1和pos2,且pos1<pos2,将两个个体pos1到pos2位进行互换,生成两个新个体;6. A method for optimizing the route and dispatching vehicles for full-load distribution of dangerous goods according to claim 3, characterized in that: in the population update strategy, the population obtains new individuals by crossover, and the crossover operation adopts the integer crossover method; firstly, two individuals are randomly selected from the population, two positions pos1 and pos2 are randomly generated, and pos1 < pos2, and the positions pos1 to pos2 of the two individuals are interchanged to generate two new individuals; 变异操作采用整数变异法得到新个体,随机选择一个个体,并随机生成两个位置pos1和pos2,且pos1<pos2,将被选个体pos1到pos2位与逐个与做差运算并取绝对值,生成一个新个体。The mutation operation uses integer mutation method to get a new individual. Randomly select an individual and randomly generate two positions pos1 and pos2, and pos1 < pos2. The selected individual pos1 to pos2 are compared one by one. Perform the difference operation and take the absolute value to generate a new individual.
CN202311199824.1A 2023-09-18 2023-09-18 Dangerous goods full-load distribution path optimization and vehicle dispatching method Active CN117094629B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311199824.1A CN117094629B (en) 2023-09-18 2023-09-18 Dangerous goods full-load distribution path optimization and vehicle dispatching method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311199824.1A CN117094629B (en) 2023-09-18 2023-09-18 Dangerous goods full-load distribution path optimization and vehicle dispatching method

Publications (2)

Publication Number Publication Date
CN117094629A true CN117094629A (en) 2023-11-21
CN117094629B CN117094629B (en) 2024-05-10

Family

ID=88775089

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311199824.1A Active CN117094629B (en) 2023-09-18 2023-09-18 Dangerous goods full-load distribution path optimization and vehicle dispatching method

Country Status (1)

Country Link
CN (1) CN117094629B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102236825A (en) * 2010-04-26 2011-11-09 兰州交通大学 Method for scheduling tasks of conveyer of airport freight logistics system
WO2015011661A2 (en) * 2013-07-26 2015-01-29 Elettric 80 S.P.A. Device and method for optimising the movement of automated-guided vehicles, and the like

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102236825A (en) * 2010-04-26 2011-11-09 兰州交通大学 Method for scheduling tasks of conveyer of airport freight logistics system
WO2015011661A2 (en) * 2013-07-26 2015-01-29 Elettric 80 S.P.A. Device and method for optimising the movement of automated-guided vehicles, and the like

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
周愉峰等: "危险品运输车辆调度的多目标优化", 中国安全科学学报, vol. 23, no. 04, 30 April 2013 (2013-04-30), pages 113 - 119 *
张圣忠等: "考虑载货量的危险品运输车辆路径优化", 武汉理工大学学报(信息与管理工程版), vol. 42, no. 04, 31 August 2020 (2020-08-31), pages 290 - 297 *
柴获: "危险品道路运输车辆时空协调调度优化研究", 《中国博士学位论文全文数据库(工程科技II辑)》, no. 02, 15 December 2018 (2018-12-15), pages 034 - 64 *
柴获等: "基于区域风险分布公平性的危险品运输路径优化", 兰州交通大学学报, vol. 35, no. 06, 31 December 2016 (2016-12-31), pages 106 - 111 *
殷勇等: "关于危险品运输安全性路径选择仿真研究", 计算机仿真, vol. 34, no. 08, 31 August 2017 (2017-08-31), pages 184 - 189 *

Also Published As

Publication number Publication date
CN117094629B (en) 2024-05-10

Similar Documents

Publication Publication Date Title
CN108764777B (en) Electric logistics vehicle scheduling method and system with time window
CN111553507B (en) Optimization method of China-Europe container transportation scheme based on multi-commodity flow
Shui et al. A clonal selection algorithm for urban bus vehicle scheduling
CN108399464A (en) A kind of multimodal transport method for optimizing route and system
CN114707294B (en) A Multi-objective Scheduling Method for Job Shops Constrained by Limited Transport Capacity
CN103246969B (en) A kind of implementation method of logistics deployment and device
CN110322066B (en) Collaborative vehicle path optimization method based on shared carrier and shared warehouse
CN115965172B (en) A route optimization algorithm, system and equipment for secondary distribution vehicles of refined oil
CN109902866B (en) Cooperative optimization method for railway express train operation scheme and train bottom application
Parragh et al. A survey on pickup and delivery models part ii: Transportation between pickup and delivery locations
CN112580865A (en) Mixed genetic algorithm-based takeout delivery path optimization method
CN115271130B (en) Dynamic scheduling method and system for maintenance order of ship main power equipment
CN101840200A (en) Adaptive processing method for optimizing dynamic data in dispatching control
CN116523165A (en) A Collaborative Optimization Method for AMR Path Planning and Production Scheduling in Flexible Job Shop
CN116882883A (en) Power grid material distribution path planning method utilizing big data
CN113887782A (en) Genetic-firework mixing method and system for maintenance resource distribution scheduling
CN117635095A (en) Scheduling compilation optimization algorithm
CN118761534B (en) Multi-distribution center electric vehicle intelligent path optimization method based on dynamic fuzzy prediction
CN117094629B (en) Dangerous goods full-load distribution path optimization and vehicle dispatching method
Zhang et al. Optimizing multiple equipment scheduling for U‐shaped automated container terminals considering loading and unloading operations
CN119313249A (en) A method for optimizing port multimodal transport routes under uncertain conditions
CN118244715A (en) Multi-element flexible job shop scheduling method integrating worker and AGV
Zhao et al. Collaborative optimization for scheduling manufacturing tasks and transport vehicles considering manufacturer’s time availability in cloud manufacturing
Gao et al. Research on AGV path planning of simultaneous pickup and delivery with time window
CN114239913A (en) Supply and demand matching optimization method based on platform centralized transportation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant