UAV delivery dispatching method, device, equipment and storage medium
By establishing a time-extended flow network and an integer linear programming model, the UAV scheduling scheme is optimized, which solves the problem of limited battery energy in the UAV delivery system, improves the reliability and safety of the system, and achieves more efficient delivery. meal plan.
Patent Information
- Application Number
- CN202410564921.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-09
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-05-09
AI Technical Summary
The limited battery energy and energy consumption issues in drone delivery systems threaten system reliability and safety, and there is a lack of effective energy supplement solutions.
By obtaining the map information, battery information and order information of the UAV dispatching system, a time-expanded flow network and an integer linear programming model are established, combined with a hybrid variable domain search algorithm, to optimize the UAV dispatching plan to maximize on-time food delivery profits. , and decide whether to replace the battery during food delivery.
It improves the reliability and safety of the drone food delivery system, increases the overall revenue of the delivery system, and ensures the feasibility of on-time food delivery and the effectiveness of battery replacement decisions.
Smart Images

Figure CN118154067B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of drone dispatching, and in particular to a drone delivery dispatching method, device, equipment and storage medium. Background Art
[0002] With the accelerated pace of life, technological advancement, and the rise of numerous online food ordering platforms, the convenience of food ordering services has continued to increase, leading to a sharp increase in the demand for online food ordering. As the demand for food ordering grows, food delivery platforms face the challenge of ensuring on-time delivery, and delivery speed becomes a key factor in maintaining customer satisfaction. To address this issue, efforts are usually made to complete delivery before the promised delivery time for each order. In order to provide high-quality services, these platforms usually rely on a large number of part-time couriers to complete orders. However, due to rising labor costs and road congestion, food delivery platforms are actively seeking alternative solutions.
[0003] Drones have the advantages of faster flight speed and freedom from road restrictions, making drone delivery an attractive alternative. However, drones have limited battery energy, which brings potential risks. Unlike traditional human couriers, any energy interruption of drones may pose a serious threat to public safety. The limited battery energy and energy consumption of drones increase the need for energy replenishment. Therefore, it is crucial to consider energy consumption and explore innovative solutions for drone battery replacement decisions to improve the reliability and safety of drone food delivery systems. Summary of the invention
[0004] The present invention provides a drone delivery scheduling method, device, equipment and storage medium, aiming to solve at least one problem existing in the above-mentioned prior art.
[0005] The present invention provides a drone delivery scheduling method, comprising:
[0006] Obtain map information of the drone dispatch system;
[0007] Get the battery information of each drone;
[0008] Obtaining order information of each pending order, wherein the order information includes delivery location information and menu information;
[0009] Based on the order information, the map information and the battery information of each of the drones, an optimal scheduling plan for the drones is determined.
[0010] According to a drone delivery scheduling method provided by the present invention, the optimal scheduling scheme of the drones is determined based on the order information, the map information and the battery information of each drone, including:
[0011] Combine the order information, the map information and the battery information of each drone to establish a time-expanded flow network, and establish an integer linear programming model based on the flow network, wherein each delivery plan of the drone is represented by a node in the flow network, and a complete scheduling plan of a drone is represented by a flow path composed of different nodes;
[0012] Based on a pre-built hybrid variable domain search algorithm, the integer linear programming model is solved to obtain an optimal scheduling solution for the UAV.
[0013] According to a drone delivery scheduling method provided by the present invention, the time-expanded flow network is established by combining the order information, the map information and the battery information of each drone, and an integer linear programming model is established based on the flow network, including:
[0014] Determine the delivery deadline for each pending order and the drone’s energy consumption information;
[0015] Determining whether a delivery trip for the pending order is feasible based on the battery information, the delivery deadline, and the energy consumption information of the drone;
[0016] Based on all feasible delivery itineraries of any drone, a search tree is constructed, where the root node of the search tree represents the drone's delivery service starting from the take-off and landing station; each node of the tree represents a feasible delivery plan for an order, or a feasible scheduling plan for a drone trip; each node has a set of child nodes, which represent the feasible scheduling plans for subsequent trips of the drone;
[0017] Optimizing the traversal of the search tree to construct a time-expanded flow network, and setting value arcs between nodes in the flow network, wherein the value arcs are used to characterize the delivery profit of the pending order;
[0018] Based on the flow network, the UAV scheduling problem is expressed as an integer linear programming model.
[0019] According to a drone delivery scheduling method provided by the present invention, each node of the search tree represents a feasible delivery itinerary, wherein each node of the search tree is represented by (k, y, p, z, ɑ), k is the number of the drone that realizes the delivery itinerary, y is a binary variable used to indicate whether the drone needs to change the battery before realizing the delivery itinerary, p represents the order number of the pending order, ɑ represents the arrival time of the drone at the delivery destination, and z is the remaining power of the drone to complete the delivery itinerary;
[0020] The optimization traverses the search tree to construct a time-expanded flow network and sets value arcs between nodes in the flow network, including:
[0021] Introduce source node o and sink node d;
[0022] For any two nodes and nodes :If the search tree of drone k yes The parent node of arrive Directed arc of ; For any node in the flow network , construct a node from source node o to node The connecting arc , build a slave node Connect arcs to the sink node d to construct a flow network , where a flow network is a node and arc For a directed acyclic network, let Representing Arc The unit flow cost for arc : Set the unit traffic cost , for all connected arcs, the unit flow cost is zero;
[0023] Based on the flow network, the UAV scheduling problem is expressed as an integer linear programming model, including:
[0024] Set the goal to maximize the total profit gained from on-time delivery;
[0025] In the constructed flow network, the delivery profit of an order is represented by the negative value of the unit flow cost on a certain arc, and the objective function of maximizing the total profit obtained from on-time delivery is set to minimize the total flow cost in the flow network.
[0026] According to a drone delivery scheduling method provided by the present invention, the pre-built hybrid variable domain search algorithm is used to solve the integer linear programming model to obtain the optimal scheduling solution for the drone, including:
[0027] Selecting the order with the highest delivery profit from the pending orders to be assigned to the drones and assigning it to each drone, and determining the delivery plan with the shortest delivery completion time for each drone;
[0028] According to the order allocation plan with the highest delivery profit, the drone delivery plan is updated until all pending orders are allocated and a feasible plan is obtained;
[0029] Perform neighborhood iterative search and update on the target feasible solution to obtain the optimal scheduling solution.
[0030] According to a drone delivery scheduling method provided by the present invention, performing neighborhood iterative search and updating on the target feasible solution to obtain the optimal scheduling solution includes:
[0031] Determine the four pre-set destruction operators: randomly delete the orders that have been assigned for delivery; greedily delete the orders that have been assigned for delivery with the smallest profit; randomly delete all the delivery plans of the drone; greedily delete the delivery plan of the drone with the smallest total delivery profit;
[0032] Determine a pre-set reconstruction operator: the solution that requires the least additional time to deliver the order;
[0033] Combining four destruction operators with the reconstruction operator respectively to obtain four combination results;
[0034] Based on the selected combination result, the target feasible solution is deleted and reallocated to obtain a solution;
[0035] If the overall distribution profit of the solution is greater than the total distribution profit of the target feasible solution, the solution is used as a new target feasible solution, and the number of unimproved consecutive times corresponding to the combination result is set to 0; based on the current combination result, return to the step of performing the deletion and reallocation operations on the target feasible solution to obtain the solution;
[0036] If the overall distribution profit of the solution is not greater than the total distribution profit of the target feasible solution, the number of consecutive times of no improvement is recorded until the number of consecutive times reaches a preset threshold, and the next combination result is called to perform deletion and reallocation operations on the target feasible solution based on the new combination result;
[0037] When all combination results have completed the iteration, the optimal solution with the maximum profit in the iteration process will be output to obtain the optimal scheduling plan.
[0038] According to a drone delivery scheduling method provided by the present invention, the integer linear programming model is as follows:
[0039]
[0040] Among them, Formula 1 is the objective function, which is used to characterize the minimization of the total flow cost in the flow network; Formula 2 indicates that all drones depart from the take-off and landing station; Formula 3 indicates that all take-off and landing stations return to the take-off and landing station after completing the mission; Formula 4 represents the flow balance constraint; Formula 5 indicates that each order is served at most once; Formula 6 represents the decision variable value constraint; is a binary variable, representing the arc The flow rate on Indicates the drone execution node the delivery itinerary indicated; Indicates that the same order number is involved in the flow network The node set of Characterizes each node in the flow network excluding source nodes and sink nodes; represents the set of serial numbers of pending orders; A represents all arcs in the flow network; K represents the number of drones.
[0041] The present invention also provides a UAV delivery dispatching device, comprising:
[0042] The first acquisition module is used to obtain map information of the drone dispatching system;
[0043] The second acquisition module is used to obtain the battery information of each drone;
[0044] A third acquisition module is used to acquire order information of each pending order, wherein the order information includes delivery location information and menu information;
[0045] The scheduling module is used to determine the optimal scheduling plan for the drones based on the order information, the map information and the battery information of each drone.
[0046] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the drone delivery scheduling method described above is implemented.
[0047] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the drone delivery scheduling method as described in any one of the above is implemented.
[0048] The present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned drone delivery scheduling methods.
[0049] The drone delivery scheduling method, device, equipment and storage medium provided by the present invention include: obtaining map information of the drone scheduling system; obtaining battery information of each drone; obtaining order information of each pending order, wherein the order information includes delivery location information and menu information; determining the optimal scheduling plan for the drone based on the order information, the map information and the battery information of each drone. In order to maximize the overall profit of on-time food delivery, the present invention configures drones to be dispatched from take-off and landing stations to designated food delivery destinations. The present invention comprehensively considers the special constraints of drone food delivery, such as delivery profit, delivery time and limited drone battery energy, and considers whether the drone needs to replace the battery when returning to the launch site, thereby improving the reliability and safety of the drone food delivery system by incorporating battery replacement decisions, thereby increasing the revenue of the delivery system. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced one by one below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0051] Figure 1 It is a flow chart of the UAV delivery scheduling method provided by the present invention;
[0052] Figure 2 It is a structural schematic diagram of the UAV delivery scheduling device provided by the present invention;
[0053] Figure 3 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0055] The terms used in one or more embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of the present invention. The singular forms of "a", "said" and "the" used in one or more embodiments of the present invention are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of the present invention refers to and includes any or all possible combinations of one or more associated listed items.
[0056] It should be understood that, although the terms first, second, etc. may be used to describe various information in one or more embodiments of the present invention, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of the present invention, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "when..." or "when...".
[0057] Figure 1 FIG. 1 is a flow chart of the drone delivery scheduling method provided by the present invention. Figure 1 As shown, the drone delivery scheduling method includes:
[0058] Step S11, obtaining map information of the drone dispatching system;
[0059] It should be noted that the map information can be obtained by a positioning system, such as China's Beidou positioning system, GPS system, GLONASS system, and European Galileo system. The positioning system can be used for multi-dimensional positioning of transportation routes, and the drone delivery route can be viewed through the positioning system on a mobile terminal or PC. The map information includes the drone delivery route, the initial starting point, the intersection point, the safety distance, the conveying speed, the loading point, the unloading point, and the waiting area, where the drone delivery route is the route for providing drone delivery, the initial starting point is the starting point of the drone on the drone delivery route, the intersection point is the intersection point of the drone delivery route with each drone delivery route branch, the safety distance is the distance between two adjacent drones, the conveying speed is the transmission speed of the drone on the drone delivery route, the loading point is the location where the drone loads the food, the unloading point is the location where the drone stops and unloads the food, and the waiting area is the area where the drone waits. For example, when a drone arrives and the previous drone has not yet completed unloading the food, the drone will not be allowed to unload the food immediately, but will wait in the waiting area first, and then go to the unloading point from the waiting area.
[0060] Step S12, obtaining battery information of each drone;
[0061] It should be noted that the drone monitoring system can monitor the battery usage of the drone in real time. The drone battery usage includes the current time and the power consumption and remaining status of the drone. It can track the power level of the drone at any time when it arrives at the drone food delivery route, which helps to execute battery replacement decisions.
[0062] In some embodiments, a drone number set is set As the identification of drones to achieve on-demand food delivery, the available status of drone k is used express, and represents the time and battery energy available for drone k at the launch site. In order to ensure the reliability of drone delivery and minimize the risk of drone failure, in this embodiment, the system uses small drones with low payload capacity. It can be understood that each drone is set to carry only one meal at a time between the launch site and a specific customer location, where the one-way flight time of the drone from the launch site of meal order p to the delivery destination is recorded as , the time to load the meal onto the UAV at the launch site or to unload the meal at the delivery destination is represented by s.
[0063] In addition, considering the limited flight endurance of the drone, the symbol Q is introduced to represent the energy level of the fully charged battery equipped on the drone. Every time the drone returns to the launch site, it checks the remaining battery energy and decides whether to replace its battery with a fully charged battery. If the battery is replaced, the duration required to replace the battery is set to , the battery energy is updated to q, and the energy consumed in the round trip of delivering meal order p is The specific calculation formula for the consumed energy is as follows:
[0064]
[0065] Where W represents the weight of the drone frame, m represents the weight of the battery, represents gravity, represents the fluid density of air, represents the area of the rotating blade disk, Indicates the one-way flight time from the launch location to the delivery destination. represents the order weight, and n represents the number of rotors of the drone; represents the energy consumed by delivering meal order p from the launch location to the delivery destination, Indicates the energy consumed in delivering the food to the destination and returning to the launch site
[0066] Step S13, obtaining order information of each order to be processed, wherein the order information includes delivery location information and menu information;
[0067] It should be noted that the ordering platform monitors the order information of different customer points in the map, and the order information includes the delivery location information and the menu information. When a customer places an order, the menu is reflected on the drone delivery route through the positioning system. In some embodiments, the menu information includes the weight of the menu, the time to prepare the menu, and the profit of delivering the menu. In one embodiment, the sequence number set of pending orders is represented as . Each pending order p is characterized by ,in, Indicates the weight of the order, Indicates the delivery destination. Indicates the time when the order can be delivered at the take-off and landing station. The profit of delivering order p on time is shown. If order p promises on-time delivery, then order p should arrive at the designated delivery destination within the promised time, thus setting the delivery deadline as .
[0068] Step S14, determining the optimal dispatching plan for the drones based on the order information, the map information and the battery information of each drone.
[0069] It should be noted that in order to maximize the total profit of on-time delivery, the delivery scheduling of each drone is optimized, including meal order distribution and battery energy management. This task can be described by several decisions: (1) Order Whether it is delivered. (2) If the order Commit to on-time delivery and assign which drone to deliver the food. (3) Specify the order in which the orders should be delivered. (4) Whether the drone battery needs to be replaced with a fully charged one before each delivery. This helps in real-time drone scheduling for food delivery and fulfilling food orders with tight lead times under battery constraints and drone weight constraints. Therefore, the drone delivery schedule has the following characteristics:
[0070]
[0071] in, Indicates Decisions related to the next delivery trip. is a binary variable, indicating Do you replace the drone battery before the next delivery? Indicates orders delivered during this delivery period.
[0072] In addition, the delivery time is constrained by feasibility requirements, including the delivery time of the order commitment and the energy consumption associated with the drone load. First, consider the feasible continuous trip condition. Suppose drone k orders p1 in the current trip, during which drone k is at time Arrives at the delivery destination with the remaining battery energy Return to the landing station. Drone k can deliver meal order p2 in time during the next trip, provided that one of the following conditions is met:
[0073]
[0074] Where s represents the time to load the meal onto the drone or unload the meal at the delivery destination. represents the one-way flight time of order p1 from the launch location to the delivery destination, represents the one-way flight time of order p2 from the launch location to the delivery destination, Indicates the delivery deadline specified in order p2, represents the energy consumed by the round trip of order p2; Indicates the time when order p2 can be delivered at the take-off and landing station.
[0075] Without changing the battery, the drone must arrive at the delivery destination before the stipulated delivery deadline, and the battery power must be sufficient to cover the entire journey.
[0076]
[0077] in, represents the duration required to replace the battery and Q represents the energy level of a fully charged battery equipped on the drone; thus, the delivery deadline can still be achieved even taking into account the time required to replace the battery.
[0078] Drone Taking the first delivery trip as an example, the order p can be delivered on time only if it meets one of the following conditions:
[0079]
[0080] in, and Respectively represent drones The available time and battery energy at the launch site. These constraints ensure the feasibility of the order delivery deadline and the energy consumption of the drone without and with battery replacement, respectively. In order to maintain the energy efficiency of the drone-based delivery system, a load-dependent energy consumption model is considered, which considers the scheduling scheme of the drone under the load constraint and the battery replacement decision of the drone.
[0081] In order to further simplify the decision of replacing the battery, this embodiment pre-configures the following theorem:
[0082] Theorem 1: For two menus p and q, we have and , if they are delivered by the same drone, then there is an optimal solution where order p is delivered before order q. This means that drone scheduling should prioritize earlier preparation times and closer destinations. Theorem 2: Consider drone k delivering order p in the next trip. If the drone is at time If the aircraft then returns to the launch site and the battery power is sufficient to deliver the meal, there is no need to replace the battery.
[0083] Thus, the order information, the map information and the battery information of each drone are combined to establish a time-expanded flow network, and an integer linear programming model is established based on the flow network, wherein each drone delivery plan is represented by a node in the flow network, and a complete scheduling plan for a drone is represented by a flow path composed of different nodes; the integer linear programming model is solved to obtain the optimal scheduling plan for the drone. The construction process and solution process of the integer linear programming model are specifically described in the following embodiments and will not be repeated here. Thus, the scheduling of drones in real-time food delivery can achieve the fulfillment of meal orders with tight lead times under the load-dependent energy consumption constraints.
[0084] In order to maximize the overall profit of on-time food delivery, the embodiment of the present invention configures drones to be dispatched from take-off and landing stations to designated food delivery destinations, and comprehensively considers special constraints of drone food delivery, such as delivery profit, delivery time, and limited drone battery energy, as well as whether the battery needs to be replaced when the drone returns to the launch site. This improves the reliability and safety of the drone food delivery system by incorporating battery replacement decisions, thereby increasing the revenue of the delivery system.
[0085] In one embodiment of the present invention, the combining the order information, the map information and the battery information of each of the drones to establish a time-extended flow network, and to establish an integer linear programming model based on the flow network, includes:
[0086] Determine the delivery deadline of each pending order and the energy consumption information of the drone; determine whether the delivery itinerary of the pending order is feasible based on the battery information, the delivery deadline and the energy consumption information of the drone; construct a search tree based on all feasible delivery itineraries of any drone, wherein the root node of the search tree represents the drone's delivery service starting from the take-off and landing station; each node of the tree represents a feasible delivery plan for an order, or a feasible scheduling plan for a drone trip; each node has a group of child nodes, and the child nodes represent feasible scheduling plans for subsequent trips of the drone; optimize the traversal of the search tree to construct a time-extended flow network, and set value arcs between each node in the flow network, wherein the value arcs are used to characterize the delivery profit of the pending order; based on the flow network, express the drone scheduling problem as an integer linear programming model.
[0087] It should be noted that in order to determine the feasibility of the delivery trip, it is first determined whether the delivered order requires the replacement of the drone battery, and then the feasibility conditions related to the delivery deadline and the drone's energy consumption information are checked. Based on the battery information, delivery deadline and energy consumption information, it is determined whether the delivery trip of the pending order is feasible, where if the drone can reach the delivery destination within the specified time and the battery power is sufficient to complete the delivery trip, the delivery trip is feasible.
[0088] Furthermore, based on all feasible delivery trips of any drone, a search tree is constructed, wherein the root node of the tree represents the drone's delivery service starting from the take-off and landing station. Each node of the tree represents a feasible delivery plan for an order, or a feasible scheduling plan for a drone trip. Each node can have a set of child nodes, which represent continuous trips after the delivery trip represented by . Each node of the search tree represents a feasible delivery trip, wherein each node of the search tree is represented by (k, y, p, z, ɑ), k is the drone number that realizes the delivery trip, y is a binary variable used to indicate whether the drone needs to change the battery before realizing the delivery trip, p represents the order number of the pending order, ɑ represents the arrival time of the drone at the delivery destination, and z is the remaining power of the drone to complete the delivery trip.
[0089] Furthermore, the entire search tree is traversed to determine all feasible delivery trips, for example, using a depth-first search algorithm. In more detail, for a given node , first find consecutive delivery trips that do not require battery replacement, and then consider additional trips that require battery replacement at the launch site. The process of enumerating all feasible delivery trips can be made computationally more efficient by exploiting Theorems 1 and 2, where: Theorem 1: For two orders p and q, we have and , if they are delivered by the same drone, then there is an optimal solution where order p is delivered before order q. This means that drone scheduling should prioritize earlier preparation times and closer destinations. Theorem 2: Consider drone k delivering order p in the next trip. If the drone is at time After returning to the launch site, if the battery power is sufficient to deliver the meal order p, there is no need to replace the battery. As an example: given the parent node , Theorem 1 allows to eliminate consecutive delivery trips for meals that have earlier preparation time and are closer to the destination than meal p. In addition, if node The delivery trips represented by satisfy the conditions specified in Theorem 2, and we can only focus on the continuous delivery trips that do not require battery replacement. By utilizing these properties, unnecessary delivery trips can be eliminated, thereby excluding redundant nodes in the search tree, and filtering the nodes in the search tree to obtain the search tree, which helps to simplify the search process and improve computational efficiency.
[0090] Furthermore, based on the search tree of feasible delivery itineraries of drones, a time-expanded flow network is constructed. In more detail: First, a source node o with K supply units and a sink node d with K demand units are introduced into the flow network. Then, for the root node of the search tree of drone k, a node is defined To represent the initial state of UAV k at the launch site. In addition, for each node in the search tree , both define a node in the flow network , and the set of nodes involved in the same p in the flow network is denoted as . Then for any two nodes and nodes :If the search tree of drone k yes The parent node of arrive Directed The connection arcs introduce a guaranteed flow connection from the source node to the sink node: for each node in the flow network , construct a node from source node o to node The connecting arc ; For any node in the flow network , introduce a slave node The connection arc to the sink (end point) node d. Based on this, a flow network is constructed , a flow network is a node and arc In some embodiments, a value arc is set to represent the delivery profit of a meal order. For example, Representing Arc The unit flow cost for arc : Set the unit traffic cost , for all connected arcs, the unit flow cost is zero. It should be noted that in the flow network, drone scheduling is done from the source node o to the sink node Therefore, we define a binary variable To represent the arc The traffic on . Indicates the drone execution node The delivery itinerary indicated.
[0091] Furthermore, for the on-demand meal delivery drone scheduling problem, the goal is to maximize the total profit obtained by on-time meal delivery. Recalling that in the flow network, the delivery profit of a meal order is represented by the negative value of the unit flow cost on a certain arc, which means that the objective function of maximizing the total profit obtained by on-time meal delivery is set to minimize the total flow cost in the flow network, thereby expressing the drone scheduling problem as an integer linear programming model.
[0092] Optionally, the integer linear programming model is as follows:
[0093]
[0094] Among them, Formula 1 is the objective function, which is used to characterize the minimization of the total flow cost in the flow network; Formula 2 indicates that all drones depart from the take-off and landing station; Formula 3 indicates that all take-off and landing stations return to the take-off and landing station after completing the mission; Formula 4 represents the flow balance constraint; Formula 5 indicates that each order is served at most once; Formula 6 represents the decision variable value constraint; is a binary variable, representing the arc The flow rate on Indicates the drone execution node the delivery itinerary indicated; Indicates that the same order number is involved in the flow network The node set of Characterizes each node in the flow network excluding source nodes and sink nodes; represents the set of serial numbers of pending orders; A represents all arcs in the flow network; K represents the number of drones.
[0095] In one embodiment of the present invention, the pre-built hybrid variable domain search algorithm is used to solve the integer linear programming model to obtain the optimal scheduling solution for the UAV, including:
[0096] The order with the largest delivery profit is selected from the pending orders to be assigned to the drones and assigned to each drone, and a delivery plan with the shortest delivery completion time for each drone is determined; the delivery plan of the drone is updated according to the order allocation plan with the largest delivery profit until all the pending orders are allocated and a target feasible plan is obtained; the target feasible plan is updated by performing neighborhood iterative search and update to obtain the optimal scheduling plan.
[0097] It should be noted that the drone delivery plan is represented as a series of delivery trips and battery replacement decisions, using In this embodiment, specifically, starting from a delivery task without a drone, orders are continuously assigned to drones for delivery until all orders are assigned. Specifically: the order with the largest delivery profit is selected from the remaining orders to be assigned to the drones and assigned to each drone, and a delivery plan with the shortest delivery completion time for each drone is determined. Then, the delivery plan of the drone is updated according to the order allocation plan with the largest delivery profit. Until all pending orders are assigned, the target feasible plan is obtained. Furthermore, in order to improve the profit of the overall distribution, the target feasible solution is iteratively updated through neighborhood search to obtain the optimal scheduling solution.
[0098] In one embodiment, performing neighborhood iterative search and updating on the target feasible solution to obtain the optimal scheduling solution includes:
[0099] Determine four pre-set destruction operators: randomly delete the orders that have been assigned for delivery; greedily delete the orders that have been assigned for delivery with the lowest profit; randomly delete all the delivery plans of the drone; greedily delete the delivery plan of the drone with the lowest total delivery profit; determine a pre-set reconstruction operator: the plan with the least additional time required to deliver the order; combine the four destruction operators with the reconstruction operator respectively to obtain four combination results; based on the selected combination results, perform deletion and reallocation operations on the target feasible plan to obtain a solution; if the overall delivery profit of the solution is greater than the total delivery profit of the target feasible plan, then use the solution as the new , and set the unimproved consecutive number of times corresponding to the combination result to 0; based on the current combination result, return to execute the step of performing the deletion and reallocation operations on the target feasible solution to obtain a solution; if the overall distribution profit of the solution is not greater than the total distribution profit of the target feasible solution, then record the unimproved consecutive number of times until the consecutive number reaches a preset number threshold, call the next combination result, and perform the deletion and reallocation operations on the target feasible solution based on the new combination result; when all the combination results have completed the iteration, the optimal solution with the largest profit in the iteration process will be output to obtain the optimal scheduling plan.
[0100] It should be noted that traditional neighborhood operations such as 1-1 Exchange and 1-2 Exchange, whether applicable to different trips of the same drone or different trips of different drones, have failed to improve the overall delivery profit. Therefore, in this embodiment, the following four customized deletion operations are introduced to destroy the current feasible solution: Randomly delete orders : Randomly delete orders that have been assigned to deliveries Greedy Delete Order : Greedy delete the order with the smallest profit among the assigned deliveries . Randomly delete drones : Randomly delete drones All meal delivery plans. Greedy removes drones : Greedy removal of the drone with the smallest total delivery profit meal delivery plan.
[0101] In addition, a reconstruction operator is pre-set: the solution with the least extra time required to deliver the order. It should be noted that an order may have multiple allocation solutions or no allocation solution. In the case of multiple solutions, the solution with the least extra time required to deliver the order is selected. If there is no feasible allocation solution, it proves that the order cannot be delivered on time and will be retained in the set of orders to be allocated.
[0102] Specifically, the four destruction operators and the reconstruction operator are combined respectively to obtain four combination results, and then one combination result is randomly selected from the four combination results. Further, based on the selected combination result, the target feasible solution is deleted and reallocated to obtain a solution. The overall distribution profit of the newly obtained solution is then compared with the total distribution profit of the target feasible solution. If the overall distribution profit of the solution is greater than the total distribution profit of the target feasible solution, the solution is used as the new target feasible solution, that is, the solution replaces the target feasible solution. Furthermore, the number of consecutive unimproved times corresponding to the combination result is set to 0, and the deletion and reallocation operations on the target feasible solution are returned, that is, the current combination result is continued to be used to delete and reallocate the target feasible solution. In addition, if the overall distribution profit of the solution is not greater than the total distribution profit of the target feasible solution, the number of consecutive times that have not been improved is recorded, where the initial value of the number of consecutive times that have not been improved is 0, that is, the number of consecutive times corresponding to the total distribution profit that is not greater than the target feasible solution is recorded until the number of consecutive times reaches the preset number threshold. At this time, the next combination result is called to use the new combination result to perform deletion and reallocation operations on the target feasible solution until all the combination results are called to perform deletion and reallocation operations. After the iteration is completed, the optimal solution with the largest profit in the iteration process will be output to obtain the optimal scheduling plan.
[0103] As a specific example: for each combination of destruction operator and reconstruction operator (4*1, a total of four combination results), first randomly use one of the combination results (1 destruction operator and 1 reconstruction operator), and pre-set the number of consecutive times that any combination result does not improve the current solution to n, with the initial value of n being 0. For the current best solution (the target initial solution at the beginning), if the overall distribution profit of the solution is greater than the total distribution profit of the target feasible solution, then the solution is used as the new target feasible solution, and the number of consecutive times that it is not improved is set to n=0, and then the current combination result is continued to be used for iterative improvement; if the overall distribution profit of the solution for each iteration is not greater than the total distribution profit of the target feasible solution, then n=n+1 is set. If n increases to 100 (preset number threshold), the next combination result is called to improve the current solution. After the four combination results are called and the iteration is completed, the optimal solution with the largest profit in the iteration process will be output, thereby obtaining the optimal scheduling solution and improving the system revenue.
[0104] The drone delivery scheduling device provided by the present invention is described below. The drone delivery scheduling device described below and the drone delivery scheduling method described above can be referenced to each other.
[0105] Figure 2 : is a schematic diagram of the structure of the UAV delivery dispatching device provided by the present invention. Figure 2 As shown, a drone delivery scheduling device according to an embodiment of the present invention includes:
[0106] A first acquisition module 21 is used to acquire map information of the drone dispatching system;
[0107] The second acquisition module 22 is used to obtain the battery information of each drone;
[0108] The third acquisition module 23 is used to acquire order information of each order to be processed, wherein the order information includes delivery location information and menu information;
[0109] The scheduling module 24 is used to determine the optimal scheduling plan for the drones based on the order information, the map information and the battery information of each drone.
[0110] It should be noted here that the above-mentioned device provided in the embodiment of the present invention can implement all the method steps implemented in the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects that are the same as the method embodiment in this embodiment will not be described in detail here.
[0111] Figure 3 is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 3As shown, the electronic device may include: a processor 310, a memory 320, a communications interface 330 and a communication bus 340, wherein the processor 310, the memory 320, and the communications interface 330 communicate with each other through the communication bus 340. The processor 310 may call the logic instructions in the memory 320 to execute the drone delivery scheduling method.
[0112] In addition, the logic instructions in the above-mentioned memory 320 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, 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, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment 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. Various media that can store program codes.
[0113] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the drone delivery scheduling method provided by the above-mentioned methods.
[0114] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the drone delivery scheduling methods provided by the above methods.
[0115] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0116] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0117] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A drone delivery scheduling method, characterized in that: include: Obtain map information of the drone dispatch system; Get the battery information of each drone; Obtaining order information of each pending order, wherein the order information includes delivery location information and menu information; Determine an optimal dispatching plan for the drones based on the order information, the map information, and the battery information of each of the drones; The determining the optimal dispatching scheme of the drones based on the order information, the map information and the battery information of each drone comprises: Combine the order information, the map information and the battery information of each drone to establish a time-expanded flow network, and establish an integer linear programming model based on the flow network, wherein each delivery plan of the drone is represented by a node in the flow network, and a complete scheduling plan of a drone is represented by a flow path composed of different nodes; Based on a pre-built hybrid variable domain search algorithm, the integer linear programming model is solved to obtain an optimal scheduling solution for the UAV; The step of combining the order information, the map information, and the battery information of each drone to establish a time-expanded flow network, and establishing an integer linear programming model based on the flow network, includes: Determine the delivery deadline for each pending order and the drone’s energy consumption information; Determining whether a delivery trip for the pending order is feasible based on the battery information, the delivery deadline, and the energy consumption information of the drone; Based on all feasible delivery itineraries of any drone, a search tree is constructed, where the root node of the search tree represents the drone's delivery service starting from the take-off and landing station; each node of the tree represents a feasible delivery plan for an order, or a feasible scheduling plan for a drone trip; each node has a set of child nodes, which represent the feasible scheduling plans for subsequent trips of the drone; Optimizing the traversal of the search tree to construct a time-expanded flow network, and setting value arcs between nodes in the flow network, wherein the value arcs are used to characterize the delivery profit of the pending order; Based on the flow network, the UAV scheduling problem is expressed as an integer linear programming model; Each node of the search tree represents a feasible delivery trip, where each node of the search tree is represented by (k, y, p, z, ɑ), k is the number of the drone that realizes the delivery trip, y is a binary variable used to indicate whether the drone needs to change the battery before the delivery trip, p represents the order number of the pending order, ɑ represents the arrival time of the drone at the delivery destination, and z is the remaining power of the drone to complete the delivery trip; The optimization traverses the search tree to construct a time-expanded flow network and sets value arcs between nodes in the flow network, including: Introduce source node o and sink node d; For any two nodes and nodes :If the search tree of drone k yes The parent node of arrive Directed arc of ; For any node in the flow network , construct a node from source node o to node The connecting arc , build a slave node Connect arcs to the sink node d to construct a flow network , where a flow network is a node and arc For a directed acyclic network, let Representing Arc The unit flow cost for arc : Set the unit traffic cost , C p represents the profit of delivering order p on time, and for all connected arcs, the unit flow cost is zero; Based on the flow network, the UAV scheduling problem is expressed as an integer linear programming model, including: Set the goal to maximize the total profit gained from on-time delivery; In the constructed flow network, the delivery profit of an order is represented by the negative value of the unit flow cost on a certain arc, and the objective function of maximizing the total profit obtained by on-time delivery is set to minimize the total flow cost in the flow network; The integer linear programming model is as follows: Among them, Formula 1 is the objective function, which is used to characterize the minimization of the total flow cost in the flow network; Formula 2 indicates that all drones depart from the take-off and landing station; Formula 3 indicates that all take-off and landing stations return to the take-off and landing station after completing the mission; Formula 4 represents the flow balance constraint; Formula 5 indicates that each order is served at most once; Formula 6 represents the decision variable value constraint; is a binary variable, representing the arc The flow rate on Indicates the drone execution node the delivery itinerary indicated; Indicates that the same order number is involved in the flow network The node set of Represents each node in the flow network excluding source nodes and sink nodes; represents the set of serial numbers of pending orders; A represents all arcs in the flow network; K represents the number of drones.
2. The drone delivery dispatching method according to claim 1, characterized in that: The pre-built hybrid variable domain search algorithm is used to solve the integer linear programming model to obtain the optimal scheduling solution for the UAV, including: Selecting the order with the highest delivery profit from the pending orders to be assigned to the drones and assigning it to each drone, and determining the delivery plan with the shortest delivery completion time for each drone; According to the order allocation plan with the highest delivery profit, the drone delivery plan is updated until all pending orders are allocated and a feasible plan is obtained; Perform neighborhood iterative search and update on the target feasible solution to obtain the optimal scheduling solution.
3. The drone delivery dispatching method according to claim 2, characterized in that: The performing neighborhood iterative search and updating on the target feasible solution to obtain the optimal scheduling solution includes: Determine the four pre-set destruction operators: randomly delete the orders that have been assigned for delivery; greedily delete the orders that have been assigned for delivery with the smallest profit; randomly delete all the delivery plans of the drone; greedily delete the delivery plan of the drone with the smallest total delivery profit; Determine a pre-set reconstruction operator: the solution that requires the least additional time to deliver the order; Combining four destruction operators with the reconstruction operator respectively to obtain four combination results; Based on the selected combination result, the target feasible solution is deleted and reallocated to obtain a solution; If the overall distribution profit of the solution is greater than the total distribution profit of the target feasible solution, the solution is used as a new target feasible solution, and the number of unimproved consecutive times corresponding to the combination result is set to 0; based on the current combination result, return to the step of performing the deletion and reallocation operations on the target feasible solution to obtain the solution; If the overall distribution profit of the solution is not greater than the total distribution profit of the target feasible solution, the number of consecutive times of no improvement is recorded until the number of consecutive times reaches a preset threshold, and the next combination result is called to perform deletion and reallocation operations on the target feasible solution based on the new combination result; When all combination results have completed the iteration, the optimal solution with the maximum profit in the iteration process will be output to obtain the optimal scheduling plan.
4. A drone delivery dispatching device, characterized in that: include: The first acquisition module is used to obtain map information of the drone dispatching system; The second acquisition module is used to obtain the battery information of each drone; A third acquisition module is used to acquire order information of each pending order, wherein the order information includes delivery location information and menu information; A scheduling module, used to determine an optimal scheduling plan for the drones based on the order information, the map information and the battery information of each of the drones; The determining the optimal dispatching scheme of the drones based on the order information, the map information and the battery information of each drone comprises: Combine the order information, the map information and the battery information of each drone to establish a time-expanded flow network, and establish an integer linear programming model based on the flow network, wherein each delivery plan of the drone is represented by a node in the flow network, and a complete scheduling plan of a drone is represented by a flow path composed of different nodes; Based on a pre-built hybrid variable domain search algorithm, the integer linear programming model is solved to obtain an optimal scheduling solution for the UAV; The step of combining the order information, the map information, and the battery information of each drone to establish a time-expanded flow network, and establishing an integer linear programming model based on the flow network, includes: Determine the delivery deadline for each pending order and the drone’s energy consumption information; Determining whether a delivery trip for the pending order is feasible based on the battery information, the delivery deadline, and the energy consumption information of the drone; Based on all feasible delivery itineraries of any drone, a search tree is constructed, where the root node of the search tree represents the drone's delivery service starting from the take-off and landing station; each node of the tree represents a feasible delivery plan for an order, or a feasible scheduling plan for a drone trip; each node has a set of child nodes, which represent the feasible scheduling plans for subsequent trips of the drone; Optimizing the traversal of the search tree to construct a time-expanded flow network, and setting value arcs between nodes in the flow network, wherein the value arcs are used to characterize the delivery profit of the pending order; Based on the flow network, the UAV scheduling problem is expressed as an integer linear programming model; Each node of the search tree represents a feasible delivery trip, where each node of the search tree is represented by (k, y, p, z, ɑ), k is the number of the drone that realizes the delivery trip, y is a binary variable used to indicate whether the drone needs to change the battery before the delivery trip, p represents the order number of the pending order, ɑ represents the arrival time of the drone at the delivery destination, and z is the remaining power of the drone to complete the delivery trip; The optimization traverses the search tree to construct a time-expanded flow network and sets value arcs between nodes in the flow network, including: Introduce source node o and sink node d; For any two nodes and nodes :If the search tree of drone k yes The parent node of arrive Directed arc of ; For any node in the flow network , construct a node from source node o to node The connecting arc , build a slave node Connect arcs to the sink node d to construct a flow network , where a flow network is a node and arc For a directed acyclic network, let Representing Arc The unit flow cost for arc : Set the unit traffic cost , C p represents the profit of delivering order p on time, and for all connected arcs, the unit flow cost is zero; Based on the flow network, the UAV scheduling problem is expressed as an integer linear programming model, including: Set the goal to maximize the total profit gained from on-time delivery; In the constructed flow network, the delivery profit of an order is represented by the negative value of the unit flow cost on a certain arc, and the objective function of maximizing the total profit obtained by on-time delivery is set to minimize the total flow cost in the flow network; The integer linear programming model is as follows: Among them, Formula 1 is the objective function, which is used to characterize the minimization of the total flow cost in the flow network; Formula 2 indicates that all drones depart from the take-off and landing station; Formula 3 indicates that all take-off and landing stations return to the take-off and landing station after completing the mission; Formula 4 represents the flow balance constraint; Formula 5 indicates that each order is served at most once; Formula 6 represents the decision variable value constraint; is a binary variable, representing the arc The flow rate on Indicates the drone execution node the delivery itinerary indicated; Indicates that the same order number is involved in the flow network The node set of Represents each node in the flow network excluding source nodes and sink nodes; represents the set of serial numbers of pending orders; A represents all arcs in the flow network; K represents the number of drones.
5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the program, the drone delivery scheduling method as described in any one of claims 1 to 3 is implemented.
6. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the drone delivery scheduling method as described in any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Intelligent order scheduling method and server, electric vehicle, mobile terminal and system
CN104751271A
Logistics distribution method and equipment based on cooperation of multiple unmanned aerial vehicles
CN114492981A
Electric bus dispatching optimization method considering battery replacement and departure time
CN117236604A
EVTOL cluster zero-carbon distribution and energy management method and system for island low-altitude logistics
CN117852987A
Resource control by probability tree convolution production cost valuation by iterative equivalent demand duration curve expansion (aka. tree convolution)
US20160077507A1
