Truck and drone collaborative delivery oriented state adaptive preference optimization path planning method
By using a state-adaptive preference optimization path planning method, an adaptive context representation is generated by a graph encoder and a history-aware decoder. Combined with candidate path preference optimization training, the problem of insufficient adaptability and stability in the collaborative delivery path planning of trucks and drones is solved, and a more efficient path planning effect is achieved.
Patent Information
- Application Number
- CN202611388563.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-08
- Publication Date
- 2026-11-27
AI Technical Summary
Existing methods for collaborative delivery routes using trucks and drones struggle to adaptively adjust the decoding representation based on the current delivery status, route stage, and spatial structure. Furthermore, the model training process relies excessively on the absolute completion time of a single route, resulting in insufficient adaptability and training stability.
By constructing a state-adaptive preference optimization path planning method, a graph encoder is used to extract the spatial relationships between customer nodes, and a history-aware decoder is used to generate the current path construction state. The state-adaptive condition calculation module selects different calculation branches to generate a state-adaptive context representation. During the training phase, preference pairs are constructed by comparing the completion times of multiple candidate paths under the same delivery instance to optimize the path planning model parameters.
This improved the model's adaptability to different path stages, vehicle cooperation states, and customer spatial distributions, enhanced the stability and accuracy of path planning, reduced the impact of absolute reward scale differences on training, and improved path quality and the stability of training signals.
Smart Images

