Improved method based on solution space cutting

By using the heuristic function of solution space clipping in multi-agent path planning, the clipping degree of nodes is calculated and the type of conflict is determined to generate a conflict-free path, which solves the problems of inefficiency and resource waste caused by symmetry conflicts, and significantly improves path planning. efficiency and resource utilization.

CN118780453APending Publication Date: 2024-10-15SOUTHWEAT UNIV OF SCI & TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410927595.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

When existing multi-agent path planning algorithms face symmetry conflicts, the conflict state space grows exponentially. Constraint tree nodes expand exponentially as the conflict path length increases, and invalid path sets are repeatedly planned, which cannot effectively save computing resources. and shorten the time of the optimal conflict-free path set.

Method used

A heuristic function based on solution space clipping is used, and the clipping degree of each node is calculated as the heuristic value to determine the conflict type and generate appropriate constraints, so that the lower path planning algorithm can directly generate a conflict-free optimal path set.

Benefits of technology

It effectively infers symmetry conflicts, significantly saves the computing resources of the algorithm, shortens the time to obtain the optimal conflict-free path set, and solves the problems of exponential growth of conflict state space and low efficiency of path planning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780453A_ABST
    Figure CN118780453A_ABST
Patent Text Reader

Abstract

The invention provides an improved method (Clip Solution Space with CBS, CBS-CSP) based on solution space clipping, and belongs to the field of multi-agent path planning. The method comprises four main steps: firstly, CBS-CSP needs to initialize a solution space again to obtain values of different nodes n.path (the number of paths passing through a node n from a starting node to a target node); secondly, inputting MDDi and MDDj (representing MDD of agents ai and aj); a heuristic value is obtained from the MDDj, and a path which has the minimum influence on a solution space formed by the MDDj is searched in the MDDi; then, judging the type corresponding to the conflict of the two intelligent agents according to the search completion condition; finally, adding a constraint for the agent aj; the CBS-CSP can quickly find a path for the agent aj through the constraint set, wherein the path has no conflict with a solution obtained by the agent ai; according to the method, symmetry conflicts can be effectively reasoned, computing resources of an algorithm can be remarkably saved in a scene where the symmetry conflicts frequently occur, and the time for obtaining an optimal conflict-free path set is shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of multi-agent path planning, and in particular to an improved method based on solution space clipping. Background Art

[0002] With the development of the Internet economy and the advancement of science and technology, the obvious technological, large-scale and clustering in the Internet economy have also deeply affected all walks of life. This includes the robot-related industry. More and more companies are beginning to pay attention to the large-scale and clustered use of robots. The coordination of robots has become particularly important, and the cluster path planning of robots is one of the key issues affecting the cluster use of robots. The cluster path planning problem of robots is also called the multi-agent path planning problem after a strict academic definition. In the multi-agent path planning problem, the agents must move from their current positions to their respective destinations while avoiding collisions.

[0003] The optimal multi-agent path planning methods can be mainly divided into two categories, one is search-based algorithms and the other is deduction-based algorithms. Search-based algorithms refer to algorithms that obtain the optimal solution by searching the joint state space, as well as algorithms such as the CBS algorithm and its variants that obtain the optimal solution by searching the conflict solution space. Deduction-based algorithms reduce the multi-agent path planning problem to other combinatorial optimization problems, such as integer linear programming, Boolean satisfiability problems, and constraint programming problems, and use existing excellent solvers to find the optimal solution for them.

[0004] The most direct method in the search-based algorithm is to use the A* algorithm to obtain the optimal solution in the joint state space. Generally speaking, the joint state is the state where multiple agents stay at different node positions in the map. Obviously, the space formed by such a joint state will increase exponentially with the increase in the number of agents. Therefore, scholars have developed many different methods to accelerate the solution of the A* algorithm in multi-agent path planning problems. For example, independence detection (ID), operator decomposition (OD), partial expansion and sub-dimension expansion. And their different combinations form some representative algorithms. Such as OD, Enhanced Partial Expansion A* (EPEA*), M*, OD+ID

[21] Etc. The EPEA* algorithm uses heuristic information to limit the number of nodes generated during the expansion process, thereby saving a lot of time and memory when performing multi-agent search. However, EPEA* has difficulty in selecting nodes that save more computational resources for expansion when expanding nodes, especially in spaces with large branching coefficients or non-trivial cost functions. Similarly, the M* algorithm and the A* algorithm are similar algorithms under the same framework. The M* algorithm uses the optimal strategy to plan the path at the beginning of the calculation, and then selectively propagates backwards when conflicts occur between agents, and then replans a conflict-free path. The M* algorithm has been experimentally proven to be particularly efficient in maze maps.

