Static task allocation method for cooperative operation of plant protection unmanned aerial vehicles

By constructing a cooperative cost function and a feature screening mechanism for plant protection UAVs, the problems of high computing resource usage and insufficient global guidance in the existing technology are solved, an efficient and stable task allocation method is achieved, and the consistency of multiple running results is ensured.

CN118778694APending Publication Date: 2024-10-15SOUTH CHINA UNIV OF TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410333993.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-22
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

The existing technology consumes a lot of computer resources in the static task allocation of cooperative operations of plant protection drones, has low computing efficiency, and lacks a global guidance mechanism, resulting in unreproducible results and unstable convergence.

Method used

By constructing a collaborative cost function for multiple plant protection UAVs, combining the distance matrix and feature screening mechanism, iterative solution space division and penalty terms are used to guide the search, and task allocation is optimized to improve efficiency and stability.

Benefits of technology

It realizes the function of consuming less computer resources, guiding global search, and stably generating the same solution through multiple runs, which improves the efficiency and accuracy of task allocation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118778694A_ABST
    Figure CN118778694A_ABST
Patent Text Reader

Abstract

The invention discloses a static task allocation method for cooperative operation of co-plant protection unmanned aerial vehicles. The method comprises the following steps: determining operation parameters related to a plant protection unmanned aerial vehicle collaborative operation scene; according to the maximum flight distance, the sum of power consumption and the sum of turning times of the plant protection unmanned aerial vehicles, a cooperative cost function of the multiple plant protection unmanned aerial vehicles is constructed, and the minimum value of the cooperative cost function is set to serve as the optimal solution of static task allocation of the plant protection unmanned aerial vehicles; constructing a distance matrix according to the take-off point and the distribution condition of each field; and constructing an iterative solution of the collaborative cost function, then carrying out iteration, and solving a minimum value of the collaborative cost function to obtain an optimal solution of static task allocation of the plant protection unmanned aerial vehicle. According to the method, few computer resources are occupied, the search process can be globally guided in the iteration process, and the same solution can be stably generated through multiple times of operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of agricultural unmanned aerial vehicles, and in particular relates to a method for allocating static tasks for cooperative operations of the same crop protection unmanned aerial vehicles. Background Art

[0002] With the advancement of my country's intelligent agricultural transformation, the intelligence of agricultural operations has gradually improved. During the busy farming season, the operation mode of a single plant protection drone cannot meet the needs of efficient operations. A method is needed to simultaneously meet the collaborative operations of multiple plant protection drones, especially to reasonably allocate multiple tasks to different drones before the operation, which can improve the efficiency of agricultural operations and the utilization rate of each plant protection drone.

[0003] The static task allocation problem of collaborative plant protection UAVs essentially belongs to the research field of combinatorial optimization. The most basic research problem in this field is the traveling salesman problem. The static task allocation problem of multiple plant protection UAVs can be modeled as a multiple traveling salesman problem. The solution methods include: precise calculation methods, genetic algorithms, heuristic algorithms, and more intelligent methods such as neural networks.

[0004] The steps of the multi-machine collaborative static task allocation method based on swarm intelligence genetic algorithm are as follows:

[0005] (1) Construct a mathematical model for the plant protection UAV and the tasks to be assigned;

[0006] (2) Construct a multi-objective cost function for plant protection UAVs;

[0007] (3) Encoding the tasks to be assigned and the multiple drones receiving the tasks into a two-segment chromosome;

[0008] (4) constructing a fitness function for evaluating each chromosome;

[0009] (5) Use the roulette wheel method to select two parents and use the group crossover operator to select offspring based on the probability of random numbers;

[0010] (6) Use the group mutation operator to perform mutation operations on the selected chromosomes according to the probability of random numbers;

[0011] (7) Based on the current population, calculate the fitness of each individual and select a new population; repeat the entire process until the specified indicator constraints are met.

[0012] However, the above-mentioned prior art has the following disadvantages:

[0013] (1) It takes up a lot of computer resources. The swarm intelligence-based method will create a population during the iterative solution process. Each individual in the population needs to occupy computer memory. When the population is large, it takes up a lot of memory, resulting in low computing efficiency.

[0014] (2) Insufficient global guidance. The method based on swarm intelligence uses the solution space of the neighborhood where the individuals with high fitness in the population are located as the direction to guide the movement of the iterative search target during the iteration process. When the vast majority of individuals in the population fall into the local optimal solution, it is difficult to jump out of the local solution, and there is a lack of global guidance mechanism.

[0015] (3) The convergence effect is unstable. Because of the random numbers, different results may be produced when the algorithm is called multiple times, resulting in irreproducibility of the results, which is difficult to analyze and evaluate multiple times. Summary of the invention

[0016] In order to overcome one or more defects and shortcomings of the prior art, the purpose of the present invention is to provide a static task allocation method for collaborative operations of the same crop protection UAVs, which is used to achieve a process that occupies less computer resources, can globally guide the search process during the iteration process, and can stably produce the same solution for multiple runs.

