CN114399095A - Dynamic vehicle distribution path optimization method and device based on cloud-edge-device collaboration - Google Patents

Dynamic vehicle distribution path optimization method and device based on cloud-edge-device collaboration Download PDF

Info

Publication number
CN114399095A
CN114399095A CN202111640629.9A CN202111640629A CN114399095A CN 114399095 A CN114399095 A CN 114399095A CN 202111640629 A CN202111640629 A CN 202111640629A CN 114399095 A CN114399095 A CN 114399095A
Authority
CN
China
Prior art keywords
road
vehicle
delivery
distribution
cost
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
CN202111640629.9A
Other languages
Chinese (zh)
Other versions
CN114399095B (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.)
Hunan University of Science and Technology
Original Assignee
Hunan University of Science and Technology
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 Hunan University of Science and Technology filed Critical Hunan University of Science and Technology
Priority to CN202111640629.9A priority Critical patent/CN114399095B/en
Publication of CN114399095A publication Critical patent/CN114399095A/en
Application granted granted Critical
Publication of CN114399095B publication Critical patent/CN114399095B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/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
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/12Computing arrangements based on biological models using genetic models
    • G06N3/126Evolutionary algorithms, e.g. genetic algorithms or genetic programming
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Economics (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biophysics (AREA)
  • General Physics & Mathematics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Marketing (AREA)
  • Tourism & Hospitality (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Genetics & Genomics (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Molecular Biology (AREA)
  • General Health & Medical Sciences (AREA)
  • Evolutionary Computation (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • Biomedical Technology (AREA)
  • Artificial Intelligence (AREA)
  • Physiology (AREA)
  • Game Theory and Decision Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a dynamic vehicle distribution path optimization method and device based on cloud edge-end cooperation, and relates to the field of spare part logistics distribution. According to spare part requests of all demand positions and distribution resources of enterprises, before distribution starts, a genetic algorithm is used, and according to optimization targets such as distribution timeliness and overall consumed cost, corresponding path planning is conducted on all distribution demands. By the edge computing equipment at the edge of the road, the road condition can be monitored in real time, and whether the passing time of the current road section is changed greatly or not can be judged. The method of the invention adopts the edge end to process the road condition change, and adopts a dynamic passing time table and an improved A-x algorithm according to the actual situation to optimize and adjust the distribution path of the remaining distribution tasks of the vehicle in real time.

Description

基于云边端协同的动态车辆配送路径优化方法及装置Dynamic vehicle distribution path optimization method and device based on cloud-edge-device collaboration

技术领域technical field

本发明涉及工业备品备件物流配送领域,特别是一种基于云边端协同的动态车辆配送路径优化方法及装置。The invention relates to the field of logistics distribution of industrial spare parts, in particular to a dynamic vehicle distribution path optimization method and device based on cloud-side-end collaboration.

背景技术Background technique

工业备品备件是大型机械设备正常运作的保障性物资,必须保证有效且及时的备品备件供应,高效的备品备件物流配送方法对提高企业的经济效益具有重要意义。Industrial spare parts are the guarantee materials for the normal operation of large-scale machinery and equipment. Effective and timely supply of spare parts must be ensured. Efficient logistics and distribution methods of spare parts are of great significance to improving the economic benefits of enterprises.

对工业备品备件需求的快速响应是保证企业稳定生产的关键因素,因此有必要通过对物流配送路径的合理规划,有效地缩短备品备件在物流系统中的停滞时间,从而降低物流成本,达到经济效益的最大化。Rapid response to the demand for industrial spare parts is a key factor to ensure stable production of enterprises. Therefore, it is necessary to effectively shorten the stagnation time of spare parts in the logistics system through reasonable planning of logistics distribution paths, thereby reducing logistics costs and achieving economic benefits. maximization.

随着云计算、物联网、电子商务的快速发展,物流配送与云计算、物联网、智能交通等新技术相结合,不同于传统物流配送模型的云配送模型。云配送模式解决了传统物流配送模式难以适应现代物流配送需求的问题。然而,随着各类移动设备数量和计算需求的快速增长,以云数据中心为核心的传统云计算集中处理模式面临着网络传输延迟大、数据传输成本高、计算安全和隐私风险等问题。这是无法有效地满足移动用户,特别是需要即时响应的用户对计算服务的需求。云端协作为解决这一问题提供了一种新方法。With the rapid development of cloud computing, Internet of Things, and e-commerce, logistics distribution is combined with new technologies such as cloud computing, Internet of Things, and intelligent transportation, which is different from the cloud distribution model of the traditional logistics distribution model. The cloud distribution mode solves the problem that the traditional logistics distribution mode is difficult to adapt to the needs of modern logistics distribution. However, with the rapid growth of the number of various mobile devices and computing demands, the traditional cloud computing centralized processing mode with cloud data centers as the core faces problems such as large network transmission delay, high data transmission cost, computing security and privacy risks. This is unable to effectively meet the demands of mobile users, especially users who need instant response, for computing services. Cloud collaboration offers a new approach to this problem.

随着人们对物流配送的及时性的要求越来越高,如何确保各种物流和配送任务按时完成,成为有效节约配送成本的关键问题之一,也是当前物流运输行业迫切需要解决的。通过对车辆配送各个环节的分析,优化车辆的配送路径,同时考虑到路况变化等不确定因素可能影响配送的及时性,在配送车辆出发后动态调整交付路径。通过优化降低道路条件、天气等因素对整体配送时效性的影响,是提高物流配送效率、降低整体配送成本的重要手段。由于备品备件物流配送过程中存在的若干制约因素和不确定性,综合考虑交通、天气、路况等动态不确定因素对配送过程的影响显得尤为重要。As people's requirements for the timeliness of logistics and distribution are getting higher and higher, how to ensure that various logistics and distribution tasks are completed on time has become one of the key issues to effectively save distribution costs, and it is also an urgent need to solve the current logistics and transportation industry. Through the analysis of each link of vehicle delivery, the delivery route of the vehicle is optimized, and the delivery route is dynamically adjusted after the departure of the delivery vehicle, considering that uncertain factors such as changes in road conditions may affect the timeliness of delivery. Reducing the impact of road conditions, weather and other factors on the overall delivery timeliness through optimization is an important means to improve logistics distribution efficiency and reduce overall distribution costs. Due to several constraints and uncertainties in the logistics distribution of spare parts, it is particularly important to comprehensively consider the impact of dynamic uncertain factors such as traffic, weather, and road conditions on the distribution process.

一个边缘结点包含计算设备和通信设备,可以处理一定范围内的计算任务并将结果返回给特定的位置。因此,可以使用边缘设备对路况信息的变化进行判断,并基于这些变化对配送路径进行及时的调整。An edge node contains computing equipment and communication equipment, which can process a certain range of computing tasks and return the results to a specific location. Therefore, edge devices can be used to judge changes in road condition information, and timely adjust delivery routes based on these changes.

现有技术主要有以下几种:对传统遗传算法的收敛时间较早这一缺点进行改进、从传统遗传算法在局部搜索能力不足,通过融入爬山算法而优化对高质量解的搜索能力、采用模糊数学评价方法对道路风险进行量化,从数学估计的角度对影响选择运输路径的因素进行了考虑。The existing technologies mainly include the following: improving the shortcomings of the traditional genetic algorithm's early convergence time, from the traditional genetic algorithm's lack of local search ability, optimizing the search ability for high-quality solutions by integrating the hill-climbing algorithm, using fuzzy The mathematical evaluation method quantifies the road risk, and considers the factors affecting the choice of transportation routes from the perspective of mathematical estimation.

通过对现有技术进行分析,发现存在着以下一些不足。当前的优化多是在配送开始前的路径规划阶段,通过对算法本身的固有缺陷进行改进,或者是对静态的固定道路条件加以考虑,而提高所规划出的配送路径的合理性。但是对于配送开始后,到完成配送的这段时间内的突发状况等因素,并没有考虑和加以处理。然而这些无法预知的突然路况变化却会对配送的效果会造成不同程度的影响。因此,如果不根据配送过程中实际道路状况的变化而对车辆的配送路径进行动态的调整,则会导致配送成本和交付时间的增加。By analyzing the prior art, it is found that there are some deficiencies as follows. The current optimization is mostly in the path planning stage before the delivery starts, by improving the inherent defects of the algorithm itself, or by considering the static fixed road conditions, to improve the rationality of the planned delivery path. However, factors such as emergencies in the period from the start of the delivery to the completion of the delivery were not considered and dealt with. However, these unpredictable sudden changes in road conditions will have varying degrees of impact on the delivery effect. Therefore, if the delivery route of the vehicle is not dynamically adjusted according to the change of the actual road conditions during the delivery process, it will lead to an increase in delivery cost and delivery time.

发明内容SUMMARY OF THE INVENTION

本发明所要解决的技术问题是,针对现有技术不足,提供一种基于云边端协同的动态车辆配送路径优化方法及装置,降低完成配送任务所耗费的时间因路况变化而大幅增加的风险。The technical problem to be solved by the present invention is to provide a method and device for dynamic vehicle distribution path optimization based on cloud-side-end collaboration, in view of the deficiencies in the prior art, so as to reduce the risk that the time spent on completing the distribution task is greatly increased due to changes in road conditions.

为解决上述技术问题,本发明所采用的技术方案是:一种基于云边端协同的动态车辆配送路径优化方法,包括以下步骤:In order to solve the above-mentioned technical problems, the technical solution adopted in the present invention is: a method for optimizing a dynamic vehicle distribution path based on cloud-side-terminal collaboration, comprising the following steps:

S1、对配送车辆路径规划问题进行定性分析,确定配送时间和配送成本为第一阶段路径规划的优化目标;S1. Qualitatively analyze the distribution vehicle path planning problem, and determine the distribution time and distribution cost as the optimization goals of the first-stage path planning;

S2、在根据需求点提出的货物需求量和时间窗约束下,考虑配送中心的配送能力,在车辆出发前,根据第一阶段路径规划的优化目标,使用遗传算法在云端对整体配送路径提前进行优化,得到初始配送路径规划方案,该初始配送路径规划方案的整体花费的配送时间最少,耗费的配送成本最低;S2. Under the constraints of the demand for goods and the time window proposed according to the demand point, considering the distribution capacity of the distribution center, before the vehicle departs, according to the optimization goal of the first stage path planning, use the genetic algorithm to carry out the overall distribution path in the cloud in advance. optimization, and obtain the initial distribution path planning scheme, the overall distribution time of the initial distribution path planning scheme is the least, and the distribution cost is the lowest;

S3、配送车辆出发后,对路况数据进行感应并做出判断,更新初始配送路径规划方案中相应路段的路网信息;S3. After the delivery vehicle departs, the road condition data is sensed and judged, and the road network information of the corresponding road section in the initial delivery route planning scheme is updated;

S4、根据动态更新的路网信息以及配送车辆所处的位置,对余下的配送路径进行动态调整,直至全部配送任务结束,计算配送花费的时间;S4. According to the dynamically updated road network information and the location of the delivery vehicle, dynamically adjust the remaining delivery routes until all delivery tasks are completed, and calculate the delivery time;

S5、根据路况变化对路径作出优化调整,更新当前更新后的配送路径所耗费的成本;S5. Optimizing and adjusting the route according to changes in road conditions, and updating the cost of the current updated delivery route;

S6、以配送中心为车辆出发起始点,以最后一辆配送车辆完成配送任务为截止,在整个配送过程中,按照步骤S4和S5,对整个配送区域内的配送车辆路径进行动态的调整。S6. Taking the distribution center as the starting point of the vehicle, and ending with the last delivery vehicle completing the delivery task, in the entire delivery process, dynamically adjust the delivery vehicle path in the entire delivery area according to steps S4 and S5.

本发明针对现有技术的不足,提供一种基于云边端协同的动态车辆配送路径优化方法,通过云、边缘和端的协同配合,对道路状况进行处理,从而动态地对车辆配送路径进行调整,降低了配送过程中的多种影响因素对整体配送效果的影响,从而保证配送所耗费的时间并节省配送成本。在配送开始前,根据配送资源和配送需求,在云端先采用遗传算法对配送路径做出第一阶段的规划。在开始配送后,通过边缘端的处理能力,对路况变化进行实时的感知并做出判断,以此为根据动态地优化调整余下的配送路径,并发送给车辆终端。通过云边端的协同合作,将很好地对配送开始之后的对道路通行状况的各种动态影响因素进行了处理,对车辆配送路径进行了动态的优化,提升了整体配送方案的合理性,保证了交付时间,降低了配送成本。Aiming at the deficiencies of the prior art, the present invention provides a dynamic vehicle distribution path optimization method based on cloud-edge-terminal collaboration. Through the collaborative cooperation of cloud, edge and terminal, the road conditions are processed to dynamically adjust the vehicle distribution path. The influence of various influencing factors in the distribution process on the overall distribution effect is reduced, thereby ensuring the time spent in distribution and saving distribution costs. Before the delivery starts, according to the distribution resources and distribution requirements, the genetic algorithm is used in the cloud to make the first-stage planning of the distribution path. After the delivery starts, the processing capability of the edge terminal can sense the changes in road conditions in real time and make judgments. Based on this, the remaining delivery routes can be dynamically optimized and adjusted, and sent to the vehicle terminal. Through the cooperation between the cloud, the side and the terminal, various dynamic factors affecting the road traffic conditions after the start of distribution will be well processed, and the vehicle distribution path will be dynamically optimized, which will improve the rationality of the overall distribution plan and ensure that Reduced delivery time and reduced distribution costs.

步骤S1中,配送成本为车辆运输成本TC、时间窗惩罚成本PC和车辆成本之和;其中,In step S1, the delivery cost is the sum of the vehicle transportation cost TC, the time window penalty cost PC and the vehicle cost; wherein,

Figure BDA0003442514310000031
Figure BDA0003442514310000031

Figure BDA0003442514310000032
Figure BDA0003442514310000032

Figure BDA0003442514310000033
Figure BDA0003442514310000033

其中,K为车辆的总数量,N为待访问的需求点总数目,cij为需求点i与需求点j之间的单位运输成本,dij为需求点i与需求点j之间的距离,xijk的取值为0或1,取值为1表示车辆k从需求点i离开后前往需求点j,否则取值为0;a,b为配送时间窗惩罚系数,wik为车辆k在需求点i的等待时间,tik为车辆k到达配送点i的时间,li为需求点i的最晚服务时间窗;x0jk取值为0或1,当其值为1时表示车辆k从配送中心0出发前往需求点j。Among them, K is the total number of vehicles, N is the total number of demand points to be visited, c ij is the unit transportation cost between demand point i and demand point j, and d ij is the distance between demand point i and demand point j , the value of x ijk is 0 or 1, the value of 1 means that the vehicle k leaves the demand point i and goes to the demand point j, otherwise the value is 0; a and b are the delivery time window penalty coefficients, and w ik is the vehicle k Waiting time at demand point i, t ik is the time when vehicle k arrives at delivery point i, l i is the latest service time window of demand point i; x 0jk is 0 or 1, when its value is 1, it means that k departs from distribution center 0 to demand point j.

通过对所求车辆配送路径规划问题进行分析,构建出相应的数学模型,使抽象概念变为具体模型,从而通过数值指标来进行衡量和评估。通过明确配送过程中各部分成本的构成方式,并相应地建立数学计算公式,为多目标的优化提供了直接依据。By analyzing the required vehicle distribution route planning problem, a corresponding mathematical model is constructed, and the abstract concept becomes a concrete model, which can be measured and evaluated by numerical indicators. By clarifying the composition of each part of the cost in the distribution process, and establishing a mathematical formula accordingly, it provides a direct basis for multi-objective optimization.

步骤S2的具体实现过程包括:The specific implementation process of step S2 includes:

1)构建惩罚函数p(x):

Figure BDA0003442514310000034
Figure BDA0003442514310000035
其中,x代表相应的种群个体编号,T是正数,Du_max表示第u种车型的最大行驶距离;N为待访问的需求点总数目;1) Construct the penalty function p(x):
Figure BDA0003442514310000034
Figure BDA0003442514310000035
Among them, x represents the individual number of the corresponding population, T is a positive number, D u_max represents the maximum driving distance of the u-th vehicle type; N is the total number of demand points to be visited;

2)对所述惩罚函数p(x)进行解码,构造与所述惩罚函数p(x)对应的染色体;2) decoding the penalty function p(x), and constructing a chromosome corresponding to the penalty function p(x);

