Non-structured farmland fixed-wing unmanned aerial vehicle multi-mission planning method based on three-dimensional directed cost matrix
By constructing a three-dimensional directed cost matrix and a multi-flight mission planning model, the problems of unexecutability and high energy consumption in UAV mission planning in a three-dimensional farmland environment were solved, and a reasonable mission access sequence and efficient resource utilization were achieved.
Patent Information
- Application Number
- CN202611654723.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-26
- Publication Date
- 2026-11-24
AI Technical Summary
Existing two-dimensional mission planning methods cannot accurately reflect the influence of three-dimensional terrain, resulting in unexecutable or energy-intensive access sequences for fixed-wing UAVs in three-dimensional unstructured farmland environments such as hills, terraces, and sloping orchards. Furthermore, the coupling of payload, energy, and return-to-home safety constraints is insufficient in multi-flight mission planning.
A three-dimensional directed cost matrix-based approach is adopted to construct a cost matrix that includes three-dimensional flight distance, geometric feasibility, asymmetric energy consumption, and flight time. A multi-flight mission planning model is established, and an objective function for minimizing the comprehensive cost is set. The mission planning problem is solved by a multi-flight mission point insertion-path reconstruction algorithm.
It improves the rationality and feasibility of task access sequence in complex three-dimensional farmland environments, enhances the accuracy of energy consumption estimation, and improves resource utilization efficiency and return safety in multi-flight agricultural operations.
Smart Images