[0017] In order to achieve the above object, the present invention adopts the following technical solutions.

[0018] A method for allocating static tasks for cooperative operations of the same crop protection UAVs comprises the following steps:

[0019] Determine the operating parameters involved in the collaborative operation scenario of plant protection drones;

[0020] According to the maximum flight distance, total power consumption, and total number of turns of the plant protection UAV, a collaborative cost function of multiple plant protection UAVs is constructed, and the minimum value of the collaborative cost function is set as the optimal solution for the static task allocation of the plant protection UAV;

[0021] Construct a distance matrix based on the take-off points and the distribution of each field;

[0022] The iterative solution of the collaborative cost function is constructed and then iterated to solve the minimum value of the collaborative cost function to obtain the optimal solution for the static task allocation of the plant protection UAV.

[0023] Preferably, the operation parameters involved in the cooperative operation scenario of the plant protection UAV include:

[0024] It is a collection of multiple agricultural drones. is the total number of multiple plant protection drones, For each plant protection drone, the task to be assigned is: is the total number of task plots;

[0025] Medicine box capacity Spray width d usp , spraying speed Average power consumption in non-spraying state Average power consumption in spraying state Average speed of operation process Average speed of non-operating process Average turning time t t ;

[0026] Location coordinates is the number of task field coordinate points, Centroid coordinates Operating area Operation heading angle θ, operation route set lines i ={lines i,1 , lines i,2 , ..., lines i,z}, z is the corresponding task field Total number of routes and length of operation paths

[0027] Furthermore, the minimum value of the collaborative cost function is as follows:

[0028]

[0029] in, is the cooperative cost function of plant protection UAV, and the optimization goal is to make To reach the minimum, are the maximum flight distance, total power consumption, and total number of turns of the plant protection UAV, respectively; α is a weight vector. In this embodiment, α is preferably set to a unit vector such as [1,0,0] or [0,1,0] according to actual needs; l i The flight distance of each agricultural drone. The value of all l i The maximum value in ec i The power consumption of each agricultural drone. The value is the ec of all plant protection drones i The sum of cnt i is the number of turns of each agricultural drone. The value is the cnt of all plant protection drones i The sum of

[0030] Each Flight distance i Includes: From the take-off point to the first mission field The distance to the entry point Mission Plots Flight distance within Mission Plots To the mission field The journey The flight distance from the last mission block back to the take-off point in, It is the sum of the total length of the routes within the field and the transfer paths between routes. p0 represents the coordinates of position 0, which is the starting point. Indicates that the entry point number of the first task is s i is the task sequence assigned to the corresponding plant protection UAV, len(s i ) represents the length of the task sequence assigned to the corresponding plant protection UAV, where

[0031] Each Flight distance i As shown below:

[0032]

[0033] Among them, the indicator function

[0034] Indicator function

[0035] Indicator function

[0036]

[0037] Each Power consumption ec i It includes: power consumption of transfer between task plots, power consumption of operation routes within task plots, and power consumption of turning and U-turning, as shown in the following formula:

[0038]

[0039] Each The number of turns cnt i Including: turns between fields and turns within task fields, as shown in the following formula:

[0040]

[0041] in, It means calculating the number of turns on the transfer path between two fields.

[0042] Furthermore, the distance matrix The number of rows and columns is the sum of the number of entry and exit points of all task plots. Indicates the distance from endpoint i to endpoint j. Set Distance Matrix The expansion is as shown in the following formula:

[0043]

[0044] Distance matrix has 4(m + n) rows and columns. Fill the data of each task plot into Set the remaining positions to infinity. Represent the inter-block distances between the entry and exit point numbers of each task plot and the intra-block distances of each task plot in this distance matrix to obtain:

[0045]

[0046]

[0047] Furthermore, construct the solution of the collaborative cost function iteration and then perform iteration to solve the minimum value of the collaborative cost function to obtain the optimal solution for the static task allocation of the plant protection UAV. The process includes:

[0048] Encode the entry and exit point positions of the plant protection UAV according to the traversal order of the task plots;

[0049] Divide the entire solution space into sub-domains corresponding to the number of task plots. Rapidly search the local space according to the sub-neighborhood status bits. When the sign of the improvement in the current solution is that the cost at the plot feature layer does not increase and the cost at the connection line feature layer decreases, dynamically guide the search process to move towards the neighborhood of a better solution by applying a penalty term to the current optimal solution within the global scope, and finally obtain the optimal solution for the static task allocation.

[0050] Furthermore, encode the entry and exit point positions of the plant protection UAV according to the traversal order of the task plots. The specific process includes:

[0051] Decompose each task plot, generate a full-coverage operation route according to the optimal heading of each plot, complete the full-coverage route planning in a "ji" shape, determine four entry and exit point positions in each task plot and make marks. In tabular form, the first row represents the serial number sequence of the task plots, the second row represents the selected entry point positions of the corresponding task plots, and the third row represents the selected exit point positions of the corresponding task plots;