3)根据备件需求数据、路网数据和配送资源,随机产生初始种群;3) Randomly generate initial populations according to spare parts demand data, road network data and distribution resources;

4)通过选择、交叉和变异算子,在不满足终止条件的情况下对初始种群进行循环进化,直至产生最优解,得到初始配送路径规划方案。4) Through selection, crossover and mutation operators, cyclic evolution is performed on the initial population if the termination conditions are not met, until the optimal solution is generated, and the initial distribution path planning scheme is obtained.

通过使用遗传算法,一方面是将寻优过程的时间控制在合理的范围之内,另一方面又使寻优所得结果(即配送路径规划方案)的整体成本在多个目标函数上的表现都为最优。构建惩罚函数,能够保证在迭代选优过程中,每个个体能够根据其自身优劣而得出对应的遗传概率,以合适的几率参与到选择、交叉和变异算子阶段,从而保证了算法的收敛性。By using the genetic algorithm, on the one hand, the time of the optimization process is controlled within a reasonable range; is optimal. The construction of the penalty function can ensure that in the iterative optimization process, each individual can obtain the corresponding genetic probability according to its own advantages and disadvantages, and participate in the selection, crossover and mutation operator stages with an appropriate probability, thus ensuring the algorithm's performance. Convergence.

步骤S3的具体实现过程包括:The specific implementation process of step S3 includes:

A)根据每个边缘结点采集到的路况变化信息计算边缘结点所属路段的通行时间的变化,根据计算的结果,更新各个路段在道路通行时间表中的当前通行时间;A) Calculate the change of the travel time of the road section to which the edge node belongs according to the road condition change information collected by each edge node, and update the current travel time of each road section in the road traffic schedule according to the calculated result;

B)根据车辆速度更新配送车辆当前所处的位置,结合将要前往的下一个需求点的位置,得到两个位置之间在初始配送路径规划方案中的行进路线所需要经过的路段,完成对初始配送路径规划方案中相应路段的路网信息的更新;B) Update the current position of the delivery vehicle according to the vehicle speed, and combine with the position of the next demand point to be headed to, obtain the road section that the travel route in the initial delivery route planning scheme needs to pass between the two positions, and complete the initial The update of the road network information of the corresponding road section in the delivery route planning scheme;

C)根据所有配送车辆的当前位置及要前往的下一配送位置,查询道路通行时间表,判断发生变化的路况信息是否会对各配送车辆当前的配送任务造成恶劣影响:若车辆即将前往路段变化后的道路通行时间大于原通行时间的N倍(N可根据实际情况设定具体数值),即视为该路况信息的变化对配送任务造成了恶劣影响,进入步骤S4。C) According to the current location of all delivery vehicles and the next delivery location to go to, query the road traffic schedule, and determine whether the changed road condition information will have a bad impact on the current delivery tasks of each delivery vehicle: if the vehicle is about to go to the road section changes The later road travel time is greater than N times the original travel time (N can be set according to the actual situation), that is, it is considered that the change of the road condition information has caused a bad impact on the delivery task, and the process goes to step S4.

通过对路况变化进行判断,明确了何种路况变化会对配送结果造成恶劣影响,且能够通过更改阈值(即N的大小)设定来适配不同情况,保证了所提出方法的灵敏度。By judging the changes of road conditions, it is clear which road conditions changes will have a bad impact on the delivery results, and can adapt to different situations by changing the threshold (that is, the size of N), which ensures the sensitivity of the proposed method.

步骤S4的具体实现过程包括:The specific implementation process of step S4 includes:

I)取f(n)值最小的节点作为最优路径上的下一个节点,f(n)=g(n)+h(n);g(n)是起始节点到当前节点实际的通行代价,h(n)是当前节点到终点的通行代价的估计值;I) Take the node with the smallest value of f(n) as the next node on the optimal path, f(n)=g(n)+h(n); g(n) is the actual passage from the starting node to the current node cost, h(n) is the estimated value of the travel cost from the current node to the end point;

II)对A*算法所维护的P表和Q表进行操作,具体包括:II) Operate the P table and Q table maintained by the A* algorithm, including:

i)P表、Q表置空,将起点S加入P表,其g(n)值置0,父节点为空,路网中其他节点g(n)值置为无穷大;i) The P table and Q table are empty, the starting point S is added to the P table, its g(n) value is set to 0, the parent node is empty, and the g(n) value of other nodes in the road network is set to infinity;

ii)若P表为空,则算法失败,否则选取P表中f(n)值最小的节点,记为BT,将其加入Q表中;判断BT是否为终点T,若是,转到步骤iii);ii) If the P table is empty, the algorithm fails, otherwise select the node with the smallest f(n) value in the P table, denote it as BT, and add it to the Q table; judge whether BT is the end point T, if so, go to step iii );

否则根据路网拓扑属性和交通规则找到BT的每个邻接节点NT,执行以下步骤:Otherwise, find each adjacent node NT of BT according to the road network topology attributes and traffic rules, and perform the following steps:

①计算NT的启发值①Calculate the heuristic value of NT

f(NT)=g(NT)+h(NT);f(NT)=g(NT)+h(NT);

g(NT)=g(BT)+cost(BT,NT);g(NT)=g(BT)+cost(BT,NT);

其中,cost(BT,NT)是BT到NT的通行代价;Among them, cost(BT, NT) is the traffic cost from BT to NT;

②若NT在P表中,且通过公式g(NT)=g(BT)+cost(BT,NT)计算的通行代价值比NT的通行代价值小,则将NT的通行代价值更新为g(NT)=g(BT)+cost(BT,NT),并将NT的父节点设为BT;②If NT is in the P table, and the toll cost value calculated by the formula g(NT)=g(BT)+cost(BT,NT) is smaller than that of NT, then update the toll cost value of NT to g (NT)=g(BT)+cost(BT, NT), and set the parent node of NT as BT;

③如果NT在Q表中,且通过g(NT)=g(BT)+cost(BT,NT)计算的通行代价值比NT的通行代价值小,则将NT的通行代价值更新为g(NT)=g(BT)+cost(BT,NT),将NT的父节点设为BT,并将NT移出到P表中;③ If NT is in the Q table, and the travel cost value calculated by g(NT)=g(BT)+cost(BT,NT) is smaller than the travel cost value of NT, then update the travel cost value of NT to g( NT)=g(BT)+cost(BT, NT), set the parent node of NT as BT, and move NT out to the P table;

④若NT既不在P表,也不在Q表中,则将NT的父节点设为BT,并将NT移到P表中;④ If NT is neither in the P table nor in the Q table, set the parent node of NT as BT, and move NT to the P table;

⑤返回步骤ii);⑤ Return to step ii);

iii)从终点T回溯,依次找到父节点,并加入优化路径中,直到起点S,即得出优化路径;iii) Backtracking from the end point T, find the parent node in turn, and add it to the optimization path until the start point S, that is, the optimization path is obtained;

III)计算车辆通过所述优化路径所需的通行时间,优化路径包含多个路段,将多个路段编号为1,2,3,...,k;以[tk,tk′]表示车辆经过路段k的通行时间Tk,则Tk=tk’-tk;车辆通过多个路段所花费的通行时间与T′k1,T′k2,T′k3...相对应;fk表示车辆经过路段k起点的时刻对应的时段,

Figure BDA0003442514310000051
Figure BDA0003442514310000052
利用下式计算车辆通过路段k的通行时间Tk:III) Calculate the travel time required for the vehicle to pass through the optimized path. The optimized path includes multiple road segments, and the multiple road segments are numbered as 1, 2, 3, ..., k; [tk, tk'] indicates that the vehicle passes through The travel time Tk of the road segment k , then Tk = tk' - tk ; the travel time spent by the vehicle passing through multiple road segments corresponds to T'k1 , T'k2 , T'k3 ...; fk represents The time period corresponding to the moment when the vehicle passes the starting point of road segment k,
Figure BDA0003442514310000051
Figure BDA0003442514310000052
Use the following formula to calculate the travel time Tk of the vehicle passing through the road segment k:

Figure BDA0003442514310000053
Figure BDA0003442514310000053

m的取值满足如下约束:

Figure BDA0003442514310000054
The value of m satisfies the following constraints:
Figure BDA0003442514310000054

ΔT表示时段长度,t0表示开始时刻;ΔT represents the length of the period, and t 0 represents the start time;

IV)利用下式计算处理路况变化所需花费时间:gn(r)=bn(r)+cn(r)+kn(r)+hn(r);IV) Use the following formula to calculate the time it takes to process changes in road conditions: g n (r)=b n (r)+c n (r)+k n (r)+h n (r);

Figure BDA0003442514310000061
Figure BDA0003442514310000061

Figure BDA0003442514310000062
Figure BDA0003442514310000062

θn,n′表示数据从车辆Vn传递到车辆Vn′所经过的车辆数;θ n, n' represents the number of vehicles through which data is transmitted from vehicle V n to vehicle V n' ;

Figure BDA0003442514310000063
Figure BDA0003442514310000063

Figure BDA0003442514310000064
Figure BDA0003442514310000064

Figure BDA0003442514310000065
Figure BDA0003442514310000065

M表示边缘节点数量,D表示边缘计算设备集合,D={d1,d2,...,dm},V表示车辆集合,V={v1,v2,...,vn},λV2V表示基于V2V方法的数据传输速率,λV2I表示基于V2I方法的数据传输速率,ωn表示被传输计算任务的数据量,vn表示编号为n的配送车辆,dm表示编号为m的边缘计算设备,ln表示计算任务n是否在某边缘计算设备上进行处理,ln取值为0或1,p表示每个边缘计算设备的处理能力,un是计算任务n所请求的资源数量;M represents the number of edge nodes, D represents the set of edge computing devices, D={d 1 , d 2 , ..., d m }, V represents the set of vehicles, V={v 1 , v 2 , ..., v n }, λ V2V represents the data transmission rate based on the V2V method, λ V2I represents the data transmission rate based on the V2I method, ω n represents the data amount of the transmitted computing task, v n represents the delivery vehicle numbered n, and d m represents the number of m edge computing device, ln indicates whether computing task n is processed on an edge computing device, ln is 0 or 1, p indicates the processing capability of each edge computing device, u n is the request of computing task n the amount of resources;

V)利用下式计算完成配送任务整体所需时间:V) Use the following formula to calculate the time required to complete the overall delivery task:

Figure BDA0003442514310000066
K表示编号为r_s的路径所经过的路段总数;R表示至完成配送时,所处理过的由路况变化而对道路通行时间造成恶劣影响的道路事件总数。
Figure BDA0003442514310000066
K represents the total number of road segments passed by the route numbered r_s; R represents the total number of road events that have been processed by the change of road conditions and have a bad impact on the road transit time until the delivery is completed.

采用改进的A*算法来对需要调整的局部路径进行重新规划,既保证了再次寻优的求解速度,将计算时间控制在一定范围内,又使再次寻优的结果符合实际情况,保证了所做调整的合理性。整体上协调了时间耗费和所求解质量之间的矛盾。使用V2I、V2V方法,保证了路况数据和调整结果在各边缘结点之间以及边缘结点和车辆之间的传输速度和传输效率,保证了通行的可靠性。The improved A* algorithm is used to re-plan the local paths that need to be adjusted, which not only ensures the solution speed of re-optimization, controls the calculation time within a certain range, but also makes the results of re-optimization conform to the actual situation, ensuring that all Reasonableness to make adjustments. The contradiction between the time consumption and the quality of the solution is reconciled as a whole. Using V2I and V2V methods ensures the transmission speed and transmission efficiency of road condition data and adjustment results between edge nodes and between edge nodes and vehicles, ensuring the reliability of traffic.

步骤S5的具体实现过程包括:The specific implementation process of step S5 includes:

a)所有配送车辆根据初始路径规划,开始配送;a) All delivery vehicles start delivery according to the initial route planning;

b)将需要配送的需求点按r*r划分为多个配送区域,并为每个所述配送区域编号,r为单位长度;b) Divide the demand points that need to be distributed into multiple distribution areas according to r*r, and number each of the distribution areas, and r is the unit length;

c)边缘结点监听道路状况发生的变化,按照时间长度将产生影响路况的事件记录到events列表,events列表中的每个event对通往各配送区域内需求点的道路的通行时间产生不同大小的影响,即,根据每个event所对应的事件类型的影响程度,将发生event的配送区域内路段的道路通行时间增大为原来的ei倍(ei可根据实际使用需要设置);c) The edge nodes monitor changes in road conditions, and record the events that affect road conditions in the events list according to the length of time. Each event in the events list has different sizes for the travel time of the road leading to the demand point in each delivery area. The influence of, that is, according to the influence degree of the event type corresponding to each event, the road travel time of the road section in the distribution area where the event occurs is increased to the original e i times (e i can be set according to actual use needs);

d)将对应配送区域内路段的道路通行时间变更为影响后的值;d) Change the road travel time of the road section in the corresponding delivery area to the affected value;

e)判断当前时间片段内是否需要对原规划路径进行调整,即判断发生变化的路况信息是否会对各配送车辆当前的配送任务造成恶劣影响:若车辆即将前往路段变化后的道路通行时间大于原通行时间的N倍(N可根据实际情况设定具体数值),即视为该路况信息的变化对配送任务造成了恶劣影响,则需要进行调整;如需调整,按照寻找两点间最短路径算法进行再规划;e) Judging whether the original planned route needs to be adjusted in the current time segment, that is, judging whether the changed road condition information will have a bad impact on the current delivery task of each delivery vehicle: if the vehicle is about to go to the road section after the change, the road travel time after the change is greater than the original N times the travel time (N can be set according to the actual situation), that is, it is considered that the change of the road condition information has caused a bad impact on the delivery task, and it needs to be adjusted; re-planning;

f)对其余每个时间片段,重复步骤a)~f),直至完成全部配送任务,即所有车辆将初始规划中所有的需求点都遍历完,并回到配送中心。f) For each other time segment, repeat steps a) to f) until all distribution tasks are completed, that is, all vehicles have traversed all the demand points in the initial planning and return to the distribution center.

通过对配送区域进行划分,明确了各边缘设备的监听范围,合理地降低了对路况处理的计算难度,使各边缘设备能够感知到其各自所负责区域内的道路状况变化并作出处理,又不至于超出边缘设备的算力,合理地分担了计算负荷。By dividing the distribution area, the monitoring range of each edge device is clarified, and the calculation difficulty of road condition processing is reasonably reduced, so that each edge device can perceive the changes in road conditions in their respective responsible areas and process them without As for the computing power beyond the edge devices, the computing load is reasonably shared.