Figure CN123180879A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of route planning technology, and in particular to a state-adaptive preference optimization route planning method for collaborative delivery by trucks and drones. Background Technology
[0002] With the development of e-commerce, instant retail, and urban last-mile delivery, delivery tasks are characterized by a large number of orders, dispersed customer locations, high timeliness requirements, and sensitivity to delivery costs. While traditional single-truck delivery offers advantages such as strong carrying capacity and stable range, it can easily lead to problems like long detours and extended service times in situations of urban traffic congestion, dispersed customer locations, or low traffic efficiency in last-mile areas. Drones offer advantages such as flexible flight and less susceptibility to road conditions, but their payload capacity, range, and takeoff and landing conditions are typically limited. Therefore, coordinating truck and drone delivery—with trucks handling the main transport and drones carrying the loads, and drones launching from trucks to serve some customers before rejoining them—has become an important technological approach to improving last-mile delivery efficiency.
[0003] Truck-drone collaborative delivery routing problems typically require simultaneously determining truck access routes, drone service customer locations, drone launch locations, drone rendezvous or recovery locations, and the synchronous waiting relationships between trucks and drones. Compared to ordinary vehicle routing, this problem not only considers the spatial distance between customer nodes but also the speed differences between the two types of vehicles, the independent flight process of drones, truck-drone rendezvous constraints, and return constraints after all customers have completed their services. Because trucks and drones can perform tasks in parallel, a local route decision may affect multiple subsequent launch, service, recovery, and waiting events, making this type of problem highly combinatorial and temporally dependent.
[0004] Existing methods for truck-drone collaborative delivery route planning mainly include precise optimization methods, heuristic methods, and learning-based methods. Precise optimization methods typically employ mathematical programming, dynamic programming, and branch-and-bound approaches, achieving high-quality solutions for scenarios with a small number of customers. However, as the customer base grows, the number of candidate visit sequences, drone service allocations, and launch-and-recovery combinations increases rapidly, significantly raising computational costs and making it difficult to meet the rapid planning needs of large-scale delivery tasks. Heuristic or metaheuristic methods typically construct and improve paths through local search, insertion rules, allocation rules, and neighborhood search, offering good practicality and computational efficiency. However, their effectiveness often depends on manually designed rules, the quality of the initial path, and parameter settings. When customer spatial distribution, delivery center locations, or vehicle speed relationships change, existing rules may need to be readjusted, limiting their adaptability.
[0005] In recent years, reinforcement learning and neural combinatorial optimization methods have been applied to vehicle routing and its extensions. These methods typically utilize neural networks to learn path construction strategies from a large number of instances. After training, paths can be quickly generated through forward inference, making them suitable for batch solving of similar delivery tasks. In truck-drone collaborative delivery scenarios, learning-based methods can represent customer nodes as a graph structure, extract spatial relationships between nodes using an encoder, and then progressively generate service actions for trucks and drones through a decoder. However, existing learning-based path planning methods typically use a fixed decoding computation structure to handle all decision states, with essentially the same state representation update method across different path stages, different vehicle collaboration states, and different spatial distributions. For problems like truck-drone collaborative delivery where state differences are significant, a fixed decoding structure struggles to adequately adapt to changes in drone availability, rendezvous and recovery relationships, and customer spatial structure.
[0006] Furthermore, existing learning-based methods often employ reward-based training, using the total completion time or its transformed value for a candidate path as the policy update signal. In truck-drone collaborative delivery tasks, the total completion time is influenced by various factors such as the number of customers, customer distribution, vehicle speed ratio, and synchronization waiting time; the cost scale varies between different instances. Directly using absolute completion time as the training signal makes the model training susceptible to variations in instance scale. When multiple candidate paths are of similar quality, the update direction based on single-path reward or advantage estimation is also easily affected by sampling noise, leading to significant fluctuations in the training process.
[0007] In summary, while existing technologies can solve the route planning problem for truck-drone collaborative delivery to some extent, they still have two significant shortcomings: first, the route construction model struggles to adaptively adjust its decoding representation based on the current delivery status, route stage, and spatial structure; second, the model training process relies excessively on the absolute completion time of individual paths, resulting in insufficient stability of the training signal. Therefore, it is necessary to propose a route planning method for truck-drone collaborative delivery that can dynamically adjust the computation process based on the current state during the decoding stage and utilize the relative quality relationships between candidate paths within the same delivery instance during the training stage to improve the adaptability and training stability of the route planning model. Summary of the Invention
[0008] To address the aforementioned technical problems, this invention provides a state-adaptive preference optimization path planning method for truck and drone collaborative delivery. This invention acquires delivery task data, including delivery center, customer nodes, truck and drone operating parameters, and collaborative constraints, and represents the truck and drone collaborative delivery process as a progressively constructed path planning process. In each decision step, a graph encoder extracts the spatial relationships between customer nodes, a history-aware decoder represents the current path construction state, and a state-adaptive condition calculation module selects different calculation branches based on the current state to generate a state-adaptive context representation for action decisions. During the training phase, preference pairs are constructed by comparing the completion times of multiple candidate paths within the same delivery instance, and the path planning model parameters are updated based on preference loss.
[0009] The technical means employed in this invention are as follows: A state-adaptive preference optimization path planning method for truck-drone collaborative delivery includes: acquiring truck-drone collaborative delivery task data, constructing the current path planning state, and generating action constraints based on the current path planning state; constructing a path planning model, constructing node features for the delivery center and each customer node, and inputting the node features into a graph encoder for graph encoding; generating the decoded hidden state of the current decision step using a history-aware decoder, and inputting the decoded hidden state into a state-adaptive condition calculation module to generate a state-adaptive context representation; training the path planning model, sampling multiple candidate collaborative delivery paths, and constructing preferred and unpreferred path preference pairs; calculating preference probabilities based on the average log-likelihood difference between the preferred and unpreferred paths, constructing a preference loss function, and optimizing the path planning model; calculating candidate action probabilities based on the state-adaptive context representation, and generating truck-drone joint actions in conjunction with the action constraints; performing state transitions based on the truck-drone joint actions, and determining whether the delivery task is completed; after completing the delivery task, outputting the path planning result for truck-drone collaborative delivery through the optimized path planning model, thus realizing the path planning for truck-drone collaborative delivery.
[0010] Furthermore, the truck and drone collaborative delivery task data includes: delivery center location, customer node location, number of customers, truck speed, drone flight speed, drone service range, and collaborative constraints between the truck and the drone; the collaborative constraints between the truck and the drone include: the drone is launched from the truck, the drone rendezvous with or is recovered from the truck after serving the customer, and the truck and drone return to the delivery center after completing all customer service. Define the distribution center as node 0, and the set of customer nodes as follows: In the t-th decision step, the current path planning state is... Recorded as:
[0011] in, This indicates the collection of customers already served. Indicates the truck's current location. Indicates the current location of the drone. Indicates the truck's remaining arrival time. Indicates the remaining arrival time of the drone. Indicates the collaborative status of the drones. This represents the joint action of the previous decision step; the joint action of the truck and the drone in the current decision step is denoted as:
[0012] in, Indicates the truck target selection. Indicates the selection of drone targets; The action constraints are used to exclude actions that are not feasible in the current state. The action constraints include: customers who have been served cannot be served again; drones cannot be launched again if they are not at the truck; drones need to meet rendezvous or recovery constraints after independent service; and vehicles need to eventually return to the distribution center. set up Current path planning state The set of possible actions below, with action mask Represented as:
[0013]
[0014] By adding the action mask to the candidate action score, inactive actions are masked in the normalized probability.
[0015] Furthermore, the node features include: node coordinates, whether the node is a distribution center, whether the node has been served, whether the node is the current location or target node of the truck, whether the node is the current location or target node of the drone, and whether the node is within the current movable range; the node features are input into the graph encoder to obtain the node embedding of each node and the global distribution graph representation of the entire delivery instance; Node The original features are denoted as The initial node embedding is obtained through linear mapping. :
[0016] in, This represents a learnable weight matrix that maps the original features of a node to its embedding space. This represents the learnable bias vector of the linear mapping layer for node features. The graph encoder encodes all node embeddings to obtain a set of node representations. The global delivery map is obtained through pooling or averaging. :
[0017] in, This represents the set of nodes in the delivery graph, including delivery center nodes and customer nodes.
[0018] Furthermore, the historical perception decoder takes the global delivery graph representation, the joint action representation of the previous decision step, and the current path planning state features as input to obtain the decoded hidden state of the current decision step; the decoded hidden state is used to represent the current path construction stage, the historical launch and recovery process, the truck and UAV collaborative state, and the current spatial context; Let the current path planning state characteristics be denoted as The embedding of the previous joint action is denoted as Input of the history perception decoder Represented as:
[0019] When the history-aware decoder uses a long short-term memory network, the state update is represented as:
[0020] in, This is the current hidden decoding state. The state of the memory unit; This represents the decoded hidden state or concealed state of the current decision step. This indicates the state of the memory cell in the current decision step. This represents a Long Short-Term Memory (LSTM) network, used to update the decoding state based on the current input and historical states. This represents the decoded hidden state of the previous decision step. This indicates the state of the memory cell in the previous decision step.
[0021] The current decoded hidden state is input into the state adaptive condition calculation module, and the routing weights of multiple expert branches are calculated based on the current decoded hidden state. The expert branches with higher weights are retained through a sparse expert selection method. The selected expert branches perform representation transformation on the current decoded hidden state and are weighted and fused according to the routing weights to obtain the state adaptive context representation. Utilize the router based on the current decoding hidden state Calculate expert route weights :
[0022] in, Router parameters, This indicates that the K expert branches with the highest scores should be retained; This represents a normalized exponential function that converts expert branch scores into normalized route weights; the state adaptive condition calculation module includes... Feedforward expert and an identity expert and order ,in
[0023] The state adaptive context representation Represented as:
[0024] in, The routing weight for the k-th expert branch This indicates normalization processing.
[0025] Furthermore, during the training phase, the path planning model generates multiple candidate collaborative delivery paths for the same delivery instance. Each candidate collaborative delivery path includes a complete sequence of joint actions between the truck and the drone. For each candidate path, the total completion time is calculated, and the average log-likelihood of the candidate path under the current path planning model is calculated. The average log-likelihood is used to represent the tendency of the model to generate candidate paths. For candidate paths The average log-likelihood is expressed as:
[0026] in, This represents the final path planning state after the i-th candidate path has been executed. This represents the number of decision steps involved in the i-th candidate path. This represents the average log-likelihood calculated by the model for candidate paths. The parameter is The probability distribution of path planning strategies Indicates the first The candidate path in the th The decision-making process involves a combined action of trucks and drones.
[0027] Multiple candidate collaborative delivery routes under the same delivery instance are compared according to the total completion time; for any two candidate routes, if the total completion time of one candidate route is less than that of the other candidate route, the candidate route with the shorter total completion time is determined as the preferred route, and the candidate route with the longer total completion time is determined as the inferior route, thus constructing the preferred route and inferior route preference pair. If the total completion time of the preferred path among the candidate paths is less than the total completion time of the undesired path, then it is denoted as:
[0028] in, Indicates the preferred path, Indicates the inferior path, A function representing the total completion time of candidate routes; a set of preference pairs constructed under the same delivery instance x. Recorded as: .
[0029] Furthermore, the preference probability of the preferred path relative to the inferior path is... Defined as:
[0030] in, The Sigmoid function represents the preference temperature coefficient. This represents the preference temperature coefficient, used to adjust the impact of path log-likelihood differences on preference probabilities; the corresponding preference loss function... Represented as:
[0031] in, This represents the set of learnable parameters for a path planning model. For training batches, the overall training loss will be... Represented as:
[0032] in, This represents the preference optimization loss for a single delivery instance. This represents the set of delivery instances in a training batch; Furthermore, the state adaptive context representation node embedding, global delivery graph representation, and vehicle travel time features are input into the action scoring module to calculate the candidate action scores of the truck and the drone in the current decision step; the candidate actions include the truck going to the customer node or delivery center, the drone independently serving the customer, the drone moving with the truck, and the drone going to the rendezvous or recovery location; vehicle The travel time characteristic from the current node or target node i to candidate node j is denoted as: Score the candidate actions Represented as:
[0033] in, Indicates vehicle The candidate action scoring function, This represents the adaptive context representation of the state at the current decision step. Indicates candidate nodes Node embedding.
[0034] After incorporating action constraints, the probability of the candidate action is expressed as:
[0035] in, For vehicle v, pair of candidate nodes The action mask value, for the case of sequentially generating joint actions, first generates the truck target. Then, given the truck target, generate the drone target. ; The action constraints are applied to the obtained candidate action scores, actions that are not executable in the current state are masked or set to zero, and the truck and drone joint action for the current decision step is generated from the remaining actions; the joint action includes truck target selection and drone target selection.
[0036] Furthermore, based on the joint actions of the truck and the drone, the time required for the truck and the drone to reach the corresponding target is calculated, and the truck position or target node, the drone position or target node, the remaining arrival time of the vehicle, the set of customers already served, the drone's collaborative status, and the synchronous waiting status are updated; when a vehicle arrives at the rendezvous point first, its synchronous waiting information for the arrival of another vehicle is recorded; if all customers have completed their service and both the truck and the drone have returned to the delivery center, the delivery task is considered complete; otherwise, the path planning for the next decision step continues. The first The event progression time for each decision step is denoted as... The set of customers who complete the service during the event's progression is denoted as... Then the set of customers already served will be included. Updated to:
[0037] in, Let represent the set of customer nodes that have newly completed services in the t-th decision step. This represents the set of customers already served before the update. Complete candidate paths Recorded as:
[0038] in, This indicates the initial path planning state of the candidate path. This indicates the first combined truck and drone action taken in the initial state. This indicates the final path planning state after the candidate path has been executed. Indicates the first The decision-making process involves a combined action of trucks and drones.
[0039] Total completion time Represented as: .
[0040] Furthermore, the route planning results include truck access routes, drone flight routes, drone launch nodes, drone rendezvous or recovery nodes, synchronization waiting information, and total completion time; the total completion time is used to measure the quality of the collaborative delivery route.
[0041] Compared with the prior art, the present invention has the following advantages: This invention improves the representation capability of different path stages and vehicle cooperative states through a state adaptive condition calculation module, ensures the feasibility of generating joint actions through action constraints, reduces the impact of absolute reward scale differences on training through candidate path preference optimization, and exhibits better path quality and stability in standard scale, unseen scale, spatial distribution offset, and small-scale exact optimality evaluation. Attached Figure Description
[0042] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0043] Figure 1 This is a flowchart of the state-adaptive preference optimization path planning method for truck and drone collaborative delivery in this invention.
[0044] Figure 2 This is a schematic diagram of the path planning model structure in this invention.
[0045] Figure 3 This is an architecture diagram of the state adaptive condition calculation module in this invention.
[0046] Figure 4 This is a flowchart of the candidate path preference optimization training process in this invention.
[0047] Figure 5 This is a comparison of the average completion cost of neural methods under the standard test scale in the embodiments of the present invention.
[0048] Figure 6 This is a comparison of the unseen relative gap in the embodiments of the present invention.
[0049] Figure 7 This is a comparison of the distribution offset relative to the gap in the embodiments of the present invention.
[0050] Figure 8 This is a comparison of the cost of the preferred construction methods in the embodiments of the present invention.
[0051] Figure 9 This is a schematic diagram of event-driven collaborative delivery state transition in an embodiment of the present invention. Detailed Implementation
[0052] It should be noted that, unless otherwise specified, the embodiments and features described in the present invention can be combined with each other. The present invention will now be described in detail with reference to the accompanying drawings and embodiments.
[0053] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit the present invention or its application or use. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0054] It should be noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the scope of exemplary embodiments according to the invention. As used herein, the singular form is intended to include the plural form as well, unless the context clearly indicates otherwise. Furthermore, it should be understood that when the terms "comprising" and / or "including" are used in this specification, they indicate the presence of features, steps, operations, devices, components, and / or combinations thereof.
[0055] Unless otherwise specifically stated, the relative arrangement, numerical expressions, and values of the components and steps described in these embodiments do not limit the scope of the invention. It should also be understood that, for ease of description, the dimensions of the various parts shown in the drawings are not drawn to actual scale. Techniques, methods, and devices known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and devices should be considered part of the specification. In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limitations. Therefore, other examples of exemplary embodiments may have different values. It should be noted that similar reference numerals and letters in the following figures denote similar items; therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0056] like Figure 1 As shown, this invention provides a state-adaptive preference optimization path planning method for truck-drone collaborative delivery, comprising: acquiring truck-drone collaborative delivery task data, constructing the current path planning state, and generating action constraints based on the current path planning state; in a preferred embodiment of this invention, the truck-drone collaborative delivery task data includes: delivery center location, customer node location, number of customers, truck speed, drone flight speed, drone service range, and collaborative constraints between the truck and the drone; the collaborative constraints between the truck and the drone include: the drone being launched from the truck, the drone rendezvousing with or recovering from the truck after serving a customer, and the truck and drone returning to the delivery center after completing all customer services; the above task data together constitute a truck-drone collaborative delivery instance to be solved.
[0057] Define the distribution center as node 0, and the set of customer nodes as follows: At the t-th decision step, the current path planning state is... Recorded as:
[0058] in, This indicates the collection of customers already served. Indicates the truck's current location. Indicates the current location of the drone. Indicates the truck's remaining arrival time. Indicates the remaining arrival time of the drone. Indicates the collaborative status of the drones. This represents the joint action of the previous decision step; the joint action of the truck and the drone in the current decision step is denoted as:
[0059] in, Indicates the truck target selection. This represents the target selection by the drone; the strategy corresponding to the trained path planning model is denoted as... It indicates the state. Generate joint actions The probability of.
[0060] Action constraints are used to exclude actions that are not possible in the current state. Action constraints include: customers who have been served cannot be served again; drones cannot be launched again if they are not at the truck; drones must meet rendezvous or recovery constraints after independent service; and vehicles must eventually return to the distribution center. set up Current path planning state The set of possible actions below, with action mask Represented as:
[0061]
[0062] By adding action masks to candidate action scores, inactive actions are masked out in the normalized probability.
[0063] The current route planning status includes the set of served customers, the set of unserved customers, the current location of the truck or the current target node, the current location of the drone or the current target node, the remaining arrival time of the truck, the remaining arrival time of the drone, the current coordination status of the drone, and the joint actions of the truck and drone in the previous decision step. Among them, the current coordination status of the drone includes states such as moving with the vehicle, operating independently, waiting to rendezvous or be retrieved.
[0064] A path planning model is constructed, node features are generated for the distribution center and each customer node, and these node features are input into a graph encoder for graph encoding. The path planning model structure is as follows: Figure 2 As shown. In a preferred embodiment of the present invention, the node features include: node coordinates, whether the node is a distribution center, whether the node is already served, whether the node is the current location or target node of the truck, whether the node is the current location or target node of the drone, and whether the node is within the current movable range. The node features are input into a graph encoder to obtain the node embedding of each node and a global distribution graph representation of the entire delivery instance. The graph encoder is used to extract the spatial relationships between delivery nodes, providing spatial context information for subsequent path construction.
[0065] Node The original features are denoted as The initial node embedding is obtained through linear mapping. :
[0066] in, This represents a learnable weight matrix that maps the original features of a node to its embedding space. This represents the learnable bias vector of the linear mapping layer for node features. The graph encoder encodes all node embeddings to obtain a set of node representations. The global delivery map is obtained through pooling or averaging. :
[0067] in, This represents the set of nodes in the delivery graph, including delivery center nodes and customer nodes; The decoded hidden state for the current decision step is generated using a history-aware decoder. This decoded hidden state is then input into the state adaptive condition calculation module to generate a state adaptive context representation. The structure of the state adaptive condition calculation module is as follows: Figure 3 As shown. In a specific implementation, as a preferred embodiment of the present invention, the history-aware decoder takes the global delivery map representation, the joint action representation of the previous decision step, and the current path planning state features as inputs to obtain the decoded hidden state of the current decision step; the decoded hidden state is used to represent the current path construction stage, the historical launch and recovery process, the truck and UAV collaborative state, and the current spatial context; the history-aware decoder can adopt a recurrent neural network, a long short-term memory network, or other decoding structures that can retain the sequence history information.
[0068] Let the current path planning state characteristics be denoted as The embedding of the previous joint action is denoted as Input of the history perception decoder Represented as:
[0069] When the history-aware decoder uses a long short-term memory network, the state update is represented as:
[0070] in, This is the current hidden decoding state. The state of the memory unit; This represents the decoded hidden state or concealed state of the current decision step. This indicates the state of the memory cell in the current decision step. This represents a Long Short-Term Memory (LSTM) network, used to update the decoding state based on the current input and historical states. This represents the decoded hidden state of the previous decision step. This indicates the state of the memory cell in the previous decision step.
[0071] The current decoded hidden state is input into the state adaptive condition calculation module. The router calculates the routing weights of multiple expert branches based on the current decoded hidden state. The expert branches with higher weights are retained through a sparse expert selection method. The selected expert branches perform representation transformation on the current decoded hidden state and are weighted and fused according to the routing weights to obtain the state adaptive context representation. The expert branches consist of several feedforward experts and at least one identity expert. Feedforward experts perform nonlinear transformations on the current decoded hidden state to enhance the model's ability to represent complex path construction states. Identity experts directly preserve the current decoded hidden state, providing lightweight computational paths for states that do not require complex transformations. Through this state-adaptive condition calculation module, different expert branches can be activated for decision states at different path stages, under different vehicle cooperative states, and with different spatial structures. This allows the path planning model to dynamically adjust its representation based on the current state during the decoding stage.
[0072] Utilize the router based on the current decoding hidden state Calculate expert route weights :
[0073] in, Router parameters, This indicates that the K expert branches with the highest scores should be retained; This represents a normalized exponential function that converts expert branch scores into normalized route weights; the state adaptive condition calculation module includes... Feedforward expert and an identity expert and order ,in
[0074] Adaptive context representation of state Represented as:
[0075] in, The routing weight for the k-th expert branch This indicates normalization processing.
[0076] The route planning model is trained by sampling multiple candidate collaborative delivery routes and constructing preferred and unpreferred route pairs. The candidate route preference optimization training process is as follows: Figure 4As shown. In a specific implementation, as a preferred embodiment of the present invention, during the training phase, the path planning model generates multiple candidate collaborative delivery paths for the same delivery instance. Each candidate collaborative delivery path includes a complete sequence of joint actions between the truck and the drone. For each candidate path, the total completion time is calculated, and the average log-likelihood of the candidate path under the current path planning model is calculated. The average log-likelihood is used to represent the tendency of the model to generate candidate paths. For candidate paths The mean log-likelihood is expressed as:
[0077] in, Indicates the first The final path planning status after all candidate paths have been executed. Indicates the first The number of decision steps contained in each candidate path. This represents the average log-likelihood calculated by the model for candidate paths. The parameter is The probability distribution of path planning strategies Indicates the first The candidate path in the th The decision-making process involves a combined action of trucks and drones.
[0078] Multiple candidate collaborative delivery routes under the same delivery instance are compared according to their total completion time. For any two candidate routes, if the total completion time of one candidate route is less than that of the other candidate route, the candidate route with the shorter total completion time is determined as the preferred route, and the candidate route with the longer total completion time is determined as the undesirable route, thus constructing a preference pair between preferred and undesirable routes. Since the preference pair is constructed within the same delivery instance, this preference relationship reflects the relative quality difference between candidate routes, rather than the absolute completion time difference between different instances.
[0079] If the total completion time of the preferred path among the candidate paths is less than the total completion time of the undesired path, then it is denoted as:
[0080] in, Indicates the preferred path, Indicates the inferior path, A function representing the total completion time of candidate routes; a set of preference pairs constructed under the same delivery instance x. Recorded as: .
[0081] The preference probability is calculated based on the average log-likelihood difference between the preferred and undesirable paths, and a preference loss function is constructed to optimize the path planning model. The preference probability is then calculated based on the average log-likelihood difference between the preferred and undesirable paths, and the preference loss function is constructed based on this probability to update the path planning model parameters, thereby increasing the probability of generating the preferred path. In one embodiment, the preference probability is calculated using the Bradley-Terry preference model. This training method utilizes the relative quality relationship between multiple candidate paths within the same delivery instance to mitigate the impact of differences in completion timescales between different instances on the training signal. Specifically, as a preferred embodiment of the invention, the preference probability of the preferred path relative to the undesirable path is... Defined as:
[0082] in, The Sigmoid function represents the preference temperature coefficient. This represents the preference temperature coefficient, used to adjust the impact of path log-likelihood differences on preference probabilities; the corresponding preference loss function... Represented as:
[0083] in, This represents the set of learnable parameters for the path planning model.
[0084] For training batches, the overall training loss will be... Represented as:
[0085] in, This represents the preference optimization loss for a single delivery instance. This represents the set of delivery instances in a training batch.
[0086] The probability of candidate actions is calculated based on the state-adaptive context representation, and combined with feasible action constraints to generate joint actions between the truck and the drone. In a preferred embodiment of this invention, the embedded state-adaptive context representation nodes, the global delivery graph representation, and vehicle travel time features are input into the action scoring module to calculate the candidate action scores for the truck and the drone in the current decision step. The action scoring module can first calculate the selection probability of the truck's candidate target node, and then calculate the selection probability of the drone's candidate target given the truck's target. Candidate actions include the truck heading to a customer node or delivery center, the drone independently serving a customer, the drone moving with the truck, and the drone heading to a rendezvous or recovery location. vehicle The travel time characteristic from the current node or target node i to candidate node j is denoted as: Score the candidate actions Represented as:
[0087] in, Indicates vehicle The candidate action scoring function, This represents the adaptive context representation of the state at the current decision step. Indicates candidate nodes Node embedding.
[0088] After incorporating action constraints, the probability of a candidate action is expressed as:
[0089] in, For vehicle v, pair of candidate nodes The action mask value, for the case of sequentially generating joint actions, first generates the truck target. Then, given the truck target, generate the drone target. ; The action constraints are applied to the candidate action scores, actions that are not executable in the current state are masked or reset to zero, and the joint action of the truck and drone for the current decision step is generated from the remaining action options; the joint action includes truck target selection and drone target selection. By combining action constraints to generate joint actions, the path planning model can avoid outputting actions that repeatedly serve customers, fail to recover the drone, or have inconsistent vehicle states.
[0090] Based on the joint action of trucks and drones, the system executes state transitions and determines whether the delivery task is completed. In a preferred embodiment of the invention, the time required for the truck and drone to reach the corresponding target is calculated based on the joint action of the truck and drone, and the truck position or target node, drone position or target node, remaining arrival time of the vehicle, set of served customers, drone coordination status, and synchronous waiting status are updated. When a vehicle arrives at the rendezvous point first, its synchronous waiting information for the arrival of the other vehicle is recorded. If all customers have been served and both the truck and drone have returned to the delivery center, the delivery task is determined to be completed; otherwise, the path planning for the next decision step continues. The first The event progression time for each decision step is denoted as... The set of customers who complete the service during the event's progression is denoted as... Then the set of customers already served will be included. Updated to:
[0091] in, Indicates the first The set of customer nodes that have completed services in each decision-making step. This represents the set of customers already served before the update. Complete candidate paths Recorded as:
[0092] in, This indicates the initial path planning state of the candidate path. This indicates the first combined truck and drone action taken in the initial state. This indicates the final path planning state after the candidate path has been executed. This indicates the combined truck and drone action taken in the Hth decision step.
[0093] Total completion time Represented as: .
[0094] After completing the delivery task, the optimized path planning model outputs the path planning results for truck and drone collaborative delivery, thus realizing the path planning for truck and drone collaborative delivery. In a preferred embodiment of the present invention, the path planning results include the truck access path, the drone flight path, the drone launch node, the drone rendezvous or recovery node, synchronization waiting information, and the total completion time; the total completion time is used to measure the quality of the collaborative delivery path.
[0095] This invention adaptively generates a decision representation based on the current path state during the path planning inference phase, and optimizes the path planning model by utilizing the relative quality relationships between candidate paths during the model training phase. Compared with path planning methods that use a fixed decoding structure and single-path absolute reward training, this invention can improve the model's adaptability to different path stages, vehicle cooperation states, and customer spatial distributions, and improve the stability of the model training process.
[0096] Example 1 This embodiment provides a detailed explanation of the beneficial effects that the method of the present invention can produce.
[0097] This invention improves the solution quality of truck-drone collaborative delivery route planning. By dynamically selecting expert branches based on the current path construction state during the decoding stage, the model can generate contextual representations more suitable for the current state, considering different delivery stages, vehicle collaboration states, and customer space structures, thereby improving the accuracy of truck and drone target selection. Under standard test scales, using the same 4800 sample inference budgets, the average completion cost of this invention is lower than that of neural path planning baselines such as NM, AM, and HM at scales of n=20, n=50, and n=100. Related results are as follows... Figure 5 As shown in Table 1.
[0098] Table 1. Comparison of average completion costs of neural methods under standard test scales.
[0099] As shown in Table 1, the method of this invention achieves the lowest average completion cost among neural methods at three standard scales: n=20, n=50, and n=100. Compared with the stronger HM neural baseline, the average completion cost of the method of this invention is reduced by 2.16, 5.82, and 13.09 at the three scales, respectively, indicating that the state-adaptive decoding mechanism can improve the quality of candidate collaborative delivery paths.
[0100] This invention improves the generalization ability of route planning models under unseen customer scales. Even when the trained model is directly used for test instances with n=150, n=200, and n=300 without retraining or fine-tuning for a larger customer scale, the method of this invention still maintains a low relative gap. This result demonstrates that the state-adaptive conditional computation module can adjust the decoding representation based on longer service histories and more complex truck-drone rendezvous relationships, thereby mitigating the impact of changes in customer scale on route planning performance. Related results are as follows... Figure 6 As shown in Table 2.
[0101] Table 2. Comparison of relative gaps without customer size data
[0102] As shown in Table 2, the method of this invention achieves the lowest relative gap at all three unseen scales, at 1.55%, 1.15%, and 1.60%, respectively. Compared to the HM baseline, the method of this invention reduces the gap by 0.99, 3.19, and 5.11 percentage points at n=150, n=200, and n=300, respectively, indicating that the method can maintain relatively stable path planning quality as the scale increases.
[0103] This invention improves the model's adaptability to different customer spatial distributions. In actual last-mile delivery, customer locations are not always uniformly distributed, but may exhibit spatial patterns such as clustering, central warehouses, or mixed distributions. The method of this invention, through state-adaptive expert routing, enables the decoder to select different representation paths based on the current customer spatial structure and path stage, thus maintaining a low relative gap even with spatial distribution shifts. Related results are as follows... Figure 7 As shown in Table 3.
[0104] Table 3 Comparison of relative gaps under different spatial distributions
[0105] As shown in Table 3, the method of this invention achieves the lowest relative gap across all four spatial distribution types: Uniform, Clustered, Central, and Mixed. Compared to the HM baseline, the gap of the method of this invention is reduced by 2.36, 2.33, 0.83, and 0.49 percentage points, respectively, across the four distribution types. Particularly in the customer clustered distribution, the method of this invention can control the gap at 0.97%, indicating that the state-adaptive representation can better adapt to changes in customer spatial structure.
[0106] This invention improves the stability of model training signals and sample utilization efficiency. Existing reward-based training methods typically rely directly on the absolute completion time of a single path, making them susceptible to factors such as customer size, spatial distribution, and synchronization waiting time. This invention samples multiple candidate collaborative delivery paths within the same delivery instance and constructs preference pairs based on the completion time ranking of these paths, allowing the training objective to focus on relative path quality rather than absolute numerical scales across instances. Supplementary experiments show that, with variations in the number of candidate paths and pairing strategies, using four candidate paths and performing full pairing comparisons achieves a better balance between training cost and path quality. Related results are as follows... Figure 8 As shown in Table 4.
[0107] Table 4. The impact of preferences on construction method on average completion cost
[0108] As shown in Table 4, increasing the number of candidate paths from 2 to 4 and adopting a full-pairing strategy reduced the average completion cost from 419.38 to 404.24, a decrease of 15.14. With the same number of candidate paths (4), the full-pairing strategy outperformed both the best-worst pairing and random pairing. Although the average completion cost of full pairing with 6 candidate paths further decreased to 402.78, the benefit was smaller compared to full pairing with 4 candidate paths, while the training cost was higher. Therefore, using 4 candidate paths and performing full-pairing comparisons provides sufficient path quality ranking information for training while controlling training overhead.
[0109] This invention can generate near-optimal feasible paths on small-scale instances with precise verifiable results. Supplementary experiments selected 10 small-scale instances (n=15) with exact optimal solutions from dynamic programming and used the trained model for greedy inference. The results show that the average gap of the proposed method is 2.26%, with 5 instances having a gap of less than 1% and only 2 instances having a gap of more than 5%. This result demonstrates that even without relying on additional sampling budgets, the proposed method can generate near-optimal collaborative delivery paths in precisely verifiable small-scale scenarios, as shown in Table 5.
[0110] Table 5. Results of Small-Scale Precision Optimality Assessment
[0111] This invention improves path planning quality while maintaining a clear model complexity cost. Supplementary materials show that the SAPO-HNS method has 4.406M parameters, while the HM baseline has 2.962M parameters. The method in this invention adds approximately 1.444M parameters compared to HM. These new parameters are primarily used for state adaptation condition calculation and preference optimization-related structures. This increased complexity corresponds to the improvements in solution quality, generalization ability, and training stability brought about by expert routing and preference learning mechanisms, representing a complexity overhead supported by clear technical effects.
[0112] In summary, the beneficial effects of this invention can be summarized as follows: it improves the representation ability of different path stages and vehicle cooperative states through the state adaptive condition calculation module, ensures the feasibility of generating joint actions through action constraints, reduces the impact of absolute reward scale differences on training through candidate path preference optimization, and exhibits better path quality and stability in standard scale, unseen scale, spatial distribution offset and small-scale exact optimality evaluation.
[0113] Example 2 This embodiment further illustrates the specific implementation of the present invention. In practical applications, parameters such as the number of customers, vehicle speed, drone range constraints, service time, and number of samplings can be set according to the delivery scenario.
[0114] In one specific embodiment, the task to be planned is a collaborative delivery task involving a single truck and a single drone. The delivery center is denoted as node 0, and the set of customer nodes is denoted as... The set of all nodes is denoted as Each node i corresponds to two-dimensional coordinates ( , The truck's speed is The drone's speed is ,and > The Euclidean distance between any two nodes i and j and the vehicle's travel time can be calculated using the following formula:
[0115]
[0116] In this embodiment, a truck departs from the distribution center, carrying a drone to collaboratively serve all customers. Each drone takes off from the node where the truck is located or a launch point of the truck, independently serves one customer, and then rejoins the truck at a subsequent node or is retrieved by the truck. After all customers have been served once, both the truck and the drone return to the distribution center, resulting in a complete collaborative delivery route.
[0117] This embodiment first initializes the route planning process. Initially, the set of served customers is empty, both the truck and the drone are located at the distribution center, the remaining arrival time for both vehicles is 0, and the drone is in a launch-ready state. The initial state can be represented as:
[0118] in, This represents the initial set of customers already served. Indicates the initial position of the truck. Indicates the initial position of the drone. and Let represent the initial remaining arrival times of the truck and the drone, respectively. The current state at each decision step t is represented by the following formula:
[0119] The meanings of each variable are shown in Table 6.
[0120] Table 6. Description of key state variables in the specific implementation method
[0121] In each decision step, the system generates a set of possible actions based on the current state. (Truck actions) The drone can choose to proceed to an unserved customer node or return to the distribution center when the termination conditions are met; drone actions You can choose to travel with the vehicle, provide independent service to unserved customers, or travel to the rendezvous or recovery location after an independent flight. If a customer already belongs to... If the customer cannot be selected by the truck or drone again, a new drone service action cannot be generated if the drone is not in a launchable state. If the current action would prevent the drone from meeting the truck, the action is deemed infeasible.
[0122] In practice, an action mask can be set for each candidate action. Let... Representing state Given the set of possible actions that satisfy the coordination constraints, the action mask can be represented as:
[0123]
[0124] By adding action masks to the candidate action scores, immobile actions will not be selected during Softmax normalization. In this way, it is possible to ensure that customers are not served repeatedly, drones are not launched repeatedly, rendezvous relationships do not conflict, and the final path can return to the distribution center during the model output stage.
[0125] During model inference, node features are first constructed for each node. Node features include node coordinates, whether it is a distribution center, whether it has been served, whether it is the current location or target node of a truck, whether it is the current location or target node of a drone, and whether the node is within the currently achievable movement range. In one embodiment, the features of node i can be represented as:
[0126] in, Indicates whether node i is a distribution center. This indicates whether node i has been served at step t. Indicates whether node i is the truck's current location or the target node. Indicates whether node i is the current location of the drone or the target node. This indicates whether node i is within the currently actionable range. After processing by a linear mapping and a graph encoder, the node features described above are used to obtain the embeddings of each node. And the global delivery map is represented by h.
[0127] Then, embed the global delivery graph representation h and the previous joint action. and current state features Input the history-aware decoder. If the history-aware decoder uses a Long Short-Term Memory (LSTM) network, the current decoded hidden state can be updated using the following formula:
[0128]
[0129] in, For the decoding input at step t, This is the current hidden decoding state. This is the state of the memory unit. This hidden state contains not only the current spatial relationships of the nodes, but also historical information such as truck movement, drone launch, drone service, drone rendezvous, and synchronization waiting.
[0130] In order for the decoder to adapt to different path stages and vehicle cooperation states, this embodiment will The input state adaptive condition calculation module includes a router, multiple feedforward expert branches, and an identity expert branch. The router calculates expert weights based on the current decoding state and uses TopK sparse selection to retain the expert branches with higher scores.
[0131] If the expert branch set is denoted as ,in Then the state adaptive context representation can be expressed as:
[0132] in, This is used for subsequent truck and drone action scoring. Through this processing method, different expert branches can be activated or the original hidden states can be preserved for different states such as the initial stage of path construction, the middle stage of path construction, the return to the distribution center at the end, the drone on the truck, the drone flying independently, and the drone waiting to rendezvous, so that the decoded representation can match the current collaborative delivery state.
[0133] After obtaining the state-adaptive context representation, the action scoring module sequentially calculates candidate targets for trucks and drones. For vehicles... If the current node or target node is i, and the candidate node is j, then the candidate action score can be expressed as:
[0134] After combining the action mask, the selection probability of the candidate target can be expressed as:
[0135] In practice, truck targets can be generated first. Then, given the truck target and the updated action constraints, generate the drone target. Ultimately, a joint action was achieved. For example, when the drone is on a truck and there are unserved customers suitable for drone service, the joint action can be represented as the truck going to customer 3 and the drone serving customer 2; after the drone has independently served a customer, the subsequent joint action can be represented as the truck going to the rendezvous node and the drone going to the recovery node.
[0136] After executing the joint action, this embodiment updates the state using an event-driven approach, rather than simulating frame-by-frame at fixed time intervals. Specifically, the remaining arrival times of the truck and drone are calculated based on their temporary targets, and the next event that causes a state change is taken as the endpoint. The temporary remaining time after the action is recorded as follows: and Then the event progression time can be expressed as:
[0137] The remaining arrival time of the vehicle will be updated as follows:
[0138]
[0139] When a vehicle arrives at a customer node and completes its service, the customer is added to the set of served customers. When a truck and a drone arrive at the same rendezvous node, the drone's status is updated to "ready to launch from vehicle." If one arrives at the rendezvous node before the other, the vehicle that arrived first enters a waiting state, and the synchronization waiting time is recorded. Let the set of customers whose service is completed in step t be denoted as... The set of customers already served is then updated to:
[0140] Figure 9 A schematic example of event-driven collaborative delivery state transition is given. In the diagram, squares represent delivery centers, circles represent customer nodes, solid arrows represent truck travel paths, dashed arrows represent drone flight paths, triangles represent drone launch points, and diamonds represent drone recovery points. The diagram is in black and white, and explanations of each symbol are provided within the diagram.
[0141] After the truck departs from the distribution center and arrives at customer 1, it launches a drone. The drone serves customer 2 and then rendezvouses the truck at customer 3. Subsequently, the drone is launched again from customer 3 and serves customer 4, before rendezvousing with the truck at customer 5. If either the truck or the drone arrives at the rendezvous point first, a synchronization waiting event is recorded, and the status is updated after the two drones rendezvous to proceed to the next decision step.
[0142] by Figure 9 In the illustrated embodiment, the truck first travels from the distribution center to customer 1. Upon arrival at customer 1, the system adds customer 1 to the served set and allows the drone to launch from customer 1. The model then generates a joint action that causes the truck to continue to customer 3, while the drone flies to customer 2 and completes its service. After serving customer 2, the drone flies to customer 3 and rendezvous with the truck. If the drone arrives at customer 3 first, it waits for the truck; if the truck arrives at customer 3 first, it waits for the drone. After they rendezvous, the drone's status changes to "launchable from vehicle," and the system proceeds to the next decision step. The model can then continue generating joint actions such as launching a drone from customer 3 to serve customer 4, the truck traveling to customer 5, and the drone being retrieved at customer 5. This process is repeated until all customers have been served and both the truck and the drone have returned to the distribution center.
[0143] When the termination condition is met, the system outputs the complete collaborative delivery route. The termination condition is:
[0144] Where H represents the last decision step of the complete path. The complete candidate path is denoted as:
[0145] Its total completion time is:
[0146] The path planning results should include at least the information shown in Table 7.
[0147] Table 7. Explanation of the Output Results of Collaborative Delivery Route Planning
[0148] During the model training phase, this embodiment samples multiple candidate collaborative delivery routes for the same delivery instance and constructs preference pairs based on the total completion time of the candidate routes. Let N candidate routes be obtained by downsampling the same instance x:
[0149] For each candidate path Calculate its total completion time. And mean log-likelihood:
[0150] like Then As the preferred path, As the inferior path, a preference pair is formed ( , Under the condition of using a full pairing strategy and no two paths having the same completion time, the N candidate paths can form at most the following number of preference pairs:
[0151] The preference probability can be expressed by the Bradley-Terry model as:
[0152] in, Indicates the preferred path, This indicates the inferior path, represented by the preferred temperature coefficient. This is the Sigmoid function. The model parameters are updated by minimizing the following preference loss:
[0153] In a specific training embodiment, the parameter configuration shown in Table 8 can be used. This configuration is used to illustrate one possible implementation of the invention and does not constitute a limitation on model size, training size, or inference budget.
[0154] Table 8. Model and training parameter configuration in one embodiment.
[0155] During the inference application phase, the trained path planning model does not require the construction of preference pairs. For a new delivery instance, the system generates a path step by step in the following order: state construction, action constraint generation, graph encoding, history perception decoding, state adaptive condition calculation, action scoring, joint action generation, and event-driven state transition. If greedy inference is used, the action with the highest probability is selected at each step; if sampling inference is used, multiple candidate paths are generated for the same delivery instance, and the path with the shortest total completion time is selected as the final output. Both inference methods can directly output the truck path, drone path, launch and recovery nodes, waiting information, and total completion time.
[0156] In this embodiment, the state-adaptive condition calculation module addresses the problem that a fixed decoding structure is difficult to adapt to different path construction states; candidate path preference optimization addresses the problem of signal scale instability when training directly relies on absolute completion time; and event-driven state transition clearly describes the relationship between trucks, drones, customer service, and synchronous waiting. Therefore, this specific implementation enables the present invention to generate feasible collaborative paths in truck and drone collaborative delivery tasks and improves the probability of the model generating better paths through the training process.
[0157] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions 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 state-adaptive preference optimization path planning method for truck and drone collaborative delivery, characterized in that, include: Acquire data on truck and drone collaborative delivery tasks, construct the current route planning state, and generate action constraints based on the current route planning state; A path planning model is constructed, node features are generated for the distribution center and each customer node, and the node features are input into a graph encoder for graph encoding. The decoded hidden state of the current decision step is generated using the historical perception decoder, and the decoded hidden state is input into the state adaptive condition calculation module to generate a state adaptive context representation; The path planning model is trained, multiple candidate collaborative delivery paths are sampled, and preferred pairs of preferred and unpreferred paths are constructed. The preference probability is calculated based on the average log-likelihood difference between the preferred and undesirable paths, a preference loss function is constructed, and the path planning model is optimized. The probability of candidate actions is calculated based on the state adaptive context representation, and the combined action of truck and drone is generated by combining the actionable constraints. Based on the joint action of the truck and the drone, a state transition is performed, and it is determined whether the delivery task is completed; After the delivery task is completed, the optimized path planning model outputs the path planning results for truck and drone collaborative delivery, thereby realizing the path planning for truck and drone collaborative delivery.
2. The state-adaptive preference optimization path planning method for truck and drone collaborative delivery as described in claim 1, characterized in that, The truck and drone collaborative delivery task data includes: delivery center location, customer node location, number of customers, truck speed, drone flight speed, drone service range, and collaborative constraints between the truck and drone; the collaborative constraints between the truck and drone include: drone launch from the truck, drone rendezvous with or recovering from the truck after serving the customer, and truck and drone returning to the delivery center after completing all customer service. Define the distribution center as node 0, and the set of customer nodes as follows: In the t-th decision step, the current path planning state is... Recorded as: in, This indicates the collection of customers already served. Indicates the truck's current location. Indicates the current location of the drone. Indicates the truck's remaining arrival time. Indicates the remaining arrival time of the drone. Indicates the collaborative status of the drones. This represents the joint action of the previous decision step; the joint action of the truck and the drone in the current decision step is denoted as: in, Indicates the truck target selection. Indicates the selection of drone targets; The action constraints are used to exclude actions that are not feasible in the current state. The action constraints include: customers who have been served cannot be served again; drones cannot be launched again if they are not at the truck; drones need to meet rendezvous or recovery constraints after independent service; and vehicles need to eventually return to the distribution center. set up Current path planning state The set of possible actions below, with action mask Represented as: By adding the action mask to the candidate action score, inactive actions are masked in the normalized probability.
3. The state-adaptive preference optimization path planning method for truck and drone collaborative delivery as described in claim 1, characterized in that, The node features include: node coordinates, whether the node is a distribution center, whether the node is already served, whether the node is the current location or target node of the truck, whether the node is the current location or target node of the drone, and whether the node is within the current movable range; the node features are input into the graph encoder to obtain the node embedding of each node and the global delivery graph representation of the entire delivery instance; Node The original features are denoted as The initial node embedding is obtained through linear mapping. : in, This represents a learnable weight matrix that maps the original features of a node to its embedding space. This represents the learnable bias vector of the linear mapping layer for node features. The graph encoder encodes all node embeddings to obtain a set of node representations. The global delivery map is obtained through pooling or averaging. : in, This represents the set of nodes in the delivery graph, including delivery center nodes and customer nodes.
4. The state-adaptive preference optimization path planning method for truck and drone collaborative delivery as described in claim 3, characterized in that, The historical perception decoder takes the global delivery graph representation, the joint action representation of the previous decision step, and the current path planning state features as input to obtain the decoded hidden state of the current decision step; the decoded hidden state is used to represent the current path construction stage, the historical launch and recovery process, the truck and UAV collaborative state, and the current spatial context; Let the current path planning state characteristics be denoted as The embedding of the previous joint action is denoted as Input of the history perception decoder Represented as: When the history-aware decoder uses a long short-term memory network, the state update is represented as: in, This is the current hidden decoding state. The state of the memory unit; This represents the decoded hidden state or concealed state of the current decision step. This indicates the state of the memory cell in the current decision step. This represents a Long Short-Term Memory (LSTM) network, used to update the decoding state based on the current input and historical states. This represents the decoded hidden state of the previous decision step. This indicates the state of the memory cell in the previous decision step; The current decoded hidden state is input into the state adaptive condition calculation module, and the routing weights of multiple expert branches are calculated based on the current decoded hidden state. The expert branches with higher weights are retained through a sparse expert selection method. The selected expert branches perform representation transformation on the current decoded hidden state and are weighted and fused according to the routing weights to obtain the state adaptive context representation. Utilize the router based on the current decoding hidden state Calculate expert route weights : in, Router parameters, This indicates that the K expert branches with the highest scores should be retained; This represents a normalized exponential function that converts expert branch scores into normalized route weights. The state adaptive condition calculation module includes... Feedforward expert and an identity expert and order ,in The state adaptive context representation Represented as: in, The routing weight for the k-th expert branch This indicates normalization processing.
5. The state-adaptive preference optimization path planning method for truck and drone collaborative delivery according to claim 1, characterized in that, During the training phase, the path planning model generates multiple candidate collaborative delivery routes for the same delivery instance. Each candidate collaborative delivery route includes a complete sequence of joint actions between the truck and the drone. For each candidate route, the total completion time is calculated, and the average log-likelihood of the candidate route under the current path planning model is calculated. The average log-likelihood is used to represent the tendency of the model to generate candidate routes. For candidate paths The average log-likelihood is expressed as: in, Indicates the first The final path planning status after all candidate paths have been executed. Indicates the first The number of decision steps contained in each candidate path. This represents the average log-likelihood calculated by the model for candidate paths. The parameter is The probability distribution of path planning strategies Indicates the first The candidate path in the th A decision-making step involving combined truck and drone actions; Multiple candidate collaborative delivery routes under the same delivery instance are compared according to the total completion time; for any two candidate routes, if the total completion time of one candidate route is less than that of the other candidate route, the candidate route with the shorter total completion time is determined as the preferred route, and the candidate route with the longer total completion time is determined as the inferior route, thus constructing the preferred route and inferior route preference pair. If the total completion time of the preferred path among the candidate paths is less than the total completion time of the undesired path, then it is denoted as: in, Indicates the preferred path, Indicates the inferior path, A function representing the total completion time of candidate routes; a set of preference pairs constructed under the same delivery instance x. Recorded as: 。 6. The state-adaptive preference optimization path planning method for truck and drone collaborative delivery according to claim 5, characterized in that, The preference probability of the preferred path relative to the inferior path Defined as: in, The Sigmoid function represents the preference temperature coefficient. This represents the preference temperature coefficient, used to adjust the impact of path log-likelihood differences on preference probabilities; the corresponding preference loss function... Represented as: in, This represents the set of learnable parameters for a path planning model. For training batches, the overall training loss will be... Represented as: in, This represents the preference optimization loss for a single delivery instance. This represents the set of delivery instances in a training batch.
7. The state-adaptive preference optimization path planning method for truck and drone collaborative delivery according to claim 1, characterized in that, The state adaptive context representation node embedding, global delivery graph representation, and vehicle travel time features are input into the action scoring module to calculate the candidate action scores for the truck and the drone in the current decision step; the candidate actions include the truck going to the customer node or delivery center, the drone independently serving the customer, the drone moving with the truck, and the drone going to the rendezvous or recovery location. vehicle The travel time characteristic from the current node or target node i to candidate node j is denoted as: Score the candidate actions Represented as: in, Indicates vehicle The candidate action scoring function, This represents the adaptive context representation of the state at the current decision step. Indicates candidate nodes Node embedding; After incorporating action constraints, the probability of the candidate action is expressed as: in, For vehicle v, pair of candidate nodes The action mask value, for the case of sequentially generating joint actions, first generates the truck target. Then, given the truck target, generate the drone target. ; The action constraints are applied to the obtained candidate action scores, actions that are not executable in the current state are masked or set to zero, and the truck and drone joint action for the current decision step is generated from the remaining actions; the joint action includes truck target selection and drone target selection.
8. The state-adaptive preference optimization path planning method for truck and drone collaborative delivery according to claim 1, characterized in that, The system calculates the time required for the truck and drone to reach their respective targets based on their joint actions, and updates the truck's location or target node, the drone's location or target node, the vehicle's remaining arrival time, the set of customers already served, the drone's collaborative status, and the synchronous waiting status. When a vehicle arrives at the rendezvous point first, it records the synchronous waiting information for the other vehicle to arrive. If all customers have been served and both the truck and drone have returned to the delivery center, the delivery task is considered complete; otherwise, the system continues with the next decision step of path planning. The first The event progression time for each decision step is denoted as... The set of customers who complete the service during the event's progression is denoted as... Then the set of customers already served will be included. Updated to: in, Let represent the set of customer nodes that have newly completed services in the t-th decision step. This represents the set of customers already served before the update. Complete candidate paths Recorded as: in, This indicates the initial path planning state of the candidate path. This indicates the first combined truck and drone action taken in the initial state. This indicates the final path planning state after the candidate path has been executed. Indicates the first A decision-making step involving combined truck and drone actions; Total completion time Represented as: 。 9. The state-adaptive preference optimization path planning method for truck and drone collaborative delivery according to claim 1, characterized in that, The route planning results include truck access routes, drone flight routes, drone launch nodes, drone rendezvous or recovery nodes, synchronization waiting information, and total completion time; the total completion time is used to measure the quality of the collaborative delivery route.
