Particle swarm optimization method and system for solving path planning of collaborative distribution

Through the weighted particle swarm optimization algorithm and simulated annealing method, the collaborative delivery path of trucks and drones is optimized, which solves the constraint problem in collaborative delivery path planning of trucks and drones, improves the path quality and efficiency, and achieves Efficient logistics and distribution.

CN115577833BActive Publication Date: 2024-09-24SUZHOU UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211175308.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-26
Publication Date
2024-09-24
Estimated Expiration
2042-09-26

AI Technical Summary

Technical Problem

It is difficult for existing technology to effectively solve the problem of collaborative delivery path planning between trucks and drones, especially when considering the constraints of the drone's maximum cargo capacity and maximum travel time, the constraints of synchronization with the truck's rendezvous and separation, and the fact that some customer points are unavailable. In the case of human-machine or truck service, it is impossible to determine the access node, starting point and recovery point of the drone, resulting in the inability to coordinate and synchronize the delivery time, and the traditional particle swarm optimization algorithm has poor local search capabilities and is prone to falling into local optima.

Method used

The weighted particle swarm optimization algorithm and simulated annealing method are used to initialize the problem model of collaborative delivery of trucks and drones. By cutting sub-cases and inserting drone nodes, the arrangement sequence of drone nodes is updated to optimize trucks and drones. Drone paths to achieve the goals of shortest delivery time and minimizing costs.

Benefits of technology

It improves the quality of the optimal path, shortens the solution time, avoids falling into the local optimal solution, realizes efficient path planning for collaborative delivery of trucks and drones, reduces carbon emissions, and improves logistics distribution efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115577833B
    Figure CN115577833B
Patent Text Reader

Abstract

The present invention relates to the field of logistics distribution, and discloses a particle swarm optimization method and system for solving the path planning of collaborative distribution. The method includes establishing a problem model of collaborative distribution of trucks and drones, initializing the arrangement sequence of customer points that need to be served; dividing sub-cases according to the customer points that can be served by drones in the arrangement sequence, using drones and trucks for collaborative distribution of each sub-case to obtain the truck path and drone path in the sub-case distribution, and obtaining the complete truck path and all drone paths after completing the distribution of all sub-cases; using a weighted particle swarm optimization algorithm and simulated annealing method to update the arrangement sequence with drone nodes and re-dividing the sub-cases to determine the drone path to obtain the optimal path; the system includes an initialization module, a sub-case division module and an optimal path module. The present invention can realize the path planning of collaborative distribution including drones and trucks, improve the quality of the optimal path, and shorten the solution time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of logistics distribution, and in particular to a particle swarm optimization method and system for solving path planning of collaborative distribution. Background Art

[0002] With the development of my country's economy, the logistics industry has ushered in a huge take-off. However, according to big data, the logistics distribution cost of the "last mile" has accounted for more than 30% of the total cost. Promoting logistics cost reduction and efficiency improvement and doing a good job in last mile route planning are challenges facing my country's logistics industry. The rapid development of drone technology has opened the door to many innovative applications in the fields of logistics and transportation, and has applications in defense, public safety and security, health care, forestry and agriculture. After Amazon announced its plan to use drones for product delivery in the field of logistics and distribution, drones for product delivery have received much attention. Traditional fossil fuel trucks are increasingly restricted. Studies have shown that urban logistics choose to complete logistics distribution under effective intervention measures such as electrification and autonomous driving, which can reduce last mile emissions and traffic congestion by 30%; at the economic level, drone transportation costs are lower than traditional transportation tools such as trucks. The rural market has huge consumption potential and broad development prospects. Rural areas are sparsely populated and delivery is inconvenient, but drones can arrive quickly and at low cost. Food, groceries, household goods and even medical supplies all need to reduce direct contact between people, and drone transportation can perfectly solve this problem. Therefore, whether in urban logistics or in remote rural markets, how to solve the path planning problem of traditional truck delivery and drone collaborative delivery has become the focus of research in various transportation industries.

[0003] At present, there are many methods for solving the truck path planning problem, but few methods can be used to solve the path planning problem based on the coordinated delivery of trucks and drones. Traditional methods used to solve the truck path planning problem include neighborhood search, taboo search, genetic algorithm, ant colony algorithm, etc. Although these methods can solve the traditional truck path planning problem, they cannot solve the path planning problem based on the coordinated delivery of trucks and drones. Because in the path planning problem based on the coordinated delivery of trucks and drones, the drone has the constraints of maximum cargo capacity and maximum travel time, as well as the constraints of merging and separating synchronization with the truck. In addition, unlike the traditional path planning problem where all customer points are served by trucks, in the path planning problem of the coordinated delivery of trucks and drones, some customer points that meet the drone service conditions may be served by drones or trucks. Customers who do not meet the drone service conditions can only be served by trucks.

[0004] The particle swarm optimization algorithm (PSO) was proposed by Eberhart and Kennedy [1] in 1995 (see the document "Kennedy J, Eberhart R. Particle Swarm Optimization [C] / / Icnn95-international Conference on Neural Networks. IEEE, 1995."). It originated from the study of the predation behavior of bird flocks. The basic core of the particle swarm optimization algorithm is to use the information sharing of individuals in the group to make the movement of the entire group evolve from disorder to order in the problem-solving space, thereby obtaining the optimal solution to the problem. In 2003, it was applied by Wang [2] to solve the TSP (Traveling Salesman Problem) problem (see the document "KP Wang, L. Huang, CG Zhou, W. Pang, Particle swarm optimization for traveling salesman problem, International Conference on Machine Learning and Cybernetics 3 (2003) 1583–1585."). In subsequent research work, the particle swarm optimization algorithm was widely used to solve various variants of TSP problems such as time window problems and capacity constraints.

[0005] The particle swarm optimization algorithm mainly consists of the following parts:

[0006] Table 1 Parameter composition of particle swarm optimization algorithm

[0007] N Group size <![CDATA[C1,C2]]> Learning factor (acceleration constant) ω Inertia Weight <![CDATA[V,V max ]]> Particle speed, maximum particle speed <![CDATA[P best ]]> Individual extreme value <![CDATA[g best ]]> Global extreme value <![CDATA[r1,r2]]> Uniform random number in [0, 1]

[0008] The process of particle swarm optimization algorithm is as follows Figure 1 As shown, the basic process includes:

[0009] (1) Initialize all particles, their velocities and positions, and set the historical optimal P of the particles best Set as the current position, and the best particle in the group as the current g best ;

[0010] (2) In each iteration, the fitness function value of each particle is calculated. For each particle, the position is a potential solution to the problem;

[0011] (3) If the particle's current fitness function value is better than the historical optimal value, then the historical optimal value will be replaced by the current position;