[22] , but with the same drawbacks as A*, it is very inefficient as the joint state space grows exponentially with the number of agents. Based on deduction, this approach performs better than the most advanced search-based algorithms for small maps. However, since the integer linear programming encoding requires each agent to have a Boolean variable for each vertex at each time step, they do not work well on large maps and require too much memory. The most advanced algorithm based on the idea of ​​integer linear programming is the Branch-and-Cut-and-Price (BCP) algorithm, which, like CBS, is a two-level algorithm, where the lower level algorithm uses a search algorithm to solve the single-agent path planning problem, and the upper level uses integer linear programming to allocate paths and resolve conflicts. The multi-agent path planning problem can also be encoded as a Boolean Satisfiability problem (SAT). Similarly, the SAT encoding requires each agent to have a Boolean variable for each vertex at each time step, just like the integer linear programming encoding, so its efficiency decreases with the size of the map. SMT-CBS is an algorithm based on satisfiability theory. Like CBS, it ignores all conflicts at the beginning of the calculation and only adds conflict resolution constraints when necessary. Although different deduction-based algorithms use different formulas, the direct encoding based on the joint state space is consistent, so their common problem is that they cannot be extended to large maps, nor can they be directly applied to multi-agent path planning problems in continuous time. Summary of the invention

[0005] The purpose of the present invention is to solve the problems that the existing classical multi-agent path planning algorithms lack the technology of reasoning about symmetry conflicts, cannot avoid the exponential growth of the conflict state space caused by symmetry conflicts, the exponential expansion of constraint tree nodes as the length of the conflict path increases, and the path planning algorithm repeatedly plans invalid path sets. An improved method based on solution space clipping is proposed, which can effectively infer symmetry conflicts, can significantly save the algorithm's computing resources in scenarios where symmetry conflicts frequently occur, and shorten the time to obtain the optimal conflict-free path set.

[0006] To achieve the above purpose, the present invention proposes a heuristic function based on the clipping degree of the solution space. When the multi-agent initially plans the path, all available optimal paths are calculated to form a complete solution space, and the clipping degree of each node in the path for the solution space is further calculated as a heuristic value. Finally, the conflict type is determined according to the heuristic value of the target node, and then the appropriate constraints are directly generated so that the lower-level path planning algorithm can directly generate a conflict-free optimal path set.

[0007] The technical solution proposed by the present invention includes the following parts:

[0008] Step 1: Calculation of the newly added heuristic value of the CBS-CSP algorithm requires reinitialization of the solution space to obtain the value of n.paths for different nodes. The calculation process is as follows:

[0009] (1) Calculate the value from n i and e i =<n i ,n′ i >To the end point i The number of paths (n i ,g i ).paths、(e i ,g i ).paths.

[0010] (2) Calculate the distance from the starting node to n i and e i =<n i ,n′ i >The number of paths (s i ,n i ).paths、(s i ,e i ).paths.

[0011] (3) Calculate the distance from the starting node to n i and e i =<n i ,n′ i >The number of paths (s i ,n i ).paths、(s i ,e i ).paths.

[0012] (4) Obtain n j The value of .paths.

[0013] Step 2: This part of the CBS-CSP algorithm takes MDD as input i and MDD j By MDDj Get heuristic values ​​in MDD i Search for a match to MDD j The solution space formed has the least impact on the path. The detailed steps are as follows:

[0014] (5) First determine the MDD i The heuristic value of each node in;

[0015] (6) Find available solutions through the best-first search method;

[0016] (7) Update the heuristic value based on the dependency of the mutually exclusive relationship.

[0017] Step 3: The CBS-CSP algorithm needs to determine the type of conflict between the two agents based on the search completed in the previous step, so that the optimal solution can be found by assigning different constraints. The CBS-CSP algorithm combines minor conflicts and general conflicts into the same category, collectively referred to as general conflicts. i and a j The conflict between them is a general conflict, then at least one agent can i or j Search for two conflict-free paths under the constraints of .

[0018] Step 4: The CBS-CSP algorithm will be the agent a j Add constraints, two agents that generally conflict i and a j , where agent a is the source of the heuristic value j A new set of constraints will be obtained through the CBS-CSP algorithm. In this way, CBS can quickly provide agent a with the constraint set. j Find a path and agent a i The solution obtained has no conflicting paths.