本发明还提供了一种计算机装置,包括存储器、处理器及存储在存储器上的计算机程序;其特征在于,所述处理器执行所述计算机程序,以实现本发明所述方法的步骤。The present invention also provides a computer device, comprising a memory, a processor and a computer program stored in the memory; it is characterized in that the processor executes the computer program to implement the steps of the method of the present invention.

本发明还提供了一种计算机程序产品,包括计算机程序/指令;该计算机程序/指令被处理器执行时实现本发明所述方法的步骤。The present invention also provides a computer program product, comprising a computer program/instruction; when the computer program/instruction is executed by a processor, the steps of the method of the present invention are implemented.

本发明还提供了一种计算机可读存储介质,其上存储有计算机程序/指令;所述计算机程序/指令被处理器执行时实现本发明所述方法的步骤。The present invention also provides a computer-readable storage medium on which computer programs/instructions are stored; when the computer programs/instructions are executed by a processor, the steps of the method of the present invention are implemented.

与现有技术相比,本发明所具有的有益效果为:本发明考虑了对配送开始到配送完成的这段时间内,配送区域内所发生的影响道路通行状况的诸多因素,降低了完成配送任务所耗费的时间因路况变化而大幅增加的风险,降低了配送成本,给企业的物流配送带来经济效益,减少了能源消耗。Compared with the prior art, the present invention has the following beneficial effects: the present invention takes into account many factors that affect road traffic conditions in the distribution area during the period from the start of the distribution to the completion of the distribution, and reduces the number of completed distribution. The risk of the time spent on the task is greatly increased due to changes in road conditions, which reduces the cost of distribution, brings economic benefits to the logistics distribution of the enterprise, and reduces energy consumption.

附图说明Description of drawings

图1为本发明实施例方法流程图;1 is a flowchart of a method according to an embodiment of the present invention;

图2为本发明实施例云端通信过程示意图。FIG. 2 is a schematic diagram of a cloud communication process according to an embodiment of the present invention.

具体实施方式Detailed ways

本发明实施例包括以下步骤:The embodiment of the present invention includes the following steps:

步骤1:对配送车辆路径规划问题进行定性分析,确定配送时间和成本为第一阶段路径规划的优化目标。配送成本由车辆运输成本TC、时间窗惩罚成本PC和车辆成本三部分构成。Step 1: Qualitatively analyze the distribution vehicle path planning problem, and determine the distribution time and cost as the optimization goals of the first-stage path planning. The distribution cost consists of three parts: vehicle transportation cost TC, time window penalty cost PC and vehicle cost.

其中,TC包括运输燃料消耗和车辆维护费用等,该部分与配送路径的长度成正比,计算方式如下:Among them, TC includes transportation fuel consumption and vehicle maintenance costs, etc. This part is proportional to the length of the distribution path, and the calculation method is as follows:

Figure BDA0003442514310000081
Figure BDA0003442514310000081

cij为需求点i与需求点j之间的单位运输成本,dij为需求点i与需求点j之间的距离,xijk的取值为0或1,取值为1表示车辆k从需求点i离开后前往需求点j,否则取值为0。PC表示当车辆超出时间窗要求到达需要增加的惩罚成本,计算方式如下:c ij is the unit transportation cost between demand point i and demand point j, d ij is the distance between demand point i and demand point j, x ijk is 0 or 1, and a value of 1 means that vehicle k from After the demand point i leaves, go to the demand point j, otherwise the value is 0. PC represents the penalty cost that needs to be increased when the vehicle exceeds the time window requirement. The calculation method is as follows:

Figure BDA0003442514310000082
Figure BDA0003442514310000082

a,b为配送时间窗惩罚系数,wik为车辆k在配送点i的等待时间,tik为车辆k到达配送点i的时间,li为配送点i的最晚服务时间窗。a and b are the delivery time window penalty coefficients, w ik is the waiting time of vehicle k at delivery point i, t ik is the time when vehicle k arrives at delivery point i , and li is the latest service time window of delivery point i.

车辆成本与所安排的配送车辆数量VN成正比,计算方式如下:The vehicle cost is proportional to the number of scheduled delivery vehicles, VN, and is calculated as follows:

Figure BDA0003442514310000083
Figure BDA0003442514310000083

x0jk取值为0或1,当其值为1时表示车辆k从配送中心0出发前往需求点j。The value of x 0jk is 0 or 1. When the value is 1, it means that the vehicle k departs from the distribution center 0 to the demand point j.

步骤2:在根据需求点提出的货物需求量和时间窗约束下,并考虑配送中心的配送能力,在车辆出发前,根据已有数据,使用遗传算法在云端对整体配送路径提前进行优化。Step 2: Under the constraints of the demand for goods and the time window proposed according to the demand point, and considering the distribution capacity of the distribution center, before the vehicle departs, according to the existing data, use the genetic algorithm to optimize the overall distribution route in the cloud in advance.

步骤2.1:根据时间窗和配送总成本最低等要求制定多目标优化函数;Step 2.1: Formulate a multi-objective optimization function according to the requirements of the time window and the lowest total distribution cost;

本方法采用惩罚函数的方法来对约束条件进行处理。罚函数法的基本思想是:对于在解空间中解不可行的个体,如果要计算其适应度,则需要对该个体的适应度函数赋予一个罚函数降低适应度,使得遗传给下一代的概率降低,以至自动淘汰。针对本文中模型的特点,其中车辆容量约束、最大行驶距离约束可以采用罚函数的形式予以实现。用公式表示如下:This method uses the penalty function method to deal with the constraints. The basic idea of the penalty function method is: for an individual whose solution is infeasible in the solution space, if its fitness is to be calculated, it is necessary to assign a penalty function to the fitness function of the individual to reduce the fitness, so that the probability of inheritance to the next generation is made. reduced, and even automatically eliminated. According to the characteristics of the model in this paper, the vehicle capacity constraints and the maximum travel distance constraints can be implemented in the form of penalty functions. The formula is expressed as follows:

Figure BDA0003442514310000091
Figure BDA0003442514310000091

式中p(x)为惩罚函数,x代表相应的种群个体编号,其中T是一个很大的正数。In the formula, p(x) is the penalty function, x represents the corresponding population individual number, and T is a large positive number.

步骤2.2:将上一步骤中所描述问题的解进行编码,构造与之对应的染色体;Step 2.2: Encode the solution of the problem described in the previous step, and construct the corresponding chromosome;

本方法采用自然数符号对问题的解进行编码。自然数编码通过将问题的解(即车辆路径的集合)编码为长度为k+m+1的自然数数组,编码的每一条染色体表示问题解空间中的一个初始解。举例说明如下:考虑{0,4,7,9,11,0,1,3,5,2,0,6,8,10,0}染色体编码,表示安排三辆车完成11个备件需求点的配送任务,三辆车的配送子路径分别为:路径1:0->4->7->9->11->0;路径2∶0->1->3->5->2->0;路径3∶0->6->8->10->0;其中,编号0表示配送中心,1-11表示11个需求点的编号,每辆车均从配送中心出发,依次完成配送任务后回到配送中心。The method uses natural number symbols to encode the solution to the problem. Natural number encoding By encoding the solution of the problem (ie, the set of vehicle paths) as an array of natural numbers of length k+m+1, each encoded chromosome represents an initial solution in the solution space of the problem. An example is as follows: Consider {0, 4, 7, 9, 11, 0, 1, 3, 5, 2, 0, 6, 8, 10, 0} chromosome coding, indicating that three vehicles are arranged to complete 11 spare parts demand points The distribution tasks of the three vehicles are: path 1: 0->4->7->9->11->0; path 2: 0->1->3->5->2 ->0; path 3: 0->6->8->10->0; among them, the number 0 represents the distribution center, 1-11 represents the number of 11 demand points, each vehicle starts from the distribution center, and then Return to the distribution center after completing the delivery task.

步骤2.3:根据备件需求数据、路网数据和配送资源,随机产生初始种群;Step 2.3: Randomly generate initial populations according to spare parts demand data, road network data and distribution resources;

步骤2.4:通过选择、交叉和变异算子,在不满足终止条件的情况下对初始种群进行循环进化,直至产生最优解;Step 2.4: Through selection, crossover and mutation operators, cyclic evolution is performed on the initial population without satisfying the termination conditions until the optimal solution is generated;

在应用本方法去解决备品备件车辆配送路径规划问题时,将参数设置为:种群规模Popsize=80,最大迭代代数Maxgen=500,交叉率Pc=0.88,变异率Pm=0.05。终止条件设定为:若迭代次数达到500代;或若某代染色体的适应度值达到初始最佳染色体适应度值的0.9倍,则搜索终止,输出最优解。When applying this method to solve the problem of vehicle distribution path planning for spare parts, the parameters are set as: population size Popsize=80, maximum iteration algebra Maxgen=500, crossover rate Pc=0.88, and mutation rate Pm=0.05. The termination conditions are set as follows: if the number of iterations reaches 500 generations; or if the fitness value of a certain generation of chromosomes reaches 0.9 times the initial optimal chromosome fitness value, the search is terminated and the optimal solution is output.

步骤2.5:通过解码得到初始配送路径规划方案。Step 2.5: Obtain the initial distribution route planning scheme through decoding.

步骤3:配送车辆出发后,通过边缘设备采集道路状况变化的相关数据:通过边缘设备对路况数据进行感应并做出判断,对相应路段的路网数据做出更新,为动态调整局部配送路径提供依据。Step 3: After the delivery vehicle departs, collect data related to changes in road conditions through the edge device: The edge device senses and makes judgments on the road condition data, updates the road network data of the corresponding road section, and provides dynamic adjustment of local delivery routes. in accordance with.

步骤3.1:对边缘设备所采集到的路况变化信息进行处理,计算所属路段的通行时间的变化;Step 3.1: Process the road condition change information collected by the edge device, and calculate the change of the travel time of the road section to which it belongs;

步骤3.2:动态更新路网数据以及道路的通行时间表。以0.5h为单位时间ΔT,根据车辆速度更新配送车辆当前所处的位置,根据从边缘结点采集并处理后的数据,更新道路通行时间表中所有路段的当前通行时间;Step 3.2: Dynamically update the road network data and the traffic schedule of the road. Taking 0.5h as the unit time ΔT, update the current position of the delivery vehicle according to the vehicle speed, and update the current travel time of all road sections in the road traffic schedule according to the data collected and processed from the edge nodes;