[0012] (4) If the particle's historical optimum is better than the global optimum, the global optimum will be replaced by the particle's historical optimum;

[0013] (5) The j-th dimension velocity and position of each particle i are updated according to the following formulas:

[0014] v ij (t+1)=v ij (t)+c1r1(t)[p ij (t)-x ij (t)]+c2r2(t)[p gj (t)-x ij (t)],

[0015] x ij (t+1)=x ij (t)+v ij (t+1);

[0016] Among them, V ij (t) represents the velocity of particle i at time t, i = 1, 2, 3...N; r1(t) and r2(t) represent uniform random numbers between 0 and 1, which are used to increase the randomness of particle flight; p ij (t) represents the individual optimal solution of particle i at time t, x ij (t) represents the position of particle i at time t, p gj (t) represents the optimal solution of the group at time t, x ij (t+1) represents the updated position of particle i at time t+1.

[0017] However, the particle swarm optimization algorithm used in the prior art is a research object of traditional cars, and all customer points are delivered by trucks. The nodes that drones can serve and the synchronous release calculation of launching drones and recovering drones at truck service customer points are not considered. The traditional particle swarm optimization algorithm cannot be used to solve the path planning problem based on the coordinated delivery of trucks and drones. It cannot adapt to the constraints of collaborative delivery, cannot determine the drone access nodes, cannot determine the drone departure point and recovery point, and coordinate the synchronous delivery time (cannot be solved); and the traditional particle swarm optimization algorithm has poor local search capabilities and is prone to fall into local optimality.

[0018] Path planning belongs to the research area of ​​operations research and is an NP-hard problem. Figure 2The problem model of truck and drone collaborative delivery shown in the figure includes 6 customer points and 1 distribution center. By building a mixed integer programming model for this problem and inputting the model into a general commercial solution software in the form of code, the optimal solution, that is, the exact result, can be obtained quickly. CPLEX and Gurobi are two commercial softwares, and the core algorithm they are based on is the branch and bound method. Branch and bound is an exact solution method that can be applied to solving small-scale problems, but if the scale of the problem becomes 12 customer points, the commercial solution software cannot obtain an exact solution in 3600s after testing. If the scale of the problem is expanded to 40 or 50, then the commercial solution software cannot obtain the optimal solution, or it will take hundreds of years with the current computing power of computers. Then it is necessary to design a method to obtain a result close to the optimal solution in a relatively short acceptable time, that is, an approximate solution. This method that does not rely on the exact solution in traditional operations research is collectively called a heuristic method or an empirical method. At present, the research on the path planning problem of general trucks has become mature, and some relatively effective heuristic solution methods have emerged, such as simulated annealing, genetic algorithm, ant colony algorithm, particle swarm algorithm, taboo search, etc. These methods can be used to solve large-scale path planning problems. The solution they seek is a solution close to the optimal solution, and in most cases it may be the optimal solution. However, when the main object is switched to truck and drone collaborative delivery, the above traditional heuristic methods cannot effectively adapt and solve. The emergence of drones means that customer points may be served by drones or trucks, and drones need to be launched and recovered by staff at truck points, resulting in drone launch points and drone recovery points. The number of operations to determine drone service nodes and drone routes has greatly increased.

[0019] Therefore, in addition to being unable to solve the path planning problem based on the coordinated delivery of trucks and drones, the traditional heuristic algorithm cannot achieve a balance between getting closer to the optimal solution and shortening the solution time. If you want to get closer to the optimal solution, you need to increase the number of iterations and the amount of search, which will inevitably increase the computer processing time; if you want to shorten the solution time, you need to reduce the number of searches, which will also affect the quality of the optimal solution. There is no effective search mechanism in the existing technology to find a better quality solution with a limited number of searches. Summary of the invention

[0020] To this end, the technical problem to be solved by the present invention is to overcome the deficiencies in the prior art and provide a particle swarm optimization method and system for solving path planning for collaborative distribution, which can realize path planning for collaborative distribution including drones and trucks, improve the quality of the optimal path, and shorten the solution time.

[0021] In order to solve the above technical problems, the present invention provides a particle swarm optimization method for solving the path planning of collaborative distribution, comprising:

[0022] A problem model involving truck and drone collaborative delivery is established, and the permutation sequence of customer points that need to be served is initialized. All customer points in the initialized permutation sequence are delivered by trucks.

[0023] According to the customer points that can be served by drones in the arrangement sequence, sub-cases are divided, and drones and trucks are used to coordinate the delivery of each sub-case to obtain an arrangement sequence with drone nodes;

[0024] The weighted particle swarm optimization algorithm and simulated annealing method are used to update the arrangement sequence of drone nodes to obtain the optimal path.

[0025] Preferably, the problem model involving truck and drone coordinated delivery is specifically:

[0026] In a region, a truck carries at least one drone to deliver goods to customers. Each customer point has its own needs. Both trucks and drones can serve customers. The model goal is to complete the delivery in the shortest time and minimize the cost.

[0027] The conditions to be met are:

[0028] Condition 1: A drone can only visit one customer per dispatch, but a truck can visit multiple customers while the drone is flying;

[0029] Condition 2: The drone maintains a constant flight during flight;

[0030] Condition 3: The drone can be collected by a truck at a customer node and depart again;

[0031] Condition 4: The drone cannot meet up with the truck between the preset nodes;

[0032] Condition 5: No truck may visit any customer again;

[0033] Condition 6: The drone path ends at the base, after which the drone will cease to be used;

[0034] Condition 7: When the UAV and the truck are traveling in a merged state, the UAV is transported by the truck;

[0035] Condition 8: Regardless of the time it takes for the drone to deliver goods, the time it takes to launch and recover the drone is constant, and the drone's flight time is constant.

[0036] Preferably, the example of dividing the customer points that can be served by the drone in the arrangement sequence is as follows:

[0037] If the delivery demand of a customer point is less than the maximum cargo capacity of the drone, the node is defined as a node that can be served by the drone;

[0038] The initialized path for delivery only by trucks is divided into sub-examples according to the nodes that can be served by drones in the customer points, and at least one sub-example containing nodes that can be served by drones is obtained.

[0039] Preferably, the sub-example includes a node that can be served by a drone and the number of nodes included in the sub-example is greater than or equal to 3.

[0040] Preferably, the arrangement sequence of nodes with drones is obtained by using drones and trucks to perform collaborative delivery on each sub-case, specifically:

[0041] Each customer point in the sequence is arranged to include the delivery arrival time and delivery departure time. A drone node is inserted into each sub-case. The truck path and drone path of the sub-case are determined according to different drone launch points and drone recovery points. The time it takes for the sub-case to complete the delivery under different paths is calculated.