[0019] The present invention uses a heuristic function of the clipping degree of the solution space to calculate all available optimal paths to form a complete solution space when multiple agents first plan paths, and further calculates the clipping degree of each node in the path for the solution space as a heuristic value. Finally, the conflict type is determined according to the heuristic value of the target node, and then the appropriate constraints are directly generated so that the lower-level path planning algorithm can directly generate a conflict-free optimal path set. The problem of the exponential growth of the conflict state space caused by the inability to avoid symmetry conflicts, the exponential expansion of the constraint tree nodes as the length of the conflict path increases, and the path planning algorithm repeatedly planning an invalid path set is solved. The effective reasoning of symmetry conflicts is achieved, which can significantly save the algorithm's computing resources in scenarios where symmetry conflicts occur frequently, and shorten the time to obtain the optimal conflict-free path set. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0021] Figure 1 An improved method flow based on solution space tailoring;

[0022] Figure 2 To constrain different kinds of conflicts in the tree;

[0023] Figure 3 is the MDD of two agents caught in a rectangular conflict;

[0024] Figure 4 The comparison results of algorithm success rates in nine scenarios are shown; DETAILED DESCRIPTION

[0025] 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. 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.

[0026] S1: Initialize solution space;

[0027] S2: Path planning;

[0028] S3: Identify the types of conflicts;

[0029] S4: Add constraints;

[0030] In step S1, the calculation of the newly added heuristic value of the CBS-CSP algorithm requires reinitializing the solution space to obtain the values ​​of n.paths of different nodes. The calculation process is as follows:

[0031] (1) Calculate the value from n i and e i =<n i ,n′ i >To the end point i The number of paths (n i ,g i ).paths、(e i ,g i ).paths. The calculation formula is shown in (1-1) and (1-2):

[0032]

[0033] Where m is In the case where e.from = n i The number of edges.

[0034] (2) Calculate the distance from the starting node to n i and e i =<n i ,n′ i >The number of paths (s i ,n i ).paths、(s i ,e i ).paths. The calculation formula is shown in (1-3) and (1-4):

[0035]

[0036] (s i ,e i ).paths=(s i ,n i ).paths (1-4)

[0037] Where s points to node n' i The edge i The number of In the equation e.to=n′ i The number of edges.

[0038] (3) Calculate the distance from the starting node to n i and e i =<n i ,n′ i >The number of paths (s i ,n i ).paths、(s i ,e i ).paths. The calculation formulas are shown in (1-5) and (1-6):

[0039]

[0040] (s i ,e i ).paths=(s i ,n i ).paths (1-6)

[0041] Where s points to node n' i The edge i The number of In the equation e.to=n′ i The number of edges.

[0042] (4) Obtain n through the calculation formula j The value of .paths is as shown in the formula (1-7):

[0043] n j .paths=(s i ,n j ).paths×(n j ,g i ).paths (1-7)

[0044] like Figure 3 As shown in the MDD in the middle and lower part, the number at the top of each node n is the value of n.paths. This value can accurately measure the importance of each node in the solution space, making it easier to select nodes with relatively low importance for subsequent pruning.

[0045] In step S2, after the MDD processed by S1, the value of each node n.paths can accurately express its influence on the solution space. This value is also equivalent to the degree of pruning of the solution space after the node falls into a mutually exclusive relationship. When the MDD nodes of two agents form a mutually exclusive relationship, it is essentially a pruning of the solution space. The worst case is that all the path solutions of the two agents are completely mutually exclusive, resulting in the two agents being unable to reach their respective destinations without conflict.

[0046] Due to the assumption of staying at the end point, we need to first i and a j The corresponding and Preprocessing is performed. Assume that i ≤l j , copy one or more times The last node g i And connect them in a direction to form new Make l i '=l j If there is no explicit requirement in the following text, Represents agent a i Pre-processed When the hierarchy of MDD is not obvious, use MDD separately i and MDD j To represent agent a i and a j MDD.

[0047] This part of the CBS-CSP algorithm takes as input MDD i and MDD j By MDD j Get heuristic values ​​in MDD i Search for a link to MDDj The solution space formed has the least impact on the path. The detailed steps are as follows:

[0048] (1) First determine the MDD i The heuristic value of each node in MDD. i Node n in i For MDD j The degree of influence of the solution space. i With MDD j The nodes at the same level in the table do not form a mutually exclusive relationship, so n i The heuristic value of is zero. i Node n at the same level j After forming a mutually exclusive relationship, agent a i Select after n i When the path solution is j All the solutions containing n in the solution space j The number of invalid solutions is n j .paths value, so n j .paths as n i The heuristic value of . Figure 3 , the nodes connected by dotted lines in MDD1 and MDD2 form a mutually exclusive relationship with each other, and the inspiration value of the upper MDD1 node comes from the node in the lower MDD2 that forms a mutually exclusive relationship with it.