[0052] Add virtual task plots; use the virtual city method to construct corresponding virtual task plots for multiple plant protection UAVs to be allocated and encode them in sequence.

[0053] Furthermore, the entire solution space is divided into sub-domains corresponding to the number of task plots. The local space is searched quickly according to the sub-neighborhood status bit cycle. When the current solution is improved, the cost of the plot feature layer has not increased and the cost of the connecting line feature layer has decreased, the current optimal solution is globally imposed with a penalty term to dynamically guide the search process to move toward the neighborhood of a better solution, and finally the optimal solution for static task allocation is obtained. The process includes:

[0054] Enhance the performance of the collaborative cost function;

[0055] Perform dynamic feature cost enhancement;

[0056] Conduct a local search;

[0057] Perform multi-layer feature set screening and enhancement;

[0058] Perform multi-layer feature penalties.

[0059] Furthermore, the performance of the collaborative cost function is enhanced, and the specific process includes:

[0060] Set a suitable weight vector α, determine the specific expression of the minimum value of the collaborative cost function to obtain the first enhanced cost function, and impose a penalty term on the most efficient one in the collaborative cost function to guide the search process to move towards the neighborhood of a better solution in the global direction; the first enhanced cost function As shown below:

[0061]

[0062] in, is the new solution generated by a certain iteration, is the minimum value of the collaborative cost function before the i-th plant protection UAV is enhanced. The task sequence assigned to the i-th plant protection UAV is from the time when the plant protection UAV is numbered to the time when the next plant protection UAV is numbered. λ is the penalty coefficient. M represents the number of features appearing in the solution. p j Indicates the number of times the feature is penalized. is an indicator function. When a feature appears in the current solution, the indicator function value is 1, otherwise it is 0;

[0063] Perform dynamic feature cost enhancement. The specific process includes:

[0064] Set power consumption sequence ec list ={k1, k2, ..., k n}, n is the length of the sequence, k i is the parameter value set, the overall trend of power consumption is a discrete decreasing function, and the dynamic enhancement collaborative cost function is adopted to make each feature cost change dynamically to form a second enhanced cost function, and the second enhanced cost function after the dynamic change of feature cost is added As shown below:

[0065]

[0066] Perform local search. The specific process includes:

[0067] The neighborhood is defined and sub-neighborhoods are divided for iterative solutions. The sub-neighborhood division method is as follows: a sub-neighborhood with the same rule is bound to each task field in the iterative solution, and the neighborhood solution space is quickly searched according to the status bit of each sub-neighborhood. The sub-neighborhood traversal uses the 2-opt algorithm to generate new candidate solutions in turn, and the second enhanced cost function is used. Calculate the cost of the candidate solution. If the target cost decreases, update the optimal candidate solution. Otherwise, continue searching in the sub-neighborhood.

[0068] After traversing the sub-neighborhood, if the objective function still does not decrease, the status bit of the sub-neighborhood is set to 0, indicating that the sub-neighborhood has been searched, and the search is moved to the next sub-neighborhood, and the cycle is repeated until all sub-neighborhoods have been searched.

[0069] Furthermore, multi-layer feature set screening and enhancement are performed. The specific process includes:

[0070] After a new candidate solution is found locally, the cost of calculating the task field layer features is checked to see if it has increased. If the cost has not increased, the cost of calculating the connection line layer features is performed. If the cost has increased, it is updated and saved as the optimal candidate solution.

[0071] Multi-layer feature set screening is as follows: based on the connection line layer feature set screening, the task field layer feature set screening mechanism is added, and the task field layer distance matrix is ​​constructed using the task field centroid coordinates. Distance Matrix Construction and distance matrix Similarly, the feature values ​​in the target of multi-layer feature set screening are The third enhancement cost function representing the two-layer feature set screening structure is obtained from The two-layer feature set screening introduces the priority flag between feature sets, setting the priority of task field-level features higher than that of connection line-level features. The third enhancement cost function is shown as follows:

[0072]

[0073] Among them, k represents the number of feature layers, represents the original cost function of the k-th layer feature, λ k represents the penalty coefficient of the k-th layer feature, p j,k Represents the penalty count value of a feature in the kth layer.

[0074] Furthermore, multi-layer feature penalties are performed, and the specific process includes:

[0075] On the basis of the penalty method of the connection line feature layer, a feature penalty mechanism of the task field layer is added to guide the search direction at the task field layer. The efficiency function of each layer feature As shown below:

[0076]

[0077] Among them, the efficiency function of each feature appearing in the solution is calculated for the two layers of features, and the one with the highest efficiency is punished. At the same time, the sub-neighborhood state corresponding to the feature is activated to make the next local search effective, that is, the sub-neighborhood state is set to 1; Indicates Tier Features, Indicates Tier The original cost of the features, whose values ​​are respectively from the distance matrix and Get Indicates Tier The number of penalties for a feature.

[0078] Compared with the prior art, the technical solution of the present invention has the following beneficial effects:

[0079] By modeling various important parameters of plant protection UAVs, describing the relevant parameters of the task, and establishing the collaborative operation cost function of multiple plant protection UAVs; by extracting the connection line layer and the field layer from the multi-layer feature information of the task, a two-layer feature screening mechanism is used to quickly filter out those sub-neighborhoods that are unlikely to become a better solution, thereby improving the search efficiency of the solution space; by constructing the penalty function of each layer of feature sets, it is possible to penalize the features of each layer of feature sets in the current solution, thereby guiding the algorithm iteration process in a global direction; it takes up less computer resources, can guide the search globally during the iteration process, and can stably produce the same solution after multiple runs. BRIEF DESCRIPTION OF THE DRAWINGS

[0080] Figure 1 A schematic diagram of a general flow chart of a method for allocating static tasks for cooperative operations of the same crop protection UAVs according to the present invention;

[0081] Figure 2 It is a flowchart of the local search process;

[0082] Figure 3 Schematic diagram of the process of two-layer feature screening. DETAILED DESCRIPTION

[0083] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments thereof. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0084] Example

[0085] A static task allocation method for collaborative operation of the same plant protection UAV in this embodiment is used in agricultural plant protection operation scenarios. Before executing the task, a transport vehicle is used to transport the plant protection UAV and various consumables to a designated location at the edge of the field, and the medicines to be sprayed are loaded. All plant protection UAVs take off from the designated location at the edge of the field to operate, and return here when supplies or electricity are needed; it is mainly used in large-area operation scenarios, and the number of task plots should be greater than the total number of plant protection UAVs; all operation plots have been divided after task allocation, ensuring that full coverage route operations can be completed in each sub-plot in an "J"-shaped operation shape; a task plot needs to be completed independently by a single plant protection UAV, and a single plant protection UAV can correspond to executing multiple task plots; all plant protection UAVs take off from a designated location at the edge of the field to operate, and return to this location when supplies or electricity are needed.

[0086] Combination Figure 1 , Figure 2 , Figure 3 As shown, a static task allocation method for cooperative operation of the same crop protection UAV in this embodiment specifically includes the following steps:

[0087] S1. Determine the operating parameters involved in the cooperative operation scenario of plant protection UAVs by measuring and / or testing and / or consulting technical manuals;

[0088] The job parameters include:

[0089] It is a collection of multiple agricultural drones. is the total number of multiple plant protection drones, For each plant protection drone, the task to be assigned is: is the total number of task plots;

[0090] The following are related to plant protection drones: medicine box capacity Spray width d usp , spraying speed Average power consumption in non-spraying state Average power consumption in spraying state Average speed of operation process Average speed of non-operating process Average turning time t t ;

[0091] The task fields involved are: location coordinates is the number of task field coordinate points, Centroid coordinates Operating area Operation heading angle θ, operation route set lines i ={lines i,1 , lines i,2 ,...,lines i,z}, z is the corresponding task field Total number of routes and length of operation paths

[0092] S2. Construct a collaborative cost function for multiple plant protection UAVs based on the maximum flight distance, total power consumption, and total number of turns of the plant protection UAVs, and set the minimum value of the collaborative cost function as the optimal solution for static task allocation of the plant protection UAVs;

[0093] The minimum value of the collaborative cost function is as follows:

[0094]

[0095] in, is the cooperative cost function of plant protection UAV, and the optimization goal is to make To reach the minimum, are the maximum flight distance, total power consumption, and total number of turns of the plant protection UAV, respectively; α is a weight vector. In this embodiment, α is preferably set to a unit vector such as [1,0,0] or [0,1,0] according to actual needs; l i The flight distance of each agricultural drone. The value of all l i The maximum value in ec i The power consumption of each agricultural drone. The value is the ec of all plant protection drones i The sum of cnt i is the number of turns of each agricultural drone. The value is the cnt of all plant protection drones i The sum of

[0096] for Each Flight distance i Includes: From the take-off point to the first mission field The distance to the entry point Mission Plots Flight distance within Mission Plots To the mission field The journey The flight distance from the last mission block back to the take-off point in, It is the sum of the total length of the routes within the field and the transfer paths between routes. p0 represents the coordinates of position 0, which is the starting point. Indicates that the entry point number of the first task is s i is the task sequence assigned to the corresponding plant protection UAV, len(s i ) represents the length of the task sequence assigned to the corresponding plant protection UAV, where Therefore, each Flight distance i As shown below:

[0097]

[0098] Among them, the indicator function

[0099] Indicator function

[0100] Indicator function

[0101]

[0102] for Each Power consumption ec i It includes: power consumption of transfer between task plots, power consumption of operation routes within task plots, and power consumption of turning and U-turning, as shown in the following formula:

[0103]

[0104] for Each The number of turns cnt i Including: turns between fields and turns within task fields, as shown in the following formula:

[0105]

[0106] in, It means calculating the number of turns on the transfer path between two fields;