[0042] If there is a truck waiting for the drone to arrive or a drone arriving at the drone recovery point, the larger value of the drone arrival time and the truck arrival time at the drone recovery point is used as the arrival time of the point, and the total delivery time of different paths is compared. The optimal drone path and truck path for a single sub-case are determined with the shortest total delivery time as the target value.

[0043] Preferably, the weighted particle swarm optimization algorithm and simulated annealing method are used to update the arrangement sequence of drone nodes to obtain the optimal path, specifically:

[0044] In each round of iterative updating of the permutation sequence of drone nodes to obtain the optimal path, a new permutation sequence of drone nodes is calculated using a weighted particle swarm optimization algorithm, and the corresponding truck path and drone path are obtained after the sub-case is cut and the drone operation is inserted. The simulated annealing method is used to select whether to use the new permutation sequence of drone nodes and its corresponding truck path and drone path to update the optimal solution;

[0045] According to the arrangement sequence at this time, the next round of iteration is performed to update the arrangement sequence with drone nodes and finally obtain the optimal path. The update is stopped until the preset maximum number of iterations is reached, and the optimal solution at this time is used as the optimal path.

[0046] As a preferred embodiment, the new arrangement sequence x with drone nodes is calculated using a weighted particle swarm optimization algorithm. ij (t+1), specifically:

[0047] x ij(t+1)=x ij (t)+v ij (t+1),

[0048] v ij (t+1)=ω·v ij (t)+c1r1(t)[p ij (t)-x ij (t)]+c2r2(t)[p gj (t)-x ij (t)],

[0049]

[0050] Where ω is the inertia weight, x ij (t) is the permutation sequence of the current drone node, x ij (t+1) represents the new client node sequence; r1(t) and r2(t) represent uniform random numbers between 0 and 1, which are used to increase the randomness of particle flight; p ij (t) represents the sequence of customer nodes with the shortest delivery time among all positions of the individual particle, p gj (t) represents the delivery path with the shortest delivery time among all particles with deadline t; v ij (t) represents the particle motion speed of particle i at time t, v ij (t+1) represents the particle movement speed of particle i at time t+1; C1 and C2 are learning factors, t represents the current number of iterations, ω max represents the maximum inertia weight, ω min represents the minimum inertia weight, T max Indicates the maximum number of iterations.

[0051] Preferably, the simulated annealing method is used to select whether to use a new arrangement sequence of drone nodes and its corresponding truck path and drone path to update the optimal solution, specifically:

[0052] The current sequence of nodes with drones is recorded as x c , the new arrangement sequence of drone nodes calculated by the weighted particle swarm optimization algorithm is recorded as x n ;

[0053] If x n The final delivery time is less than x c The final delivery time is x n As the optimal solution for this round;

[0054] If x n The final delivery completion time is greater than or equal to x cThe final delivery time is The probability that x n As the optimal solution for this round; where f(x n ) represents x n The final delivery completion time, f(x c ) represents x c The final completion time of the distribution, T is the initial temperature of the simulated annealing algorithm.

[0055] The present invention also provides a particle swarm optimization system for solving the path planning of collaborative distribution, including an initialization module, a sub-case segmentation module and an optimal path module.

[0056] The initialization module establishes a problem model including truck and drone collaborative delivery, obtains user delivery data and initializes the arrangement sequence of customer points that need to be served, and all customer points in the initialized arrangement sequence are delivered by trucks;

[0057] The sub-case segmentation module segments sub-cases according to the customer points in the arrangement sequence that can be served by drones, and uses drones and trucks to coordinate delivery of each sub-case to obtain an arrangement sequence with drone nodes;

[0058] The optimal path module uses a weighted particle swarm optimization algorithm and a simulated annealing method to update the arrangement sequence of drone nodes to obtain the optimal path.

[0059] Preferably, the optimal path module includes a drone insertion module, a speed and position update module, and a simulated annealing module.

[0060] The drone insertion module inserts a drone node into each sub-case, determines the truck path and drone path of the sub-case according to different drone launch points and drone recovery points, and calculates the time it takes for the sub-case to complete delivery under different paths; if there is a truck waiting for the drone to arrive or a drone arrives and waits for the truck at the drone recovery point, the larger value of the drone arrival time and the truck arrival time at the drone recovery point is used as the arrival time of the point, and the total delivery time of different paths is compared, and the optimal drone path and truck path for a single sub-case is determined with the shortest total delivery time as the target value;

[0061] The update speed and position module uses a weighted particle swarm optimization algorithm to calculate a new arrangement sequence of customer points that need to be served;

[0062] The simulated annealing module uses the simulated annealing method to select whether to use the new permutation sequence of customer points that need to be served to update the optimal solution;

[0063] The optimal path module uses the optimal solution updated by the update speed and position module and the simulated annealing module as the optimal path.

[0064] The above technical solution of the present invention has the following advantages compared with the prior art:

[0065] The present invention inserts drone modules into the arrangement sequence of customer points that need to be served and divides them into sub-cases for collaborative delivery by drones and trucks. On this basis, the weighted particle swarm optimization algorithm and simulated annealing method are used to obtain the optimal path for collaborative delivery. The weighted particle swarm optimization algorithm improves the search capability and effectively avoids falling into the local optimal solution, thereby improving the quality of the optimal path and shortening the solution time. During the flight transportation process, drones are less affected by road congestion, and the transportation speed is much greater than that of ordinary trucks. The use of drones and trucks for collaborative delivery can cooperate with logistics staff to complete the delivery task in a shorter time and reduce carbon emissions. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] In order to make the content of the present invention more clearly understood, the present invention is further described in detail below according to specific embodiments of the present invention in conjunction with the accompanying drawings, wherein:

[0067] Figure 1 is the flow chart of particle swarm optimization algorithm,

[0068] Figure 2 is a schematic diagram of the problem model including truck and drone coordinated delivery established in the present invention,

[0069] Figure 3 is a flow chart of the present invention,

[0070] Figure 4 Schematic diagram of a molecular cutting example in an embodiment of the present invention,

[0071] Figure 5 is a schematic diagram of using a drone and a truck for collaborative delivery in an embodiment of the present invention.

[0072] Figure 6 Schematic diagram of customer points set up in a simulation experiment in an embodiment of the present invention. DETAILED DESCRIPTION

[0073] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.

[0074] Reference Figure 3 As shown in the flow chart, the present invention discloses a particle swarm optimization method for solving the path planning of collaborative distribution, including:

[0075] S1: Establish a problem model involving truck and drone collaborative delivery, initialize the permutation sequence of customer points that need to be served, and all customer points in the initialized permutation sequence are delivered by trucks, that is, the truck path is the sequence of all customer points, and there is no drone path.