[0049] (2) Find available solutions through the best-first search method. Every time a new node is added to the path list, the best child node of the end node of the path is selected. This ensures that i Find the solution space for agent a j The path with the least impact on the solution space. Figure 3 As shown, the continuous gray nodes constitute the path searched in MDD1.

[0050] (3) Update the heuristic value based on the mutual exclusion relationship. Whenever a j Influential nodes n in the solution space i Added to agent a i After finding the path, update the solution space through the dependency characteristics of the mutually exclusive relationship. Figure 3 As shown in Figure 2, when node C3 is added to the path, the heuristic value of its child node C4 is updated. In MDD2, C4.paths is subtracted from the number of paths starting from E1 through C3 to C4, and C4.paths = 2 is obtained. Then, according to n i .heuristic=n j.paths gets C4.heuristic=2.

[0051] (4) Search completion sign. j When the number of available solutions in the solution space is 0, or the end point g i Added to agent a i After the path is found, the search is complete. Figure 3 As shown in the figure, when node C2 in MDD1 is added to the path, C3.heuristic and C4.heuristic are both updated to 5. After C3 is added to the path, C4.heuristic is updated to 2. As C4 is added to the path, agent a i The sum of the heuristic values ​​(SOH) of the nodes in the path is 10, then rest-paths = s j .paths-10 is 0, which means there are no available solutions in the solution space formed by MDD2.

[0052] Further, in step S3, after completing step S2 and obtaining a usable solution, in order to find the agent a j The CBS-CSP algorithm needs to determine the type of conflict between the two agents based on the search completed in the previous step, so that the optimal solution can be found by assigning different constraints. There are two inferences about the relationship between the type of conflict and the available solutions:

[0053] Corollary 1: If rest-paths = 0, it means that there is no pair of available solutions that can allow the two agents to reach the end point at the same time without collision.

[0054] Proof: Assume rest-paths = 0, then there is still a pair of available solutions p i 、p j , then p i With p j All nodes in the path with the same time step will not form a mutual exclusion lock. Let p i is the path obtained by searching for S2, then there is a path p i The sum of the heuristic values ​​of all nodes in must be less than or equal to g i .paths-1, then rest-paths=g i .paths-SOH>0, which contradicts the assumption that rest-paths=0.

[0055] Corollary 2: If rest-paths>0, it means there is a pair of available solutions that allow the two agents to reach the end point at the same time without collision.

[0056] Proof: Let the pair of available solutions be p i 、pj , then p i With p j All nodes in the path with the same time step will not form a mutual exclusion lock. Let p i is the path found by S2, then p i The SOH must be less than or equal to g i .paths-1, it is easy to get rest-paths>0.

[0057] Through the above proof, combined with the definitions of general conflict and important conflict, we can know that the conflict between two agents is an important conflict if and only if rest-paths = 0. When rest-paths> 0, the conflict between two agents is a general conflict.

[0058] Further, in step S4, after completing step S3, the CBS-CSP algorithm will be j Add constraints. In this way, CBS can quickly provide agent a with a set of constraints. j Find a path and agent a i The solution obtained has no conflicting paths.

[0059] Two agents that generate general conflict a i and a j , where agent a is the source of the heuristic value j A new set of constraints will be obtained through the CBS-CSP algorithm. This set of constraints is composed of a i The path obtained by S2 search is n i .heuristic≠0.

[0060] Corollary 3: After adding constraints, we can i and a j Find a pair of available solutions.

[0061] Proof: Let p i is the path searched by Algorithm 2, and rest-paths>0. Then there must be a pair of available solutions p within the limited range of path cost. i 、p j Since the CBS lower layer algorithm is a complete optimal algorithm, we can use the solution p i 、p j Can be searched.

[0062] experiment:

[0063] In order to verify the effectiveness of the proposed method, the simulation experiment uses a four-way grid map. In such a map environment, we compare the three algorithms of CBS-CSP, CBS, and CBSH. The three different algorithms all come from the same code base and completely consistent computer hardware platform. The running scenarios are mainly divided into two categories: one is to design a specific type of conflict; the other is to randomly generate the starting and ending points of each agent in a fixed map.