[0107] S3. A distance matrix can be constructed based on the take-off points and the distribution of each field.

[0108] Distance Matrix The number of rows and columns is the sum of the number of entry and exit points of all task plots. It represents the distance value from endpoint i to endpoint j. In this embodiment, it is preferably obtained by the geometric path planning method to obtain the shortest path and length between the two endpoints in the presence of obstacles, and set It represents that this matrix is a symmetric matrix, the distance matrix Expand as shown in the following formula:

[0109]

[0110] Distance matrix The number of rows and columns is 4(m + n). Fill the data of each task plot into There are four combinations of entry and exit points for each task plot, corresponding to the full-coverage path distance within the plot. The remaining positions in this square matrix are set to infinity. The inter-plot distances between the entry and exit point numbers of each task plot and the intra-plot distances of each task plot are uniformly represented in this distance matrix and we can get:

[0111]

[0112] S4. Construct the solution of the collaborative cost function iteration and then perform iteration to solve the minimum value of the collaborative cost function to obtain the optimal solution for the static task allocation of the plant protection UAV; the specific process includes:

[0113] S41. Encode the entry and exit point positions of the plant protection UAV according to the traversal order of the task plots; specifically include:

[0114] S411. Decompose each task plot, generate a full-coverage operation route according to the optimal heading of each plot, complete the full-coverage route planning in a "self" shape, determine four entry and exit point positions in each task plot and make marks. The encoding form is shown in Table 1. The first row represents the serial number sequence of the task plots, the second row represents the selected entry point positions of the corresponding task plots, and the third row represents the selected exit point positions of the corresponding task plots. After obtaining the optimal solution through encoding, it can quickly correspond the allocated task plot sequence and the entry and exit point combinations of each task plot one by one, so as to clarify the specific entry and exit point positions when each plant protection UAV executes the allocated tasks;

[0115] Table 1 Schematic diagram of a coding structure

[0116]

[0117] S412. Add virtual task plots;

[0118] The virtual city method is used to construct corresponding virtual task plots for multiple plant protection drones to be assigned, and they are coded in sequence; the key information of the virtual plot is the constructed virtual plot number, and the specific entry and exit point number coding rules are the same as the real task plot entry and exit points, but have no actual meaning in order to maintain the uniformity of the coding format and the convenience of subsequent distance matrix design;

[0119] S42, dividing the entire solution space into sub-domains corresponding to the number of task plots, and cyclically searching the local space quickly according to the sub-neighborhood status bit. When the current solution is improved, the cost of the plot feature layer has not increased, and the cost of the connecting line feature layer has decreased, the current optimal solution is globally imposed with a penalty term to dynamically guide the search process to move toward the neighborhood of a better solution, and finally obtain the optimal solution for static task allocation;

[0120] The specific process includes:

[0121] S421, enhancing the performance of the collaborative cost function;

[0122] By setting a suitable weight vector α, determining the specific expression of the minimum value of the collaborative cost function, and obtaining the first enhanced cost function, a penalty term is imposed on the one with the greatest efficiency in the collaborative cost function, so as to guide the search process to move towards the neighborhood of a better solution in the global direction; in this embodiment, preferably, a more suitable weight vector α can be taken as [1,0,0], that is, the weight of the flight distance cost of the plant protection UAV is set to 1, and the weights of the fuel consumption and the number of turns are set to 0, that is, the flight distance of the plant protection UAV with the longest flight distance is taken as the first enhanced cost function of the entire fleet, so that the flight distance of the entire fleet is the shortest, the operation time of the fleet is minimized, and the start and end operation times of multiple plant protection UAVs are therefore closer, which can maximize the utilization rate of all plant protection UAVs; the first enhanced cost function As shown below:

[0123]

[0124] in, is the new solution generated by a certain iteration, is the minimum value of the collaborative cost function before the i-th plant protection UAV is enhanced. The task sequence assigned to the i-th plant protection UAV is from the time when the plant protection UAV is numbered to the time when the next plant protection UAV is numbered. λ is the penalty coefficient, which indicates the difficulty of escaping from the current solution domain. The larger the value, the easier it is to escape. The neighborhood search is relatively insufficient, but the search speed in the entire solution space is faster. M represents the number of features appearing in the solution. p j Indicates the number of times the feature is penalized. As the parameter is continuously accumulated, the enhancement cost corresponding to the feature continues to increase, and it is gradually replaced by other features with lower enhancement costs during the iterative search process. is an indicator function. When a feature appears in the current solution, the indicator function value is 1, otherwise it is 0. The enhancement cost value of the entire cluster is the maximum cost of the first enhancement cost function in the cluster, thus ensuring the minimum total cost of the entire cluster.

[0125] S422, performing dynamic change enhancement of feature cost;

[0126] The weight of the plant protection drone will decrease as the spraying operation proceeds, and the weight of the plant protection drone is a key factor affecting energy consumption. Therefore, in the process of task allocation, the plant protection drone should be allowed to enter the task field with the shortest flight distance from the starting point as much as possible to improve the energy utilization rate of the plant protection drone;