[0076] The problem model of coordinated delivery between trucks and drones is as follows:

[0077] In a region, a truck carrying at least one drone delivers goods to several customers. Each customer point has its own needs. Both trucks and drones can serve customers. The goal is to complete the delivery time in the shortest possible time and minimize the cost. At the same time, the conditions set are:

[0078] Condition 1: A drone can only visit one customer per dispatch, but a truck can visit multiple customers while the drone is flying;

[0079] Condition 2: The drone maintains a constant flight during flight;

[0080] Condition 3: The drone can be collected by a truck at a customer node and depart again;

[0081] Condition 4: The drone cannot rendezvous with the truck between certain preset nodes;

[0082] Condition 5: No truck may visit any customer again;

[0083] Condition 6: The drone path ends at the base, after which the drone will cease to be used;

[0084] Condition 7: When the UAV and the truck are traveling in a merged state, the UAV is transported by the truck;

[0085] Condition 8: Regardless of the time it takes for the drone to deliver goods, the time it takes to launch and recover the drone is constant, and the drone's flight time is constant.

[0086] S2: Divide the sub-cases according to the customer points that can be served by drones in the arrangement sequence, use drones and trucks to coordinate the delivery of each sub-case to obtain the arrangement sequence with drone nodes, and reduce the final completion time of each sub-case to obtain the final minimum completion delivery time.

[0087] S2-1: Figure 4 As shown, the example of dividing the customer points that can be served by the drone in the arrangement sequence is as follows:

[0088] If the delivery demand of the customer point is less than the maximum cargo capacity of the drone, the node is defined as a node that can be served by the drone; the initialization path that is only delivered by trucks is divided into sub-examples according to the nodes that can be served by drones in the customer point, and at least one sub-example containing nodes that can be served by drones is obtained. Each of the sub-examples contains only one node that can be served by drones and the number of nodes contained in each sub-example is greater than or equal to 3. The number of nodes contained in each sub-example is greater than or equal to 3 to meet the drone launch nodes and drone recovery nodes required by the drone when serving the customer point. If there are two or more nodes in the sub-examples that are divided to meet the condition that the number of nodes is greater than or equal to three that can be accessed by drones, one of the points is set as a drone node, and the remaining nodes are truck nodes. When determining the departure point and recovery point of the drone in the subsequent process, only this point is considered as a drone point.

[0089] S2-2: The arrangement sequence of nodes with drones is obtained by using drones and trucks to coordinate the delivery of each sub-case, specifically:

[0090] Each customer point in the sequence is arranged to include the delivery arrival time and delivery departure time. A drone node is inserted into each sub-case. After the drone node is determined, the truck path and drone path of the sub-case are determined according to different drone launch points and drone recovery points. The time to complete the delivery of the sub-case under different paths (including pure truck paths) is calculated (i.e., the arrival time of the last node of the sub-case path).

[0091] If there is a situation where a truck is waiting for the drone to arrive or a drone arrives and waits for the truck, it is necessary to synchronize the departure time of the drone launch point and the arrival time of the drone recovery point. The larger value of the drone arrival time and the truck arrival time at the drone recovery point is used as the arrival time of the point, and the total delivery time of different paths is compared. The optimal drone path and truck path for a single sub-case are determined with the shortest total delivery time as the target value.

[0092] In this embodiment, we take the sub-example (6, 3, 1, 5) as an example (the numbers represent the numbers of the truck points or drone points), and do not calculate the drone launch and recovery time. The basic steps for collaborative delivery using drones and trucks are as follows: Figure 5 shown. Figure 5 The final completion time of the sub-examples under three different drone paths is compared ( Figure 5 The number before the square bracket is the arrival time, and the number after the bracket is the departure time). Finally, the best truck path for this sub-example is determined to be (6-3-1), and the best drone path is (6-5-1).

[0093] After completing the insertion of drones for all sub-cases in the sub-case set and determining the optimal truck path and drone path operations for the sub-cases, the complete truck path (starting from the station and ending with returning to the station), drone path, arrival time and departure time of each customer point, and the time to return to the station after completing the delivery are obtained.

[0094] S3: Use the weighted particle swarm optimization algorithm and simulated annealing (SAA) to update the arrangement sequence of drone nodes to obtain the optimal path.

[0095] In each round of iterative updating of the permutation sequence of drone nodes to obtain the optimal path, a new permutation sequence of drone nodes is calculated using a weighted particle swarm optimization algorithm, and the corresponding truck path and drone path are obtained after the sub-case is cut and the drone operation is inserted. The simulated annealing method is used to select whether to use the new permutation sequence of drone nodes and its corresponding truck path and drone path to update the optimal solution; the next round of iterative updating of the permutation sequence of drone nodes is performed according to the permutation sequence at this time, and the optimal path is finally obtained, until the preset maximum number of iterations is reached and the update is stopped, and the optimal solution at this time is used as the optimal path.

[0096] S3-1: In each round of iterative updating of the arrangement sequence of drone nodes to obtain the optimal path, a weighted particle swarm optimization algorithm is used to calculate the new arrangement sequence x of drone nodes. ij (t+1), specifically:

[0097] x ij (t+1)=x ij (t)+v ij (t+1),

[0098] v ij (t+1)=ω·v ij (t)+c1r1(t)[p ij (t)-x ij (t)]+c2r2(t)[p gj (t)-x ij (t)],

[0099]

[0100] Where t represents time, ω is the inertia weight, and x ij (t) is the permutation sequence of the current drone node, x ij (t+1) represents the new particle position of particle i at time t+1, which represents the new client node sequence in this problem; r1(t) and r2(t) represent uniform random numbers between 0 and 1, which are used to increase the randomness of particle flight; pij (t) represents the individual optimal solution of particle i at time t. In this problem, it is the customer node sequence with the shortest delivery time among all positions of the individual particle, that is, the delivery path; p gj (t) represents the global optimal solution, that is, the delivery path with the shortest delivery time among all particles with deadline t; v ij (t) represents the particle motion speed of particle i at time t, v ij (t+1) represents the particle movement speed of particle i at time t+1; C1 and C2 are learning factors, t represents the current number of iterations, ω max represents the maximum inertia weight, ω min represents the minimum inertia weight, T max Indicates the maximum number of iterations. The present invention specifically adds the inertia weight ω and adjusts ω to achieve the goal of improving the solution quality. The starting point and the end point of the customer point travel sequence in the calculated new arrangement sequence of customer points that need to be served remain unchanged, both of which are stations.

[0101] S3-2: Use simulated annealing to choose whether to use a new sequence of drone nodes to update the optimal solution:

[0102] The current sequence of nodes with drones is recorded as x c , the new arrangement sequence of drone nodes calculated by the weighted particle swarm optimization algorithm is recorded as x n ; Simulated annealing is used to determine whether to accept the newly generated solution x n , or reject the newly generated solution x n .

[0103] If x n The final delivery time is less than x c The final delivery time is x n As the optimal solution for this round (regardless of the number of trucks, the number of trucks is 1);

[0104] If x n The final delivery completion time is greater than or equal to x c The final delivery time is The probability that x n As the optimal solution for this round; where f(x n ) represents x n The target value, i.e. the time to complete the delivery, f(x c ) represents x c The final completion time of delivery, T is the initial temperature set in the simulated annealing algorithm.

[0105] S3-3: Execute steps S2 to S3-2 until the preset maximum number of iterations is reached and the update is stopped. The optimal solution at this time is used as the optimal path. The truck path and drone path corresponding to the optimal path are the optimal truck path and the optimal drone path. After each update to obtain a new sequence, the sub-cases will be cut again and the drone points will be determined. The drone points may be different for the two times, so it is necessary to insert the drone path operation into each sub-case to obtain the new truck path and drone path. Each time the particle swarm algorithm and simulated annealing update only the permutation sequence, and each sequence needs to be recalculated to obtain the truck path and drone path corresponding to the sequence. The final result is the path of the truck and drone during collaborative distribution.

[0106] The present invention also discloses a particle swarm optimization system for solving the path planning of collaborative distribution, which comprises an initialization module, a sub-case segmentation module and an optimal path module.

[0107] The initialization module establishes a problem model including truck and drone collaborative delivery, obtains user delivery data and initializes the arrangement sequence of customer points that need to be served, and all customer points in the initialized arrangement sequence are delivered by trucks. The sub-case division module divides the sub-cases according to the customer points that can be served by drones in the arrangement sequence, and uses drones and trucks to perform collaborative delivery on each sub-case to obtain an arrangement sequence with drone nodes. The optimal path module uses a weighted particle swarm optimization algorithm and simulated annealing method to update the arrangement sequence with drone nodes to obtain the optimal path.

[0108] The optimal path module includes a drone insertion module, a speed and position update module and a simulated annealing module. The drone insertion module inserts a drone node for each sub-example, determines the truck path and drone path of the sub-example according to different drone launch points and drone recovery points, and calculates the time for the sub-example to complete delivery under different paths; if there is a truck waiting for the drone to arrive or a drone arrives and waits for the truck at the drone recovery point, the larger value of the drone arrival time and the truck arrival time at the drone recovery point is used as the arrival time of the point, and the total delivery time of different paths is compared, and the optimal drone path and truck path of a single sub-example is determined with the shortest total delivery time as the target value. The speed and position update module uses a weighted particle swarm optimization algorithm to calculate the new permutation sequence of customer points that need to be served. The simulated annealing module uses the simulated annealing method to select whether to use the new permutation sequence of customer points that need to be served to update the optimal solution. The optimal path module uses the optimal solution updated by the speed and position update module and the simulated annealing module as the optimal path.

[0109] The overall process of the system is as follows:

[0110] Step 1: Input population size N and maximum number of iterations T m□□ , maximum inertia weight ω max , minimum inertia weight ω min , current iteration number t=0, C1, C2, maximum particle speed V max And other basic parameters.

[0111] Step 2: Initialize the population, initialize the initial solution X and current speed V of each particle in the population, the position of each particle represents a permutation of all customer points, the starting point and the end point are both stations; the initial solution X is completed by the truck, and the current optimal solution p is recorded best , the global optimal solution g best ; The fitness value of the initial solution X is recorded as infinite; record the corresponding truck path set and drone path set (the drone path set is an empty set at this time).

[0112] Step 3: Traverse the current position X of all particles. When the demand of a customer point in the sequence is less than the maximum load of the drone, define the point as a node accessible to the drone. A sub-case is obtained by segmenting the nodes that can be accessed by the drone and the number of sub-case elements is greater than or equal to 3. The remaining nodes in the sequence are segmented in the same way until the end. Finally, a sub-case set is obtained. The sub-case set may include (1) sub-cases that contain nodes that can be accessed by drones and (2) sub-cases that reach the end but have no nodes that can be accessed by drones.

[0113] Step 4: For the sub-cases in the sub-case set that have not completed the insertion of drone calculations, calculate the sub-case delivery time when the sub-case is fully served by trucks, obtain the truck path of the sub-case and the current arrival time and departure time of each point in the sub-case, without drone paths, and the arrival time of the last point in the sub-case is the current delivery time of the sub-case.

[0114] Step 5: If the sub-case contains nodes that can be accessed by the drone, go to step 6, otherwise go to step 10, and the sub-case is marked as completed for inserting the drone calculation.

[0115] Step 6: Determine a node in the sub-case that can be accessed by the drone as a drone-accessible node, and the remaining sub-case customer point sequence constitutes a new truck path.