步骤3.3:通过边缘设备将路况变化信息和所有配送车辆的当前位置及下一配送位置进行判断,为下一步调整提供依据。Step 3.3: Use the edge device to judge the road condition change information and the current location and next delivery location of all delivery vehicles to provide a basis for the next adjustment.

步骤4:基于改进的A*算法对预定路径做出动态调整:通过在边缘设备上运行改进的A*算法,根据边缘设备提供的动态更新的路网信息以及配送车辆所处的位置,对余下的配送路径进行动态的调整,直至全部配送任务结束。Step 4: Dynamically adjust the predetermined path based on the improved A* algorithm: By running the improved A* algorithm on the edge device, according to the dynamically updated road network information provided by the edge device and the location of the delivery vehicle, the remaining The delivery route is dynamically adjusted until all delivery tasks are completed.

步骤4.1:在判断出从当前配送点到(原路径规划中的)下一配送点之间需要改变行车路径的情况下,寻找两点间最短路径来实现。使用A*算法,对需要调整的当前需求点与下一需求点的路径做出再规划,即寻找两点间的最短路径。具体实现如下:Step 4.1: When it is determined that the driving route needs to be changed between the current delivery point and the next delivery point (in the original route planning), find the shortest path between the two points to realize it. Use the A* algorithm to re-plan the paths of the current demand point and the next demand point that need to be adjusted, that is, to find the shortest path between the two points. The specific implementation is as follows:

A*算法是一种典型的启发式搜索算法,建立在Diikstra算法的基础之上,广泛用来寻找两点之间的最短路径。A* algorithm is a typical heuristic search algorithm, which is based on Diikstra's algorithm and is widely used to find the shortest path between two points.

A*算法最主要的是维护了一个启发式估价函数:The most important thing about the A* algorithm is to maintain a heuristic evaluation function:

f(n)=g(n)+h(n)f(n)=g(n)+h(n)

其中,f(n)是算法在搜索到每个节点时,其对应的启发函数。它由两部分组成,第一部分g(n)是起始节点到当前节点实际的通行代价,第二部分h(n)是当前节点到终点的通行代价的估计值。算法每次在扩展时,都选取f(n)值最小的那个节点作为最优路径上的下一个节点。Among them, f(n) is the corresponding heuristic function when the algorithm searches for each node. It consists of two parts, the first part g(n) is the actual travel cost from the starting node to the current node, and the second part h(n) is the estimated value of the travel cost from the current node to the end point. Each time the algorithm expands, the node with the smallest f(n) value is selected as the next node on the optimal path.

步骤4.2∶对A*算法所维护的P表和Q表进行操作。A*算法维护两个集合:P表与Q表。P表存放那些已经搜索到、但还没加入最优路径树上的节点;Q表维护那些已加入最优路径树上的节点。Step 4.2: Operate the P table and Q table maintained by the A* algorithm. The A* algorithm maintains two sets: the P table and the Q table. The P table stores those nodes that have been searched but not yet added to the optimal path tree; the Q table maintains those nodes that have been added to the optimal path tree.

(1)P表、Q表置空,将起点S加入P表,其g值置0,父节点为空,路网中其他节点g值置为无穷大。(1) The P table and Q table are empty, the starting point S is added to the P table, its g value is set to 0, the parent node is empty, and the g value of other nodes in the road network is set to infinity.

(2)若P表为空,则算法失败。否则选取P表中f值最小的那个节点,记为BT,将其加入Q表中。判断BT是否为终点T,若是,转到步骤(3);否则根据路网拓扑属性和交通规则找到BT的每个邻接节点NT,进行下列步骤:(2) If the P table is empty, the algorithm fails. Otherwise, select the node with the smallest f value in the P table, record it as BT, and add it to the Q table. Determine whether BT is the end point T, if so, go to step (3); otherwise, find each adjacent node NT of BT according to road network topology attributes and traffic rules, and perform the following steps:

①计算NT的启发值①Calculate the heuristic value of NT

f(NT)=g(NT)+h(NT)f(NT)=g(NT)+h(NT)

g(NT)=g(BT)+cos t(BT,NT)g(NT)=g(BT)+cos t(BT,NT)

其中,cost(BT,NT)是BT到NT的通行代价。Among them, cost(BT, NT) is the pass cost from BT to NT.

②如果NT在P表中,且通过g(NT)=g(BT)+cos t(BT,NT)计算的g值比NT原先的g值小,则将NT的g值更新为式(3)结果,并将NT的父节点设为BT。②If NT is in the P table, and the g value calculated by g(NT)=g(BT)+cos t(BT,NT) is smaller than the original g value of NT, then update the g value of NT to formula (3 ) result, and set the parent node of NT to BT.

③如果NT在Q表中,且通过g(NT)=g(BT)+cos t(BT,NT)计算的g值比NT原先的g值小,则将NT的g值更新为g(NT)=g(BT)+cos t(BT,NT)结果,将NT的父节点设为BT,并将NT移出到P表中。③ If NT is in the Q table, and the g value calculated by g(NT)=g(BT)+cos t(BT,NT) is smaller than the original g value of NT, then update the g value of NT to g(NT )=g(BT)+cos t(BT,NT) As a result, the parent node of NT is set to BT, and NT is moved out of the P table.

④若NT既不在P表,也不在Q表中,则将NT的父节点设为BT,并将NT移到P表中。④ If NT is neither in P table nor in Q table, set the parent node of NT as BT, and move NT to P table.

⑤转到步骤(2)继续执行。⑤ Go to step (2) to continue.

(3)从终点T回溯,依次找到父节点,并加入优化路径中,直到起点S,即可得出优化路径。(3) Backtrack from the end point T, find the parent nodes in turn, and add them to the optimization path until the start point S, and then the optimization path can be obtained.

步骤4.3:计算并处理通行时间的动态变化。为计算在实时情况下某段道路的通行时间,采用了一种道路通行时间表的结构,如表1所示。表中存放了道路当前时刻的通行时间以及未来几个时刻通行时间的预测值。Step 4.3: Calculate and process the dynamics of transit time. In order to calculate the travel time of a certain road in real time, a structure of road travel schedule is adopted, as shown in Table 1. The table stores the travel time of the road at the current moment and the predicted value of the travel time in the next few moments.

以t0表示开始时刻,将未来一段时间划分为若干个时段,以ΔT表示一个时段的长度,系统开始工作的时刻属于第一个时段。然后对这些时段进行编号,如1,2,3,4,...。同理,也将每个路段编号为1,2,3,4,...。采用Tij表示路段i在时段j的通行时间。这样就可得到不同路段在不同时刻的通行时间。The starting time is represented by t 0 , the future period of time is divided into several time periods, and ΔT is used to represent the length of a time period, and the moment when the system starts to work belongs to the first time period. These periods are then numbered like 1, 2, 3, 4, .... Similarly, also number each road segment as 1, 2, 3, 4, .... T ij is used to denote the travel time of road segment i in time period j. In this way, the travel time of different road sections at different times can be obtained.

表1道路动态通行时间表Table 1 Road dynamic traffic schedule

Figure BDA0003442514310000111
Figure BDA0003442514310000111

再规划系统会在道路情况发生改变,即不同的道路事件发生时,判断是否需要改变当前的配送路径∶如果变化后的道路通行时间大于原通行时间的N倍,即为需要进行路径再规划。优化路径上可能会包含多个路段,将它们编号为1,2,3,...,k,...。以[tk,tk′]表示车辆经过路段k的通行时间Tk,则Tk=tk′-tk。车辆可能会花费多个时段才能通过路段k,将这些时段与通行时间T′k1,T′k2,T′k3,...对应。The re-planning system will determine whether the current delivery route needs to be changed when the road conditions change, that is, when different road events occur. If the changed road travel time is greater than N times the original travel time, it means that route re-planning is required. The optimized path may contain multiple segments, number them 1, 2, 3, ..., k, .... By [t k , t k ′] representing the travel time T k of the vehicle passing through the road section k, then T k =t k ′-t k . A vehicle may take several time periods to pass through the road segment k, and these time periods correspond to the travel times T′ k1 , T′ k2 , T′ k3 , . . .

首先计算出车辆经过路段k起点的时刻对应的时段fkFirst, calculate the time period f k corresponding to the moment when the vehicle passes the starting point of road segment k :

Figure BDA0003442514310000112
Figure BDA0003442514310000112

则相应可以得出:Correspondingly, it can be concluded that:

Figure BDA0003442514310000121
Figure BDA0003442514310000121

根据时段长度ΔT、道路长度L与道路通行速度的不同取值,可能会出现车辆只需在一个时段即可通过路段,也可能需要多个时段才能通过。因此可得到车辆通过路段k的具体公式如下:According to the different values of the period length ΔT, the road length L and the road speed, it may happen that the vehicle only needs to pass through the road section in one period, or it may take multiple periods to pass. Therefore, the specific formula for the vehicle passing through the road segment k can be obtained as follows:

Figure BDA0003442514310000122
Figure BDA0003442514310000122

其中,m的取值满足如下约束:Among them, the value of m satisfies the following constraints:

Figure BDA0003442514310000123
Figure BDA0003442514310000123

步骤5:计算边缘设备对道路信息变化进行处理,并通过区域内的车辆之间的通信网络,将结果传达目的结点的时间。Step 5: The computing edge device processes the road information change, and transmits the result to the time of the destination node through the communication network between vehicles in the area.

步骤5.1:计算路况变化信息传输到边缘服务器所需的时间为bn(i),计算方法如下所示:Step 5.1: Calculate the time required for the transmission of road condition change information to the edge server as b n (i). The calculation method is as follows:

Figure BDA0003442514310000124
Figure BDA0003442514310000124

Figure BDA0003442514310000125
Figure BDA0003442514310000125

其中N表示当前路段车辆数,M表示架设的边缘计算设备数,D表示边缘计算设备集合,D={d1,d2,...,dm},V表示车辆集合,V={v1,v2,...,vn},λV2V表示基于V2V技术的数据传输速率,λV2I表示基于V2I技术的数据传输速率,ωn表示被传输计算任务的数据量,vn表示编号为n的配送车辆,dm表示编号为m的边缘计算设备;Among them, N represents the number of vehicles in the current section, M represents the number of edge computing devices erected, D represents the set of edge computing devices, D={d 1 , d 2 , ..., d m }, V represents the set of vehicles, V={v 1 , v 2 , ..., v n }, λ V2V represents the data transmission rate based on V2V technology, λ V2I represents the data transmission rate based on V2I technology, ω n represents the data amount of the transmitted computing task, and v n represents the number is the delivery vehicle of n, and d m represents the edge computing device numbered m;

