A method for allocating patrol tasks for surface unmanned boat swarms
By receiving the patrol task points, solving the center point and the connection angle, and using the improved genetic algorithm and voting competition mechanism to optimize the navigation path of the unmanned boat cluster, it solves the problem of difficulty in obtaining unmanned boats in a short time in the existing technology. The problem of optimal allocation of cluster patrol tasks achieves efficient task allocation and system robustness.
Patent Information
- Application Number
- CN202211125288.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-16
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-09-16
AI Technical Summary
It is difficult to obtain the optimal allocation plan for cluster patrol tasks of unmanned boats in a short time through precise calculation methods such as linear programming with existing technology. Especially under the NP-hard problem, it is difficult to obtain the optimal allocation plan of multiple unmanned boats in a short time. Excellent navigation route.
By receiving the patrol task points, the angle between the center point and the connection line is solved, and the groups are equally divided according to the angle. The improved genetic algorithm is used to iteratively solve the TSP, and the voting competition and task trading mechanisms are combined to optimize the navigation path and ensure that all unmanned boats are on track. Optimal solution patrol.
It realizes task allocation planning for more than a thousand patrol points of more than ten unmanned boats within seconds, maintains the real-time and robustness of the system, and is suitable for large-scale cluster patrol tasks.
Smart Images