[0116] Step 7: Determine any customer point on the truck path as the drone launch point, and a customer point on the truck path that is visited by the truck after this point as the drone recovery point (the total round-trip distance of the drone meets the drone's range). The three points constitute the drone path plan, and the used drone path plans are recorded. Calculate the current arrival time and departure time of each point in the new sub-case, and obtain the new sub-case delivery time and drone path.

[0117] Step 8: Compare the current delivery time with the new delivery time. If the current delivery time is less than the new delivery time, keep the current truck and drone routing plan and related data. If the current delivery time is greater than the new delivery time, update the current truck and drone routing plan and related data.

[0118] Step 9: Determine whether there are other drone path plans different from the one recorded in step 7. If so, return to step 7; otherwise, go to step 10.

[0119] Step 10: Add the truck path and drone path to the truck path set respectively, and record the relevant time of each point in the sub-case.

[0120] Step 11: Determine whether all sub-cases in the sub-case set have completed the drone insertion operation. If so, go to step 12, otherwise return to step 4.

[0121] Step 12: After completing the insertion of drone operations in all sub-cases, obtain the time when the truck and drone return to the station, that is, the new delivery completion time and all truck paths and drone paths.

[0122] Step 13: Evolutionarily compare the new delivery completion time with the current optimal solution, use the simulated annealing algorithm to accept the new solution, and update the current optimal solution p best .

[0123] Step 14: Update the global optimal solution g best .

[0124] Step 15: If the current iteration number t ≥ T max , exit the algorithm process, output X, and the corresponding truck path, drone path, delivery completion time and other related data. Otherwise, go to step 16.

[0125] Step 16: According to the number of iterations t and the maximum number of iterations T max , maximum inertia weight ω max , minimum inertia weight ω min , the particle's current velocity V and other data are used to update the particle's velocity and position, and a new customer point sequence X is obtained, t=t+1, and the process goes to step 3.

[0126] The present invention inserts drone modules into the arrangement sequence of customer points that need to be served and divides them into sub-cases for collaborative delivery by drones and trucks. On this basis, the weighted particle swarm optimization algorithm and simulated annealing method are used to obtain the optimal path for collaborative delivery. The weighted particle swarm optimization algorithm improves the search capability and effectively avoids falling into the local optimal solution, thereby improving the quality of the optimal path and shortening the solution time. During the flight transportation process, drones are less affected by road congestion, and the transportation speed is much greater than that of ordinary trucks. The use of drones and trucks for collaborative delivery can cooperate with logistics staff to complete the delivery task in a shorter time and reduce carbon emissions.

[0127] In order to further illustrate the beneficial effects of the present invention, in this embodiment Figure 6 The simulation experiment is carried out using the eight customer points shown in the figure. When a single truck performs a delivery task, the delivery time is 60 units of time, while when a truck and a drone collaborate to deliver the task, the delivery time is 33 units of time, which reduces the delivery time by 45%.

[0128] Next, in this embodiment, a scenario consisting of 11 customers and 1 station is set.

[0129] The number of (customer points) is 1-11, and the number of a station is 0. The unit speed of the truck is 1, and the unit speed of the drone is 3. Because the launch time of the drone at the launch point and the recovery time at the recovery point are small, they are ignored in this embodiment. The data of the customer points and stations are set as shown in Table 2:

[0130] Table 2 Customer point data setting table

[0131]

[0132] Calculate the OD distance matrix d for all numbers ij OD refers to the distance matrix between any two points; and the truck time OD matrix TT is obtained according to the truck speed and the drone speed respectively. ij OD matrix TD with drone time ij (Keep 1 significant digit after the decimal point). Set the maximum number of iterations T max is 100, and the experimental parameter values ​​are shown in Table 3:

[0133] Table 3 Experimental parameter settings

[0134] name value <![CDATA[Maximum inertia weight ω max > 0.9 <![CDATA[Learning factor C1]]> 3 <![CDATA[Maximum particle velocity V max > 2 Maximum driving range of drone 14 <![CDATA[Minimum inertia weight ω min > 0.4 <![CDATA[Learning factor C2]]> 5 Population size N 50 Maximum UAV load C 8

[0135] (1) Initial solution generation

[0136] Use random numbers to initialize the initial solutions of all particles. Take particle 1 as an example, the initial solution X = [0,9,10,2,3,6,4,8,5,1,11,7,0], the truck routes Truckroutess = [0,9,10,2,3,6,4,8,5,1,11,7,0], there is no drone route, and the initial solution X is used as the current solution X. Perform the same operation on other particles.

[0137] (2)Cut numerator examples

[0138] The current solution is divided into sub-examples, and the resulting set of sub-examples is [[0,9,10],[9,2,3,6],[3,4,8],[8,5,1,11,7,0]]. The same operation is performed on other particles.

[0139] (3) Insert the drone

[0140] The sub-case [0,9,10] is inserted with a drone. The demand of customer point 10, 7, is less than the maximum load of the drone, 8, and customer point 10 is a node that can be accessed by the drone. The delivery completion time of the sub-case [0,9,10] single truck is 38. After inserting the drone, the truck path is [0,9]. There is only one solution for the drone path, [0,10,9], which meets the drone endurance condition. The delivery completion time is 33. 33<38, so the truck path after the drone insertion operation is [0,9], and the drone path is [0,10,9]. The same drone insertion operation is performed on [9,2,3,6]. Customer point 6 is a node that can be accessed by the drone. After the previous sub-case is completed, the delivery completion time of the sub-case [9,2,3,6] single truck is 97. After inserting the drone, the truck path is [9,2,3], and the drone path can be [9,6,2], [9,6,3], [2,6,3]; after deleting the drone paths that do not meet the drone endurance conditions and comparing the completion time points of all feasible drone paths; the completion time point of this sub-example is 87, the truck path is [9,2,3], and the drone path is [2,6,3]. After the same drone insertion operation is performed on the remaining sub-examples, all truck paths, drone paths and completion time after the truck returns to the station are obtained: Truckroutes = [[0,9], [9,2,3], [3,8], [8,5,1,11,7,0]]; Droneroutes = [[0,10,9], [2,6,3], [3,4,8]], and the completion time is 231. The same operation is performed on other particles.

[0141] (3) Update p best With g best

[0142] The current solution X has a set of truck paths [[0,9],[9,2,3],[3,8],[8,5,1,11,7,0]]; a set of drone paths [[0,10,9],[2,6,3],[3,4,8]], and the delivery time is 231, which is smaller than the optimal solution p of the original population. best The fitness value of p is updated best = current solution X; if the fitness value of the current solution X is greater than the optimal solution p of the original population best The fitness value of the population is then determined based on the simulated annealing algorithm to determine whether to update the optimal solution p of the population. best If the fitness value of the current solution X is less than the original global optimal solution g best The fitness value of g is updated best = current solution X. After calculating the fitness values ​​of all particles, the optimal solution p for each population (here 50) is obtained. best and the global optimal solution g best And the corresponding truck path and drone path.

[0143] (3) First Iteration

[0144] According to the speed and position update module, when X = [0, 9, 10, 2, 3, 6, 4, 8, 5, 1, 11, 7, 0], the current solution X = [0, 1, 11, 3, 5, 8, 4, 7, 2, 6, 9, 10, 0] is updated. After the same sub-case splitting and drone insertion operations, the truck route set Truckroutes = [[0, 1, 11, 3, 5, 8], [8, 7, 2], [2, 9], [9, 0]] and the drone route Droneroutes = [[5, 4, 8], [7, 6, 2], [2, 10, 9]] of the current solution X are obtained. The final delivery time is 222. 222 < 231, the fitness value of the current solution X is less than the optimal solution p of the original population. best The fitness value of the population is updated to update the optimal solution p best = = [0,1,11,3,5,8,4,7,2,6,9,10,0], and the corresponding truck route set Truckroutes = [[0,1,11,3,5,8],[8,7,2],[2,9],[9,0]] and drone route Droneroutes, and other particles perform the same operation. After completing the first iteration of all particles, the global optimal solution g is obtained. best And the corresponding truck path and drone path. The number of iterations increases by 1.

[0145] (4) 10th iteration

[0146] Get the global optimal solution g best=[0,8,3,5,4,1,2,6,7,9,11,10,0], Truckroutes = [[0,8,3,5],[5,1,2],[2,7,9,11],[11,0]], Droneroutes = [[8,4,5],[1,6,2],[9,10,11]], and the delivery completion time is 151.

[0147] (5) 20th iteration

[0148] Get the global optimal solution g best =[0,7,8,4,5,3,1,2,6,9,11,10,0], Truckroutes = [[0,7,8],[8,5,3,1,2],[2,9,11],[11,0]], Droneroutes = [[7,4,8],[1,6,2],[9,10,11]], and the delivery completion time is 144.

[0149] (5) 50th iteration

[0150] Get the global optimal solution g best =[6,2,4,1,3,5,8,7,9,11,10], Truckroutes = [[0,2],[2,1],[1,3,5,8,7,9,11],[11,0]], Droneroutes = [[0,6,2],[2,4,1],[9,10,11]], and the delivery completion time is 138.

[0151] (6) 100th iteration

[0152] Get the global optimal solution g best =[0,2,1,4,3,5,6,8,7,9,11,10,0], Truckroutes = [[0,2,1],[1,3,5],[5,8,7,9,11],[11,0]], the complete truck route is [0,2,1,3,5,8,7,9,11,0], Drone route = [[2,4,1],[1,6,5],[9,10,11]], and the delivery time is 138. So far, the optimal route is obtained. At this time, the truck route is [0,2,1,3,5,8,7,9,11,0], and the drone route is: [[2,4,1],[1,6,5],[9,10,11]].

[0153] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0154] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0155] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0156] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0157] Obviously, the above embodiments are merely examples for clear explanation and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived from these are still within the protection scope of the invention.

Claims

1. A particle swarm optimization method for solving path planning for collaborative distribution, characterized in that: include: A problem model involving truck and drone collaborative delivery is established, and the permutation sequence of customer points that need to be served is initialized. All customer points in the initialized permutation sequence are delivered by trucks. According to the customer points in the arrangement sequence that can be served by drones, sub-cases are divided, and drones and trucks are used to coordinate the delivery of each sub-case to obtain an arrangement sequence with drone nodes; Use the weighted particle swarm optimization algorithm and simulated annealing method to update the arrangement sequence of drone nodes to obtain the optimal path; The problem model involving truck and drone collaborative delivery is specifically: In a region, a truck carries at least one drone to deliver goods to customers. Each customer point has its own needs. Both trucks and drones can serve customers. The model goal is to complete the delivery in the shortest time and minimize the cost. The conditions to be met are: Condition 1: A drone can only visit one customer per dispatch, but a truck can visit multiple customers while the drone is flying; Condition 2: The drone maintains a constant flight during flight; Condition 3: The drone can be collected by a truck at a customer node and depart again; Condition 4: The drone cannot meet up with the truck between the preset nodes; Condition 5: No truck may visit any customer again; Condition 6: The drone path ends at the base, after which the drone will cease to be used; Condition 7: When the UAV and the truck are traveling in a merged state, the UAV is transported by the truck; Condition 8: The delivery time of the drone is not considered, the launch and recovery time of the drone is constant, and the drone's flight time is constant; The sub-examples are specifically divided according to the customer points that can be served by the drone in the arrangement sequence: if the delivery demand of the customer point is less than the maximum cargo capacity of the drone, the node is defined as a node that can be served by the drone; the initialization path that is only delivered by trucks is divided into sub-examples according to the nodes that can be served by the drone in the customer points, and at least one sub-example containing nodes that can be served by the drone is obtained; The method uses drones and trucks to perform collaborative delivery on each sub-case to obtain an arrangement sequence with drone nodes, specifically: each customer point in the arrangement sequence includes a delivery arrival time and a delivery departure time, inserts a drone node for each sub-case, determines the truck path and drone path of the sub-case according to different drone launch points and drone recovery points, and calculates the time it takes for the sub-case to complete delivery under different paths; if there is a situation where a truck is waiting for the arrival of a drone or a drone arrives and waits for a truck at the drone recovery point, the larger value of the drone arrival time and the truck arrival time at the drone recovery point is used as the arrival time of the point, and the total delivery time of different paths is compared, and the optimal drone path and truck path of a single sub-case is determined with the shortest total delivery time as the target value; after completing the insertion of drones for all sub-cases in the sub-case set and determining the optimal truck path and drone path of the sub-case, the complete truck path, drone path, arrival time and departure time of each customer point and the time to return to the station after completing the delivery are obtained for the final problem; The method uses a particle swarm optimization algorithm with weights and a simulated annealing method to update the arrangement sequence of drone nodes to obtain the optimal path, specifically: in each round of iterative updating of the arrangement sequence of drone nodes to obtain the optimal path, a particle swarm optimization algorithm with weights is used to calculate a new arrangement sequence of drone nodes, and after the sub-case is cut and the drone operation is inserted, the corresponding truck path and drone path are obtained, and the simulated annealing method is used to select whether to use the new arrangement sequence of drone nodes and its corresponding truck path and drone path to update the optimal solution; according to the arrangement sequence at this time, the next round of iterative updating of the arrangement sequence of drone nodes is performed to finally obtain the optimal path, until the preset maximum number of iterations is reached and the update is stopped, and the optimal solution at this time is used as the optimal path; The new arrangement sequence x with drone nodes is calculated using the weighted particle swarm optimization algorithm. ij (t+1), specifically: x ij (t+1)=x ij (t)+v ij (t+1), v ij (t+1)=ω·v ij (t)+c1r1(t)[p ij (t)-x ij (t)]+c2r2(t)[p gj (t)-x ij (t)], Where ω is the inertia weight, x ij (t) is the permutation sequence of the current drone node, x ii (t+1) represents the new client node sequence; r1(t) and r2(t) represent uniform random numbers between 0 and 1, which are used to increase the randomness of particle flight; p ij (t) represents the sequence of customer nodes with the shortest delivery time among all positions of the individual particle, p gj (t) represents the delivery path with the shortest delivery time among all particles with deadline t; v ij (t) represents the particle motion speed of particle i at time t, v ij (t+1) represents the particle movement speed of particle i at time t+1; C1 and C2 are learning factors, t represents the current number of iterations, ω max represents the maximum inertia weight, ω min represents the minimum inertia weight, T max Indicates the maximum number of iterations; The simulated annealing method is used to select whether to use a new arrangement sequence of drone nodes and its corresponding truck path and drone path to update the optimal solution. Specifically, the current arrangement sequence of drone nodes is recorded as x c , the new arrangement sequence of drone nodes calculated by the weighted particle swarm optimization algorithm is recorded as x n ; if x n The final delivery time is less than x c The final delivery time is x n As the optimal solution for this round; if x n The final delivery completion time is greater than or equal to x c The final delivery time is The probability that x n As the optimal solution for this round; where f(x n ) represents x n The final delivery completion time, f(x c ) represents x c The final completion time of the distribution, T is the initial temperature of the simulated annealing algorithm.

2. The particle swarm optimization method for solving path planning for collaborative delivery according to claim 1, characterized in that: The sub-instance includes a node that can be served by a drone and the number of nodes included in the sub-instance is greater than or equal to 3.

3. A particle swarm optimization system for solving path planning for collaborative delivery, characterized in that: It includes initialization module, sub-case segmentation module and optimal path module. The initialization module establishes a problem model including truck and drone collaborative delivery, obtains user delivery data and initializes the arrangement sequence of customer points that need to be served, and all customer points in the initialized arrangement sequence are delivered by trucks; The sub-case segmentation module segments sub-cases according to the customer points in the arrangement sequence that can be served by drones, and uses drones and trucks to coordinate delivery of each sub-case to obtain an arrangement sequence with drone nodes; The optimal path module uses a weighted particle swarm optimization algorithm and a simulated annealing method to update the arrangement sequence of drone nodes to obtain the optimal path; The problem model involving truck and drone collaborative delivery is specifically: In a region, a truck carries at least one drone to deliver goods to customers. Each customer point has its own needs. Both trucks and drones can serve customers. The model goal is to complete the delivery in the shortest time and minimize the cost. The conditions to be met are: Condition 1: A drone can only visit one customer per dispatch, but a truck can visit multiple customers while the drone is flying; Condition 2: The drone maintains a constant flight during flight; Condition 3: The drone can be collected by a truck at a customer node and depart again; Condition 4: The drone cannot meet up with the truck between the preset nodes; Condition 5: No truck may visit any customer again; Condition 6: The drone path ends at the base, after which the drone will cease to be used; Condition 7: When the UAV and the truck are traveling in a merged state, the UAV is transported by the truck; Condition 8: The delivery time of the drone is not considered, the launch and recovery time of the drone is constant, and the drone's flight time is constant; The sub-examples are specifically divided according to the customer points that can be served by the drone in the arrangement sequence: if the delivery demand of the customer point is less than the maximum cargo capacity of the drone, the node is defined as a node that can be served by the drone; the initialization path that is only delivered by trucks is divided into sub-examples according to the nodes that can be served by the drone in the customer points, and at least one sub-example containing nodes that can be served by the drone is obtained; The method uses drones and trucks to perform collaborative delivery on each sub-case to obtain an arrangement sequence with drone nodes, specifically: each customer point in the arrangement sequence includes a delivery arrival time and a delivery departure time, inserts a drone node for each sub-case, determines the truck path and drone path of the sub-case according to different drone launch points and drone recovery points, and calculates the time it takes for the sub-case to complete delivery under different paths; if there is a situation where a truck is waiting for the arrival of a drone or a drone arrives and waits for a truck at the drone recovery point, the larger value of the drone arrival time and the truck arrival time at the drone recovery point is used as the arrival time of the point, and the total delivery time of different paths is compared, and the optimal drone path and truck path of a single sub-case is determined with the shortest total delivery time as the target value; after completing the insertion of drones for all sub-cases in the sub-case set and determining the optimal truck path and drone path of the sub-case, the complete truck path, drone path, arrival time and departure time of each customer point and the time to return to the station after completing the delivery are obtained for the final problem; The method uses a particle swarm optimization algorithm with weights and a simulated annealing method to update the arrangement sequence of drone nodes to obtain the optimal path, specifically: in each round of iterative updating of the arrangement sequence of drone nodes to obtain the optimal path, a particle swarm optimization algorithm with weights is used to calculate a new arrangement sequence of drone nodes, and after the sub-case is cut and the drone operation is inserted, the corresponding truck path and drone path are obtained, and the simulated annealing method is used to select whether to use the new arrangement sequence of drone nodes and its corresponding truck path and drone path to update the optimal solution; according to the arrangement sequence at this time, the next round of iterative updating of the arrangement sequence of drone nodes is performed to finally obtain the optimal path, until the preset maximum number of iterations is reached and the update is stopped, and the optimal solution at this time is used as the optimal path; The new arrangement sequence x with drone nodes is calculated using the weighted particle swarm optimization algorithm. ij (t+1), specifically: x ij (t+1)=x ij (t)+v ij (t+1), v ij (t+1)=ω·v ij (t)+c1r1(t)[p ij (t)-x ij (t)]+c2r2(t)[p gj (t)-x ij (t)], Where ω is the inertia weight, x ij (t) is the permutation sequence of the current drone node, x ij (t+1) represents the new client node sequence; r1(t) and r2(t) represent uniform random numbers between 0 and 1, which are used to increase the randomness of particle flight; p ij (t) represents the sequence of customer nodes with the shortest delivery time among all positions of the individual particle, p gj (t) represents the delivery path with the shortest delivery time among all particles with deadline t; v ij (t) represents the particle motion speed of particle i at time t, v ij (t+1) represents the particle movement speed of particle i at time t+1; C1 and C2 are learning factors, t represents the current number of iterations, ω max represents the maximum inertia weight, ω min represents the minimum inertia weight, T max Indicates the maximum number of iterations; The simulated annealing method is used to select whether to use a new arrangement sequence of drone nodes and its corresponding truck path and drone path to update the optimal solution. Specifically, the current arrangement sequence of drone nodes is recorded as x c , the new arrangement sequence of drone nodes calculated by the weighted particle swarm optimization algorithm is recorded as x n ; if x n The final delivery time is less than x c The final delivery time is x n As the optimal solution for this round; if x n The final delivery completion time is greater than or equal to x c The final delivery time is The probability that x n As the optimal solution for this round; where f(x n ) represents x n The final delivery completion time, f(x c ) represents x c The final completion time of the distribution, T is the initial temperature of the simulated annealing algorithm.

4. The particle swarm optimization system for solving the path planning of collaborative delivery according to claim 3, characterized in that: The optimal path module includes a drone insertion module, a speed and position update module, and a simulated annealing module. The drone insertion module inserts a drone node into each sub-case, determines the truck path and drone path of the sub-case according to different drone launch points and drone recovery points, and calculates the time it takes for the sub-case to complete delivery under different paths; if there is a truck waiting for the drone to arrive or a drone arrives and waits for the truck at the drone recovery point, the larger value of the drone arrival time and the truck arrival time at the drone recovery point is used as the arrival time of the point, and the total delivery time of different paths is compared, and the optimal drone path and truck path for a single sub-case is determined with the shortest total delivery time as the target value; The update speed and position module uses a weighted particle swarm optimization algorithm to calculate a new arrangement sequence of customer points that need to be served; The simulated annealing module uses the simulated annealing method to select whether to use the new permutation sequence of customer points that need to be served to update the optimal solution; The optimal path module uses the optimal solution updated by the update speed and position module and the simulated annealing module as the optimal path.