Figure CN123159831A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the technical field of farmland UAV mission planning, specifically relating to an unstructured multi-flight mission planning method for farmland fixed-wing UAVs based on a three-dimensional directed cost matrix. Background Technology
[0002] With the development of precision agriculture and smart agriculture, drones have been widely used in agricultural operations such as plant protection, fertilization, sowing, inspection, and crop monitoring. Compared with multi-rotor drones, fixed-wing drones have advantages such as high flight speed, long endurance, and large coverage area per flight, making them suitable for continuous operations in large-scale farmland, hilly tea gardens, mountain terraces, and sloping orchards.
[0003] Fixed-wing UAVs are constrained by factors such as minimum horizontal turning radius, maximum climb angle, maximum descent angle, maximum payload, maximum energy reserve, and safe return conditions during operation. In a three-dimensional unstructured farmland environment, there are not only differences in horizontal distance between mission modules, but also significant differences in elevation. The mission access sequence directly affects flight distance, climb intensity, energy consumption, and return safety.
[0004] Existing agricultural drone mission planning methods often simplify the operational area into a two-dimensional planar region and use two-dimensional Euclidean distance, Manhattan distance, or planar flight strip length as the cost between mission nodes. While this approach is applicable to flat farmland, in three-dimensional terrains such as hills, terraces, and sloping orchards, the two-dimensional distance cannot accurately reflect the elevation changes between mission nodes and the flight constraints of fixed-wing drones, easily leading to problems such as excessive climb angles, excessive descent angles, or insufficient energy consumption estimation.
[0005] Furthermore, existing multi-task access order planning methods typically employ a symmetric cost matrix, meaning they default to starting from the task node. i To the task node j The cost and from the task node j To the task node i The cost is the same. However, in 3D terrain, fixed-wing UAVs require additional climb energy to fly from low-altitude nodes to high-altitude nodes, while the energy consumption characteristics are different when flying from high-altitude nodes to low-altitude nodes. Therefore, the cost of connecting task nodes in a 3D farmland environment is directional and asymmetric.
[0006] In large-scale agricultural operations, fixed-wing UAVs are also limited by payload and energy reserves, typically requiring multiple takeoffs from the base, visits to several mission nodes, and return to the base for resupply. Existing methods for multi-flight mission planning often lack unified modeling of three-dimensional terrain, asymmetric energy consumption, geometric feasibility, payload continuity, energy continuity, and return safety margin, resulting in insufficient feasibility and safety of the planning results in complex farmland environments. Summary of the Invention
[0007] The purpose of this invention is to address the aforementioned shortcomings of the prior art by providing a multi-flight mission planning method for unstructured fixed-wing UAVs in farmland based on a three-dimensional directed cost matrix, thereby solving at least one of the following problems: Existing two-dimensional mission planning methods cannot accurately reflect the impact of three-dimensional terrain. Current methods typically plan mission access sequences based on two-dimensional planar distances, failing to adequately consider the constraints of elevation differences, ascent angles, and descent angles between mission nodes. In three-dimensional unstructured farmland environments such as hills, terraces, and sloping orchards, these methods are prone to generating access sequences that are either unexecutable or energy-intensive in actual flight.
[0008] Existing methods for fixed-wing UAV node cost modeling in 3D environments suffer from insufficient asymmetric modeling. Current task planning methods often employ symmetric distance or symmetric energy consumption models, which fail to describe the energy consumption differences between flying from low-altitude nodes to high-altitude nodes and vice versa. This results in task access sequences not adequately adapting to 3D terrain variations.
[0009] Existing multi-flight mission planning suffers from insufficient coupling of payload, energy, and return-to-base safety constraints. Fixed-wing UAVs in agricultural operations are limited by payload and energy requirements, necessitating multiple returns to base for resupply. Current methods lack multi-flight mission access sequence planning models that comprehensively consider mission coverage, base origin and destination, payload continuity, energy continuity, geometric feasibility, and return-to-base safety margins.
[0010] To achieve the above objectives, the technical solution adopted by the present invention is as follows: A multi-flight mission planning method for unstructured fixed-wing UAVs in farmland based on a three-dimensional directed cost matrix includes the following steps: S1. Read 3D terrain data, mission node data, base location and wind field data, and initialize fixed-wing UAV parameters; S2. Discretize the three-dimensional farmland operation area into multiple task nodes, and construct a task vector for each task node; S3. Based on the three-dimensional flight distance, geometric feasibility, three-dimensional asymmetric energy consumption, and flight time between task nodes, construct a three-dimensional directed cost matrix; S4. Based on the three-dimensional directed cost matrix, construct a multi-flight mission planning model, set the objective function of minimizing the comprehensive cost, and configure constraints such as mission coverage, flow conservation, base origin and destination, geometric feasibility, load, energy, return safety margin, time continuity, multi-flight connection, and sub-loop elimination. S5. The multi-ferry mission planning model is solved by using the multi-ferry mission point insertion-path reconstruction algorithm, and local path reconstruction is performed for each voyage to generate and output the multi-ferry operation path.
[0011] Furthermore, in S2, a task vector is constructed for each task node, which includes the three-dimensional spatial location of the task node, the workload consumption, the service time, and the task priority weight.
[0012] Furthermore, in S3, the calculation of the three-dimensional flight distance between task nodes includes: Calculate the horizontal flight distance and elevation difference between any two mission nodes; A horizontal maneuvering correction factor is introduced to correct the horizontal flight distance, resulting in the corrected horizontal flight distance. When the horizontal maneuvering correction factor is greater than or equal to 1, the horizontal maneuvering correction factor is calculated based on the minimum horizontal turning radius of the fixed-wing UAV, the horizontal flight distance at the mission node, and the correction factor. Based on the corrected horizontal flight distance and elevation difference, the three-dimensional flight distance between mission nodes is calculated; and a distance matrix is formed based on the three-dimensional flight distance between mission nodes.
[0013] Furthermore, in S3, the calculation of geometric feasibility between task nodes includes: Based on the corrected horizontal flight distance and elevation difference, the equivalent slope angle between mission nodes is calculated; according to the maximum climb angle and maximum descent angle of the fixed-wing UAV, the geometric feasibility of the directed flight path between mission nodes is determined. When the equivalent slope angle is within the preset flyable angle range, the flight path is marked as a feasible directed flight path, otherwise it is marked as an infeasible directed flight path, and thus a geometric feasibility matrix is constructed.
[0014] Furthermore, in step S3, based on the three-dimensional flight distance, elevation difference, and UAV energy consumption parameters between task nodes, the three-dimensional asymmetric energy consumption and flight time are calculated, which includes: Based on the sign of the elevation difference between mission nodes, climb or level flight segments and descent segments are distinguished, and the basic energy consumption of the corresponding segments is calculated separately. The basic energy consumption of climb or level flight segments is calculated based on the basic energy consumption coefficient per unit distance in level flight, the three-dimensional flight distance between mission nodes, the energy consumption coefficient at climb altitude, and the elevation difference. The basic energy consumption of descent segments is the larger of the following two values: "the energy consumption value corresponding to the minimum maintenance energy consumption per unit distance in descent" and "the energy consumption value after deducting the energy consumption for descent potential energy from the basic energy consumption in level flight". The total energy consumption of the directed flight path between task nodes is obtained by superimposing the task service energy consumption of the corresponding flight segment, and an asymmetric energy consumption matrix is formed based on the opposite signs of the bidirectional elevation differences between task nodes. Based on the three-dimensional flight distance between mission nodes and the reference cruise speed of the fixed-wing UAV, the flight time of the directed flight path between nodes is calculated, and a flight time matrix is formed.
[0015] Furthermore, in step S4, a multi-flight mission planning model is constructed based on the three-dimensional directed cost matrix, including: Define the voyage, decision variables, and continuous variables: A voyage is defined as a closed-loop process that starts from the base node, visits several task nodes, and returns to the base node each time. Set three types of decision variables: voyage activation, node access path, and task allocation; And set four types of continuous variables: remaining energy, remaining payload, arrival time, and mission completion time when the voyage reaches the mission milestone; The objective function is set as follows: the optimization objective is to minimize the weighted sum of flight activation cost, total flight time cost, total flight energy consumption cost and mission priority delay cost.
[0016] Furthermore, in S4, the task coverage constraint is: each task node is served only once per voyage; The flow conservation constraint is: for any task node, the number of times it enters in the same voyage is equal to the number of times it leaves; The base start and end constraints are: each activated flight departs from and returns to the base node; The geometric feasibility constraint is: only directed routes marked as feasible are allowed to be selected, and infeasible directed edges cannot be selected; The load constraints are: the remaining load of the fixed-wing UAV during the flight is not less than 0 and does not exceed the maximum effective load; when the fixed-wing UAV departs from the mission node... i fly to the mission node j When the task node is reached. j The remaining load is no greater than the load at the time of the mission node. i The remaining load minus the task node j The load consumption, and the service task nodes j The remaining load before the task node must meet the requirements. j The load requirements; The energy constraints are: the remaining energy of the fixed-wing UAV during the flight is not less than 0 and does not exceed the maximum energy reserve; when the fixed-wing UAV leaves the mission node... i fly to the mission node j When the task node is reached. j The remaining energy is no greater than that of the task node. i The remaining energy minus the energy consumed during this leg of the journey; The return safety margin constraint is: when a mission node is served by a certain flight, the remaining energy of the fixed-wing UAV to reach the mission node shall not be less than the sum of the worst-case return energy consumption from the mission node to the base and the preset fixed safety margin; The time continuity constraint is: when the fixed-wing UAV leaves the mission nodei fly to the mission node j When the task node is reached. j The time is no earlier than the time of the task node. i Time, task nodes i Service time and task nodes i To the task node j The sum of the flight time, the flight time, and the other two. The constraint for connecting multiple flights is that the departure time of the subsequent flight shall not be earlier than the sum of the return time and the base resupply preparation time of the preceding flight; The sub-loop elimination constraint is achieved by introducing auxiliary variables to constrain the access order of task nodes during the voyage.
[0017] Furthermore, in step S5, the multi-flight mission point insertion-path reconstruction algorithm is used to solve the multi-flight mission planning model, including: Initialize each voyage path as an empty path. An empty path means starting from the base node and returning directly to the base node. Select candidate task nodes from the set of unserved task nodes and insert the candidate task nodes between any two adjacent nodes in the current voyage path; The incremental costs of insertion are calculated based on the flight time, flight energy consumption, and mission priority completion time after the insertion of the mission node. For flights that have not yet been activated, the activation cost of the flight is added when the mission node is inserted for the first time to form the incremental costs of insertion. For each insertion location, a feasibility check is performed. The feasibility check must simultaneously meet the conditions of geometric feasibility, load feasibility, energy capacity feasibility, and return safety margin feasibility, and retain feasible insertion schemes that meet the feasibility check. Select the feasible insertion scheme with the lowest overall insertion incremental cost, insert the corresponding task node into the path, and remove the task node from the set of unserved task nodes. Repeat the process of inserting candidate task nodes and verifying their feasibility until no new task nodes can be inserted in the current voyage, thus completing the construction of the voyage path; if there are still unserved task nodes, construct the path for the next voyage in the same way. When all task nodes have been served, or the preset maximum number of voyages has been reached but there are still unserved task nodes; if the plan is terminated due to reaching the maximum number of voyages, an infeasibility message and the reason will be output.
[0018] Furthermore, in S5, local path reconstruction is performed for each voyage, including: Node swap: Swap the access positions of two task nodes. If the new path satisfies the feasibility check and the objective function value decreases, then the node swap is accepted. Node relocation: Remove a task node from its current position and insert it between another pair of adjacent task nodes. If the relocation path is feasible and the objective function value is reduced, then the node relocation is accepted. Directed edge replacement: Adjust the adjacent connections in the current path. After each edge replacement, recalculate the flight time, flight energy consumption, and geometric feasibility of the directed edge. If the flight time, flight energy consumption, and geometric feasibility all meet the constraints and the objective function value decreases, then the directed edge replacement is accepted.
[0019] Furthermore, S5 also includes performing inter-voyage mission adjustments after completing the initial construction of all voyages. These inter-voyage mission adjustments include: Cross-voyage node transfer: Remove a task node from one voyage and insert it into a feasible position in another voyage. If both voyages satisfy the constraints of geometric feasibility, load feasibility, energy capacity feasibility, and return safety margin feasibility after the transfer, and the objective function value decreases, then the cross-voyage node transfer is accepted. Cross-voyage node swap: Select two mission nodes from different voyages and swap their voyages and access locations. If the overall path is feasible and the objective function value is reduced after the swap, then the cross-voyage node swap is accepted.
[0020] The unstructured farmland fixed-wing UAV multi-flight mission planning method based on a three-dimensional directed cost matrix provided by this invention has the following beneficial effects: 1. This invention improves the rationality and feasibility of task access sequence in a three-dimensional complex farmland environment; it calculates the three-dimensional flight distance based on the horizontal distance, elevation difference and fixed-wing maneuver correction coefficient between task nodes, and constructs a geometric feasibility matrix through the maximum climb angle, maximum descent angle and safety constraints, which can avoid the problem of unexecutable access sequence caused by ignoring terrain undulations in traditional two-dimensional planning methods.
[0021] 2. Improve the accuracy of energy consumption estimation and the economy of mission planning under three-dimensional terrain conditions; by establishing a three-dimensional asymmetric energy consumption model, calculate the energy consumption of climb, level flight, and descent segments separately, so that the node... To the node With nodes To the node The energy consumption is determined according to the elevation changes, thereby guiding the drone to form a low-energy access sequence that is more in line with the terrain characteristics.
[0022] 3. Improve resource utilization efficiency and return safety in multi-flight agricultural operations; This invention uniformly considers task coverage, base start and end, payload reduction, energy reduction, resupply connection and return safety margin constraints in the multi-flight mission access sequence planning, so that fixed-wing UAVs can reasonably allocate flights in large-area farmland operations and retain safe return capability at any mission node. Attached Figure Description
[0023] Figure 1 This is a flowchart of the unstructured farmland fixed-wing UAV multi-flight mission planning method based on a three-dimensional directed cost matrix, as shown in the embodiment.
[0024] Figure 2 This is a schematic diagram of the three-dimensional task nodes and base in the embodiment.
[0025] Figure 3 This is a schematic diagram illustrating the construction of the three-dimensional directed cost matrix in the embodiment.
[0026] Figure 4 This is a schematic diagram illustrating the geometric feasibility determination in the embodiment.
[0027] Figure 5 This is a schematic diagram of the access order results for multiple voyages in the embodiment. Detailed Implementation
[0028] The specific embodiments of the present invention are described below to enable those skilled in the art to understand the present invention. However, it should be understood that the present invention is not limited to the scope of the specific embodiments. For those skilled in the art, various changes are obvious as long as they are within the spirit and scope of the present invention as defined and determined by the appended claims. All inventions utilizing the concept of the present invention are protected.
[0029] This embodiment presents a multi-flight mission planning method for unstructured farmland fixed-wing UAVs based on a three-dimensional directed cost matrix. The method discretizes the three-dimensional unstructured farmland operation area into several task nodes with three-dimensional coordinates, operational requirements, service time, and task priorities. Base nodes serve as take-off, landing, and resupply nodes for the fixed-wing UAVs. For any two task nodes, a three-dimensional directed cost matrix is constructed based on their horizontal distance, elevation difference, minimum horizontal turning radius of the fixed-wing UAV, maximum climb angle, and maximum descent angle. This matrix includes three-dimensional flight distance, geometric feasibility, asymmetric energy consumption, and flight time. Within this matrix, from the node... i To the node j With slave node j To the node i The costs are calculated separately to reflect the energy consumption differences of the climb, level flight, and descent segments in the three-dimensional terrain; then, a multi-flight mission access sequence planning model is established to enable the fixed-wing UAV to depart from the base multiple times, visit several mission nodes, and return to the base for resupply under load and energy constraints; finally, a multi-flight mission access sequence that meets the dynamic constraints, resource constraints, and return safety requirements of the fixed-wing UAV is obtained through a hierarchical solution strategy. The input for this embodiment is: 3D terrain data; farmland boundary data and mission segment data; base location data, i.e., fixed-wing UAV take-off, landing, and resupply locations; fixed-wing UAV dynamic parameters, including minimum horizontal turning radius, maximum climb angle, maximum descent angle, cruise speed, maximum payload, and maximum onboard energy reserve; operational parameters, including the amount of pesticide required for each mission segment, service time, operational area, and mission priority; wind field data, including wind speed, wind direction, or wind speed vector; safety parameters, including minimum remaining energy percentage, return safety margin, and minimum safe altitude; and algorithm parameters, including maximum number of flights, clustering parameters, and heuristic search iterations.
[0030] The output is: The set of mission nodes visited in each flight; the order of mission node visits in each flight; the estimated flight distance, flight time, and flight energy consumption for each flight; the remaining payload and remaining energy at each mission node; the return safety margin at each mission node; the total number of flights, total flight distance, total flight time, and total energy consumption.
[0031] refer to Figure 1 This embodiment specifically includes the following: S1. Read 3D terrain data, mission node data, base location and wind field data, and initialize fixed-wing UAV parameters; S2. Discretize the three-dimensional farmland operation area into multiple task nodes, and construct a task vector for each task node; In some embodiments, reference Figure 2 Suppose the three-dimensional farmland operation area is discretized into N task modules, with task node 0 representing a unique take-off, landing, and resupply base. (Task node set) Among them, the task module collection Each task section From task vector describe: ,in, Represents three-dimensional spatial position. Three-dimensional spatial coordinates; Indicates the completion of the task node. Required amount of pesticide solution, fertilizer, seeds, or other load consumption; Represents task node Service hours; Represents task node Task priority weights. For area-type farmland task blocks, the center point of the block, the representative operation point, or the representative elevation point can be selected as the task node coordinates; the parameters of the fixed-wing UAV are shown in Table 1; Table 1 - Parameters of Fixed-Wing UAVs: S3. Based on the three-dimensional flight distance, geometric feasibility, three-dimensional asymmetric energy consumption, and flight time between task nodes, construct a three-dimensional directed cost matrix; In some embodiments, reference Figure 3 For any two different task nodes and Build from task nodes fly to the mission node Directed edge Each directed edge contains the following cost information: In the formula: Indicates from task node To the task node The three-dimensional flight distance; Indicates from task node To the task node Flight time; Indicates from task node To the task node Energy consumption; Indicates from task node To the task node The geometric feasibility flag is set to 1 if feasible and 0 otherwise.
[0032] In one specific embodiment, the horizontal flight distance between any two task nodes is calculated; due to the different elevation differences, the directed edge... With directed edges Calculate separately; first calculate the task nodes. and task nodes Horizontal distance: In the formula, For task nodes and task nodes Horizontal distance; , For task nodes Two-dimensional coordinates; , For task nodes Two-dimensional coordinates.
[0033] Calculate the elevation difference between the two task nodes: In the formula, For task nodes and task nodes Elevation difference; For task nodes Height; For task nodes The height.
[0034] Introducing horizontal maneuvering correction coefficient This is used to characterize the impact of the minimum horizontal turning radius of a fixed-wing UAV on the horizontal flight distance between nodes: In the formula, This is the corrected horizontal flight distance; When the horizontal maneuver correction factor is greater than or equal to 1, the horizontal maneuver correction factor is expressed as: In the formula, To correct the parameters; when the horizontal distance between nodes is small or the minimum turning radius is large, the horizontal maneuver correction coefficient increases; when the horizontal distance between nodes is large, the horizontal maneuver correction coefficient approaches 1.
[0035] Based on the corrected horizontal flight distance and elevation difference, the three-dimensional flight distance between mission nodes is calculated; and a distance matrix is formed based on the three-dimensional flight distance between mission nodes. The three-dimensional flight distance is defined as follows: Finally, the distance matrix is formed. .
[0036] In one specific embodiment, reference is made to Figure 4 Geometric feasibility determination matrix: Based on the corrected horizontal flight distance and elevation difference Calculate task nodes To the task node Equivalent slope angle: In the formula, For task nodes To the task node The equivalent slope angle; Represents task node Point to task node The directed edge geometric feasibility identifier variable. Wherein, when the task node... To the task node The equivalent slope angle satisfies: When this condition is met, it indicates that the directed path satisfies the geometric constraints of the maximum climb angle and maximum descent angle of the fixed-wing UAV. Therefore, it is defined as a feasible directed path, and we set: When the equivalent slope angle does not meet the above conditions, it indicates that the directed flight path exceeds the allowable climb or descent angle range of the fixed-wing UAV, and it is defined as an infeasible directed flight path, and the following is set: .
[0037] This constitutes the geometric feasibility matrix F: In the subsequent voyage mission planning model, only selection is allowed. The directed edge.
[0038] In one specific embodiment, based on the three-dimensional flight distance, elevation difference, and UAV energy consumption parameters between task nodes, the three-dimensional asymmetric energy consumption and flight time are calculated, which includes: set up This represents the basic energy consumption coefficient per unit distance under level flight conditions. Indicates the energy consumption coefficient based on the altitude climbed; This represents the energy consumption reduction factor; This represents the minimum sustaining energy consumption coefficient per unit distance during descent. Represents task node Energy consumption for operational services.
[0039] when At that time, task node To the task node For climb or level flight segments, its basic energy consumption for: when At that time, task node To the task node For the descent segment, the basic energy consumption is: Adding task service energy consumption Then, we obtained: In the formula, This represents the total energy consumption of the directed flight path between task nodes. Due to elevation difference and The symbols are opposite, task nodes To the task node Energy consumption and nodes To the node The energy consumption is calculated separately, thus forming an asymmetric energy consumption matrix. .
[0040] Assuming the reference cruise speed of the fixed-wing UAV is Then the drone will depart from the mission node To the task node The flight time can be expressed as : And form a flight time matrix .
[0041] S4. Based on the three-dimensional directed cost matrix, construct a multi-flight mission planning model, set the objective function of minimizing the comprehensive cost, and configure constraints such as mission coverage, flow conservation, base origin and destination, geometric feasibility, load, energy, return safety margin, time continuity, multi-flight connection, and sub-loop elimination. In some embodiments, a multi-flight mission planning model is constructed based on a three-dimensional directed cost matrix, referencing... Figure 5 ,include: Define a voyage: Let the maximum number of voyages allowed be... Each closed-loop process that starts from base node 0, visits several task nodes, and returns to base node 0 is defined as a voyage. Decision variable: Setting voyage activation Node access path Task allocation Three types of decision variables, specifically: Continuous variables: Indicates the first Each voyage reached the mission node. The remaining energy at that time; Indicates the first Each voyage reached the mission node. The remaining load at that time; Indicates the first Each voyage to the mission milestone Time; Overlooking the task nodes Completion time; Indicates the first Each voyage reached the mission node. j The remaining load at that time; Set the objective function The optimization objective is to minimize the weighted sum of flight activation cost, total flight time cost, total flight energy cost, and mission priority delay cost, which can be expressed as: In the formula, Indicates the weight of the voyage activation cost; Indicates the weight of flight time cost; Indicates the weight of flight energy consumption costs; Indicates the task priority delay cost weight; Indicates the number of times a flight has been activated; Indicates the total flight time; Indicates total flight energy consumption; This indicates the delay cost due to task priority.
[0042] The task coverage constraint is: each task node is served only once per voyage, which is expressed as: The flow conservation constraint states that for any task node, the number of times it enters the same voyage equals the number of times it leaves, which can be expressed as: The base start and end constraints are: each activated flight departs from and returns to the base node, which is represented as: In the formula, Indicates the first In each flight, does the fixed-wing UAV fly directly from base node 0 to mission node j? If so, then... ,otherwise ; The geometric feasibility constraint is: only directed routes marked as feasible are allowed to be selected, and infeasible directed edges cannot be selected, which is expressed as: The load constraint is: the remaining load of the fixed-wing UAV during the flight. Not less than 0 and not exceeding the maximum effective load It is represented as: If the fixed-wing drone is in the From the mission nodes in each voyage fly to the mission node ,but: This formula indicates that: when At that time, the fixed-wing UAV departs from the mission node fly to the mission node The fixed-wing UAV has reached the mission node. Remaining load after It should not be greater than the time to reach the task node. Remaining load at time Subtract task nodes Load consumption ;when At that time, with the help of large constants This renders the constraint ineffective.
[0043] And service task nodes The load requirements must be met: In the formula, To represent task nodes The workload requirement for completing the task nodes The required amount of liquid medicine, fertilizer, or other work load.
[0044] Energy constraint; The energy variable satisfies: The formula indicates that the drone in the... voyage arrival node Remaining energy at time It cannot be less than 0, nor can it exceed the drone's maximum energy reserve. .
[0045] If the drone is in From node in each voyage fly to node ,but: This formula indicates that: when At that time, the drone departed from the node fly to node Then, arrive at the node. Remaining energy at time It should not be greater than the node reached. Remaining energy at time Subtract the energy consumption of this flight segment .when At that time, with the help of large constants This renders the constraint ineffective.
[0046] Return safety margin constraints; Drones at mission nodes The remaining energy at that location satisfies: This formula indicates that when the task node... By the During each voyage service, that is The drone arrived at the mission node. Remaining energy at time It should be no less than that of the node Worst-case return energy consumption required to return to base node 0 With fixed safety margin The sum of these. This ensures that the drone retains enough energy to safely return at any visited mission node. When At that time, with the help of large constants This renders the constraint ineffective.
[0047] in, Based on nodes The three-dimensional flight distance, elevation difference, and conservative energy consumption parameters to base node 0 were calculated. This indicates the preset fixed safety energy reserve.
[0048] Time continuity constraint; If the drone is in From the mission nodes in each voyage fly to the mission node ,but: This formula indicates that: when When the drone reaches the mission node time It should not arrive at the task node earlier than time At task nodes Service Hours and from task nodes fly to the mission node Flight time The sum of the three. when At that time, with the help of large constants This renders the constraint ineffective.
[0049] The constraints for connecting multiple voyages are: No. The departure time of each voyage meets the following requirements: Indicates the first departure time of each flight No earlier than the Return time for each voyage With supply preparation time The sum of, among which, This indicates the time required for the drone to complete its resupply of medicine and energy at the base and prepare for takeoff again.
[0050] Sub-loops eliminate constraints; Introducing auxiliary variables ,set up: Indicates through auxiliary variables and For the Mission nodes in each voyage With task nodes The access order is constrained, where, Indicates the first During each flight, the drone departed from the node Fly directly to the node This constraint is used to prevent paths from forming independent closed loops between several task nodes that do not pass through the base.
[0051] S5. The multi-ferry mission point insertion-path reconstruction algorithm is used to solve the multi-ferry mission planning model, and local path reconstruction is performed for each voyage to generate and output the multi-ferry operation path. Multi-flight mission planning can be expressed as a mixed-integer programming problem, but when the number of mission nodes is large, the computational cost of directly solving it precisely is too high. If all mission nodes are directly permuted, the complexity increases exponentially with the number of nodes, which is difficult to meet the rapid planning needs of actual agricultural operations.
[0052] Therefore, this invention proposes a multi-flight mission point insertion-path reconstruction algorithm. This algorithm does not pre-determine the mission points included in each flight. Instead, during the construction of each flight path, it synchronously determines which mission nodes are included in the current flight and the order in which these nodes are accessed within the current flight by inserting mission points. Specifically, in each flight, candidate nodes are sequentially selected from the set of unserved mission nodes, and attempts are made to insert them between any adjacent nodes in the current path. The incremental insertion cost is calculated, and geometric feasibility, load, energy, and return safety margin are verified. The feasible insertion scheme with the minimum incremental cost is selected to update the current flight path. When the current flight cannot insert any more mission nodes, the flight ends and the next flight is constructed. In some embodiments, each voyage follows an air route. start: ; This expression represents the first... Each voyage departs from base node 0 and returns directly to base node 0. During task insertion, candidate task nodes are selected from the set of unserved task nodes, and attempts are made to insert them between any two adjacent nodes in the current voyage path. If adjacent nodes exist in the current voyage path... and Then the task node After inserting at this location, the local path changes as follows: Become .
[0053] Flight time increment for: Increase in flight energy consumption for: Task priority completion time increment for: in, Indicates the task node The estimated task completion time after inserting the current path position; For drones from nodes fly to the mission node Flight time, For drones from nodes fly to the mission node Flight time, For drones from nodes fly to the mission node Flight time, For task nodes Service hours; To indicate the drone at the mission node Energy consumption required to perform job services To indicate that the drone has started from the mission node fly to node Basic flight energy consumption To indicate the insertion of a task node Forward drone from node Fly directly to the node Basic flight energy consumption; Overall insertion increment cost for: If the current voyage is not yet in use, i.e. the current route is: Then the first insertion of the task node At that time, the path is: It becomes: At this point, the voyage activation cost can be added to form a comprehensive insertion incremental cost. : Task Node Insert into adjacent nodes in the current voyage path and When in between, the following conditions must be met simultaneously: First, geometric feasibility conditions: In the formula, To represent the node fly to the mission node The geometric feasibility of a directed edge is marked. If the directed edge satisfies the maximum climb angle, maximum descent angle, and related safe flight constraints of the fixed-wing UAV, then... ,otherwise , To indicate from the task node fly to node The geometric feasibility of a directed edge is marked if the directed edge satisfies the flight geometric constraints of the fixed-wing UAV. ,otherwise ; Second, load feasibility conditions: in, Indicates the current number The set of task nodes already included in each voyage; For task nodes The required workload. Index the task nodes; For the task node to be inserted The required workload for the operation; Third, the feasibility of energy capacity; Task Node After insertion, recalculate the total energy consumption for the entire voyage route, which must meet the following requirements: in, Indicates the insertion of a task node The new path after that, This represents the sum of the total flight energy consumption and operational energy consumption for that route.
[0054] Fourth, the feasibility of the return safety margin; Along the new path Starting from the base, recursively calculate the remaining energy node by node, at any mission node. Upon completion of the service, the following conditions must be met: In the formula, For the first During each flight, the fixed-wing UAV reached the mission milestone. And the remaining energy after the node completes its service; For fixed-wing UAVs from mission nodes The energy required to return to base node 0; Only insertion schemes that simultaneously meet the above conditions are considered feasible insertion schemes.
[0055] In one specific embodiment, the construction process of the first voyage is as follows: Initial path of the first voyage for: At this point, the first voyage did not yet include any mission nodes: In the formula, This is the set of mission nodes for the first voyage. Indicates the empty set; Set of unserved task nodes for: In the first round of insertion, since the current path only has a virtual edge from base to base, any candidate task node... Only paths can be formed: The algorithm calculates all unserved task nodes respectively. Insertion cost: And check: Task nodes that meet the above conditions are considered feasible candidate points. The algorithm selects from all feasible candidate points. Minimum task node And insert it into the first voyage, and you get: Then Never-served task node set Delete and add to the first voyage mission node set. .
[0056] During the second round of insertion, the current path is: The path now contains two directed edges: For any unserved task node The algorithm tries two insertion positions: as well as: In general, if the current first voyage path for: In the formula, This is the first access node in the first voyage. This is the second mission node visited in the first voyage. For the first voyage One accessed task node; Then each unserved task node i You can try inserting it between any of the following adjacent nodes: If inserted into an adjacent node and Between these, the comprehensive insertion increment cost is calculated. And check geometric feasibility, load capacity, energy capacity, and return safety margin. If multiple feasible insertion schemes exist, select the one with the lowest overall incremental cost: Then the task node Insert into path and between.
[0057] Repeat the above process until no unserved task node can be inserted into the first voyage. At this point, the first voyage is constructed, and its output is: The corresponding set of task nodes is: In the formula, It is also the first mission node visited in the first voyage. This is the second mission node visited during the first voyage. For the first voyage One accessed task node; Therefore, the task points in the first voyage are not pre-specified, but are gradually determined in a cyclical process of "candidate task point - insertion position - incremental cost - constraint verification"; the access order of the task points is not obtained by sorting them separately, but is determined synchronously by the optimal insertion position each time they are inserted.
[0058] Once the first voyage is constructed, if there are still unserved task nodes, the construction of the second voyage will begin. : And following the same method as the first voyage, select and insert task nodes from the set of unserved task nodes. For the first voyage... Each voyage, initialization: Never-served task node set The process iterates through candidate task nodes, inserting them into the current path at the position with the minimum incremental cost. If no feasible task node can be inserted in the current voyage, the voyage ends, and the process continues to construct the next voyage. One voyage.
[0059] The algorithm terminates when any of the following conditions are met: Or the maximum number of flights has been reached. However, there are still unserved task nodes. If there are still unserved task nodes after reaching the maximum number of flights, output a planning infeasibility message and give the reason for the infeasibility.
[0060] In some embodiments, after the initial insertion path for a flight is completed, a local path reconstruction is performed on the flight to further reduce flight time and energy consumption. Local path reconstruction includes node swapping, node relocation, and directed edge replacement.
[0061] Specifically, let the current voyage path be: Node swapping refers to exchanging two task nodes. and The access location is used to obtain the new path. If the new path satisfies the constraints of geometric feasibility, load, energy, and return safety (feasibility verification), and the objective function value decreases, then the exchange is accepted.
[0062] Node relocation refers to relocating a specific task node. Remove from the current position and insert between another pair of adjacent nodes. If the relocation is feasible and the objective function value decreases, then accept the relocation.
[0063] Directed edge replacement refers to adjusting the adjacent connections in the current path. Since the three-dimensional directed energy consumption matrix is typically asymmetric, ordinary symmetric path optimization methods cannot be directly applied. In this invention, the flight time, flight energy consumption, and geometric feasibility of the directed edge are recalculated after each edge replacement, and replacement is only accepted when all constraints are satisfied and the objective function value decreases.
[0064] The acceptance criteria for local path reconstruction are: ,and ; For the first The objective function value or comprehensive cost value corresponding to the new path after each voyage reconstruction. Indicates the first The objective function value or comprehensive cost value corresponding to the original path of each voyage.
[0065] In some embodiments, to avoid suboptimal overall solutions due to partial insertion of a particular voyage, the present invention may also perform inter-voyage task adjustments after the initial construction of all voyages is completed. Inter-voyage task adjustments include cross-voyage node transfers and cross-voyage node exchanges.
[0066] Cross-voyage node transfer refers to transferring a mission node within a voyage. Remove the voyage and attempt to insert it into a feasible position in another voyage. If both voyages after the transfer satisfy the constraints of geometric feasibility, payload feasibility, energy capacity feasibility, and return safety margin feasibility, and the global objective function is reduced, then accept the transfer.
[0067] Cross-voyage node swapping refers to selecting mission nodes from two different voyages. and They swap their respective cruise numbers and visited positions. If the overall path is feasible and the global objective function is reduced after the swap, then the swap is accepted.
[0068] The global acceptance criteria for inter-flight adjustments are as follows: And all voyage routes meet the constraints; To determine the objective function value or comprehensive cost value corresponding to the newly generated multi-ferry overall planning scheme after performing cross-ferry node transfers or cross-ferry node exchanges. Before adjusting the mission between voyages, the objective function value or comprehensive cost value corresponding to the current overall multi-voyage planning scheme.
[0069] Although specific embodiments of the invention have been described in detail with reference to the accompanying drawings, this should not be construed as limiting the scope of protection of this patent. Various modifications and variations that can be made by a person skilled in the art without inventive effort within the scope described in the claims still fall within the scope of protection of this patent.
Claims
1. A multi-flight mission planning method for unstructured fixed-wing UAVs in farmland based on a three-dimensional directed cost matrix, characterized in that, Includes the following steps: S1. Read 3D terrain data, mission node data, base location and wind field data, and initialize fixed-wing UAV parameters; S2. Discretize the three-dimensional farmland operation area into multiple task nodes, and construct a task vector for each task node; S3. Based on the three-dimensional flight distance, geometric feasibility, three-dimensional asymmetric energy consumption, and flight time between task nodes, construct a three-dimensional directed cost matrix; S4. Based on the three-dimensional directed cost matrix, construct a multi-flight mission planning model, set the objective function of minimizing the comprehensive cost, and configure constraints such as mission coverage, flow conservation, base origin and destination, geometric feasibility, load, energy, return safety margin, time continuity, multi-flight connection, and sub-loop elimination. S5. The multi-ferry mission planning model is solved by using the multi-ferry mission point insertion-path reconstruction algorithm, and local path reconstruction is performed for each voyage to generate and output the multi-ferry operation path.
2. The method for multi-flight mission planning of unstructured farmland fixed-wing UAVs based on a three-dimensional directed cost matrix according to claim 1, characterized in that, In step S2, a task vector is constructed for each task node. The task vector includes the three-dimensional spatial location of the task node, the workload consumption, the service time, and the task priority weight.
3. The method for multi-flight mission planning of unstructured farmland fixed-wing UAVs based on a three-dimensional directed cost matrix according to claim 1, characterized in that, In S3, the calculation of the three-dimensional flight distance between task nodes includes: Calculate the horizontal flight distance and elevation difference between any two mission nodes; A horizontal maneuvering correction factor is introduced to correct the horizontal flight distance, resulting in the corrected horizontal flight distance. When the horizontal maneuvering correction factor is greater than or equal to 1, the horizontal maneuvering correction factor is calculated based on the minimum horizontal turning radius of the fixed-wing UAV, the horizontal flight distance at the mission node, and the correction factor. Based on the corrected horizontal flight distance and elevation difference, the three-dimensional flight distance between mission nodes is calculated; and a distance matrix is formed based on the three-dimensional flight distance between mission nodes.
4. The method for multi-flight mission planning of unstructured farmland fixed-wing UAVs based on a three-dimensional directed cost matrix according to claim 1, characterized in that, In S3, the calculation of geometric feasibility between task nodes includes: Based on the corrected horizontal flight distance and elevation difference, the equivalent slope angle between mission nodes is calculated; according to the maximum climb angle and maximum descent angle of the fixed-wing UAV, the geometric feasibility of the directed flight path between mission nodes is determined. When the equivalent slope angle is within the preset flyable angle range, the flight path is marked as a feasible directed flight path, otherwise it is marked as an infeasible directed flight path, and thus a geometric feasibility matrix is constructed.
5. The method for multi-flight mission planning of unstructured farmland fixed-wing UAVs based on a three-dimensional directed cost matrix according to claim 1, characterized in that, In step S3, based on the three-dimensional flight distance, elevation difference, and UAV energy consumption parameters between task nodes, the three-dimensional asymmetric energy consumption and flight time are calculated, including: Based on the sign of the elevation difference between mission nodes, climb or level flight segments and descent segments are distinguished, and the basic energy consumption of the corresponding segments is calculated separately. The basic energy consumption of climb or level flight segments is calculated based on the basic energy consumption coefficient per unit distance in level flight, the three-dimensional flight distance between mission nodes, the energy consumption coefficient at climb altitude, and the elevation difference. The basic energy consumption of descent segments is the larger of the following two values: "the energy consumption value corresponding to the minimum maintenance energy consumption per unit distance in descent" and "the energy consumption value after deducting the energy consumption for descent potential energy from the basic energy consumption in level flight". The total energy consumption of the directed flight path between task nodes is obtained by superimposing the task service energy consumption of the corresponding flight segment, and an asymmetric energy consumption matrix is formed based on the opposite signs of the bidirectional elevation differences between task nodes. Based on the three-dimensional flight distance between mission nodes and the reference cruise speed of the fixed-wing UAV, the flight time of the directed flight path between nodes is calculated, and a flight time matrix is formed.
6. The multi-flight mission planning method for unstructured farmland fixed-wing UAVs based on a three-dimensional directed cost matrix according to claim 1, characterized in that, In step S4, a multi-flight mission planning model is constructed based on the three-dimensional directed cost matrix, including: Define the voyage, decision variables, and continuous variables: A voyage is defined as a closed-loop process that starts from the base node, visits several task nodes, and returns to the base node each time. Set three types of decision variables: voyage activation, node access path, and task allocation; And set four types of continuous variables: remaining energy, remaining payload, arrival time, and mission completion time when the voyage reaches the mission milestone; The objective function is set as follows: the optimization objective is to minimize the weighted sum of flight activation cost, total flight time cost, total flight energy consumption cost and mission priority delay cost.
7. The method for multi-flight mission planning of unstructured farmland fixed-wing UAVs based on a three-dimensional directed cost matrix according to claim 1, characterized in that, In S4, the task coverage constraint is: each task node is served only once per voyage; The flow conservation constraint is: for any task node, the number of times it enters in the same voyage is equal to the number of times it leaves; The base start and end constraints are: each activated flight departs from and returns to the base node; The geometric feasibility constraint is: only directed routes marked as feasible are allowed to be selected, and infeasible directed edges cannot be selected; The load constraints are: the remaining load of the fixed-wing UAV during the flight is not less than 0 and does not exceed the maximum effective load; when the fixed-wing UAV departs from the mission node... i fly to the mission node j When the task node is reached. j The remaining load is no greater than the load at the time of the mission node. i The remaining load minus the task node j The load consumption, and the service task nodes j The remaining load before the task node must meet the requirements. j The load requirements; The energy constraints are: the remaining energy of the fixed-wing UAV during the flight is not less than 0 and does not exceed the maximum energy reserve; when the fixed-wing UAV leaves the mission node... i fly to the mission node j When the task node is reached. j The remaining energy is no greater than that of the task node. i The remaining energy minus the energy consumed during this leg of the journey; The return safety margin constraint is: when a mission node is served by a certain flight, the remaining energy of the fixed-wing UAV to reach the mission node shall not be less than the sum of the worst-case return energy consumption from the mission node to the base and the preset fixed safety margin; The time continuity constraint is: when the fixed-wing UAV leaves the mission node i fly to the mission node j When the task node is reached. j The time is no earlier than the time of the task node. i Time, task nodes i Service time and task nodes i To the task node j The sum of the flight time, the flight time, and the other two. The constraint for connecting multiple flights is that the departure time of the subsequent flight shall not be earlier than the sum of the return time and the base resupply preparation time of the preceding flight; The sub-loop elimination constraint is achieved by introducing auxiliary variables to constrain the access order of task nodes during the voyage.
8. The method for multi-flight mission planning of unstructured farmland fixed-wing UAVs based on a three-dimensional directed cost matrix according to claim 1, characterized in that, In step S5, the multi-flight mission point insertion-path reconstruction algorithm is used to solve the multi-flight mission planning model, including: Initialize each voyage path as an empty path. An empty path means starting from the base node and returning directly to the base node. Select candidate task nodes from the set of unserved task nodes and insert the candidate task nodes between any two adjacent nodes in the current voyage path; The incremental costs of insertion are calculated based on the flight time, flight energy consumption, and mission priority completion time after the insertion of the mission node. For flights that have not yet been activated, the activation cost of the flight is added when the mission node is inserted for the first time to form the incremental costs of insertion. For each insertion location, a feasibility check is performed. The feasibility check must simultaneously meet the conditions of geometric feasibility, load feasibility, energy capacity feasibility, and return safety margin feasibility, and retain feasible insertion schemes that meet the feasibility check. Select the feasible insertion scheme with the lowest overall insertion incremental cost, insert the corresponding task node into the path, and remove the task node from the set of unserved task nodes. Repeat the process of inserting candidate task nodes and verifying their feasibility until no new task nodes can be inserted in the current voyage, thus completing the construction of the voyage path; if there are still unserved task nodes, construct the path for the next voyage in the same way. When all task nodes have been served, or the preset maximum number of voyages has been reached but there are still unserved task nodes; if the plan is terminated due to reaching the maximum number of voyages, an infeasibility message and the reason will be output.
9. The method for multi-flight mission planning of unstructured farmland fixed-wing UAVs based on a three-dimensional directed cost matrix according to claim 8, characterized in that, In S5, local path reconstruction is performed for each voyage, including: Node swap: Swap the access positions of two task nodes. If the new path satisfies the feasibility check and the objective function value decreases, then the node swap is accepted. Node relocation: Remove a task node from its current position and insert it between another pair of adjacent task nodes. If the relocation path is feasible and the objective function value is reduced, then the node relocation is accepted. Directed edge replacement: Adjust the adjacent connections in the current path. After each edge replacement, recalculate the flight time, flight energy consumption, and geometric feasibility of the directed edge. If the flight time, flight energy consumption, and geometric feasibility all meet the constraints and the objective function value decreases, then the directed edge replacement is accepted.
10. The method for multi-flight mission planning of unstructured farmland fixed-wing UAVs based on a three-dimensional directed cost matrix according to claim 9, characterized in that, S5 also includes performing inter-voyage mission adjustments after completing the initial construction of all voyages. The inter-voyage mission adjustments include: Cross-voyage node transfer: Remove a task node from one voyage and insert it into a feasible position in another voyage. If both voyages satisfy the constraints of geometric feasibility, load feasibility, energy capacity feasibility, and return safety margin feasibility after the transfer, and the objective function value decreases, then the cross-voyage node transfer is accepted. Cross-voyage node swap: Select two mission nodes from different voyages and swap their voyages and access locations. If the overall path is feasible and the objective function value is reduced after the swap, then the cross-voyage node swap is accepted.