步骤5.2:计算任务发送到边缘服务器的时间为cn(i),计算方法如下所示:Step 5.2: The time when the computing task is sent to the edge server is c n (i), and the calculation method is as follows:

Figure BDA0003442514310000126
Figure BDA0003442514310000126

步骤5.3:计算在边缘服务器执行路径再规划的时间为kn(i),计算方法如下所示:Step 5.3: Calculate the time to perform path re-planning at the edge server as k n (i). The calculation method is as follows:

Figure BDA0003442514310000127
Figure BDA0003442514310000127

步骤5.4:计算将重新规划的路径发送回车辆的时间为hn(i),计算方法如下所示:Step 5.4: Calculate the time to send the replanned path back to the vehicle as h n (i), calculated as follows:

Figure BDA0003442514310000128
Figure BDA0003442514310000128

步骤5.5:求出整体花费时间,计算方法如下所示:Step 5.5: Find the overall time spent. The calculation method is as follows:

gn(i)=bn(i)+cn(i)+kn(i)+hn(i)g n (i)=b n (i)+c n (i)+k n (i)+h n (i)

步骤6:根据路况变化对路径做出的优化调整,更新该条更新后的配送路径所耗费的成本。Step 6: According to the optimization adjustment made to the route according to the change of road conditions, the cost of updating the updated delivery route.

步骤7:对车辆从配送中心出发为开始,以最后一辆配送车辆完成配送任务未截止,在整个配送过程中,按照步骤3、4、5所述方法,对整个配送区域内的配送车辆路径进行动态的调整。为了处理方便,实现以下步骤的操作前,我们提出以下两个假设:Step 7: The vehicle starts from the distribution center, and the last delivery vehicle completes the delivery task before it ends. During the entire delivery process, according to the methods described in steps 3, 4, and 5, the routes of the delivery vehicles in the entire delivery area are analyzed. Make dynamic adjustments. For the convenience of processing, before implementing the following steps, we propose the following two assumptions:

(1)物流配送中心和客户节点之间以及客户节点相互之间,通过路网中的道路组合,均为可达;(1) The logistics distribution center and the customer nodes and between the customer nodes are all reachable through the combination of roads in the road network;

(2)路况的变化发生在一个网格区域,则在该时间段内,对通往该区域内的需求点的道路的通行时间均会造成不同程度影响(视具体事件类型而定)。(2) The change of road conditions occurs in a grid area, and within this time period, the travel time of the road leading to the demand point in the area will be affected to varying degrees (depending on the specific event type).

步骤7.1:所有配送车辆根据初始路径规划,开始配送;Step 7.1: All delivery vehicles start delivery according to the initial route planning;

步骤7.2:将需要配送的需求点按r*r划分区域,并编号,r为单位长度,可根据边缘设备的计算能力确定具体数值;Step 7.2: Divide and number the demand points to be distributed according to r*r, where r is the unit length, and the specific value can be determined according to the computing power of the edge device;

步骤7.3:由边缘结点监听道路状况所发生的变化,按照时间长度0.5h的片段,将产生影响路况的事件记录到events列表,每个event对通往该区域内需求点的道路的通行时间产生不同大小的影响:根据每个event所对应的事件类型的影响程度,将发生event的区域内路段的道路通行时间增大为原来的ei倍(ei可根据实际情况设定具体数值),具体考虑到的道路事件列举如表2所示;Step 7.3: Changes in road conditions are monitored by edge nodes, and events that affect road conditions are recorded in the events list according to segments with a time length of 0.5h. Influence of different sizes: according to the degree of influence of the type of event corresponding to each event, increase the road travel time of the road section in the area where the event occurs by e i times the original (e i can be set according to the actual situation) , and the road events that are specifically considered are listed in Table 2;

表2道路事件表Table 2 Road Incident Table

Figure BDA0003442514310000131
Figure BDA0003442514310000131

步骤7.4:将对应区域内路段的道路通行时间变更为影响后的值;Step 7.4: Change the road travel time of the road section in the corresponding area to the affected value;

步骤7.5:判断该时间片段内是否需要对原规划路径进行调整,即判断发生变化的路况信息是否会对各配送车辆当前的配送任务造成恶劣影响:若车辆即将前往路段变化后的道路通行时间大于原通行时间的N倍,即视为该路况信息的变化对配送任务造成了恶劣影响,则需要进行调整;Step 7.5: Determine whether the original planned route needs to be adjusted in this time segment, that is, determine whether the changed road condition information will have a bad impact on the current distribution task of each distribution vehicle: if the vehicle is about to go to the road section after the change of the road travel time is greater than N times of the original travel time, that is, it is considered that the change of the road condition information has caused a bad impact on the delivery task, and it needs to be adjusted;

步骤7.6:如需调整,按照寻找两点间最短路径的A*算法进行再规划;无需调整则不做任何操作;Step 7.6: If adjustment is required, re-plan according to the A* algorithm that finds the shortest path between two points; do nothing without adjustment;

步骤7.7:按照0.5h时间片段重复如上步骤,直至完成全部配送任务,即所有车辆将初始规划中所有的配送点都遍历完,并回到配送中心。Step 7.7: Repeat the above steps according to the 0.5h time segment until all the distribution tasks are completed, that is, all vehicles have traversed all the distribution points in the initial planning and return to the distribution center.

Claims (9)