[0127] Set power consumption sequence ec list ={k1, k2, ..., k n}, n is the length of the sequence, k i The overall trend of power consumption is a discrete decreasing function. The dynamic enhancement of the collaborative cost function is used to make each feature cost change dynamically to form a second enhanced cost function, so that the minimum value of the collaborative cost function is the optimal solution close to the actual situation. The second enhanced cost function after the dynamic change of the feature cost is added As shown below:

[0128]

[0129] S423, performing a local search;

[0130] Combination Figure 2 As shown in the figure, the neighborhood is defined and sub-neighborhoods are divided for iterative solutions. The sub-neighborhood division method is as follows: a sub-neighborhood with the same rule is bound to each task field in the iterative solution, and the neighborhood solution space is quickly searched according to the status bit of each sub-neighborhood. The sub-neighborhood traversal uses the 2-opt algorithm to generate new candidate solutions in turn, and the second enhanced cost function is used. Calculate the cost of the candidate solution. If the target cost decreases, update the optimal candidate solution. Otherwise, continue searching in the sub-neighborhood.

[0131] After traversing the sub-neighborhood, if the objective function still does not decrease, the status bit of the sub-neighborhood is set to 0, indicating that the sub-neighborhood has been searched and no better solution can be generated. Move to the next sub-neighborhood for search, and cycle in sequence until all sub-neighborhoods have completed the search, ending the fast local search process.

[0132] S424, perform multi-layer feature set screening enhancement;

[0133] Combination Figure 3As shown in the figure, after a new candidate solution is locally searched, the cost of calculating the task field layer features is judged whether it has increased. If the cost has not increased, the cost of calculating the connection line layer features is performed. If the cost has increased, it is updated and saved as the optimal candidate solution.

[0134] Based on the feature set screening of the connection line layer, a feature set screening mechanism for the task field layer is added, and the distance matrix of the task field layer is constructed using the centroid coordinates of the task field layer. Distance Matrix Construction and distance matrix Similarly, the feature values ​​in the target of multi-layer feature set screening are The third enhancement cost function representing the two-layer feature set screening structure is obtained from

[0135] The two-layer feature set screening introduces the priority flag between feature sets, setting the priority of task field-level features higher than that of connection line-level features; the third enhancement cost function is shown as follows:

[0136]

[0137] Among them, k represents the number of feature layers, represents the original cost function of the k-th layer feature, λ k represents the penalty coefficient of the k-th layer feature, p j,k Represents the penalty count value of a feature in the kth layer;

[0138] S425, performing multi-layer feature penalty;

[0139] On the basis of the penalty method of the connection line feature layer, a feature penalty mechanism of the task field layer is added to guide the search direction at the task field layer. The efficiency function of each layer feature As shown below:

[0140]

[0141] Among them, the efficiency function of each feature appearing in the solution is calculated for the two layers of features, and the one with the highest efficiency is punished. At the same time, the sub-neighborhood state corresponding to the feature is activated to make the next local search effective, that is, the sub-neighborhood state is set to 1; Indicates Tier Features, Indicates Tier The original cost of the features, whose values ​​are respectively from the distance matrix and Get Indicates Tier The number of penalties for a feature.

[0142] In the steps of this embodiment, a two-layer feature set screening mechanism is established according to the information of the task field. The field feature set and the connecting line feature set will only be searched for the connecting line layer feature set when the cost of the field feature set has not deteriorated. By adopting a two-layer feature set screening mechanism, those solutions that are unlikely to become better solutions can be effectively filtered out, thereby improving the search speed of the algorithm; by adding a global penalty mechanism on the basis of local fast search to achieve guidance in the global direction, it can effectively avoid the iterative process from falling into a local solution and improve the iteration efficiency.

[0143] Compared with the prior art, the static task allocation method for cooperative operation of the same crop protection drones in this embodiment has the following beneficial effects:

[0144] This embodiment models various important parameters of the plant protection UAV, describes the relevant parameters of the task, and establishes a collaborative operation cost function for multiple plant protection UAVs; extracts the connection line layer and the field layer from the multi-layer feature information of the task, and uses a two-layer feature screening mechanism to quickly filter out those sub-neighborhoods that are unlikely to become a better solution, thereby improving the search efficiency of the solution space; constructs a penalty function for the feature set of each layer, thereby penalizing the features of the feature set of each layer in the current solution, thereby guiding the algorithm iteration process in a global direction; realizes the function of occupying less computer resources, being able to globally guide the search process during the iteration process, and being able to stably generate the same solution after multiple runs.

[0145] The above embodiments are preferred implementation modes of the present invention, but the implementation modes of the present invention are not limited to the above embodiments. Any other changes, modifications, substitutions, combinations, and simplifications that do not deviate from the spirit and principles of the present invention should be equivalent replacement methods and are included in the protection scope of the present invention.

Claims

