Truck and unmanned aerial vehicle cooperative distribution path planning method and system considering road congestion
By constructing a mixed integer programming model and a local search optimization algorithm, the impact of road congestion on truck-drone collaborative delivery path planning is solved, the accuracy and efficiency of path planning are improved, and transportation costs are reduced.
Patent Information
- Application Number
- CN202411253049.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-09
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-09-09
AI Technical Summary
Existing technology ignores road congestion in truck-drone collaborative delivery path planning, resulting in a decrease in the accuracy and efficiency of path planning and affecting transportation costs.
Construct a first mixed integer programming model that considers stochastic congestion and a second mixed integer programming model that considers time-varying congestion. The initial feasible solution is obtained through nearest neighbor search and variable neighborhood descent, and local search optimization is performed based on the disturbance neighborhood and descending neighborhood. Determine target truck path and drone path.
It improves the accuracy of truck-drone collaborative delivery path planning, reduces transportation costs, and simultaneously determines the delivery routes of trucks and drones under different road traffic environments and time periods.
Smart Images

Figure CN118776566A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of path planning, and in particular to a method and system for planning a truck-UAV collaborative delivery path taking into account road congestion. Background Art
[0002] As a new product developed in recent years, drones have attracted widespread attention in the logistics industry due to their good routing properties. Compared with traditional truck transportation, drones have the advantages of fast speed, flexible trajectory, no impact from real-time road conditions, and low cost.
[0003] However, due to the limitation of battery technology, the endurance of drones is very limited, and drones alone cannot meet the needs of long-distance delivery. Trucks, due to their superiority of long driving range, can be used as a take-off and landing base for drones, and can also serve as an energy replenishment base for drones. Therefore, using drones and trucks to complete delivery at the same time is the current key research direction.
[0004] The existing technologies for simultaneous delivery by drones and trucks include the combination of drones and trucks and the situation where drones are mainly responsible for delivery and trucks are responsible for supply. In fact, according to the actual survey results in the industry, the method of drones mainly delivering and trucks responsible for supply is more ideal. Affected by low-altitude operation regulations and drone technology, drones cannot become the main force of urban logistics distribution for the time being. Therefore, the collaborative operation of drones and trucks is a technology that is more urgently needed at present. However, existing technologies often simplify the working environment of truck delivery links and ignore the road congestion that truck transportation may face, which affects the accuracy of truck-drone collaborative delivery path planning, thereby affecting the efficiency and transportation cost of truck-drone collaborative delivery. From the perspective of practical application, in the model of truck-carrying drone delivery, the truck serves as the launch point and recovery point of the drone, and the change in driving time will inevitably affect the path planning of the collaborative delivery system.
[0005] Therefore, when faced with different road traffic environments on different sections and at different times, how to synchronously decide the delivery routes of trucks and drones has become an urgent problem that needs to be solved. Summary of the invention
[0006] The purpose of the present invention is to solve one of the technical problems existing in the prior art to at least a certain extent.
[0007] To this end, one purpose of an embodiment of the present invention is to provide a truck-UAV collaborative delivery path planning method that takes road congestion into consideration, which improves the accuracy of truck-UAV collaborative delivery path planning, thereby improving the efficiency of truck-UAV collaborative delivery and reducing transportation costs.
[0008] Another object of an embodiment of the present invention is to provide a truck-drone collaborative delivery path planning system that takes road congestion into consideration.
[0009] In order to achieve the above technical objectives, the technical solutions adopted by the embodiments of the present invention include: On the one hand, an embodiment of the present invention provides a method for truck-drone collaborative delivery path planning considering road congestion, comprising the following steps: Constructing a first mixed integer programming model considering random congestion and a second mixed integer programming model considering time-varying congestion; Determining, according to a current period, the first mixed integer programming model or the second mixed integer programming model as a target mixed integer programming model; Performing nearest neighbor search and variable neighborhood descent on the target mixed integer programming model according to the truck parameters, the drone parameters and the target road network data to obtain an initial feasible solution; Performing local search optimization on the initial feasible solution based on the disturbance neighborhood and the descent neighborhood to obtain a final solution, and then determining a target truck path and a target drone path according to the final solution; Among them, the first mixed integer programming model includes the objective function of minimizing the total driving cost of trucks and drones, distribution tool constraints, truck service constraints, truck path flow balance constraints, drone service constraints, drone take-off and landing point constraints, truck out-of-warehouse constraints, truck entry constraints, drone take-off number constraints, drone landing number constraints, drone mission time constraints, drone customer demand constraints, sub-loop elimination constraints, first drone power constraints, truck load constraints and first decision variable constraints; the second mixed integer programming model includes the objective function of minimizing the total driving cost of trucks and drones, distribution tool constraints, truck service constraints, truck path flow balance constraints, drone service constraints, drone take-off and landing point constraints, truck out-of-warehouse constraints, truck entry constraints, drone take-off number constraints, drone landing number constraints, truck drone synchronization constraints, drone customer demand constraints, sub-loop elimination constraints, second drone power constraints, truck load constraints, first decision variable constraints, sub-segment total length constraints, segment length constraints, time period continuity constraints, segment driving time constraints, node arrival time constraints, node departure time constraints, segment starting point departure time and end point arrival time constraints, service time constraints, warehouse exit time constraints, initial time period constraints and second decision variable constraints.
[0010] Furthermore, in one embodiment of the present invention, the objective function is: ; The delivery tool constraints are: ; The truck service constraints are: ; The truck path flow balance constraint is: ; The drone service constraints are: ; The UAV take-off and landing point constraints are: ; The truck exit constraint is: ; The truck entry constraints are: ; The UAV takeoff frequency constraint is: ; The number of drone landings is constrained as follows: ; The UAV mission time constraint is: ; The UAV customer demand constraints are: ; The elimination sub-loop constraint is: ; The power constraint of the first UAV is: ; The truck load constraint is: ; The first decision variable constraint is: ; ; Where n represents the total number of customer points, represents the set of all customer points, ={1,2,⋯,n}, Represents the node set of the starting point and all customer points, The node set representing the end point and all customer points, represents the set of available trucks, Truck Whether , Equal to 1 means yes, Equal to 0 means no, express The distance between represents the unit mileage cost of the truck, Truck Whether the drones carried by the vehicle pass continuously and , Equal to 1 means yes, Equal to 0 means no, express The distance between represents the unit mileage cost of drone flight, Representation Node Is it arranged for a truck? , Equal to 1 means yes, Equal to 0 means no, Representation Node Is it arranged for a truck? The drone carried Equal to 1 means yes, Equal to 0 means no, Representation Node Is it arranged for a truck? , Equal to 1 means yes, Equal to 0 means no, Truck Whether , Equal to 1 means yes, Equal to 0 means no, Representation Node Is it arranged for a truck? The drone carried Equal to 1 means yes, Equal to 0 means no, Truck Whether , Equal to 1 means yes, Equal to 0 means no, Truck Whether , Equal to 1 means yes, Equal to 0 means no, Truck Whether , Equal to 1 means yes, Equal to 0 means no, Indicates the drone slave node Travel to the node time, Indicates the drone slave node Travel to the node time, Represents the truck from the node Travel to the node time, M represents an infinite positive number, Representation Node demand, Indicates the maximum load of the drone. and All represent sub-loop elimination variables, Indicates the weight of the cargo. Indicates the drone's own weight. r Indicates the power consumption rate per unit time of the drone, Indicates the maximum battery capacity of the drone. Indicates the maximum load capacity of the truck.
[0011] Furthermore, in one embodiment of the present invention, the truck-drone synchronization constraint is: ; The power constraint of the second UAV is: ; The total length constraint of the sub-segment is: ; The segment length constraint is: ; The time period continuity constraint is: ; The road segment travel time constraint is: ; The node arrival time constraint is: ; The node departure time constraint is: ; The departure time at the starting point and the arrival time at the end point of the section are constrained as follows: ; ; The service time constraints are: ; The warehouse exit time constraint is: ; The initial time period constraints are: ; The second decision variable constraint is: ; ; ; in, Indicates that the truck leaves the node time, Represents the truck arrival node time, Represents the truck arrival node time, Represents the truck arrival node time, Represents a set of time periods, Indicates time period The speed of the truck within Truck In the period Passing through time, Truck In the period Whether it has passed , Equal to 1 means yes, Equal to 0 means no, Truck In the period Whether it has passed , Equal to 1 means yes, Equal to 0 means no, Truck In the period Whether it has passed , Equal to 1 means yes, Equal to 0 means no, Indicates time period The beginning moment, Indicates time period The end moment, Indicates the end time of the last period. represents the time when the truck leaves the starting point, Truck Whether the initial period has passed , Equal to 1 means yes, Equal to 0 means no.
[0012] Further, in one embodiment of the present invention, the determining, according to the current period, the first mixed integer programming model or the second mixed integer programming model as the target mixed integer programming model is specifically: If the current time period is a non-peak time period, the first mixed integer programming model is determined to be the target mixed integer programming model; if the current time period is a peak time period, the second mixed integer programming model is determined to be the target mixed integer programming model.
[0013] Further, in one embodiment of the present invention, the target mixed integer programming model is subjected to nearest neighbor search and variable neighborhood descent according to the truck parameters, the drone parameters and the target road network data to obtain an initial feasible solution, which specifically includes: Setting parameters of the target mixed integer programming model according to the truck parameters, the drone parameters and the target road network data; Solving the target mixed integer programming model through nearest neighbor search to obtain a feasible solution for the first truck path; Performing variable neighborhood descent on the first truck path feasible solution to obtain an initial truck path feasible solution; The corresponding initial UAV path feasible solution is determined according to the initial truck path feasible solution, and then the initial feasible solution is generated according to the initial truck path feasible solution and the initial UAV path feasible solution.
[0014] Further, in one embodiment of the present invention, the local search optimization of the initial feasible solution based on the disturbance neighborhood and the descent neighborhood specifically includes: Determine a disturbance neighborhood set and a descent neighborhood set, and use the initial feasible solution as a current feasible solution; Randomly selecting a perturbation neighborhood from the perturbation neighborhood set to perform neighborhood perturbation on the current feasible solution to obtain a first feasible solution; Optimizing the current feasible solution through the descending neighborhood set to obtain a second feasible solution; Calculating the fitness function values of the first feasible solution and the second feasible solution respectively; When the fitness function value of the second feasible solution is less than the fitness function value of the first feasible solution, taking the second feasible solution as the optimized current feasible solution; When the fitness function value of the second feasible solution is greater than or equal to the fitness function value of the first feasible solution, the first feasible solution is used as the optimized current feasible solution.
[0015] Further, in one embodiment of the present invention, the local search optimization of the initial feasible solution based on the disturbance neighborhood and the descent neighborhood further includes: The number of optimized solutions corresponding to each descending neighborhood in the descending neighborhood set is obtained, and the descending neighborhoods in the descending neighborhood set are reordered according to the number of optimized solutions.
[0016] On the other hand, an embodiment of the present invention provides a truck-drone collaborative delivery path planning system considering road congestion, including: A model building module, used for building a first mixed integer programming model considering random congestion and a second mixed integer programming model considering time-varying congestion; a model determination module, configured to determine, according to a current period, the first mixed integer programming model or the second mixed integer programming model as a target mixed integer programming model; An initial feasible solution determination module is used to perform nearest neighbor search and variable neighborhood descent on the target mixed integer programming model according to the truck parameters, the drone parameters and the target road network data to obtain an initial feasible solution; A final solution determination module is used to perform local search optimization on the initial feasible solution based on a disturbance neighborhood and a descent neighborhood to obtain a final solution, and then determine a target truck path and a target drone path according to the final solution; Among them, the first mixed integer programming model includes the objective function of minimizing the total driving cost of trucks and drones, distribution tool constraints, truck service constraints, truck path flow balance constraints, drone service constraints, drone take-off and landing point constraints, truck out-of-warehouse constraints, truck entry constraints, drone take-off number constraints, drone landing number constraints, drone mission time constraints, drone customer demand constraints, sub-loop elimination constraints, first drone power constraints, truck load constraints and first decision variable constraints; the second mixed integer programming model includes the objective function of minimizing the total driving cost of trucks and drones, distribution tool constraints, truck service constraints, truck path flow balance constraints, drone service constraints, drone take-off and landing point constraints, truck out-of-warehouse constraints, truck entry constraints, drone take-off number constraints, drone landing number constraints, truck drone synchronization constraints, drone customer demand constraints, sub-loop elimination constraints, second drone power constraints, truck load constraints, first decision variable constraints, sub-segment total length constraints, segment length constraints, time period continuity constraints, segment driving time constraints, node arrival time constraints, node departure time constraints, segment starting point departure time and end point arrival time constraints, service time constraints, warehouse exit time constraints, initial time period constraints and second decision variable constraints.
[0017] On the other hand, an embodiment of the present invention provides an electronic device, comprising a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for realizing connection and communication between the processor and the memory. When the program is executed by the processor, the truck-drone collaborative delivery path planning method considering road congestion as described above is realized.
[0018] On the other hand, an embodiment of the present invention further provides a storage medium, which is a computer-readable storage medium for computer-readable storage, and which stores one or more programs, and the one or more programs can be executed by one or more processors to implement the truck-drone collaborative delivery path planning method considering road congestion as described above.
[0019] The advantages and beneficial effects of the present invention will be partly given in the following description, partly become apparent from the following description, or be understood through the practice of the present invention: The embodiment of the present invention constructs a first mixed integer programming model considering random congestion and a second mixed integer programming model considering time-varying congestion, determines the first mixed integer programming model or the second mixed integer programming model as the target mixed integer programming model according to the current period, performs neighbor search and variable neighborhood descent on the target mixed integer programming model according to truck parameters, drone parameters and target road network data to obtain an initial feasible solution, performs local search optimization on the initial feasible solution based on the perturbation neighborhood and the descent neighborhood to obtain a final solution, and then determines the target truck path and the target drone path according to the final solution. The embodiment of the present invention divides road congestion into random congestion based on the spatial position of the road section and time-varying congestion based on time, respectively constructs the corresponding first mixed integer programming model and the second mixed integer programming model, selects the target mixed integer programming model according to the current period, and obtains an initial feasible solution through neighbor search and variable neighborhood descent, and then performs local search optimization on the initial feasible solution to obtain the final solution, thereby improving the accuracy of the truck-drone collaborative distribution path planning, thereby improving the efficiency of the truck-drone collaborative distribution and reducing the transportation cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solution in the embodiments of the present invention, the following introduction is made to the drawings required for use in the embodiments of the present invention. It should be understood that the drawings introduced below are only for the convenience of clearly describing some embodiments of the technical solution of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 A flowchart of a method for planning a truck-drone collaborative delivery path taking into account road congestion provided by an embodiment of the present invention; Figure 2 A specific implementation flow chart of the method for truck-drone collaborative delivery path planning considering road congestion provided in an embodiment of the present invention; Figure 3 A schematic diagram of the change in power consumption rate of a drone provided by an embodiment of the present invention; Figure 4 A schematic diagram of the effect of power consumption rate on feasible delivery routes provided in an embodiment of the present invention; Figure 5 A schematic diagram of truck speed variation based on road sections provided by an embodiment of the present invention; Figure 6 A schematic diagram of truck speed variation under time-varying congestion provided by an embodiment of the present invention; Figure 7 A schematic diagram of a time-varying congestion path provided by an embodiment of the present invention; FIG8 (a) is a schematic diagram of a neighborhood operator for randomly exchanging customer points provided by an embodiment of the present invention; FIG8( b ) is a schematic diagram of a random flipping neighborhood operator provided by an embodiment of the present invention; FIG8 (c) is a schematic diagram of a neighborhood operator for randomly exchanging customer points and service methods provided by an embodiment of the present invention; FIG8( d ) is a schematic diagram of a neighborhood operator for inserting a truck service point as a drone service point provided by an embodiment of the present invention; FIG8 (e) is a schematic diagram of a neighborhood operator of a switching service mode provided in an embodiment of the present invention; Fig. 9 A schematic diagram of adaptively adjusting a neighborhood set is provided for an embodiment of the present invention; Fig.10 A schematic diagram of transportation cost variation trends under different truck congestion situations provided by an embodiment of the present invention; Fig.11 A schematic diagram of the structure of a truck-drone collaborative delivery path planning system considering road congestion provided by an embodiment of the present invention; Fig.12 A schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention; Fig.13 A schematic diagram of the structure of a storage medium provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0022] Embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limitations on the present application. It should be noted that, although the functional module division is performed in the system schematic diagram and the logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in a different order from the module division in the system schematic diagram or the flow chart. For the step numbers in the following embodiments, they are only set for the convenience of explanation, and the order between the steps is not limited in any way. The execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.
[0023] In the description of the present invention, the meaning of "a plurality" is two or more. If there is a description of the first or the second, it is only for the purpose of distinguishing the technical features, and it cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features. In addition, unless otherwise defined, all technical and scientific terms used in this document have the same meaning as those commonly understood by technicians in the technical field of this application. The terms used in this document are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.
[0024] The truck-drone collaborative delivery path planning method considering road congestion provided in the embodiment of the present application can be applied to the terminal, can also be applied to the server side, and can also be software running in the terminal or the server side. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a set-top box, etc.; the server side can be configured as an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, and can also be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application that implements the truck-drone collaborative delivery path planning method considering road congestion, etc., but is not limited to the above forms.
[0025] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0026] It should be noted that in each specific implementation of the present application, when it comes to the need to perform relevant processing based on data related to user identity or characteristics such as user information, user behavior data, user historical data, and user location information, the user's permission or consent will be obtained first, and the collection, use, and processing of these data will comply with the relevant laws, regulations, and standards of the relevant countries and regions. In addition, when the embodiment of the present application needs to obtain the user's sensitive personal information, the user's separate permission or consent will be obtained through a pop-up window or by jumping to a confirmation page. After clearly obtaining the user's separate permission or consent, the necessary user-related data for the normal operation of the embodiment of the present application will be obtained.
[0027] like Figure 1 FIG. 1 is a flowchart of a method for planning a truck-drone collaborative delivery path considering road congestion provided by an embodiment of the present invention, referring to FIG. Figure 1 , an embodiment of the present invention provides a truck-UAV collaborative delivery path planning method considering road congestion, which specifically includes the following steps: S101, constructing a first mixed integer programming model considering random congestion and a second mixed integer programming model considering time-varying congestion; S102, determining the first mixed integer programming model or the second mixed integer programming model as a target mixed integer programming model according to the current period; S103, performing nearest neighbor search and variable neighborhood descent on the target mixed integer programming model according to the truck parameters, the drone parameters and the target road network data, to obtain an initial feasible solution; S104, performing local search optimization on the initial feasible solution based on the disturbance neighborhood and the descent neighborhood to obtain a final solution, and then determining the target truck path and the target drone path according to the final solution; Among them, the first mixed integer programming model includes the objective function of minimizing the total driving cost of trucks and drones, distribution tool constraints, truck service constraints, truck path flow balance constraints, drone service constraints, drone take-off and landing point constraints, truck out-of-warehouse constraints, truck entry constraints, drone take-off number constraints, drone landing number constraints, drone mission time constraints, drone customer demand constraints, sub-loop elimination constraints, first drone power constraints, truck load constraints and first decision variable constraints; the second mixed integer programming model includes the objective function of minimizing the total driving cost of trucks and drones, distribution tool constraints, truck service constraints, truck path flow balance constraints, drone service constraints, drone take-off and landing point constraints, truck out-of-warehouse constraints, truck entry constraints, drone take-off number constraints, drone landing number constraints, truck drone synchronization constraints, drone customer demand constraints, sub-loop elimination constraints, second drone power constraints, truck load constraints, first decision variable constraints, sub-segment total length constraints, segment length constraints, time period continuity constraints, segment driving time constraints, node arrival time constraints, node departure time constraints, segment starting point departure time and end point arrival time constraints, service time constraints, warehouse exit time constraints, initial time period constraints and second decision variable constraints.
[0028] First, consider the problem of collaborative delivery of multiple trucks and multiple drones in an urban road network. Each truck is equipped with a drone. The embodiment of the present invention needs to synchronously plan the driving trajectories of trucks and drones to meet the needs of all customer points. In this problem, trucks are allowed to release drones at any node to complete the delivery task, while trucks perform other delivery tasks at the same time, and reach the agreed synchronization point before the drone runs out of power and perform the next round of delivery. Therefore, the embodiment of the present invention designs a drone-truck collaborative delivery model based on the vehicle routing problem, in which the capacity limitations of trucks and drones, the battery power limitations of drones and the battery loss rate, and the time alignment limitations of drone-truck collaboration are mainly considered.
[0029] Secondly, the model characterizes road congestion based on the spatial and temporal attributes as random congestion based on the spatial location of the road section (such as speed limits on some sections) and time-varying congestion based on time (such as increased traffic volume during peak hours in the morning and evening). The final path planning solution needs to ensure that when the road is congested, the trucks can align before the drone runs out of power.
[0030] Finally, due to the NP-hard property of the mathematical model, an adaptive heuristic algorithm based on variable neighborhood search is designed in the embodiment of the present invention. The algorithm obtains the initial value of the truck path through nearest neighbor search and variable neighborhood descent, and constructs the initial plan of the drone path on this basis. Then, the node service mode and service order are adjusted according to different rules to achieve different neighborhood transformation operations. And according to the actual performance of different neighborhoods, the retrieval priority is continuously adjusted in the iteration, thereby accelerating the search for a better drone truck collaborative path planning solution.
[0031] like Figure 2 The figure is a specific implementation flow chart of the method for truck-drone collaborative delivery path planning considering road congestion provided by an embodiment of the present invention. Figure 2 The specific implementation process of the embodiment of the present invention is further described.
[0032] Since drones have limited load capacity and short battery life, changes in package weight have an impact on their flight time and mileage. The flight period of drones can be divided into two sections according to their weight: the first section is when the drone carries the package to the customer point; the second section is when the drone returns empty from the customer point to the agreed point to work with the truck. Figure 3 FIG. 1 is a schematic diagram showing a change in the power consumption rate of a drone provided by an embodiment of the present invention, wherein arrive , because the drone is loading cargo, the battery power will decrease quickly. After the package is dropped, the weight becomes lighter, and the rate at which power is consumed during the return flight decreases. Point is the agreed synchronization point between the drone and the truck. and It is the same point, but it corresponds to the power consumption of the drone in hovering state when the truck fails to arrive at the agreed point.
[0033] In fact, the inclusion of power factors will further affect path planning. Figure 4 The figure shows the effect of the power consumption rate on the feasible delivery route provided by the embodiment of the present invention. Assuming that the upper limit of the power of the drone is 1.8 units, if the weight change is not considered, (1→2→3) is a feasible drone route. However, when the weight change affects the energy consumption, the original drone route (1→2) consumes more power due to the heavy weight, resulting in the drone being unable to complete the entire route mission. For the same truck route (1→3), if the path is reversed and the drone route is also reversed, the distance with heavy load is shorter, so that the drone battery can support it to complete the entire delivery mission.
[0034] Next, we need to quantify the power consumption. The power consumption calculation formula is as follows: ; (1) is the battery power between sections, and They are the weight of the cargo and the weight of the drone. Indicates the conversion efficiency of the engine, The climbing efficiency of the UAV is is the power consumption of electronic components. In order to keep the drone flying at a constant speed, assuming that the drone's battery always provides the maximum power to support the drone's flight, , The maximum power that the drone engine can provide. express The power consumption between two points, is the power consumption rate per unit time, then: ; (2) in, is the flight time of the UAV. The specific calculation process is prior art and will not be described in detail in the embodiment of the present invention.
[0035] The embodiment of the present invention considers random congestion based on road sections and time-varying congestion based on time to construct an optimization model.
[0036] The description of random congestion is reflected in the overall congestion between different road sections. Indicates that the truck is on the road Based on real-world scenarios, the probability of congestion on each road section is not completely consistent. Figure 5 The figure shows a schematic diagram of truck speed variation based on road sections provided by an embodiment of the present invention. The embodiment of the present invention takes a random value for the speed within a reasonable range, that is, the time required for the truck to pass through different road sections is different.
[0037] Time-varying congestion based on time means that the speed of vehicles changes with time. Under the condition of time-varying congestion, a single road section may experience two or more time periods, and the speed corresponding to each time period is different. Therefore, the speed cannot be simply treated as a constant between two points. The settings for the congestion period are as follows: ; (3) in, Indicates a period of time. Indicates the serial number of the time period. Since there may be multiple speeds on each road section, vehicles on the road section The travel time on the same plane also varies. Figure 6 FIG. 1 is a schematic diagram of truck speed variation under time-varying congestion provided by an embodiment of the present invention. Indicates time period The beginning moment, Indicates time period Each time period represents a congestion level, and different congestion levels are represented by different speeds. The fastest speed is the upper limit of the speed of trucks.
[0038] like Figure 7 The figure shows a schematic diagram of a time-varying congestion path provided by an embodiment of the present invention, with a road section For example, represents the distance traveled by the truck on the road section in period 1, is the distance traveled by the truck on the road section in period 2. It can be understood that in period 1, Distance traveled in period 2 Distance travelled in period 3 , which is consistent with the road segment , , as well as , and the speeds in periods 1, 2, and 3 are different, so the speed may vary within the same section.
[0039] Based on the above analysis, the embodiment of the present invention constructs a first mixed integer programming model considering random congestion and a second mixed integer programming model considering time-varying congestion. The model parameter table of the embodiment of the present invention is shown in Table 1 below.
[0040] Table 1
[0041] Based on the above model parameter table, the first mixed integer programming model considering random congestion The objective function is as follows: ; (4) The constraints are as follows: ; (5) ; (6) ; (7) ; (8) ; (9) ; (10) ; (11) ; (12) ; (13) ; (14) ; (15) ; (16) ; (17) ; (18) ; (19) ; (20) In the above formula, n represents the total number of customer points. represents the set of all customer points, ={1,2,⋯,n}, Represents the node set of the starting point and all customer points, The node set representing the end point and all customer points, represents the set of available trucks, Truck Whether , Equal to 1 means yes, Equal to 0 means no, express The distance between represents the unit mileage cost of the truck, Truck Whether the drones carried by the vehicle pass continuously and , Equal to 1 means yes, Equal to 0 means no, express The distance between represents the unit mileage cost of drone flight, Representation Node Is it arranged for a truck? , Equal to 1 means yes, Equal to 0 means no, Representation Node Is it arranged for a truck? The drone carried Equal to 1 means yes, Equal to 0 means no, Representation Node Is it arranged for a truck? , Equal to 1 means yes, Equal to 0 means no, Truck Whether , Equal to 1 means yes, Equal to 0 means no, Representation Node Is it arranged for a truck? The drone carried Equal to 1 means yes, Equal to 0 means no, Truck Whether , Equal to 1 means yes, Equal to 0 means no, Truck Whether , Equal to 1 means yes, Equal to 0 means no, Truck Whether , Equal to 1 means yes, Equal to 0 means no, Indicates the drone slave node Travel to the node time, Indicates the drone slave node Travel to the node time, Represents the truck from the node Travel to the node time, M represents an infinite positive number, Representation Node demand, Indicates the maximum load of the drone. and All represent sub-loop elimination variables, Indicates the weight of the cargo. Indicates the drone's own weight. r Indicates the power consumption rate per unit time of the drone, Indicates the maximum battery capacity of the drone. Indicates the maximum load capacity of the truck.
[0042] First, all the models i , jThe situation of equality is avoided. The calculation of the unit time power consumption rate r of the drone refers to formula (2). Formula (4) is the objective function, which represents the minimization of the total driving cost of trucks and drones; constraint (5) indicates that a customer can only be served by a delivery tool, either a truck or a drone (i.e., the delivery tool constraint); constraint (6) indicates that customers assigned to trucks must be served by trucks (i.e., the truck service constraint); constraint (7) is the truck path flow balance constraint; constraint (8) is that customers assigned to drones must be served by drones (i.e., the drone service constraint); constraint (9) indicates that the take-off and landing points of the drone are two points that the truck passes continuously (i.e., the drone take-off and landing point constraint); constraints (10) and (11) respectively represent that the truck must start from the warehouse and eventually return to the warehouse (i.e., the truck out-of-warehouse constraint and the truck in-warehouse constraint), and the number of truck departures is limited by the total number of available vehicles; constraints (12) and (13) indicate that a drone route can only be in a certain The UAV takes off once and lands once at a point (i.e., the UAV takeoff number constraint and the UAV landing number constraint); constraint (14) requires that the total time of a UAV mission cannot exceed the driving time of the truck between the take-off and landing points and the maximum waiting time after arriving at the agreed point (i.e., the UAV mission time constraint); constraint (15) is the customer demand for UAV services cannot be greater than the capacity of the UAV (i.e., the UAV customer demand constraint); constraint (16) is the constraint for eliminating sub-loops; constraint (17) indicates that any UAV route must meet the UAV power constraint, that is, it must return to the truck before the power is exhausted (the first UAV power constraint); constraint (18) indicates that each truck must meet the maximum load constraint (i.e., the truck load constraint); constraints (19) and (20) are the value range restrictions of the decision variables (i.e., the first decision variable constraint).
[0043] It should be noted that according to the above parameter definitions and kinematic laws, , , ,in, Indicates the flight speed of the drone. Indicates that the truck is The driving speed between Indicates that the truck is The driving speed between.
[0044] In order to deal with the path planning during the peak hours of urban roads, a second mixed integer programming model considering time-varying congestion can be constructed by adding and replacing some constraint formulas in MILP1, and its objective function remains unchanged. The newly added constraint conditions are explained below.
[0045] ;(twenty one) Constraint (21) means that if any truck passes , the sum of the lengths of the sub-segments passing through the segment in all time periods is equal to the length of the segment (i.e., the total length constraint of the sub-segments).
[0046] ;(twenty two) ;(twenty three) ;(twenty four) The above constraint (22) means that if the vehicle In the period go through , is restricted to not exceed the length of the road segment (i.e., the road segment length constraint). Constraints (23) and (24) are constraints on the decision variables. and Binding restrictions are implemented to ensure that trucks can pass It must pass through a time period and the road section can only be passed by the same truck in different time periods (i.e., the second decision variable constraint).
[0047] In order to ensure that the time periods passed by the truck are continuous, that is, the end of the previous time period is the beginning of the next time period, the following constraints are set: ; (25) Constraint (25) states that if the truck go through , then the time period Must be in the period In other words, the truck must change speed in a predetermined time sequence (i.e., time-series continuity constraint).
[0048] The constraints related to truck congestion travel time are as follows: ; (26) ; (27) ; (28) ; (29) ; (30) ; (31) 2; (32) ; (33) ; (34) ; (35) In the above formula, Indicates that the truck leaves the node time, Represents the truck arrival node time, Represents the truck arrival node time, Represents the truck arrival node time, Represents a set of time periods, Indicates time period The speed of the truck within Truck In the period Passing through time, Truck In the period Whether it has passed , Equal to 1 means yes, Equal to 0 means no, Truck In the period Whether it has passed , Equal to 1 means yes, Equal to 0 means no, Truck In the period Whether it has passed , Equal to 1 means yes, Equal to 0 means no, Indicates time period The beginning moment, Indicates time period The end moment, Indicates the end time of the last period. represents the time when the truck leaves the starting point, Truck Whether the initial period has passed , Equal to 1 means yes, Equal to 0 means no.
[0049] Constraint (26) limits the travel time of the sub-segment in each time period to be within the range of the current time period (segment travel time constraint); constraints (27) and (28) constrain the arrival and departure time of each point (i.e., node arrival time constraint and node departure time constraint). Indicates the end time of the last period, which is equivalent to the total duration of all periods; constraints (29) and (30) are valid for the period after of Departure time and The arrival time of the point is calculated (equivalent to the departure time at the starting point of the road section and the arrival time at the end point); constraint (31) indicates that the truck does not stop at the customer point and the service time is negligible (i.e. service time constraint); constraint (32) stipulates that the time of leaving the warehouse is time 0 (i.e. warehouse exit time constraint); constraint (33) indicates that the first passing The time period must be the initial time period (i.e., the initial time period constraint). Constraint (34) is the time synchronization constraint between the UAV and the truck under time-varying congestion (i.e., the truck-UAV synchronization constraint). Constraint (35) is the power constraint of the UAV under time-varying congestion (i.e., the second UAV power constraint).
[0050] The first mixed integer programming model Constraints (14) and (17) in are replaced by constraints (34) and (35) respectively, and constraints (21)-(33) are added to consider the second mixed integer programming model with time-varying congestion, denoted as MILP2.
[0051] As an optional implementation, the first mixed integer programming model or the second mixed integer programming model is determined as the target mixed integer programming model according to the current period, which is specifically: If the current time period is a non-peak time period, the first mixed integer programming model is determined as the target mixed integer programming model; if the current time period is a peak time period, the second mixed integer programming model is determined as the target mixed integer programming model.
[0052] Specifically, the target mixed integer programming model is selected according to whether the current time period (distribution time period) is a peak time period. If the current time period is a non-peak time period, the road congestion can be regarded as random congestion, and the first mixed integer programming model is used as the target mixed integer programming model. If the current time period is a peak time period, the road congestion can be regarded as time-varying congestion, and the second mixed integer programming model is used as the target mixed integer programming model.
[0053] As an optional implementation, the target mixed integer programming model is subjected to nearest neighbor search and variable neighborhood descent according to the truck parameters, the drone parameters and the target road network data to obtain an initial feasible solution, which specifically includes: Setting parameters of the target mixed integer programming model according to the truck parameters, drone parameters and target road network data; The target mixed integer programming model is solved by nearest neighbor search to obtain the feasible solution of the first truck path; Perform variable neighborhood descent on the first truck path feasible solution to obtain the initial truck path feasible solution; The corresponding initial UAV path feasible solution is determined according to the initial truck path feasible solution, and then the initial feasible solution is generated according to the initial truck path feasible solution and the initial UAV path feasible solution.
[0054] Specifically, the optimization solution of the target mixed integer programming model of the embodiment of the present invention belongs to an NP-hard problem. It is difficult for traditional exact algorithms to solve large-scale problems under limited conditions, so it is necessary to design corresponding heuristic algorithms to solve them. The algorithm designed by the present invention (denoted as AVNS) is an improvement based on the variable neighborhood search algorithm. The advantages of the variable neighborhood search algorithm are that it has a clear structure and strong applicability. It is applicable to solving various optimization problems and has been successfully applied to solve various VRP problems and their variants. The core idea of the algorithm is to use the fact that the optimal solution searched in one neighborhood is not necessarily the optimal solution in another neighborhood. Therefore, different neighborhoods are switched to cyclically search for the global optimal solution.
[0055] The present invention generates an initial feasible solution of the algorithm body through a series of means. The specific steps are as follows: 1) Quickly generate feasible solutions for truck routes through nearest neighbor search ; 2) Use common 2-opt and insert operators Perform fast variable neighborhood descent to obtain ; 3) Extract the drone route from the currently optimized truck route and combine them into the final initial feasible solution .
[0056] As an optional implementation, the initial feasible solution is locally searched and optimized based on the disturbance neighborhood and the descent neighborhood, which specifically includes: Determine the perturbation neighborhood set and the descent neighborhood set, and use the initial feasible solution as the current feasible solution; Randomly select a perturbation neighborhood from the perturbation neighborhood set to perform neighborhood perturbation on the current feasible solution to obtain the first feasible solution; The second feasible solution is obtained by optimizing the current feasible solution by descending the neighborhood set; Calculate the fitness function values of the first feasible solution and the second feasible solution respectively; When the fitness function value of the second feasible solution is less than the fitness function value of the first feasible solution, the second feasible solution is used as the optimized current feasible solution; When the fitness function value of the second feasible solution is greater than or equal to the fitness function value of the first feasible solution, the first feasible solution is used as the optimized current feasible solution.
[0057] Specifically, after obtaining the initial solution After that, the current initial solution is improved by local search. According to the particularity of the model, the present invention proposes neighborhood operators for randomly exchanging customer points, randomly flipping, randomly exchanging customer points and service modes, inserting truck service points as drone service points, and switching service modes, and its working logic is shown in Figures 8 (a) to 8 (e).
[0058] For the solution after neighborhood transformation, the present invention uses the fitness function value As an evaluation index of the solution, this index contains two parts: path cost and punishment , the relational expression is as follows: ; (36) This indicator calculates the sum of the costs of the truck and drone paths respectively, which constitutes the path cost part of the fitness function, denoted as In the iterative process, the solution is often not feasible. For routes that do not meet the basic constraints, the part that exceeds the constraints is calculated and a penalty cost is imposed, which is recorded as .
[0059] The algorithm flow of the embodiment of the present invention for performing local search optimization on the initial feasible solution based on the perturbation neighborhood and the descent neighborhood is as follows: Input: preprocessed initial solution ; Perturbation Neighborhood Set , descending neighborhood set ; Maximum number of iterations, current round number; while current round number < maximum number of iterations do; Random Selection Neighborhood perturbations in get ; After descending the neighborhood set right Improved ; if ( )< ( )do; Optimal solution Replace with current solution ; Current round number = 0; else; Optimal solution Replace with current solution ; Current round number += 1; end if; end while; output: The current solution at the end of the iteration is output as the final solution.
[0060] Further as an optional implementation, performing local search optimization on the initial feasible solution based on the disturbance neighborhood and the descent neighborhood also includes: Get the number of optimized solutions corresponding to each descending neighborhood in the descending neighborhood set, and reorder each descending neighborhood in the descending neighborhood set according to the number of optimized solutions.
[0061] Specifically, in order to improve the iterative efficiency of the algorithm, the present invention additionally designs a mechanism for adaptively adjusting the neighborhood set, such as Fig. 9 As shown, this mechanism automatically stores the number of times improved solutions are found in each neighborhood after each round of algorithm iterations, and then reconstructs the permutation descent neighborhood according to the number of times improved solutions are found in each neighborhood in the previous round in the next round of iterations after the disturbance.
[0062] The above is a description of the method steps of the embodiment of the present invention. The following is a further description of the effect of the embodiment of the present invention in combination with experiments.
[0063] The data set used in the embodiment of the present invention is Solomon's CVRP example and is modified according to the characteristics of the model and computational experiments. First, in order to verify the effectiveness of MILP1 and MILP2 and compare the effectiveness of the algorithms, for a small-scale example, the embodiment of the present invention uses AVNS and the commercial solver CPLEX to perform a horizontal comparison of the solution results. The horizontal comparison results of MILP1 are shown in Table 2 below: Table 2
[0064] The horizontal comparison results of MILP2 are shown in Table 3 below: Table 3
[0065] It can be found from Table 2 and Table 3 that the AVNS algorithm proposed in the present invention shows excellent performance when applied to the two congested models, and can find the global optimal solution in a running time that is much faster than the solution time of the commercial solver CPLEX.
[0066] The experimental results of the large-scale example of MILP1 are shown in Table 4 below: Table 4
[0067] The experimental results of the large-scale example of MILP2 are shown in Table 5 below: Table 5
[0068] From the running results of large-scale examples in Tables 4 and 5, it can be seen that the introduction of drones significantly reduces the cost of delivery under both congestion conditions. For the example of 60 customer points in the random congestion model, the average cost savings after the introduction of drones is 16.89% compared with pure trucks, and the average cost savings is 22.22% compared with the initial solution. For the example of 60 customer points in the time-varying congestion model, the average cost savings after the introduction of drones is 24.90% compared with pure trucks, and the average cost savings is 36.76% compared with the initial solution.
[0069] like Fig.10 The figure shows a schematic diagram of the transportation cost change trend under different truck congestion situations provided by an embodiment of the present invention. It can be seen that as the congestion gradually increases, the route cost with drones first gradually increases relative to the cost of pure trucks, and then gradually decreases. This is because as the speed of the truck decreases, the drone has more time to visit more and farther customer points, which can effectively reduce the access cost of the truck. However, after reaching a certain threshold, the excessively slow truck speed makes it impossible for the drone to synchronize with the truck after performing the delivery task, resulting in fewer drone routes, which in turn leads to increased costs, and the cost savings relative to non-congested conditions are also reduced. In summary, in the increasingly congested urban road traffic, drones will have a good complementary effect on truck logistics distribution, and the collaborative distribution of drones and trucks will become a very potential transportation mode.
[0070] This paper aims at the problem of optimizing the delivery path of drones and trucks, taking into account the common congestion phenomenon in life and the relevant characteristics of the truck-drone combination, and establishes a model for research. Specifically: 1) This invention can effectively improve the drone truck collaborative delivery path planning scheme when trucks face road congestion, and can save 16.89% of the cost per capita when dealing with random congestion based on road sections. In the morning and evening rush hours in the city, the model can be adjusted to effectively deal with time-varying congestion based on time, which can save an additional 24.90% of the cost.
[0071] 2) The modeling of the present invention targets the battery characteristics of drones, focusing on the relationship between the battery consumption of drones and the flight time and load characterization, which can reflect a more realistic drone delivery process, and the results are more practical; 3) A general heuristic algorithm that is not problem-oriented is designed for the two congestion models. The algorithm can find the global optimal solution at a running time that is much faster than the solution time of the commercial solver CPLEX. Due to the non-problem-oriented nature of the algorithm, it has the potential to assist in real urban low-altitude delivery path planning.
[0072] It can be understood that the embodiment of the present invention divides road congestion into random congestion based on the spatial position of the road section and time-varying congestion based on time, and constructs the corresponding first mixed integer programming model and second mixed integer programming model respectively, selects the target mixed integer programming model according to the current time period, and obtains the initial feasible solution through nearest neighbor search and variable neighborhood descent, and then performs local search optimization on the initial feasible solution to obtain the final solution, which improves the accuracy of the truck-UAV collaborative delivery path planning, thereby improving the efficiency of the truck-UAV collaborative delivery and reducing transportation costs.
[0073] like Fig.11 FIG. 1 is a schematic diagram of a truck-drone collaborative delivery path planning system considering road congestion provided by an embodiment of the present invention, referring to FIG. Fig.11 , an embodiment of the present invention provides a truck-UAV collaborative delivery path planning system considering road congestion, including: A model building module, used for building a first mixed integer programming model considering random congestion and a second mixed integer programming model considering time-varying congestion; A model determination module, used to determine the first mixed integer programming model or the second mixed integer programming model as a target mixed integer programming model according to the current period; An initial feasible solution determination module is used to perform nearest neighbor search and variable neighborhood descent on the target mixed integer programming model according to the truck parameters, the drone parameters and the target road network data to obtain an initial feasible solution; The final solution determination module is used to perform local search optimization on the initial feasible solution based on the disturbance neighborhood and the descent neighborhood to obtain the final solution, and then determine the target truck path and the target drone path according to the final solution; Among them, the first mixed integer programming model includes the objective function of minimizing the total driving cost of trucks and drones, distribution tool constraints, truck service constraints, truck path flow balance constraints, drone service constraints, drone take-off and landing point constraints, truck out-of-warehouse constraints, truck entry constraints, drone take-off number constraints, drone landing number constraints, drone mission time constraints, drone customer demand constraints, sub-loop elimination constraints, first drone power constraints, truck load constraints and first decision variable constraints; the second mixed integer programming model includes the objective function of minimizing the total driving cost of trucks and drones, distribution tool constraints, truck service constraints, truck path flow balance constraints, drone service constraints, drone take-off and landing point constraints, truck out-of-warehouse constraints, truck entry constraints, drone take-off number constraints, drone landing number constraints, truck drone synchronization constraints, drone customer demand constraints, sub-loop elimination constraints, second drone power constraints, truck load constraints, first decision variable constraints, sub-segment total length constraints, segment length constraints, time period continuity constraints, segment driving time constraints, node arrival time constraints, node departure time constraints, segment starting point departure time and end point arrival time constraints, service time constraints, warehouse exit time constraints, initial time period constraints and second decision variable constraints.
[0074] The contents of the above method embodiments are all applicable to the present system embodiments. The functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0075] The embodiment of the present invention also provides an electronic device, the electronic device comprising: a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for realizing connection and communication between the processor and the memory, and when the program is executed by the processor, the above-mentioned truck-drone collaborative delivery path planning method considering road congestion is realized. The electronic device can be any intelligent terminal including a tablet computer, a vehicle-mounted computer, etc.
[0076] like Fig.12 FIG. 1 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present invention, referring to FIG. Fig.12 , an embodiment of the present invention provides an electronic device, including: The processor 1201 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present invention; The memory 1202 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1202 can store an operating system and other applications. When the technical solution provided in the embodiments of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1202, and the processor 1201 calls and executes the truck-drone collaborative delivery path planning method considering road congestion in the embodiment of the present invention; Input / output interface 1203, used to implement information input and output; The communication interface 1204 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.); A bus 1205 that transmits information between various components of the device (e.g., the processor 1201, the memory 1202, the input / output interface 1203, and the communication interface 1204); The processor 1201 , the memory 1202 , the input / output interface 1203 and the communication interface 1204 are connected to each other in communication within the device via the bus 1205 .
[0077] like Fig.13 FIG. 1 is a schematic diagram of a storage medium according to an embodiment of the present invention. Fig.13 An embodiment of the present invention further provides a storage medium, which is a computer-readable storage medium used for computer-readable storage. The storage medium stores one or more programs 1301, and the one or more programs 1301 can be executed by one or more processors to implement the above-mentioned truck-UAV collaborative delivery path planning method considering road congestion.
[0078] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0079] The embodiment of the present invention also discloses a computer program product or a computer program, wherein the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device can read the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes Figure 1 The method shown.
[0080] In some selectable embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the above-mentioned boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the present invention is provided by way of example, for the purpose of providing a more comprehensive understanding of technology. The disclosed method is not limited to the operation and logic flow presented herein. Selectable embodiments are expected, wherein the order of various operations is changed and the sub-operation of a part for which is described as a larger operation is performed independently.
[0081] In addition, although the present invention is described in the context of functional modules, it should be understood that, unless otherwise specified to the contrary, one or more of the above-mentioned functions and / or features can be integrated into a single physical device and / or software module, or one or more functions and / or features can be implemented in a separate physical device or software module. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the present invention. More specifically, in view of the properties, functions and internal relationships of the various functional modules in the device disclosed herein, the actual implementation of the module will be understood within the conventional skills of the engineer. Therefore, those skilled in the art can implement the present invention set forth in the claims without excessive experimentation using ordinary techniques. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present invention, which is determined by the full scope of the appended claims and their equivalents.
[0082] If the above functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the above methods of various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0083] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0084] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the above-mentioned program is printed, since the above-mentioned program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or processing in other suitable ways as necessary, and then stored in a computer memory.
[0085] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0086] In the above description of this specification, the description with reference to the terms "one embodiment / example", "another embodiment / example" or "certain embodiments / examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0087] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
[0088] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the above embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.
Claims
1. A truck-drone collaborative delivery path planning method considering road congestion, characterized in that: The following steps are involved: Constructing a first mixed integer programming model considering random congestion and a second mixed integer programming model considering time-varying congestion; Determining, according to a current period, the first mixed integer programming model or the second mixed integer programming model as a target mixed integer programming model; Performing nearest neighbor search and variable neighborhood descent on the target mixed integer programming model according to the truck parameters, the drone parameters and the target road network data to obtain an initial feasible solution; Performing local search optimization on the initial feasible solution based on the disturbance neighborhood and the descent neighborhood to obtain a final solution, and then determining a target truck path and a target drone path according to the final solution; Among them, the first mixed integer programming model includes the objective function of minimizing the total driving cost of trucks and drones, distribution tool constraints, truck service constraints, truck path flow balance constraints, drone service constraints, drone take-off and landing point constraints, truck out-of-warehouse constraints, truck entry constraints, drone take-off number constraints, drone landing number constraints, drone mission time constraints, drone customer demand constraints, sub-loop elimination constraints, first drone power constraints, truck load constraints and first decision variable constraints; the second mixed integer programming model includes the objective function of minimizing the total driving cost of trucks and drones, distribution tool constraints, truck service constraints, truck path flow balance constraints, drone service constraints, drone take-off and landing point constraints, truck out-of-warehouse constraints, truck entry constraints, drone take-off number constraints, drone landing number constraints, truck drone synchronization constraints, drone customer demand constraints, sub-loop elimination constraints, second drone power constraints, truck load constraints, first decision variable constraints, sub-segment total length constraints, segment length constraints, time period continuity constraints, segment driving time constraints, node arrival time constraints, node departure time constraints, segment starting point departure time and end point arrival time constraints, service time constraints, warehouse exit time constraints, initial time period constraints and second decision variable constraints.
2. According to claim 1, a truck-drone collaborative delivery path planning method considering road congestion is characterized in that: The objective function is: ; The delivery tool constraints are: ; The truck service constraints are: ; The truck path flow balance constraint is: ; The drone service constraints are: ; The UAV take-off and landing point constraints are: ; The truck exit constraint is: ; The truck entry constraints are: ; The UAV takeoff frequency constraint is: ; The number of drone landings is constrained as follows: ; The UAV mission time constraint is: ; The UAV customer demand constraints are: ; The elimination sub-loop constraint is: ; The power constraint of the first UAV is: ; The truck load constraint is: ; The first decision variable constraint is: ; ; Where n represents the total number of customer points, represents the set of all customer points, ={1,2,⋯,n}, Represents the node set of the starting point and all customer points, The node set representing the end point and all customer points, represents the set of available trucks, Truck Whether , Equal to 1 means yes, Equal to 0 means no, express The distance between represents the unit mileage cost of the truck, Truck Whether the drones carried by the vehicle pass continuously and , Equal to 1 means yes, Equal to 0 means no, express The distance between represents the unit mileage cost of drone flight, Representation Node Is it arranged for a truck? , Equal to 1 means yes, Equal to 0 means no, Representation Node Is it arranged for a truck? The drone carried Equal to 1 means yes, Equal to 0 means no, Representation Node Is it arranged for a truck? , Equal to 1 means yes, Equal to 0 means no, Truck Whether , Equal to 1 means yes, Equal to 0 means no, Representation Node Is it arranged for a truck? The drone carried Equal to 1 means yes, Equal to 0 means no, Truck Whether , Equal to 1 means yes, Equal to 0 means no, Truck Whether , Equal to 1 means yes, Equal to 0 means no, Truck Whether , Equal to 1 means yes, Equal to 0 means no, Indicates the drone slave node Travel to the node time, Indicates the drone slave node Travel to the node time, Represents the truck from the node Travel to the node time, M represents an infinite positive number, Representation Node demand, Indicates the maximum load of the drone. and All represent sub-loop elimination variables, Indicates the weight of the cargo. Indicates the drone's own weight. r Indicates the power consumption rate per unit time of the drone, Indicates the maximum battery capacity of the drone. Indicates the maximum load capacity of the truck.
3. The method for truck-drone collaborative delivery path planning considering road congestion according to claim 2 is characterized in that: The truck-drone synchronization constraints are: ; The power constraint of the second UAV is: ; The total length constraint of the sub-segment is: ; The segment length constraint is: ; The time period continuity constraint is: ; The road segment travel time constraint is: ; The node arrival time constraint is: ; The node departure time constraint is: ; The departure time at the starting point and the arrival time at the end point of the section are constrained as follows: ; ; The service time constraints are: ; The exit time constraint is: ; The initial time period constraints are: ; The second decision variable constraint is: ; ; ; in, Indicates that the truck leaves the node time, Represents the truck arrival node time, Represents the truck arrival node time, Represents the truck arrival node time, Represents a set of time periods, Indicates time period The speed of the truck within Truck In the period Passing through time, Truck In the period Whether it has passed , Equal to 1 means yes, Equal to 0 means no, Truck In the period Whether it has passed , Equal to 1 means yes, Equal to 0 means no, Truck In the period Whether it has passed , Equal to 1 means yes, Equal to 0 means no, Indicates time period The beginning moment, Indicates time period The end moment, Indicates the end time of the last period. represents the time when the truck leaves the starting point, Truck Whether the initial period has passed , Equal to 1 means yes, Equal to 0 means no.
4. The method for truck-drone collaborative delivery path planning considering road congestion according to claim 1 is characterized in that: The step of determining the first mixed integer programming model or the second mixed integer programming model as the target mixed integer programming model according to the current period is specifically: If the current time period is a non-peak time period, the first mixed integer programming model is determined to be the target mixed integer programming model; if the current time period is a peak time period, the second mixed integer programming model is determined to be the target mixed integer programming model.
5. The method for truck-drone collaborative delivery path planning considering road congestion according to claim 1 is characterized in that: The target mixed integer programming model is subjected to nearest neighbor search and variable neighborhood descent according to the truck parameters, the drone parameters and the target road network data to obtain an initial feasible solution, which specifically includes: Setting parameters of the target mixed integer programming model according to the truck parameters, the drone parameters and the target road network data; Solving the target mixed integer programming model through nearest neighbor search to obtain a feasible solution for the first truck path; Performing variable neighborhood descent on the first truck path feasible solution to obtain an initial truck path feasible solution; The corresponding initial UAV path feasible solution is determined according to the initial truck path feasible solution, and then the initial feasible solution is generated according to the initial truck path feasible solution and the initial UAV path feasible solution.
6. The method for truck-drone collaborative delivery path planning considering road congestion according to claim 1 is characterized in that: The local search optimization of the initial feasible solution based on the disturbance neighborhood and the descent neighborhood specifically includes: Determine a disturbance neighborhood set and a descent neighborhood set, and use the initial feasible solution as a current feasible solution; Randomly selecting a perturbation neighborhood from the perturbation neighborhood set to perform neighborhood perturbation on the current feasible solution to obtain a first feasible solution; Optimizing the current feasible solution through the descending neighborhood set to obtain a second feasible solution; Calculating the fitness function values of the first feasible solution and the second feasible solution respectively; When the fitness function value of the second feasible solution is less than the fitness function value of the first feasible solution, taking the second feasible solution as the optimized current feasible solution; When the fitness function value of the second feasible solution is greater than or equal to the fitness function value of the first feasible solution, the first feasible solution is used as the optimized current feasible solution.
7. The method for truck-drone collaborative delivery path planning considering road congestion according to claim 6 is characterized in that: The local search optimization of the initial feasible solution based on the disturbance neighborhood and the descent neighborhood also includes: The number of optimized solutions corresponding to each descending neighborhood in the descending neighborhood set is obtained, and the descending neighborhoods in the descending neighborhood set are reordered according to the number of optimized solutions.
8. A truck-drone collaborative delivery path planning system considering road congestion, characterized in that: include: A model building module, used for building a first mixed integer programming model considering random congestion and a second mixed integer programming model considering time-varying congestion; a model determination module, configured to determine, according to a current period, the first mixed integer programming model or the second mixed integer programming model as a target mixed integer programming model; An initial feasible solution determination module is used to perform nearest neighbor search and variable neighborhood descent on the target mixed integer programming model according to the truck parameters, the drone parameters and the target road network data to obtain an initial feasible solution; A final solution determination module is used to perform local search optimization on the initial feasible solution based on a disturbance neighborhood and a descent neighborhood to obtain a final solution, and then determine a target truck path and a target drone path according to the final solution; Among them, the first mixed integer programming model includes the objective function of minimizing the total driving cost of trucks and drones, distribution tool constraints, truck service constraints, truck path flow balance constraints, drone service constraints, drone take-off and landing point constraints, truck out-of-warehouse constraints, truck entry constraints, drone take-off number constraints, drone landing number constraints, drone mission time constraints, drone customer demand constraints, sub-loop elimination constraints, first drone power constraints, truck load constraints and first decision variable constraints; the second mixed integer programming model includes the objective function of minimizing the total driving cost of trucks and drones, distribution tool constraints, truck service constraints, truck path flow balance constraints, drone service constraints, drone take-off and landing point constraints, truck out-of-warehouse constraints, truck entry constraints, drone take-off number constraints, drone landing number constraints, truck drone synchronization constraints, drone customer demand constraints, sub-loop elimination constraints, second drone power constraints, truck load constraints, first decision variable constraints, sub-segment total length constraints, segment length constraints, time period continuity constraints, segment driving time constraints, node arrival time constraints, node departure time constraints, segment starting point departure time and end point arrival time constraints, service time constraints, warehouse exit time constraints, initial time period constraints and second decision variable constraints.
9. An electronic device, characterized in that: The electronic device includes a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for realizing connection and communication between the processor and the memory. When the program is executed by the processor, the steps of the truck-drone collaborative delivery path planning method considering road congestion are realized as described in any one of claims 1 to 7.
10. A storage medium, the storage medium being a computer-readable storage medium, used for computer-readable storage, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the truck-drone collaborative delivery path planning method considering road congestion as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Collaborative path planning method and system for vehicle-assisted multi-unmanned aerial vehicle task execution
CN115950433A
Unmanned aerial vehicle and truck collaborative distribution method considering battery replacement plan
CN116911729A
Multi-truck multi-unmanned aerial vehicle task allocation method based on improved variable neighborhood descent
CN118378981A
Multi-depot vehicle routing method, apparatus, computer device and storage medium
WO2021142917A1
Cited By
Truck and unmanned aerial vehicle collaborative distribution method based on hybrid eagle-variable neighborhood search
CN119919036A
Aircraft-based vehicle path planning method and data processing system
CN120721118A
Generation method and device of unmanned aerial vehicle path planning and adjustment scheme under hybrid demand, computer equipment and storage medium
CN121540155A