Figure CN115421492B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of unmanned boat cluster task allocation, and in particular relates to a method for allocating surface unmanned boat cluster patrol tasks. Background Art
[0002] Unmanned surface vehicle (USV) is a surface mobile platform with certain autonomous capabilities, which can sail autonomously and complete operational tasks under unmanned conditions. It has the characteristics of low cost, concealed action, and flexible mobility. It can perform various tasks such as environmental investigation, anti-submarine detection, mine detection, search and rescue, and material transportation. It is widely used in marine survey and research. The coordinated operation of multiple USV clusters will have higher operating efficiency. Therefore, the optimization of the USV cluster task allocation method is of great significance.
[0003] When a swarm of unmanned boats performs patrol inspection or sampling tasks in the target waters, it usually encounters several unmanned boats traversing a set of task points, which involves optimization problems such as the shortest sailing distance. This problem is abstracted as a mathematical problem of VRP (vehicle path optimization problem), but because this problem is an extension of the TSP problem, it is an NP-hard problem. It is difficult to obtain the optimal solution to the problem in a short time through precise calculation methods such as linear programming. Therefore, most of the solutions obtained are feasible solutions that still have room for optimization. Summary of the invention
[0004] The present invention provides a method for allocating patrol tasks of a surface unmanned boat cluster, which is used to solve the problem that it is difficult to obtain an optimal method for task allocation through precise calculation methods such as linear programming in a short time.
[0005] The present invention is achieved through the following technical solutions:
[0006] A method for allocating patrol tasks of a surface unmanned boat swarm, the method specifically comprising the following steps:
[0007] Step 1: The USV cluster receives the patrol mission point;
[0008] Step 2: Solve the center point of all target points based on the task points received in step 1;
[0009] Step 3: Based on the center point of step 2, find the starting point T0 and all patrol points T i The angle θ between the lines i ;
[0010] Step 4: Based on the line angle obtained in step 3, the target points are evenly divided and grouped according to the number of USVs according to the angle equalization rule;
[0011] Step 5: Based on the grouping in step 4, an improved genetic algorithm is used to solve the TSP and an iterative solution is performed;
[0012] Step 6: Obtain the solution for each USV to solve the n groups of mission objectives, and select the best solution through voting competition as the initial patrol plan of the cluster;
[0013] Step 7: During the cruise of each USV, the navigation cost of its next target point is calculated, and the navigation cost of the surrounding USVs is polled. If the navigation cost of the nearby USV is lower than its own cost, the task of the target point is traded to the party with lower cost, and the remaining task route is re-planned. That is, the secondary optimization of the navigation path is completed through the above method, and all USVs poll other boats in this way until all patrol tasks are completed.
[0014] A method for allocating patrol tasks of a surface unmanned vehicle cluster, wherein the step 2 solves the center point of all target points based on the received task points. Specifically, when the USV cluster receives a total of n patrol task point sets, it allocates patrol points T i (x i ,y i ), (i=1…n) to the initial starting point T0 (x0, y0) of the cluster. The initial starting point T0 of the cluster is the center point of all patrol points. The formula is as follows
[0015]
[0016] Where i is the number of patrol points and n is the number of patrol point sets.
[0017] A method for allocating patrol tasks of a surface unmanned boat cluster, wherein step 3 obtains the starting point T0 and all patrol points T based on the center point. i The angle θ between the lines i Specifically, the formula is as follows:
[0018]
[0019] A method for allocating patrol tasks of a surface unmanned boat cluster, wherein step 4 is based on the solved line angle, and according to the angle equalization rule, the target points are evenly divided and grouped according to the number of USVs. Specifically, the line angle θ is divided into i Sort by small to large, according to T i Angle θ with the line connecting T0 i The order of the standard is to obtain a set of patrol points with a new order [T'1 … T' i ];
[0020] Divide the new patrol point set into n groups. If there are four USVs, then n = 4:
[0021] [T′1 … T′ i / 4 ],[T′ i / 4+1 … T′i / 2 ,[T′ i / 2+1 … T′ 3i / 4 ,[T′ 3i / 4+1 … T′ i .
[0022] A method for allocating patrol tasks for a cluster of unmanned surface vehicles. The step 5 is to perform iterative solution by using an improved genetic algorithm to solve TSP based on grouping. Specifically, when [T′1 … T′ i / 4 , by setting the population size u and the number of point sets v, where calculate an upper triangular distance matrix of v*v as shown below:
[0023]
[0024] Generate u random permutations from 1 to v, and calculate the total path length L according to the order of the random permutations j , (j = 1…u), among the u total path lengths L j , according to the fitness judgment criterion of the minimum total path length, determine the minimum L among the u total path lengths min , and use it as the optimal individual in this generation of the population for breeding. The breeding process uses the selection, crossover, mutation, and inheritance processes of the genetic algorithm to obtain the optimization result of the TSP for this set of point sets;
[0025] The other three groups all complete the initial optimization task according to the above process.
[0026] A method for allocating patrol tasks for a cluster of unmanned surface vehicles. The step 6 is to obtain the solutions for each USV to solve n groups of task objectives, and select the optimal solution through a voting competition method as the cluster patrol plan. Specifically, each USV solves the solutions for the above 4 groups of task objectives, submits the sum of the feasible solutions for the 4 groups of tasks to the network composed of 4 USVs, and selects the minimum sum of the feasible solutions for the 4 groups of tasks, that is, the optimal feasible solution, as the initial patrol plan for the cluster;
[0027] The USV starts patrolling and periodically determines whether the next target patrol point is a tradable point. The concept of a tradable point is as follows: In a closed polygon graph G=(V, E) composed of points V and edges E, its envelope area is S. When any point V j is removed, the new closed polygon graph G j =(V', E') has an envelope area of S'. If S'<S, then the point V N is a tradable point, otherwise, it is a non-tradable point.
[0028] A method for allocating patrol tasks for a surface unmanned boat swarm. If the next target patrol point is a tradable point, the navigation cost C to that point is calculated. T , and poll the navigation costs of surrounding USVs If there is an approaching USV, the navigation cost If the target point is not reached, the task will be traded to the party with lower cost, and the remaining task routes will be replanned using step 3. The four USVs will poll other boats in this way until all patrol tasks are completed.
[0029] The beneficial effects of the present invention are:
[0030] The present invention can solve the task of task allocation planning of more than a thousand patrol points of more than ten USVs within seconds.
[0031] Since the task allocation process of the present invention is parallel, the increase in the number of USV nodes will not increase the complexity of the system, will not damage the real-time performance of the system, and will reduce the time required for task planning.
[0032] The present invention is distributed and runs, has good system robustness, strong resistance to faulty nodes, and task nodes can be added and removed at will, and is suitable for application in large-scale cluster patrol tasks. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 It is a flow chart of the method of the present invention.
[0034] Figure 2 1 is a diagram of the initial task allocation process of the present invention, wherein (a) is a schematic diagram of the original task points, (b) is a schematic diagram of the annotated data center points, (c) is a schematic diagram of the calculated slope, and (d) is a schematic diagram of the clustering results.
[0035] Figure 3 It is a graph showing the solution results of the genetic algorithm of the present invention for the assigned task point set.
[0036] Figure 4 : is the post-transaction secondary optimization result diagram of the present invention, wherein (a) is the pre-transaction path and (b) is the post-transaction path. DETAILED DESCRIPTION
[0037] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0038] A method for allocating patrol tasks of a surface unmanned boat swarm, the method specifically comprising the following steps:
[0039] Step 1: The USV cluster receives the patrol mission point;
[0040] Step 2: Solve the center point of all target points based on the task points received in step 1;
[0041] Step 3: Based on the center point of step 2, find the starting point T0 and all patrol points T i The angle θ between the lines i ;
[0042] Step 4: Based on the line angle obtained in step 3, the target points are evenly divided and grouped according to the number of USVs according to the angle equalization rule;
[0043] Step 5: Based on the grouping in step 4, an improved genetic algorithm is used to solve the TSP and an iterative solution is performed;
[0044] Step 6: Obtain solutions for each USV to solve the four groups of mission objectives, and select the best solution through voting competition as the initial patrol plan of the cluster;
[0045] Step 7: During the cruise of each USV, the navigation cost of its next target point is calculated, and the navigation cost of the surrounding USVs is polled. If the navigation cost of the nearby USV is lower than its own cost, the task of the target point is traded to the party with lower cost, and the remaining task route is re-planned. That is, the secondary optimization of the navigation path is completed through the above method, and all USVs poll other boats in this way until all patrol tasks are completed.
[0046] A method for allocating patrol tasks of a surface unmanned boat cluster, wherein the step 2 solves the center point of all target points based on the received task points, specifically, when the USV cluster receives Figure 2 After the total number of patrol task points a is n, for patrol point T i (x i ,y i ), (i=1…n) to the initial starting point T0(x0,y0) of the cluster, as shown in Figure 2b. Figure 2 c. The initial starting point T0 of the cluster in the figure is the center point of all patrol points. The formula is as follows
[0047]
[0048] Where i is the number of patrol points and n is the number of patrol point sets.
[0049] A method for allocating patrol tasks of a surface unmanned boat cluster, wherein step 3 obtains the starting point T0 and all patrol points T based on the center point. i The angle θ between the lines i Specifically, the formula is as follows:
[0050]
[0051] A method for allocating patrol tasks of a surface unmanned boat cluster, wherein step 4 is based on the solved line angle, and according to the angle equalization rule, the target points are evenly divided and grouped according to the number of USVs. Specifically, the line angle θ is divided into i Sort by small to large, according to T i Angle θ with the line connecting T0 i The order of the standard is to obtain a set of patrol points with a new order [T'1 … T' i ];
[0052] Divide the new patrol point set into n groups. In this example, there are four USVs, so n = 4:
[0053] [T′1 … T′ i / 4 ],[T′ i / 4+1 … T′ i / 2 ],[T′ i / 2+1 … T′ 3i / 4 ],[T′ 3i / 4+1 … T′ i ],like Figure 2 d.
[0054] A method for allocating patrol tasks of a surface unmanned boat swarm, wherein the step 5 is based on grouping and solving TSP by an improved genetic algorithm, and the iterative solution is as follows: when [T′1 … T′ i / 4 ], by setting the population size u and the number of point sets v, where Calculating a v*v upper triangular distance matrix is as follows:
[0055]
[0056] Generate u random permutations from 1 to v, and calculate the total permutation path L according to the order of random permutations j , (j=1…u), the sum of u paths L j According to the fitness judgment standard of the smallest path sum, determine the smallest L among the u paths. min , and breed it as the best individual in the current population. The breeding process uses the selection, crossover, mutation, inheritance and other processes of the genetic algorithm to obtain the optimal result of the TSP of the set of points;
[0057] The other three groups completed the initial optimization task according to the above process.
[0058] A method for allocating patrol tasks for a cluster of unmanned surface vessels (USVs). In step 6, each USV solves the solutions for n sets of task objectives, and the optimal solution is selected through a voting and optimization process as the cluster patrol plan. Specifically, the USVs within the cluster announce their own task planning solutions and conduct voting and optimization. Each vessel patrols the task points in the target area according to the task planning solution of the USV that wins the optimization. After the patrol is completed, it returns to the end point.
[0059] Each USV solves the solutions for the above 4 sets of task objectives, submits the total number of feasible solutions for the 4 sets of tasks to the network composed of 4 USVs, and selects the optimal feasible solution with the smallest total number of feasible solutions for the 4 sets of tasks through a voting and optimization process as the initial patrol plan for the cluster.
[0060] The USV starts patrolling and periodically determines whether the next target patrol point is a tradable point. The concept of a tradable point is as follows: In a closed polygon graph G=(V, E) composed of points V and edges E, with its envelope area S, when any point V j is removed, and the new closed polygon graph G j =(V', E') has an envelope area S'. If S'<S, then the point V N is a tradable point; otherwise, it is a non-tradable point. j
[0061] A method for allocating patrol tasks for a cluster of unmanned surface vessels (USVs). If the next target patrol point is a tradable point, calculate the navigation cost C T to this point and poll the navigation costs of the surrounding USVs. If there is a situation where the navigation cost of a neighboring USV is lower, then trade the task of this target point to the party with the lower cost, and use step 3 to re-plan the remaining task route for itself. All four USVs poll other vessels according to this method until all patrol tasks are completed.
Claims
1. A method for allocating patrol tasks of a surface unmanned boat cluster, characterized in that: The allocation method specifically comprises the following steps: Step 1: The USV cluster receives the patrol mission point; Step 2: Solve the center point of all target points based on the task points received in step 1; Step 3: Based on the center point of step 2, find the starting point T0 and all patrol points T i The angle θ between the lines i ; Step 4: Based on the line angle obtained in step 3, the target points are evenly divided and grouped according to the number of USVs according to the angle equalization rule; Step 5: Based on the grouping in step 4, an improved genetic algorithm is used to solve the TSP and an iterative solution is performed; Step 6: Obtain the solution for each USV to solve the n groups of mission objectives, and select the best solution through voting competition as the initial patrol plan of the cluster; Step 7: During the cruise of each USV, the navigation cost of its next target point is calculated, and the navigation cost of the surrounding USVs is polled. If the navigation cost of the nearby USV is lower than its own cost, the task of the target point is traded to the party with lower cost, and the remaining task route is re-planned. That is, the secondary optimization of the navigation path is completed through the above method, and all USVs poll other boats in this way until all patrol tasks are completed.
2. According to claim 1, a method for allocating patrol tasks of a surface unmanned boat cluster is characterized in that: The step 2 is to solve the center point of all target points based on the received task points. Specifically, when the USV cluster receives a total of n patrol task point sets, it calculates the patrol point T i (x i ,y i ), (i=1…n) to the cluster initial starting point T0 (x0, y0), and the cluster initial starting point T0 is the center point of all patrol points. The formula is as follows Where i is the number of patrol points and n is the number of patrol point sets.
3. According to claim 2, a method for allocating patrol tasks of a surface unmanned boat cluster is characterized in that: In step 3, the starting point T0 and all patrol points T are obtained based on the center point. i The angle θ between the lines i Specifically, the formula is as follows:
4. According to claim 3, a method for allocating patrol tasks of a surface unmanned boat cluster is characterized in that: In step 4, based on the solved line angle, according to the angle equalization rule, the target points are evenly divided and grouped according to the number n of USVs. Specifically, the line angle θ i Sort by small to large, according to T i Angle θ with the line connecting T0 i The order of the patrol points is obtained by the standard of the new order [T′1…T′ i ]; Divide the new patrol point set into n groups. If there are four USVs, then n = 4: [T′1…T′ i / 4 ],[T′ i / +1 …T′ i / 2 ],[T′ i / 2+1 …T′ 3i / 4 ],[T′ 3i / 4+1 …T′ i ]。 5. A method for allocating patrol tasks of a surface unmanned boat swarm according to claim 4, characterized in that: The step 5 is based on the grouping method of solving TSP by improving the genetic algorithm, and the iterative solution is specifically as follows: when [T′1…T′ i / 4 ], by setting the population size u and the number of point sets V, where Calculating a V*V upper triangular distance matrix is as follows: Generate u random permutations from 1 to v, and calculate the total permutation path L according to the order of random permutations j , (j=1…u), the sum of u paths L j According to the fitness judgment standard of the smallest path sum, determine the smallest L among the u paths. min , and breed it as the best individual in the current population. The breeding process uses the genetic algorithm process to obtain the optimization result of the TSP of this group of points. The other three groups completed the initial optimization task according to the above process.
6. A method for allocating patrol tasks of a surface unmanned boat cluster according to claim 5, characterized in that: In step 6, each USV obtains a solution for solving n groups of task objectives, and selects the best solution by voting competition as the cluster patrol solution. Specifically, each USV solves 4 groups of task objectives, submits the sum of feasible solutions of the 4 groups of tasks to the network composed of 4 USVs, and selects the optimal feasible solution with the smallest sum of feasible solutions of the 4 groups of tasks by voting competition as the initial patrol solution of the cluster; The USV starts patrolling and periodically determines whether the next target patrol point is a tradable point. The concept of a tradable point is as follows: In a closed polygon graph G = (V, E) composed of points V and edges E, with its envelope area being S, when any point V is taken j , after removing V j , the new closed polygon graph G N = (V′, E′), with its envelope area being S′, if S′ < S, then the point V j is a tradable point; otherwise, it is a non-tradable point.
7. A method for allocating patrol tasks of a surface unmanned boat swarm according to claim 6, characterized in that: If the next patrol point is a tradable point, calculate the cost of sailing to that point C T , and poll the navigation costs of surrounding USVs If there is a USV navigation cost nearby If the target point is not reached, the task will be traded to the party with lower cost, and the remaining task routes will be replanned using step 3. The four USVs will poll other boats in this way until all patrol tasks are completed.
