The formation method of multi-agent in physical space
By discretizing the physical space into a grid space and performing iterative position determination, the problems of low multi-agent forming efficiency, high computational cost and poor stability are solved, and an efficient, scalable and stable agent forming method is achieved.
Patent Information
- Application Number
- CN202111241097.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-25
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-10-25
AI Technical Summary
The existing technology has the problems of low forming efficiency, high computational cost and poor stability in multi-agent systems, especially when the number of agents increases, resulting in low efficiency of the self-forming process, rapid increase in computational cost and increased frequency of local minimum points.
By discretizing the physical space into a grid space, the agent reports its position to the coordinator, which obtains the system state and performs local light field calculation, priority queue generation and position determination through an iterative process to ensure that the agent is in the grid space form the target shape.
An efficient, scalable and stable multi-agent forming method is implemented, with low computational cost and high success rate of forming results as the group size increases.
Smart Images

Figure CN113936115B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of distributed control technology for intelligent agent systems, and more specifically to a method for forming multiple intelligent agents in physical space. Background Technology
[0002] For multi-agent systems in physical space, a typical control problem is how to control the movement of each agent in the physical space so that all agents form a specific shape. For example, controlling a swarm of drones to form a ring to encircle a specific target. Another example is controlling a group of driverless vehicles to travel in a fixed formation on a road to achieve efficient use of road resources. Generally speaking, this problem can be called the multi-agent shaping problem.
[0003] Regarding this issue, existing technologies can be broadly categorized into three types, and each type has certain drawbacks:
[0004] 1. The multi-agent shaping technology based on edge following results in extremely low efficiency of the self-shaping process, mainly due to the low parallelism of the system (only agents at the edge of the group can move).
[0005] 2. The multi-agent self-shaping technology based on global target allocation and path planning has poor scalability in terms of group size; as the number of agents increases, the computational cost required for target allocation and path planning increases exponentially.
[0006] 3. The multi-agent shaping technology based on virtual potential energy fields has poor stability (it is not always able to form the target shape correctly) because this technology can lead to the generation of local minima (once an agent gets stuck in a local minima, it can no longer move), and the probability of local minima appearing increases with the number of agents.
[0007] Therefore, how to provide an efficient, scalable, and stable method for shaping multiple agents in physical space is a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0008] In view of this, the present invention provides a method for forming multiple agents in physical space. The multi-agent forming process based on this technology has high efficiency; as the group size increases, the computational cost of the multi-agent forming process based on this technology has a low growth rate; and the multi-agent forming results based on this technology have a high success rate.
[0009] To achieve the above objectives, the present invention provides the following technical solution:
[0010] The method for shaping multiple agents in physical space includes the following specific steps:
[0011] Discretize the continuous physical space into a grid space and define the multi-agent shaping problem;
[0012] Each agent reports its position in the grid space to the coordinator; after receiving the position of each agent, the coordinator obtains the system state at each position;
[0013] The iteration begins. In each iteration, each agent sequentially performs: 1) Local light field calculation: calculates the light field intensity of each agent's current position and all adjacent grids; 2) Priority queue generation: determines each agent's preference for the next position and sorts all candidate positions according to each agent's state and preference to form a priority queue; 3) Determine the next position: determines each agent's position for the next moment by interacting with the coordinator; 4) Move to the next position.
[0014] The iteration ends when all agents occupy one grid in the target shape, or when every grid in the target shape is occupied by one agent.
[0015] Preferably, in the above-mentioned method for forming multiple agents in physical space, the specific steps for discretizing the continuous physical space into a grid space are as follows: using matrix discretization or honeycomb discretization, the physical space is discretized, and the resulting grid space can be represented as a set of grids and the adjacency relationship between the grids.
[0016] Furthermore, for example, for a two-dimensional plane, if matrix discretization is used, each grid cell is adjacent to eight surrounding grid cells in the resulting grid plane; if honeycomb discretization is used, each grid cell is adjacent to six surrounding grid cells in the resulting grid plane. In the grid space, the target shape that the group wants to form can be represented as a set formed by a set of grid cells.
[0017] Preferably, in the above-mentioned multi-agent shaping method in physical space, the multi-agent shaping problem is defined as (G,S,A,F,C); where G represents the mesh environment; S represents the target shape; A = {a1,a2,a3,...,a...} n} represents a collection of multiple agents; F represents an artificial light field superimposed on the grid environment G; C represents the coordinator.
[0018] Preferably, in the above-described method for shaping multiple agents in physical space, the coordinator coordinates the action rhythm of the multiple agents and records the coordinates of each agent in the grid space at any given time. At the same time, it locks and unlocks specific grids according to the requirements of the agents, ensuring that specific agents acquire / release ownership of specific grids.
[0019] Preferably, in the above-described method for shaping multiple agents in physical space, the local light field of any agent refers to the light intensity on the grid where the agent is located and on all grids adjacent to the agent at the current moment; on each grid, there are two light intensities: red light intensity and blue light intensity; for a grid, the red light intensity is the sum of the light intensities of all red light sources propagating to the grid; the blue light intensity is the sum of the light intensities of all blue light sources propagating to the grid; at any given moment, every agent not within the shape is a red light source, and every shape grid not occupied by an agent is a blue light source.
[0020] Preferably, in the above-mentioned method for shaping multiple agents in physical space, all grids in the local light field of the agent at the current time t are sorted according to light intensity;
[0021] When the agent is outside the target shape, all the grids in the local light field of the agent are arranged in order of blue light intensity from high to low to form a priority queue;
[0022] When the agent is within the target shape, all the grids in the local light field of the agent are arranged in order of increasing red light intensity to form a priority queue.
[0023] Preferably, in the above-described method for shaping multiple agents in physical space, the specific steps for determining the position at the next moment are as follows: the agent retrieves the head grid element from the priority array and sends the head grid element to the coordinator; the coordinator attempts to lock the head grid element as the agent and returns the result to the agent; if the locking is successful, the head grid element becomes the position of the agent at the next moment; if the locking fails, the agent retrieves the next grid element from the priority queue and repeats the above actions; attempting to lock.
[0024] Preferably, in the above-mentioned method for forming multiple agents in physical space, the specific steps of moving to the next position are as follows: the agent moves from the current position to the next position and notifies the coordinator that the movement has been completed; after receiving the notification, the coordinator releases the lock of the agent on the previous position; if the agent's position at the next moment is the same as the current position, it notifies the coordinator that its position will not change at the next moment.
[0025] As can be seen from the above technical solutions, compared with the prior art, the present invention discloses a method for forming multiple agents in physical space. The multi-agent forming process based on this technology has high efficiency; as the group size increases, the computational cost of the multi-agent forming process based on this technology has a low growth rate; and the multi-agent forming results based on this technology have a high success rate. Attached Figure Description
[0026] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0027] Figure 1 The attached figure is a flowchart of the method of the present invention. Detailed Implementation
[0028] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention. Taking the formation problem of unmanned aerial vehicle swarms in three-dimensional physical space as an example;
[0029] Given a group of drones and a coordinator (installed on a computer), connect the drones and the coordinator to the same communication network and establish a two-way communication channel between each drone and the coordinator.
[0030] The physical space is discretized into a grid space using a matrix discretization method. The three-dimensional coordinate system of the grid space is determined, all coordinates contained in the target shape are determined, and the coordinates of each UAV in the grid space are determined.
[0031] The coordinator sends a start signal to all drones; each drone, upon receiving the start signal, sends its coordinates to the coordinator and then waits for the coordinator to send it the system state at time 0; after receiving the coordinates of a drone, the coordinator locks those coordinates as if they were that drone; after receiving the current coordinates of all drones, the coordinator sends the system state at time 0 to each drone. At this point, the system initialization phase ends.
[0032] Then, the system enters the iterative phase.
[0033] Each drone first calculates its current coordinates and the red and blue light intensities at its 26 adjacent coordinates.
[0034] Then, the drone checks whether its current coordinates are outside the target shape. If they are outside the target shape, the 27 coordinates are arranged in descending order of blue light intensity to form a priority queue; otherwise, the 27 coordinates are arranged in ascending order of red light intensity to form a priority queue.
[0035] Next, the drone takes each coordinate from the head of the priority queue in turn and requests the coordinator to lock the coordinate in the name of the drone, until a coordinate is successfully locked; this coordinate becomes the drone's coordinate at the next moment.
[0036] Then, the drone checks whether the current coordinates are the same as the coordinates at the next moment: if they are the same, it notifies the coordinator that it does not need to move; otherwise, the drone moves to the coordinates at the next moment and notifies the coordinator that it has successfully moved to the coordinates at the next moment.
[0037] Finally, the drone waits for the coordinator to send it the system's state for the next moment so that it can proceed to the next iteration.
[0038] After receiving a message that a drone has successfully moved, the coordinator releases the drone's ownership of the coordinates it was at in the previous moment. After receiving successful move messages or no-move messages from all drones, the coordinator determines the system state for the next moment. The coordinator checks if the system state meets the termination condition: if not, it broadcasts the state to every drone (the drones enter the next iteration); if it does meet the condition, it broadcasts a termination signal to every drone (the drones remain at their current positions).
[0039] To quantitatively evaluate the effects of the present invention and the prior art, a shape database was constructed, which contains 156 shapes (involving 16 categories of shapes).
[0040] Four existing technologies were selected as comparison methods:
[0041] (1) OPT-D: A multi-agent forming method based on global control, which can ensure that the sum of the movement distances of all agents during the forming process is minimized;
[0042] (2) HUN: An iterative multi-agent shaping method based on global task allocation, in which the global task allocation adopts the Hungarian algorithm;
[0043] (3)DUD: A multi-agent shaping method based on artificial potential energy field;
[0044] (4)EF: A multi-agent shaping method based on edge following strategy.
[0045] This invention uses three quantitative evaluation indicators:
[0046] (1) Completion quality ρ: When the multi-agent system reaches a stable state, the proportion of the target grid occupied by the agent to the total target grid;
[0047] (2) Relative completion time t: The number of iterations required for the multiple agents to complete the shape;
[0048] (3) Absolute completion time τ: The physical time required for multiple agents to complete the shape.
[0049] The present invention and the comparative method were experimentally evaluated in terms of efficiency, scalability, and stability. The results are as follows:
[0050] (1) Efficiency: The completion quality of this invention (99.9%) is close to that of the OPT-D method (100%), and exceeds that of HUN, DUD, and EF, by 10.1%, 6.8%, and 35.2%, respectively. The relative completion time of this invention lags behind the OPT-D method (10.5%), but exceeds that of HUN (all unsuccessful in multiple experiments), DUD (all unsuccessful in multiple experiments), and EF (5882% faster). The absolute completion time of this invention exceeds that of OPT-D and EF, by 5555% and 2500%, respectively.
[0051] (2) Scalability: The relative completion time of this invention exhibits a growth trend of log(n) with the increase of the agent size n; the relative completion time of OPT-D also exhibits the same growth trend. The absolute completion time of this invention exhibits a growth trend of n with the increase of the agent size n. 2 The absolute completion time of OPT-D shows an increasing trend of log(n); 3 The growth trend.
[0052] (3) Stability: The normalized standard deviations of the present invention are 0.00034, 0.04410 and 0.0003 for the three indicators of completion quality, relative completion time and absolute completion time, respectively.
[0053] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to the method section.
[0054] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for forming a multi-agent system in a physical space, characterized in that: The specific steps include the following: Discretize the continuous physical space into a grid space and define the multi-agent forming problem; Each agent reports its position in the grid space to the coordinator; after receiving the position of each agent, the coordinator obtains the system status at each position; Start iteration. In each round of iteration, each agent sequentially performs 1) local light field calculation: calculate the light field intensity at the current location of each agent and all adjacent grids; 2) Priority queue generation: determine each agent's preference for the next moment's position, and sort all candidate positions according to each agent's state and preference to form a priority queue; 3) Determine the next moment's position: determine each agent's position at the next moment by interacting with the coordinator; 4) Move to the next position; When all agents occupy a grid in the goal shape; Or every grid in the target shape is occupied by an agent, and the iteration ends.
2. The method for forming multiple intelligent agents in physical space according to claim 1, characterized in that: The specific steps of discretizing the continuous physical space into a grid space are as follows: the physical space is discretized using matrix discretization or honeycomb discretization, and the resulting grid space is represented as a set of grids and the adjacency relationship between the grids.
3. The method for forming multiple intelligent agents in physical space according to claim 1, characterized in that: The multi-agent forming problem is defined as ; Where G represents the grid environment; S represents the target shape; Represents a collection of multiple agents; F represents an artificial light field superimposed on a grid environment G; C represents a coordinator.
4. The method for forming multiple intelligent agents in physical space according to claim 3, characterized in that: The coordinator coordinates the action rhythm of multiple agents and records the coordinates of each agent in the grid space at any time. At the same time, it locks and unlocks specific grids according to the requirements of the agents to ensure that specific agents obtain or release possession of specific grids.
5. The method for forming multiple intelligent agents in physical space according to claim 1, characterized in that: For any intelligent agent, the local light field refers to the intensity of light on the grid where the intelligent agent is located and all grids adjacent to the grid at the current moment; on each grid, there are two light intensities: red light intensity and blue light intensity; for a grid, the red light intensity is the sum of the light intensities of all red light sources transmitted to the grid; the blue light intensity is the sum of the light intensities of all blue light sources transmitted to the grid; at any moment, every intelligent agent that is not in the shape is a red light source, and every shape grid that is not occupied by an intelligent agent is a blue light source.
6. The method for forming multiple intelligent agents in physical space according to claim 5, characterized in that: Sort all grids in the local light field of the agent at the current time t according to light intensity; When the agent is outside the target shape, all grids in the local light field of the agent are arranged from high to low according to the intensity of the blue light to form a priority queue; When the agent is within the target shape, all grids in the local light field of the agent are arranged from low to high according to the intensity of red light to form a priority queue.
7. The method for forming multiple intelligent agents in physical space according to claim 6, characterized in that: The specific steps of determining the position at the next moment are as follows: the agent takes out the head grid element from the priority array and sends the head grid element to the coordinator; the coordinator attempts to lock the head grid element as the agent and returns the result to the agent; if the locking is successful, the head grid element becomes the position of the agent at the next moment; If the lock fails, the agent takes the next grid element from the priority queue and then repeatedly sends the grid element to the coordinator; trying to lock.
8. The method for forming multiple intelligent agents in physical space according to claim 7, characterized in that: The specific steps of moving to the next position are as follows: the agent moves from the current position to the next position and notifies the coordinator that the movement is completed; after receiving the notification, the coordinator releases the lock of the agent on the previous position; if the position of the agent at the next moment is the same as the current position, notify the coordinator that its position will not change at the next moment.
Citation Information
Patent Citations
Active distribution network dynamic topology reconstitution method based on mixed artificial intelligence
CN103701117A
Path planning method based on multi-agent enhanced learning
CN109059931A