[0064] The first type of experiment used Figure 2 The following are three types of conflicts that occur frequently in randomly generated scenarios. The area in Table 3-1 refers to the area of ​​a rectangle that can be drawn with the starting vertices of the two agents as endpoints. Table 3-1 shows the number of nodes that the constraint tree expands after CBS finds the optimal solution for three types of conflicts with different areas. The number of nodes expanded by the constraint tree not only takes up a large amount of memory, but also greatly affects the performance of the algorithm.

[0065] From the results in Tables 3-1, 3-2, and 3-3, we can see that the CBS algorithm can effectively identify important conflicts, but lacks effective identification methods for general conflicts that also affect CBS performance. The CBS-CSP algorithm only needs to expand one constraint tree node for all types of general conflicts.

[0066] Table 3-1 Comparison of the number of constraint tree nodes generated under circular conflicts

[0067]

[0068] Table 3-2 Comparison of the number of constraint tree nodes generated under false rectangular conflicts

[0069]

[0070] Table 3-3 Comparison of the number of constraint tree nodes generated under typical rectangular conflicts

[0071]

[0072] In the second type of experiment, this paper used 16×16 obstacle-free maps, 128×128 maze maps, 32×32 maps with 20% randomly generated obstacles, and 194×194 game maps from benchmark test maps provided by other scholars. The test was repeated multiple times by changing the number of agents, and 25 different scenarios were run when the number of agents was changed once.

[0073] Figure 4 It shows the percentage of scenarios for which the three multi-agent pathfinding algorithms successfully found solutions among 25 different scenarios corresponding to the same number of agents, with a running time limit of 300 seconds.

[0074] pass Figure 4 The displayed statistical results show that the CBS-CSP algorithm has a significant improvement over the classic CBSH algorithm in all scenarios. In the barrier-free map, due to the higher incidence of general conflicts, the performance of the CBS-CSP algorithm is significantly better than CBSH, with an average performance improvement of 10.2%. In the other three maps, due to the lower incidence of general conflicts. The CBS-CSP algorithm does not have the same effect improvement as in the barrier-free map, but it can be seen from the experimental data that the performance of CBS-CSP is basically the same as that of CBSH, so the changes of CBS-CSP relative to CBSH do not bring additional computing power requirements.

[0075] In summary, the CBS-CSP algorithm is a relatively successful improvement on the CBSH algorithm. It has made some improvements and improvements in the areas where CBSH is lacking, without sacrificing its excellent performance in other situations.

Claims

1. An improved method based on solution space clipping, characterized in that: The steps include: Initialize the solution space step, by reinitializing the solution space, obtain different nodes n.path s The value of In the path planning step, all available optimal paths are calculated to form a complete solution space, and the clipping degree of each node in the path for the solution space is further calculated as a heuristic value; Identify the conflict type step, and determine the conflict type based on the heuristic value of the target node; Add constraint steps to generate appropriate constraints so that the underlying path planning algorithm can directly generate a conflict-free optimal path set.

2. The improved method based on solution space clipping according to claim 1, characterized in that: The step of initializing the solution space comprises: First, calculate the value from n i and e i =<n i ,n' i >To the end point i The number of paths (n i ,g i ).paths、(e i ,g i ).paths; Secondly, calculate the distance from the starting node to n i and e i =<n i ,n' i >The number of paths (s i ,n i ).paths、(s i ,e i ).paths; Then, calculate the distance from the starting node to n i and e i =<n i ,n' i >The number of paths (s i ,n i ).paths、(s i ,e i ).paths; Finally, through n j .paths=(s i ,n j ).paths×(n j ,g i ).paths formula, calculate n j The value of .paths.

3. The improved method based on solution space clipping according to claim 1, characterized in that: The path planning step includes: First, determine the MDD i The heuristic value of each node in; Secondly, find available solutions through the best-first search method; Finally, the heuristic value is updated based on the dependency of the mutually exclusive relationship.

4. The improved method based on solution space clipping according to claim 1, characterized in that: The step of identifying the conflict type comprises: By completing the search and combining the definitions of general conflict and important conflict, we can know that the conflict between the two agents is an important conflict when and only when rest_paths=0; when rest_paths>0, the conflict between the two agents is a general conflict.

5. The improved method based on solution space clipping according to claim 1, characterized in that: The step of adding constraints includes: Two agents that generate general conflict i and a j , where agent a is the source of the heuristic value j A new set of constraints will be obtained through the CBS-CSP algorithm; thereby, CBS can quickly provide agent a with the constraint set. j Find a path and agent a i The solution obtained has no conflicting paths.

Citation Information

Cited By

  • Bounded suboptimal agent path planning method and system based on conflict search

    CN119063741A