1. A method for allocating static tasks for collaborative operations of the same crop protection UAVs, characterized in that: The steps are as follows: Determine the operation parameters involved in the cooperative operation scenario of the plant protection UAV; Construct a cooperative cost function for multiple plant protection UAVs based on the maximum flight distance, total power consumption, and total number of turns of the plant protection UAVs, and set the optimal solution of the static task allocation of the plant protection UAVs by obtaining the minimum value of the cooperative cost function; Construct a distance matrix according to the take-off point and the distribution of each field; Construct a solution for iterating the cooperative cost function and then perform iteration to solve the minimum value of the cooperative cost function to obtain the optimal solution of the static task allocation of the plant protection UAVs.

2. According to claim 1, the method for allocating static tasks for cooperative operation of the same crop protection UAV is characterized in that: The operation parameters involved in the cooperative operation scenario of the plant protection UAV include: It is a collection of multiple agricultural drones. is the total number of multiple plant protection drones, For each plant protection drone, the task to be assigned is: is the total number of task plots; Medicine box capacity Spray width Spraying speed Average power consumption in non-spraying state Average power consumption in spraying state Average speed of operation process Average speed of non-operating process Average turning time t t ; Location coordinates is the number of task field coordinate points, Centroid coordinates Operating area Operation heading angle λ, operation route set lines i ={lines i,1 , lines i,2 , ..., lines i,z }, z is the corresponding task field Total number of routes and length of operation paths 3. The method for static task allocation of cooperative operation of the same crop protection UAV according to claim 2 is characterized in that: The minimum value of the cooperative cost function is shown as follows: in, is the cooperative cost function of plant protection UAV, and the optimization goal is to make To reach the minimum, are the maximum flight distance, total power consumption, and total number of turns of the plant protection UAV, respectively; α is a weight vector. In this embodiment, α is preferably set to a unit vector such as [1,0,0] or [0,1,0] according to actual needs; l i The flight distance of each agricultural drone. The value of all l i The maximum value in ec i The power consumption of each agricultural drone. The value is the ec of all plant protection drones i The sum of cnt i is the number of turns of each agricultural drone. The value is the cnt of all plant protection drones i The sum of Each Flight distance i Includes: From the take-off point to the first mission field The distance to the entry point Mission Plots Flight distance within Mission Plots To the mission field The journey The flight distance from the last mission block back to the take-off point in, It is the sum of the total length of the routes within the field and the transfer paths between routes. p0 represents the coordinates of position 0, which is the starting point. Indicates that the entry point number of the first task is s i is the task sequence assigned to the corresponding plant protection UAV, len(s i ) represents the length of the task sequence assigned to the corresponding plant protection UAV, where Each Flight distance i As shown below: Among them, the indicator function Indicator function Indicator function Each Power consumption ec i It includes: power consumption of transfer between task plots, power consumption of operation routes within task plots, and power consumption of turning and U-turning, as shown in the following formula: Each The number of turns cnt i Including: turns between fields and turns within task fields, as shown in the following formula: in, It means calculating the number of turns on the transfer path between two fields.

4. The method for allocating static tasks for cooperative operation of the same crop protection UAV according to claim 3 is characterized in that: The distance matrix The number of rows and columns is the sum of the number of entry and exit points of all task plots. Indicates the distance from endpoint i to endpoint j. Set Distance Matrix The expansion is as follows: Distance Matrix The number of rows and columns is 4 (m+n), and the data of each task field is filled into The remaining positions are set to infinity, and the inter-block distances of the entry and exit point numbers of each task field and the intra-block distances of each task field are uniformly represented in this distance matrix. In this case, we can get:

5. The method for allocating static tasks for cooperative operation of the same crop protection UAV according to claim 4 is characterized in that: The process of constructing a solution for iterating the cooperative cost function and then performing iteration to solve the minimum value of the cooperative cost function to obtain the optimal solution of the static task allocation of the plant protection UAVs includes: Encode the in and out point positions of the plant protection UAVs according to the traversal order of the task fields; Divide the entire solution space into sub-domains corresponding to the number of task fields, quickly search the local space according to the sub-neighborhood status bits, and when the sign of the current solution improvement is that the cost at the field feature layer does not increase and the cost at the connection line feature layer decreases, dynamically guide the search process to move towards the neighborhood of a better solution by applying a penalty term to the current optimal solution within the global scope, and finally obtain the optimal solution of the static task allocation.

6. The method for allocating static tasks for cooperative operation of the same crop protection UAV according to claim 5 is characterized in that: The process of encoding the in and out point positions of the plant protection UAVs according to the traversal order of the task fields specifically includes: Decompose each task field, generate a full-coverage operation route according to the optimal heading of each field, complete the full-coverage route planning in a "Ji" shape, mark four in and out point positions in each task field, and in tabular form, the first row represents the serial number sequence of the task fields, the second row represents the selected in point positions of the corresponding task fields, and the third row represents the selected out point positions of the corresponding task fields; Add virtual task fields; use the virtual city method to construct corresponding virtual task fields for multiple plant protection UAVs to be allocated and encode them in sequence.