1.一种基于云边端协同的动态车辆配送路径优化方法,其特征在于,包括以下步骤:1. a dynamic vehicle distribution path optimization method based on cloud-edge-terminal collaboration, is characterized in that, comprises the following steps: S1、对配送车辆路径规划问题进行定性分析,确定配送时间和配送成本为第一阶段路径规划的优化目标;S1. Qualitatively analyze the distribution vehicle path planning problem, and determine the distribution time and distribution cost as the optimization goals of the first-stage path planning; S2、在根据需求点提出的货物需求量和时间窗约束下,考虑配送中心的配送能力,在车辆出发前,根据第一阶段路径规划的优化目标,使用遗传算法在云端对整体配送路径提前进行优化,得到初始配送路径规划方案,该初始配送路径规划方案的整体花费的配送时间最少,耗费的配送成本最低;S2. Under the constraints of the demand for goods and the time window proposed according to the demand point, considering the distribution capacity of the distribution center, before the vehicle departs, according to the optimization goal of the first stage path planning, use the genetic algorithm to carry out the overall distribution path in the cloud in advance. optimization, and obtain the initial distribution path planning scheme, the overall distribution time of the initial distribution path planning scheme is the least, and the distribution cost is the lowest; S3、配送车辆出发后,对路况数据进行感应并做出判断,更新初始配送路径规划方案中相应路段的路网信息;S3. After the delivery vehicle departs, the road condition data is sensed and judged, and the road network information of the corresponding road section in the initial delivery route planning scheme is updated; S4、根据动态更新的路网信息以及配送车辆所处的位置,对余下的配送路径进行动态调整,直至全部配送任务结束,计算配送花费的时间;S4. According to the dynamically updated road network information and the location of the delivery vehicle, dynamically adjust the remaining delivery routes until all delivery tasks are completed, and calculate the delivery time; S5、根据路况变化对路径作出优化调整,更新当前更新后的配送路径所耗费的成本;S5. Optimizing and adjusting the route according to changes in road conditions, and updating the cost of the current updated delivery route; S6、以配送中心为车辆出发起始点,以最后一辆配送车辆完成配送任务为截止,在整个配送过程中,按照步骤S4和S5,对整个配送区域内的配送车辆路径进行动态的调整。S6. Taking the distribution center as the starting point of the vehicle, and ending with the last delivery vehicle completing the delivery task, in the entire delivery process, dynamically adjust the delivery vehicle path in the entire delivery area according to steps S4 and S5. 2.根据权利要求1所述的基于云边端协同的动态车辆配送路径优化方法,其特征在于,步骤S1中,配送成本为车辆运输成本TC、时间窗惩罚成本PC和车辆成本之和;其中,2. The dynamic vehicle distribution path optimization method based on cloud-side-terminal collaboration according to claim 1, wherein in step S1, the distribution cost is the sum of vehicle transportation cost TC, time window penalty cost PC and vehicle cost; wherein ,
Figure FDA0003442514300000011
Figure FDA0003442514300000011
Figure FDA0003442514300000012
Figure FDA0003442514300000012
Figure FDA0003442514300000013
Figure FDA0003442514300000013
其中,K为车辆的总数量,N为待访问的需求点总数目,cij为需求点i与需求点j之间的单位运输成本,dij为需求点i与需求点j之间的距离,xijk的取值为0或1,取值为1表示车辆k从需求点i离开后前往需求点j,否则取值为0;a,b为配送时间窗惩罚系数,wik为车辆k在需求点i的等待时间,tik为车辆k到达配送点i的时间,li为需求点i的最晚服务时间窗;x0jk取值为0或1,当其值为1时表示车辆k从配送中心0出发前往需求点j。Among them, K is the total number of vehicles, N is the total number of demand points to be visited, c ij is the unit transportation cost between demand point i and demand point j, and d ij is the distance between demand point i and demand point j , the value of x ijk is 0 or 1, the value of 1 means that the vehicle k leaves the demand point i and goes to the demand point j, otherwise the value is 0; a and b are the delivery time window penalty coefficients, and w ik is the vehicle k Waiting time at demand point i, t ik is the time when vehicle k arrives at delivery point i, l i is the latest service time window of demand point i; x 0jk is 0 or 1, when its value is 1, it means that k departs from distribution center 0 to demand point j.
3.根据权利要求1所述的基于云边端协同的动态车辆配送路径优化方法,其特征在于,步骤S2的具体实现过程包括:3. The dynamic vehicle distribution path optimization method based on cloud-side-terminal collaboration according to claim 1, wherein the specific implementation process of step S2 comprises: 1)构建惩罚函数p(x):
Figure FDA0003442514300000021
其中,x代表相应的种群个体编号,T是正数,Du_max表示第u种车型的最大行驶距离;N为待访问的需求点总数目;
1) Construct the penalty function p(x):
Figure FDA0003442514300000021
Among them, x represents the individual number of the corresponding population, T is a positive number, D u_max represents the maximum driving distance of the u-th vehicle type; N is the total number of demand points to be visited;
2)对所述惩罚函数p(x)进行解码,构造与所述惩罚函数p(x)对应的染色体;2) decoding the penalty function p(x), and constructing a chromosome corresponding to the penalty function p(x); 3)根据备件需求数据、路网数据和配送资源,随机产生初始种群;3) Randomly generate initial populations according to spare parts demand data, road network data and distribution resources; 4)通过选择、交叉和变异算子,在不满足终止条件的情况下对初始种群进行循环进化,直至产生最优解,得到初始配送路径规划方案。4) Through selection, crossover and mutation operators, cyclic evolution is performed on the initial population under the condition that the termination conditions are not met, until the optimal solution is generated, and the initial distribution path planning scheme is obtained.
4.根据权利要求1所述的基于云边端协同的动态车辆配送路径优化方法,其特征在于,步骤S3的具体实现过程包括:4. The dynamic vehicle distribution path optimization method based on cloud-side-terminal collaboration according to claim 1, wherein the specific implementation process of step S3 comprises: A)根据每个边缘结点采集到的路况变化信息计算边缘结点所属路段的通行时间的变化,根据计算的结果,更新各个路段在道路通行时间表中的当前通行时间;A) Calculate the change of the travel time of the road section to which the edge node belongs according to the road condition change information collected by each edge node, and update the current travel time of each road section in the road traffic schedule according to the calculated result; B)根据车辆速度更新配送车辆当前所处的位置,结合将要前往的下一个需求点的位置,得到两个位置之间在初始配送路径规划方案中的行进路线所需要经过的路段,完成对初始配送路径规划方案中相应路段的路网信息的更新;B) Update the current position of the delivery vehicle according to the speed of the vehicle, and combine with the position of the next demand point to be headed to, obtain the road section that the travel route in the initial delivery route planning scheme needs to pass between the two positions, and complete the initial The update of the road network information of the corresponding road section in the delivery route planning scheme; C)根据所有配送车辆的当前位置及要前往的下一配送位置,查询道路通行时间表,判断发生变化的路况信息是否会对各配送车辆当前的配送任务造成恶劣影响:若车辆即将前往路段变化后的道路通行时间大于原通行时间的N倍,即视为该路况信息的变化对配送任务造成了恶劣影响,进入步骤S4。C) According to the current location of all delivery vehicles and the next delivery location to be headed to, query the road traffic schedule, and determine whether the changed road condition information will have a bad impact on the current delivery tasks of each delivery vehicle: if the vehicle is about to go to the road section changes The later road travel time is greater than N times the original travel time, that is, it is considered that the change of the road condition information has caused a bad impact on the delivery task, and the process proceeds to step S4. 5.根据权利要求1所述的基于云边端协同的动态车辆配送路径优化方法,其特征在于,步骤S4的具体实现过程包括:5. The dynamic vehicle distribution path optimization method based on cloud-side-terminal collaboration according to claim 1, wherein the specific implementation process of step S4 comprises: I)取f(n)值最小的节点作为最优路径上的下一个节点,f(n)=g(n)+h(n),g(n)是起始节点到当前节点实际的通行代价,h(n)是当前节点到终点的通行代价的估计值;I) Take the node with the smallest value of f(n) as the next node on the optimal path, f(n)=g(n)+h(n), g(n) is the actual passage from the starting node to the current node cost, h(n) is the estimated value of the travel cost from the current node to the end point; II)对A*算法所维护的P表和Q表进行操作,具体包括:II) Operate the P table and Q table maintained by the A* algorithm, including: i)P表、Q表置空,将起点S加入P表,其g(n)值置0,父节点为空,路网中其他节点g(n)值置为无穷大;i) The P table and Q table are empty, the starting point S is added to the P table, its g(n) value is set to 0, the parent node is empty, and the g(n) value of other nodes in the road network is set to infinity; ii)若P表为空,则算法失败,否则选取P表中f(n)值最小的节点,记为BT,将其加入Q表中;判断BT是否为终点T,若是,转到步骤iii);否则根据路网拓扑属性和交通规则找到BT的每个邻接节点NT,执行以下步骤:ii) If the P table is empty, the algorithm fails, otherwise select the node with the smallest f(n) value in the P table, denote it as BT, and add it to the Q table; judge whether BT is the end point T, if so, go to step iii ); otherwise, find each adjacent node NT of BT according to the road network topology attributes and traffic rules, and perform the following steps: ①计算NT的启发值①Calculate the heuristic value of NT f(NT)=g(NT)+h(NT);f(NT)=g(NT)+h(NT); g(NT)=g(BT)+cost(BT,NT);g(NT)=g(BT)+cost(BT,NT); 其中,cost(BT,NT)是BT到NT的通行代价;Among them, cost(BT, NT) is the traffic cost from BT to NT; ②若NT在P表中,且通过公式g(NT)=g(BT)+cost(BT,NT)计算的通行代价值比NT的通行代价值小,则②If NT is in the P table, and the traffic cost calculated by the formula g(NT)=g(BT)+cost(BT,NT) is smaller than the traffic cost of NT, then 将NT的通行代价值更新为g(NT)=g(BT)+cost(BT,NT),并将NT的父节点设为BT;Update the passable cost value of NT to g(NT)=g(BT)+cost(BT, NT), and set the parent node of NT as BT; ③如果NT在Q表中,且通过g(NT)=g(BT)+cost(BT,NT)计算的通行代价值比NT的通行代价值小,则将NT的通行代价值更新为g(NT)=g(BT)+cost(BT,NT),将NT的父节点设为BT,并将NT移出到P表中;③ If NT is in the Q table, and the pass cost value calculated by g(NT)=g(BT)+cost(BT,NT) is smaller than the pass cost value of NT, then update the pass cost value of NT to g( NT)=g(BT)+cost(BT, NT), set the parent node of NT as BT, and move NT out to the P table; ④若NT既不在P表,也不在Q表中,则将NT的父节点设为BT,并将NT移到P表中;④If NT is neither in P table nor in Q table, then set the parent node of NT to BT, and move NT to P table; ⑤返回步骤ii);⑤ Return to step ii); iii)从终点T回溯,依次找到父节点,并加入优化路径中,直到起点S,即得出优化路径;iii) Backtracking from the end point T, find the parent node in turn, and add it to the optimization path until the start point S, that is, the optimization path is obtained; III)计算车辆通过所述优化路径所需的通行时间,优化路径包含多个路段,将多个路段编号为1,2,3,...,k;以[tk,tk′]表示车辆经过路段k的通行时间Tk,则Tk=tk′-tk;车辆通过多个路段所花费的通行时间与T′k1,T′k2,T′k3...相对应;fk表示车辆经过路段k起点的时刻对应的时段,
Figure FDA0003442514300000041
利用下式计算车辆通过路段k的通行时间Tk
III) Calculate the travel time required for the vehicle to pass through the optimized path. The optimized path includes multiple road segments, and the multiple road segments are numbered as 1, 2, 3, . . . , k; represented by [t k , t k′ ] The travel time Tk of the vehicle passing through the road section k , then Tk = tk′ - tk ; the travel time spent by the vehicle passing through multiple road sections corresponds to T′k1 , T′k2 , T′k3 . . . f k represents the time period corresponding to the time when the vehicle passes the starting point of road segment k,
Figure FDA0003442514300000041
Use the following formula to calculate the travel time T k of the vehicle passing through the road segment k :
Figure FDA0003442514300000042
Figure FDA0003442514300000042
m的取值满足如下约束:
Figure FDA0003442514300000043
The value of m satisfies the following constraints:
Figure FDA0003442514300000043
ΔT表示时段长度,t0表示开始时刻;ΔT represents the length of the period, and t 0 represents the start time; IV)利用下式计算处理路况变化所需花费时间:gn(r)=bn(r)+cn(r)+kn(r)+hn(r);IV) Use the following formula to calculate the time it takes to process changes in road conditions: g n (r)=b n (r)+c n (r)+k n (r)+h n (r);
Figure FDA0003442514300000044
Figure FDA0003442514300000044
Figure FDA0003442514300000045
Figure FDA0003442514300000045
θn,n′表示数据从车辆Vn传递到车辆Vn′所经过的车辆数;θ n, n' represents the number of vehicles through which data is transmitted from vehicle V n to vehicle V n' ;
Figure FDA0003442514300000046
Figure FDA0003442514300000046
Figure FDA0003442514300000047
Figure FDA0003442514300000047
Figure FDA0003442514300000048
Figure FDA0003442514300000048
M表示边缘节点数量,D表示边缘计算设备集合,D={d1,d2,...,dm},V表示车辆集合,V={v1,v2,...,vn},λV2V表示基于V2V方法的数据传输速率,λV2I表示基于V2I方法的数据传输速率,ωn表示被传输计算任务的数据量,vn表示编号为n的配送车辆,dm表示编号为m的边缘计算设备,ln表示计算任务n是否在某边缘计算设备上进行处理,ln取值为0或1,p表示每个边缘计算设备的处理能力,un是计算任务n所请求的资源数量。M represents the number of edge nodes, D represents the set of edge computing devices, D={d 1 , d 2 , ..., d m }, V represents the set of vehicles, V={v 1 , v 2 , ..., v n }, λ V2V represents the data transmission rate based on the V2V method, λ V2I represents the data transmission rate based on the V2I method, ω n represents the data amount of the transmitted computing task, v n represents the delivery vehicle numbered n, and d m represents the number of m edge computing device, ln indicates whether computing task n is processed on an edge computing device, ln is 0 or 1, p indicates the processing capability of each edge computing device, u n is the request of computing task n number of resources. V)利用下式计算完成配送任务整体所需时间:V) Use the following formula to calculate the time required to complete the overall delivery task:
Figure FDA0003442514300000049
K表示编号为r_s的路径所经过的路段总数;R表示至完成配送时,所处理过的由路况变化而对道路通行时间造成恶劣影响的道路事件总数。
Figure FDA0003442514300000049
K represents the total number of road segments passed by the route numbered r_s; R represents the total number of road events that have been processed by the change of road conditions and have a bad impact on the road transit time until the delivery is completed.
6.根据权利要求1所述的基于云边端协同的动态车辆配送路径优化方法,其特征在于,步骤S5的具体实现过程包括:6. The dynamic vehicle distribution path optimization method based on cloud-side-terminal collaboration according to claim 1, wherein the specific implementation process of step S5 comprises: a)所有配送车辆根据初始路径规划,开始配送;a) All delivery vehicles start delivery according to the initial route planning; b)将需要配送的需求点按r*r划分为多个配送区域,并为每个所述配送区域编号,r为单位长度;b) Divide the demand points that need to be distributed into multiple distribution areas according to r*r, and number each of the distribution areas, and r is the unit length; c)边缘结点监听道路状况发生的变化,按照时间长度将产生影响路况的事件记录到events列表,events列表中的每个event对通往各配送区域内需求点的道路的通行时间产生不同大小的影响;c) The edge nodes monitor changes in road conditions, and record the events that affect road conditions in the events list according to the length of time. Each event in the events list has different sizes for the travel time of the road leading to the demand point in each delivery area. Impact; d)将对应配送区域内路段的道路通行时间变更为影响后的值;d) Change the road travel time of the road section in the corresponding delivery area to the affected value; e)判断当前时间片段内是否需要对原规划路径进行调整;如需调整,按照寻找两点间最短路径的A*算法进行再规划;e) Judging whether the original planned path needs to be adjusted in the current time segment; if adjustment is required, re-planning is performed according to the A* algorithm for finding the shortest path between two points; f)对其余每个时间片段,重复步骤a)~f),直至完成全部配送任务,即所有车辆将初始规划中所有的需求点都遍历完,并回到配送中心。f) For each other time segment, repeat steps a) to f) until all distribution tasks are completed, that is, all vehicles have traversed all the demand points in the initial planning and return to the distribution center. 7.一种计算机装置,包括存储器、处理器及存储在存储器上的计算机程序;其特征在于,所述处理器执行所述计算机程序,以实现权利要求1~6之一所述方法的步骤。7. A computer device comprising a memory, a processor and a computer program stored in the memory; characterized in that, the processor executes the computer program to implement the steps of the method according to any one of claims 1 to 6. 8.一种计算机程序产品,包括计算机程序/指令;其特征在于,该计算机程序/指令被处理器执行时实现权利要求1~6之一所述方法的步骤。8. A computer program product, comprising a computer program/instruction; characterized in that, when the computer program/instruction is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented. 9.一种计算机可读存储介质,其上存储有计算机程序/指令;其特征在于,所述计算机程序/指令被处理器执行时实现权利要求1~6之一所述方法的步骤。9. A computer-readable storage medium on which computer programs/instructions are stored; characterized in that, when the computer programs/instructions are executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
CN202111640629.9A 2021-12-29 2021-12-29 Cloud edge end cooperation-based dynamic vehicle distribution path optimization method and device Active CN114399095B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111640629.9A CN114399095B (en) 2021-12-29 2021-12-29 Cloud edge end cooperation-based dynamic vehicle distribution path optimization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111640629.9A CN114399095B (en) 2021-12-29 2021-12-29 Cloud edge end cooperation-based dynamic vehicle distribution path optimization method and device

Publications (2)

Publication Number Publication Date
CN114399095A true CN114399095A (en) 2022-04-26
CN114399095B CN114399095B (en) 2024-07-26

Family

ID=81229660

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111640629.9A Active CN114399095B (en) 2021-12-29 2021-12-29 Cloud edge end cooperation-based dynamic vehicle distribution path optimization method and device

Country Status (1)

Country Link
CN (1) CN114399095B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114565195A (en) * 2022-04-27 2022-05-31 苏州美集供应链管理股份有限公司 Local feedback and cloud global optimization combined allocation system and method
CN115578879A (en) * 2022-09-14 2023-01-06 江苏天一航空工业股份有限公司 Vehicle optimal path navigation control method and system based on Internet of things
CN116307332A (en) * 2023-05-16 2023-06-23 武汉大学人民医院(湖北省人民医院) A method and device for real-time delivery of medicines
CN116739467A (en) * 2023-06-16 2023-09-12 暨南大学 Circulating delivery path planning method, device and medium based on cloud edge cooperation
CN117010670A (en) * 2023-10-07 2023-11-07 普迪智能装备有限公司 Intelligent logistics distribution system and method
CN117894201A (en) * 2024-03-11 2024-04-16 湘江实验室 Road traffic guidance method, device and related equipment based on global traffic information
CN118966954A (en) * 2024-07-30 2024-11-15 广州市安开信息科技有限公司 A takeaway delivery time optimization method, storage medium, and computer for colleges and universities
CN119358983A (en) * 2024-12-25 2025-01-24 万和通物流集团有限公司 A vehicle dispatching management method and system based on logistics orders

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130054050A1 (en) * 2011-08-24 2013-02-28 Dimitar Petrov Filev Methods and apparatus for a vehicle to cloud to vehicle control system
CN111191813A (en) * 2019-10-14 2020-05-22 重庆邮电大学 Vehicle distribution path optimization method based on cargo load and soft time window limitation
CN111882099A (en) * 2020-05-11 2020-11-03 武汉理工大学 Logistics distribution path planning method based on variable neighborhood parallel annealing algorithm
CN113469431A (en) * 2021-06-29 2021-10-01 深圳市点购电子商务控股股份有限公司 Method, device and computer readable storage medium for recommending logistics distribution path

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130054050A1 (en) * 2011-08-24 2013-02-28 Dimitar Petrov Filev Methods and apparatus for a vehicle to cloud to vehicle control system
CN111191813A (en) * 2019-10-14 2020-05-22 重庆邮电大学 Vehicle distribution path optimization method based on cargo load and soft time window limitation
CN111882099A (en) * 2020-05-11 2020-11-03 武汉理工大学 Logistics distribution path planning method based on variable neighborhood parallel annealing algorithm
CN113469431A (en) * 2021-06-29 2021-10-01 深圳市点购电子商务控股股份有限公司 Method, device and computer readable storage medium for recommending logistics distribution path

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114565195B (en) * 2022-04-27 2022-08-19 苏州美集供应链管理股份有限公司 Local feedback and cloud global optimization combined allocation system and method
CN114565195A (en) * 2022-04-27 2022-05-31 苏州美集供应链管理股份有限公司 Local feedback and cloud global optimization combined allocation system and method
CN115578879A (en) * 2022-09-14 2023-01-06 江苏天一航空工业股份有限公司 Vehicle optimal path navigation control method and system based on Internet of things
CN115578879B (en) * 2022-09-14 2023-12-08 江苏天一航空工业股份有限公司 Vehicle optimal path navigation control method and system based on Internet of things
CN116307332A (en) * 2023-05-16 2023-06-23 武汉大学人民医院(湖北省人民医院) A method and device for real-time delivery of medicines
CN116307332B (en) * 2023-05-16 2023-08-04 武汉大学人民医院(湖北省人民医院) Real-time medicine distribution method and device
CN116739467B (en) * 2023-06-16 2024-02-02 暨南大学 Circular pickup and delivery path planning method, device and medium based on cloud-edge collaboration
CN116739467A (en) * 2023-06-16 2023-09-12 暨南大学 Circulating delivery path planning method, device and medium based on cloud edge cooperation
CN117010670A (en) * 2023-10-07 2023-11-07 普迪智能装备有限公司 Intelligent logistics distribution system and method
CN117010670B (en) * 2023-10-07 2024-06-07 普迪智能装备有限公司 Intelligent logistics distribution system and method
CN117894201A (en) * 2024-03-11 2024-04-16 湘江实验室 Road traffic guidance method, device and related equipment based on global traffic information
CN118966954A (en) * 2024-07-30 2024-11-15 广州市安开信息科技有限公司 A takeaway delivery time optimization method, storage medium, and computer for colleges and universities
CN119358983A (en) * 2024-12-25 2025-01-24 万和通物流集团有限公司 A vehicle dispatching management method and system based on logistics orders

Also Published As

Publication number Publication date
CN114399095B (en) 2024-07-26

Similar Documents

Publication Publication Date Title
CN114399095A (en) Dynamic vehicle distribution path optimization method and device based on cloud-edge-device collaboration
Lin et al. Analysis and optimization of urban public transport lines based on multiobjective adaptive particle swarm optimization
Zhang et al. Balancing energy consumption and reputation gain of UAV scheduling in edge computing
CN105808877B (en) A kind of public transport network distribution method based on website accumulative capacity
CN110119839A (en) A kind of Urban Road Traffic Accidents emergency management and rescue paths planning method
Sun et al. Dynamic path planning algorithms with load balancing based on data prediction for smart transportation systems
Chen et al. Modeling of emergency supply scheduling problem based on reliability and its solution algorithm under variable road network after sudden‐onset disasters
Qin et al. Multi-agent reinforcement learning-based dynamic task assignment for vehicles in urban transportation system
CN102136104A (en) Load balance and Lin-Kernighan (LK) algorithm based vehicle route planning method
CN101789096A (en) Material flow simulation optimization method in steel making-continuous casting production based on target guiding
CN114626718B (en) A method for agricultural machinery scheduling based on order resource sharing and agricultural machinery resource sharing
CN111882171A (en) Intelligent scheduling system and method for scenic spot sightseeing vehicle based on demand prediction
Dai et al. A balanced assignment mechanism for online taxi recommendation
CN119647912B (en) Garbage truck real-time monitoring and remote scheduling method based on Internet of things
Li et al. Competition and cooperation: Global task assignment in spatial crowdsourcing
CN116524715A (en) Rolling double-layer planning method combining trunk line green wave coordination and emergency path decision
CN109002901A (en) A kind of province ground county's integration electric network information total management system and device
Withanawasam et al. Multi-agent based road traffic control optimization
Kanamori et al. Evaluation of traffic management strategies with anticipatory stigmergy
Li et al. Dynamic repositioning in dock-less bike-sharing system: A multi-agent reinforcement learning approach
Zhu et al. An edge-assisted vehicle routing method based on game-theoretic multiagent learning
Ge Optimal path selection of multimodal transport based on Ant Colony Algorithm
Liu Research on logistics distribution path planning based on genetic algorithm
Zhai A Snowmelt Optimization Algorithm Applied to Green Low Carbon Logistics Pathways Optimization Problems.
Khodadadi et al. Improve traffic management in the vehicular ad hoc networks by combining ant colony algorithm and fuzzy system

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