7. The method for allocating static tasks for cooperative operation of the same crop protection UAV according to claim 6 is characterized in that: The process of dividing the entire solution space into sub-domains corresponding to the number of task fields, quickly searching the local space according to the sub-neighborhood status bits, and when the sign of the current solution improvement is that the cost at the field feature layer does not increase and the cost at the connection line feature layer decreases, dynamically guide the search process to move towards the neighborhood of a better solution by applying a penalty term to the current optimal solution within the global scope, and finally obtain the optimal solution of the static task allocation includes: Enhance the efficiency of the cooperative cost function; Enhance the dynamic change of the feature cost; Perform local search; Enhance the screening of multi-layer feature sets; Perform multi-layer feature penalty.

8. The method for allocating static tasks for cooperative operation of the same crop protection UAV according to claim 7 is characterized in that: The specific process of enhancing the efficiency of the cooperative cost function includes: Set a suitable weight vector α, determine the specific expression of the minimum value of the collaborative cost function to obtain the first enhanced cost function, and impose a penalty term on the most efficient one in the collaborative cost function to guide the search process to move towards the neighborhood of a better solution in the global direction; the first enhanced cost function As shown below: in, is the new solution generated by a certain iteration, is the minimum value of the collaborative cost function before the i-th plant protection UAV is enhanced. The task sequence assigned to the i-th plant protection UAV is from the time when the plant protection UAV is numbered to the time when the next plant protection UAV is numbered. λ is the penalty coefficient. M represents the number of features appearing in the solution. p j Indicates the number of times the feature is penalized. is an indicator function. When a feature appears in the current solution, the indicator function value is 1, otherwise it is 0; The specific process of enhancing the dynamic change of the feature cost includes: Set power consumption sequence ec list ={k1, k2, ..., k n }, n is the length of the sequence, k i is the parameter value set, the overall trend of power consumption is a discrete decreasing function, and the dynamic enhancement collaborative cost function is adopted to make each feature cost change dynamically to form a second enhanced cost function, and the second enhanced cost function after the dynamic change of feature cost is added As shown below: The specific process of performing local search includes: The neighborhood is defined and sub-neighborhoods are divided for iterative solutions. The sub-neighborhood division method is as follows: a sub-neighborhood with the same rule is bound to each task field in the iterative solution, and the neighborhood solution space is quickly searched according to the status bit of each sub-neighborhood. The sub-neighborhood traversal uses the 2-opt algorithm to generate new candidate solutions in turn, and the second enhanced cost function is used. Calculate the cost of the candidate solution. If the target cost decreases, update the optimal candidate solution. Otherwise, continue searching in the sub-neighborhood. If the objective function still does not decrease after traversing this sub-neighborhood, set the status bit of this sub-neighborhood to 0, indicating that this sub-neighborhood has been searched, and move to the next sub-neighborhood for search, and loop in sequence until all sub-neighborhoods are searched.

9. The method for allocating static tasks for cooperative operation of the same crop protection UAV according to claim 8, characterized in that: The specific process of enhancing the screening of multi-layer feature sets includes After a new candidate solution is found locally, the cost of calculating the task field layer features is checked to see if it has increased. If the cost has not increased, the cost of calculating the connection line layer features is performed. If the cost has increased, it is updated and saved as the optimal candidate solution. The multi-layer feature set screening is as follows: on the basis of the connection line layer feature set screening, a task field layer feature set screening mechanism is added, and the task field layer distance matrix is ​​constructed using the task field centroid coordinates. Distance Matrix Construction and distance matrix Similarly, the feature values ​​in the target of multi-layer feature set screening are The third enhancement cost function representing the two-layer feature set screening structure is obtained from The two-layer feature set screening introduces the priority flag between feature sets, setting the priority of task field-level features higher than that of connection line-level features. The third enhancement cost function is shown as follows: Among them, k represents the number of feature layers, represents the original cost function of the k-th layer feature, λ k represents the penalty coefficient of the k-th layer feature, p j,k Represents the penalty count value of a feature in the kth layer.

10. The method for allocating static tasks for cooperative operation of the same crop protection UAVs according to claim 9, characterized in that: The multi-layer feature penalty is performed, and the specific process includes: On the basis of the penalty method of the connection line feature layer, a feature penalty mechanism of the task field layer is added to guide the search direction at the task field layer. The efficiency function of each layer feature As shown below: Among them, the efficiency function of each feature appearing in the solution is calculated for the two layers of features, and the one with the highest efficiency is punished. At the same time, the sub-neighborhood state corresponding to the feature is activated to make the next local search effective, that is, the sub-neighborhood state is set to 1; Indicates Tier Features, Indicates Tier The original cost of the features, whose values ​​are respectively from the distance matrix and Get Indicates Tier The number of penalties for a feature.

Citation Information

Cited By

  • A UAV dispatching control method for multi-machine collaborative operation

    CN119759090A