A binary swarming control method for multi-agent systems under asynchronous communication
By defining the weight function and the bipartite swarming controller in the multi-agent system, the problem of ignoring competition relationships and asynchronous communication in the existing technology is solved, and the agent motion trajectory update and bipartite swarming behavior under asynchronous communication are realized, which improves the multi-agent system. Collaborative control effect of intelligent agent systems.
Patent Information
- Application Number
- CN202210867728.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-22
- Publication Date
- 2024-10-15
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing multi-agent system control methods only focus on the cooperation between agents, ignore the competition relationship, and do not consider asynchronous communication, resulting in poor results in practical applications.
This paper proposes a bipartite swarming control method for multi-agent systems under asynchronous communication. By establishing a competition or cooperation relationship between agents, defining a weight function, obtaining the speed and position information of adjacent agents, calculating weight elements, and obtaining bipartite swarming control controller, and control the movement of the agent according to the controller, update the weight elements and controller, and realize the update of the movement trajectory of the agent under asynchronous communication.
The cooperation or competition relationship between agents is reflected through weight elements. Agents only need to communicate with neighbors at discrete communication moments determined by their own clocks, update the bipartite swarming controller, and realize the bipartite swarming behavior of multi-agent systems to meet the needs of asynchronous communication. The movement trajectory is updated to quantify the impact of cooperation and competition on the movement of the agent.
Smart Images

Figure CN115356922B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of cooperative control of multi-agent systems, and in particular to a binary swarming control method for multi-agent systems under asynchronous communication. Background Art
[0002] Inspired by the activities of natural biological groups such as ant foraging, bird migration, and wolf hunting, using simple-structured agents to collaborate to complete a series of complex tasks has always been a research hotspot in multi-agent system control. The swarming behavior controlled by a multi-agent system is an orderly movement organized by agents based on limited neighbor information and simple rules, and is widely used in the fields of mobile robots and drone formation control.
[0003] In the early research on swarming control methods, it is usually assumed that the degree to which the swarming behavior of agents is affected by neighbors is independent of the distance between agents. But in fact, the distance between agents is an important factor affecting the degree of cooperation. Therefore, the Cucker-Smale model, which describes the degree of cooperation between individuals based on a nonlinear function of the communication distance, has received attention. However, this model only focuses on the cooperation between agents, while ignoring the competitive relationship between agents. In addition, the clocks controlled by the agent system in the prior art are usually synchronized, while in actual engineering applications, agents usually communicate asynchronously.
[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0005] The technical problem to be solved by the present invention is that, in view of the above-mentioned defects of the prior art, a binary swarming control method for a multi-agent system under asynchronous communication is provided, aiming to solve the problem that the prior art only focuses on the cooperation between agents but ignores the competitive relationship between agents, and does not consider the asynchronous communication of agents.
[0006] The technical solution adopted by the present invention to solve the technical problem is as follows:
[0007] In a first aspect, an embodiment of the present invention provides a binary swarming control method for a multi-agent system under asynchronous communication, wherein the method comprises:
[0008] Establishing a multi-agent system and obtaining the competition or cooperation relationship between agents in the multi-agent system;
[0009] Obtaining a weight function according to the competition or cooperation relationship between the agents;
[0010] Obtain the speed and position information of adjacent agents;
[0011] Obtaining a weight element according to the weight function and the position information; wherein the weight element is used to represent the degree of cooperation or competition between the agents in the multi-agent system;
[0012] A binary swarming controller is obtained according to the speed information of the adjacent agents and the weight elements;
[0013] The movement of the agent is controlled according to the binary swarming controller, and the step of obtaining the speed information and position information of the adjacent agents is re-executed to update the weight element and the binary swarming controller.
[0014] In one implementation, establishing a multi-agent system and obtaining competition or cooperation relationships among agents includes:
[0015] Building a multi-agent ensemble The agent v n+1 For the leader agent;
[0016] Building a set of competitor agents The competitor agent and the leader agent v n+1 There is a competitive relationship;
[0017] Building a collection of follower agents The follower agent and the leader agent v n+1 There is a cooperative relationship;
[0018] Establishing a multi-agent system according to the set of competitor agents and the set of follower agents;
[0019] If the agent v i ,v j satisfy or Then get the agent v i ,v j The relationship between them is a cooperative relationship;
[0020] If the agent v i ,v j satisfy or Then get the agent v i ,v j The relationship between them is a competitive one.
[0021] In one implementation, obtaining a weight function according to the competition or cooperation relationship between the agents includes:
[0022] If the agent v i ,v jIf there is a cooperative relationship between them, then the weight function f is a bounded monotonically decreasing function;
[0023] If the agent v i ,v j There is a competitive relationship between them, then the weight function f is a bounded monotonically increasing function.
[0024] In one implementation, obtaining a weight element according to the weight function and the position information includes:
[0025] In t k At discrete communication moments, if the agent v i ,v j If there is a cooperative relationship between them, the weight element a ij (t k )for:
[0026] Among them, t k For the agent v i Determines the communication time, f is the weight function, x i (t k ) is the agent v i In t k Location information at the moment, For the agent v j exist Location information at the moment, For the agent v i Determined and t k Adjacent communication moments, is the upper bound of the weight function f;
[0027] In t k At discrete communication moments, if the agent v i ,v j There is a competitive relationship between them, then the weight element a ij (t k )for:
[0028] Among them, t k For the agent v i Determines the communication time, f is the weight function, x i (t k ) is the agent v i In t k Location information at the moment, For the agent v j exist Location information at the moment, For the agent v i Determined and t kAdjacent communication moments, is the lower bound of the weight function f;
[0029] In t k At discrete communication moments, if the agent v i ,v j Cannot communicate directly, then the weight element a ij (t k )=0.
[0030] In one implementation, obtaining a binary swarming controller according to the velocity information of the neighboring agents and the weight elements includes:
[0031] In t k Discrete communication moments, get the agent v i The binary swarming controller is:
[0032]
[0033] in, is a sign function, is the agent v i The neighbor set of (v i ,v j )∈E represents the intelligent agent v i The discrete communication moment agent v j With agent v i Can establish communication, a ij (t k ) is at t k Moment Agent v i ,v j The weight element between j (t k ) is the agent v j In t k The speed information at the moment, υ i (t k ) is the agent v i In t k Speed information at the moment.
[0034] In one implementation, controlling the movement of the agent according to the binary swarming controller includes:
[0035] In t k+1 Discrete communication moments, update agent v i The position is x i (t k+1 )=x i (t k )+τ k υ i (t k), with a speed of v i (t k+1 )=υ i (t k )+τ k u i (t k ), where x i (t k ) is the agent v i In t k The location information at the moment, i (t k ) is the agent v i In t k Speed information at the moment, u i (t k ) is the agent v i In t k The binary swarming controller at time τ k =t k+1 -t k is a discrete time interval that satisfies: For the agent v i The maximum number of neighbors, in is the lower bound of the weight function f when there is a competitive relationship between the agents, is the upper bound of the weight function f when there is a cooperative relationship between the agents.
[0036] According to the agent v i The position and velocity control agent v i move.
[0037] In one implementation, the method further includes:
[0038] If k Not an agent v i The discrete communication moment of the agent v i No communication is done with neighboring agents, and the binary swarming controller is not reacquired.
[0039] In a second aspect, an embodiment of the present invention further provides a binary swarming control device for a multi-agent system under asynchronous communication, wherein the device comprises:
[0040] The relationship acquisition module is used to establish a multi-agent system and obtain the competitive or cooperative relationship between agents;
[0041] The speed and position information acquisition module is used to obtain the speed and position information of the adjacent intelligent agent;
[0042] A weight element acquisition module, used to obtain a weight element according to the weight function and the position information;
[0043] A binary swarming controller acquisition module, used to obtain a binary swarming controller according to the speed information of the adjacent intelligent agent and the weight element;
[0044] A control movement module is used to control the movement of the intelligent agent according to the binary swarming controller, and re-execute the step of obtaining the speed information and position information of the adjacent intelligent agent to achieve the update of the weight element and the binary swarming controller.
[0045] In a third aspect, the present invention further provides an intelligent terminal, wherein the intelligent terminal includes a memory, a processor, and a binary swarming control program for a multi-agent system under asynchronous communication stored in the memory and executable on the processor, and when the processor executes the binary swarming control program for the multi-agent system under asynchronous communication, the steps of the binary swarming control method for a multi-agent system under asynchronous communication as described in any one of the above items are implemented.
[0046] In a fourth aspect, an embodiment of the present invention further provides a storage medium, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the binary swarming control method for a multi-agent system under asynchronous communication as described in any of the above items.
[0047] Beneficial effects: The embodiment of the present invention first reflects the cooperative or competitive relationship between agents through weight elements. The agent only needs to communicate with its neighbors at discrete communication moments determined by its own clock to receive the speed information of the adjacent agent, and update its own binary swarming controller to control the movement trajectory of the agent. Finally, the binary swarming controller is updated through repeated iterations to realize the binary swarming behavior of the multi-agent system. The embodiment of the present invention quantifies the impact of the cooperative and competitive relationship between agents on the movement of the agents by defining a weight function, so as to promote the multi-agent system to realize the binary swarming behavior. Through the binary swarming controller under asynchronous communication, the motion trajectory update is satisfied when the clocks between the agents are independent of each other. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0049] Figure 1 It is a flow chart of a binary swarming control method for a multi-agent system under asynchronous communication provided by an embodiment of the present invention.
[0050] Figure 2 It is an interaction topology diagram between 50 nodes in the multi-agent system provided by an embodiment of the present invention.
[0051] Figure 3 This is an example diagram of the intelligent agent asynchronous communication setting provided by an embodiment of the present invention.
[0052] Figure 4 It is a schematic diagram of the motion state of an intelligent body at t=0 provided by an embodiment of the present invention.
[0053] Figure 5 3 is a schematic diagram of the motion state of an intelligent agent at t=50 provided by an embodiment of the present invention.
[0054] Figure 6 3 is a schematic diagram of the motion state of an intelligent agent at t=200 provided by an embodiment of the present invention.
[0055] Figure 7 3 is a schematic diagram of the motion state of an intelligent agent at t=500 provided by an embodiment of the present invention.
[0056] Figure 8 It is a curve chart of the change of agent speed under the asynchronous communication setting provided by an embodiment of the present invention.
[0057] Fig. 9 It is a schematic diagram of a binary swarming control device for a multi-agent system under asynchronous communication provided by an embodiment of the present invention.
[0058] Fig.10 It is a block diagram of the internal structure principle of the intelligent terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0059] In order to make the purpose, technical solution and effect of the present invention clearer and more specific, the present invention is further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0060] In the prior art, only the cooperation between agents is focused on, while the competition between agents is ignored. In addition, the clocks controlled by the agent system in the prior art are usually synchronized, while in actual engineering applications, agents usually communicate asynchronously.
[0061] In order to solve the problems of the prior art, this embodiment provides a binary swarming control method for a multi-agent system under asynchronous communication. The agent only needs to decide to communicate with the adjacent agent according to its own clock and update its own binary swarming controller to achieve asynchronous communication. By defining a weight function to quantify the impact of the cooperation and competition relationship between agents on the movement of the agent, the multi-agent system is prompted to achieve binary swarming behavior. In specific implementation, a multi-agent system is first established, and the competition or cooperation relationship between each agent in the multi-agent system is obtained. Then, a weight function is obtained according to the competition or cooperation relationship between each agent. Then, the speed information and position information of the adjacent agent are obtained, and the weight element is obtained according to the weight function and the position information. Finally, a binary swarming controller is obtained according to the speed information and weight element of the adjacent agent, and the movement of the agent is controlled according to the binary swarming controller.
[0062] Exemplary Methods
[0063] This embodiment provides a binary swarming control method for a multi-agent system under asynchronous communication, and this embodiment can be applied to a drone cluster or a robot cluster. Figure 1 As shown, the method comprises the following steps:
[0064] Step S100: establish a multi-agent system, and obtain the competition or cooperation relationship between the agents in the multi-agent system.
[0065] A multi-agent system (MAS) is a computing system composed of multiple agents interacting in an environment. Each agent in a multi-agent system is independent and autonomous, supports distributed applications, and has good modularity. MAS constructs multi-level and diversified agents using an object-oriented approach. It is a coordinated system and an integrated system. In MAS, agents communicate with each other, coordinate with each other, and solve problems in parallel, which improves the efficiency of problem solving. Intelligence can be realized by some methods, functions, processes, search algorithms or reinforcement learning. The agents in the same MAS can be isomorphic or heterogeneous. Multi-agent systems can be used to solve problems that are difficult to solve with separate agents and single-layer systems.
[0066] The binary swarming control method for a multi-agent system under asynchronous communication of this embodiment is not only applicable to cooperative relationships between agents, but also to multi-agent systems with both cooperative and competitive relationships, which is more in line with the network characteristics in real life.
[0067] For example, in this embodiment, the multi-agent system can be composed of a drone cluster or a robot cluster. Taking a drone cluster as an example, multiple drones can communicate and coordinate with each other, and at the same time, there are both competitive and cooperative relationships between the drones.
[0068] In one implementation, step S100 in this embodiment includes the following steps:
[0069] Step S101: Establish a multi-agent set The agent v n+1 For the leader agent;
[0070] Step S102: Establish a set of competitor agents The competitor agent and the leader agent v n+1 There is a competitive relationship;
[0071] Step S103: Establish a follower agent set The follower agent and the leader agent v n+1 There is a cooperative relationship;
[0072] Step S104: establishing a multi-agent system according to the competitor agent set and the follower agent set;
[0073] Step S105: If agent v i ,v j satisfy or Then get the agent v i ,v j The relationship between them is a cooperative relationship;
[0074] Step S106: If agent v i ,v j satisfy or Then get the agent v i ,v j The relationship between them is a competitive one.
[0075] Specifically, in the embodiment of the present invention, the leader agent only sends information but does not receive information. The agents that cooperate with the leader in the multi-agent cluster are follower agents. Follower agents can both receive and send information, and they constitute a follower agent set. The agents that compete with the leader in the cluster are competitor agents. Competitor agents can both receive and send information, and they constitute a competitor agent set. The multi-agent system is composed of a leader agent, a follower agent set, and a competitor agent set. If two agents belong to the follower agent set or the competitor agent set, there is a cooperative relationship between the two agents. If one of the two agents belongs to the follower agent set and the other belongs to the competitor agent set, there is a competitive relationship between the two agents. In this way, in the multi-agent system, there are both cooperative and competitive relationships between the agents.
[0076] For example, Figure 2 As shown, taking the drone cluster as an example, the drone collection contains 50 drones Among them, drone v 50 is the leader, and the other 49 drones are followers; is with the leader v 50 The collection of competing drones includes all drones with white color markings, such as drone v 13 , is with the leader v 50 The collection of cooperative drones includes all drones marked in gray, such as drone v 23 .exist Figure 2 In the game, drones of the same color have cooperative relationships, and drones of different colors have competitive relationships. For example, drone v6 and drone v 23 It is a cooperative relationship, UAV v6 and UAV v 13 It is a competitive relationship.
[0077] Step S200: obtaining a weight function according to the competition or cooperation relationship between the intelligent agents.
[0078] The weight function is a mathematical concept introduced in addition, averaging, integration or other operations to highlight the influence of a certain element. It is often used in mathematical statistics and analysis and subjects closely related to measurement. The weight function can be discrete or linear. In this embodiment, the weight function is obtained based on the competition or cooperation relationship between intelligent agents.
[0079] In one implementation, step S200 in this embodiment includes the following steps:
[0080] Step S201: If agent v i,v j If there is a cooperative relationship between them, then the weight function f is a bounded monotonically decreasing function;
[0081] Step S202: If agent v i ,v j There is a competitive relationship between them, then the weight function f is a bounded monotonically increasing function.
[0082] Specifically, in this embodiment, a weight function is defined to quantify the impact of the distance between agents on cooperation and competition. Unlike the existing swarming control algorithms, the present invention does not require the weight function to have a specific mathematical form and can be flexibly adjusted according to actual conditions. It only needs to meet the following conditions: if the agents are in a cooperative relationship, the weight function is a bounded monotonically decreasing function; if the agents are in a competitive relationship, the weight function is a bounded monotonically increasing function.
[0083] For example, take drone swarm as an example. Figure 2 For example, UAV v6 and UAV v 23 If it is a cooperative relationship, it is used to quantify the UAV v6 and UAV v 23 The weight function f of the degree of cooperation between drone v6 and drone v is a bounded monotonically decreasing function. 13 is a competitive relationship, it is used to quantify the relationship between UAV v6 and UAV v 23 The weight function f of the degree of cooperation between them can be a bounded monotonically decreasing function.
[0084] Step S300: Obtain speed information and position information of adjacent intelligent agents.
[0085] This embodiment takes into account the asynchronous communication setting of the intelligent agent system, assuming that all followers and competitors can directly or indirectly receive status information from the leader, and each follower or competitor receives the speed information and position information of the adjacent intelligent agent at the update time determined by its own clock.
[0086] For example, assuming that the update time determined by the clock of drone v6 is t0, then at t0, drone v6 can obtain its own position information x6(t0) and speed information υ0(t0). Furthermore, the neighboring drone v 23 The location information is x 23 (t0), the speed information is υ 23 (t0). Similarly, UAV v6 can obtain Figure 2 The speed and position information of all drones in the drone cluster that can establish communication.
[0087] Step S400: Obtain a weight element according to the weight function and the position information.
[0088] Specifically, in this embodiment, the degree of competition or cooperation between any two agents can be represented by a weight element. The degree of competition or cooperation between agents is related to the positional relationship between the agents. The weight element between agents can be obtained by quantifying the positional relationship between agents through a weight function.
[0089] For example, Figure 2 It can be seen that drone v6 and drone v 23 There is a cooperative relationship between the two, and the UAV v6 and UAV v 23 The weight function f is a bounded monotonically decreasing function. From step S300, it is known that the position information of UAV v6 is x6(t0), and the adjacent UAV v 23 The location information is x 23 (t0), then x6(t0) and x 23 Substituting (t0) into the weight function f, we can get UAV v6 and UAV v 23 The weight elements between them.
[0090] In one implementation, step S400 in this embodiment includes the following steps:
[0091] Step S401: at t k At discrete communication moments, if the agent v i ,v j If there is a cooperative relationship between them, the weight element a ij (t k )for:
[0092] Among them, t k For the agent v i Determines the communication time, f is the weight function, x i (t k ) is the agent v i In t k Location information at the moment, For the agent v j exist Location information at the moment, For the agent v i Determined and t k Adjacent communication moments, is the upper bound of the weight function f;
[0093] Step S402: at t k At discrete communication moments, if the agent v i ,v j There is a competitive relationship between them, then the weight element a ij (t k )for:
[0094] Among them, t k For the agent v i Determines the communication time, f is the weight function, x i (t k ) is the agent v i In t k Location information at the moment, For the agent v j exist Location information at the moment, For the agent v i Determined and t k Adjacent communication moments, is the lower bound of the weight function f;
[0095] Step S403: k At discrete communication moments, if the agent v i ,v j Cannot communicate directly, then the weight element a ij (t k )=0.
[0096] Specifically, most existing swarming controllers assume that the clocks between agents are synchronized. However, in actual engineering, this is difficult to achieve. In extreme cases, the clocks between agents are even independent of each other. Therefore, the present invention designs a binary swarming control for a multi-agent system under asynchronous communication. Examples of asynchronous communication are Figure 3 As shown, the communication moment of each agent is independent and discrete. At each discrete communication moment t k , the agents will update the weight elements between the agents. At this time, the adjacent agents may not be in the communication moment. It is necessary to determine whether the communication moment of the adjacent agents is in the adjacent communication moment determined by the agents, and then determine whether the agents can communicate. According to whether the agents can establish communication and the position relationship between the agents, the weight elements between the agents are calculated.
[0097] From the increase and decrease properties of the weight function, it can be seen that when the agents are in a cooperative relationship, the smaller the distance between the agents, the weight element is an integer, and the value of the weight element is larger. When the agents are in a competitive relationship, the smaller the distance between the agents, the weight element is a negative number, and the value of the weight element is smaller.
[0098] For example, if t k is the agent v i The discrete communication moment of agent v i Will be in t kAt the same time, the agent v j The time to communicate with neighboring agents is determined to be if is for the agent v i Determined and t k Adjacent communication moments, then the agent v i With neighboring agents v j Communication can be established between, for example, Figure 3 It can be seen that t2 is the discrete communication time of agent 2, and the communication times adjacent to t2 determined by agent 2 are t3 and t1. Then agent 1 can establish communication with agent 2 at time t3. If communication can be established between agents, agent v i You can get the neighboring agent v j The speed and position information of the agent v is obtained through the position information. i With neighboring agents v j The weight element a between ij (t k ). Specifically, if the agent v i With neighboring agents v j If there is a cooperative relationship between If the agent v j With neighboring agents v j There is a competitive relationship between them. if Not for Agent v i Determined and t k Adjacent communication moments, then the agent v j With neighboring agents v j Communication cannot be established between them. At this time, the weight element a ij (t k )=0.
[0099] In this embodiment, by defining a directed graph Describes the communication between agents, where (v i ,v j )∈ε represents the agent v j Can be used with agent v i Establish communication through weight element a ij (t k ) to get the weight matrix To indicate the degree of cooperation and competition between intelligent agents.
[0100] Step S500, obtaining a binary swarming controller according to the speed information of the adjacent agents and the weight elements.
[0101] Specifically, the binary swarming controller in this embodiment is not only applicable to cooperative relationships between intelligent agents, but also to multi-agent systems that have both cooperative and competitive relationships, which is more in line with network characteristics in real life; under the influence of the controller of the present invention, the intelligent agents in the cluster that cooperate with the leader will tend to be consistent with the leader in speed and maintain the formation unchanged; the intelligent agents in the cluster that compete with the leader will also tend to be consistent with the leader in speed in value, but the speed direction is opposite to that of the leader. In this way, the multi-agent system realizes binary swarming behavior under the action of the controller proposed in the present invention.
[0102] In one implementation, step S500 in this embodiment includes the following steps:
[0103] Step S501: at t k Discrete communication moments, get the agent v i The binary swarming controller is:
[0104]
[0105] in, is a sign function, is the agent v i The neighbor set of (v i ,v j )∈ε means that in the agent v i The discrete communication moment agent v j With agent v i Can establish communication, a ij (t k ) is at t k Moment Agent v i ,v j The weight element between j (t k ) is the agent v j In t k The speed information at the moment, υ i (t k ) is the agent v i In t k Speed information at the moment
[0106] In this embodiment, the agent v i At a discrete time set determined by its own clock Receive the speed and location information of the neighbor and update its own controller u i ,in When there is a competitive relationship between agents, a ij (t k)<0, then the sign function takes the value of -1. When the agents are in a cooperative relationship, a ij (t k )>0, when the sign function takes the value of 1, the agents in the cluster that cooperate with the leader will have their speeds consistent with that of the leader and maintain their formation unchanged. The agents in the cluster that compete with the leader will also have their speeds consistent with that of the leader in numerical value, but in the opposite direction of the leader, thus achieving binary swarming control of the agents.
[0107] Step S600, controlling the movement of the agent according to the binary swarming controller, and re-executing the step of obtaining the speed information and position information of the adjacent agents to update the weight elements and the binary swarming controller.
[0108] Specifically, by updating the speed and position information of the agent through the binary swarming controller, the movement of the agent can be controlled. At each discrete communication moment of the agent, the agent will regain the speed and position information of the adjacent agent. The weight element can be updated by updating the position information. The binary swarming controller of the agent can be updated by updating the speed information and the weight element, thereby controlling the agent to move to the updated position at the updated speed.
[0109] In one implementation, step S600 in this embodiment includes the following steps:
[0110] Step S601: at t k+1 Discrete communication moments, update agent v i The position is x i (t k+1 )=x i (t k )+τ k υ i (t k ), with a speed of v i (t k+1 )=υ i (t k )+τ k u i (t k ), where x i (t k ) is the agent v i In t k The location information at the moment, i (t k ) is the agent v i In t k Speed information at the moment, u i (t k ) is the agent vi In t k The binary swarming controller at time τ k =t k+1 -t k is a discrete time interval that satisfies: For the agent v i The maximum number of neighbors, in is the lower bound of the weight function f when there is a competitive relationship between the agents, is the upper bound of the weight function f when there is a cooperative relationship between the agents.
[0111] Step S602: According to the agent v i The position and velocity control agent v i move.
[0112] Specifically, the controller u i (t k ) is the value of agent i at t k The acceleration at the moment, according to the speed and acceleration of the intelligent body, the speed of the intelligent body at the next moment can be obtained, and according to the initial position and acceleration of the intelligent body, the target position of the intelligent body at the next moment can be obtained. The dynamic equation controlling the motion of the intelligent body is x i (t k+1 )=x i (t k )+τ k υ i (t k ), i (t k+1 )=υ i (t k )+τ k u i (t k ), and update the agent v accordingly i speed, controlling the agent to move to the new position at the updated speed.
[0113] When the next communication time is reached, the agent updates the adjacency matrix according to the weight function f The element a ij , and updates the acceleration according to the binary swarming controller. Through multiple iterations, the multi-agent system realizes the binary swarming behavior. At this point, all follower agents receive the location and speed information of their neighbors under the asynchronous communication setting, and update their own binary swarming controller. If the follower agent v i With the leader agent v 50 It is cooperative, then
[0114]
[0115]
[0116] If the follower agent v i With the leader agent v 50 is competitive, then
[0117]
[0118]
[0119] For example, Figure 4 The initial positions and velocities of 50 agents under asynchronous communication settings. The black dots represent the positions of the agents, and the arrows represent the direction of the velocities. The longer the arrows, the greater the velocities. At the initial moment, the positions and velocities of the agents are randomly distributed. Using the method proposed in the present invention, after 50 iterations, Figure 5 As shown in , the speed of the agent is still chaotic. After 200 iterations, Figure 6 As shown in , the agents are divided into two groups with opposite speeds according to the relationship between competition and cooperation. After 500 iterations, Figure 7 As shown, the cooperating agents tend to be consistent in both the direction and magnitude of their speed, and the system realizes the binary swarming phenomenon under the asynchronous communication setting. Figure 8 It is the curve of the change of agent speed in this embodiment under the asynchronous communication setting. After 800 iterations, the speed of the follower agent cooperating with the leader is consistent with that of the leader, and the speed of the agent competing with the leader is consistent with that of the leader, but the speed direction is opposite to that of the leader.
[0120] Step S700: If t k Not an agent v i The discrete communication moment of the agent v i No communication is done with neighboring agents, and the binary swarming controller is not reacquired.
[0121] Specifically, if t k Not an agent v i The discrete communication moment determined by the clock, when the agent v i Do not communicate with neighbors and therefore cannot receive messages from neighbors at t k The speed and position information at each moment is used to update its control law. i The control law at the last communication time remains unchanged. Assume that the last agent v i The communication time is t k Moment Agent v i The binary swarming controller is still
[0122] That is, the agent still moves under the control of the acceleration at the last discrete communication moment.
[0123] Exemplary Devices
[0124] Furthermore, the present invention also provides a binary swarming control device for a multi-agent system under asynchronous communication, and its principle block diagram is shown as follows: Fig. 9 As shown, the device comprises:
[0125] A relationship acquisition module 10 is used to establish a multi-agent system and obtain the competition or cooperation relationship between the agents in the multi-agent system;
[0126] A weight function acquisition module 20, used to obtain a weight function according to the competition or cooperation relationship between each of the intelligent agents;
[0127] The speed and position information acquisition module 30 is used to acquire the speed information and position information of the adjacent intelligent agent;
[0128] A weight element acquisition module 40, configured to obtain a weight element according to the weight function and the position information;
[0129] A binary swarming controller acquisition module 50, configured to obtain a binary swarming controller according to the speed information of the adjacent agents and the weight element;
[0130] The control movement module 60 is used to control the movement of the agent according to the binary swarming controller, and re-execute the step of obtaining the speed information and position information of the adjacent agents to achieve the update of the weight element and the binary swarming controller.
[0131] In one implementation, the relationship acquisition module 10 in this embodiment includes:
[0132] Multi-agent set building unit, used to build a multi-agent set The agent v n+1 For the leader agent;
[0133] Competitor agent set building unit, used to build a competitor agent set The competitor agent and the leader agent v n+1 There is a competitive relationship; follower agent set establishment unit, used to establish a follower agent set The follower agent and the leader agent v n+1 There is a cooperative relationship;
[0134] A multi-agent system establishing unit, used for establishing a multi-agent system according to the competitor agent set and the follower agent set;
[0135] The cooperation relationship acquisition unit is used for the agent v i ,v j satisfy or Then get the agent v i ,v j The relationship between them is a cooperative relationship;
[0136] The competitive relationship acquisition unit is used for the agent v i ,v j satisfy or Then get the agent v i ,v j The relationship between them is a competitive one.
[0137] In one implementation, the weight function acquisition module 20 in this embodiment includes:
[0138] The first acquisition unit of the weight function is used if the agent v i ,v j If there is a cooperative relationship between them, then the weight function f is a bounded monotonically decreasing function;
[0139] The second acquisition unit of the weight function is used if the agent v i ,v j There is a competitive relationship between them, then the weight function f is a bounded monotonically increasing function.
[0140] In one implementation, the weight element acquisition module 40 in this embodiment includes:
[0141] The first acquisition unit of the weight element is used to obtain the weight element at t k At discrete communication moments, if the agent v i ,v j If there is a cooperative relationship between them, the weight element a ij (t k )for:
[0142] The second acquisition unit of the weight element is used to obtain the weight element at t k At discrete communication moments, if the agent v i ,v j There is a competitive relationship between them, then the weight element a ij (t k )for:
[0143] The third acquisition unit of the weight element is used to obtain the weight element at t k At discrete communication moments, if the agent v i ,v jCannot communicate directly, then the weight element a ij (t k )=0.
[0144] In one implementation, the binary swarming controller acquisition module 50 in this embodiment includes:
[0145] The binary swarming controller acquires the unit for k Discrete communication moments, get the agent v i The binary swarming controller is:
[0146] In one implementation, the control movement module 60 in this embodiment includes:
[0147] Speed position update unit, used to update the position of the k+1 Discrete communication moments, update agent v i The position is x i (t k+1 )=x i (t k )+τ k υ i (t k ), with a speed of v i (t k+1 )=υ i (t k )+τ k u i (t k );
[0148] A mobile control unit is used to move the intelligent agent v i The position and velocity control agent v i move.
[0149] Update control unit for k Not an agent v i The discrete communication moment of the agent v i No communication is done with neighboring agents, and the binary swarming controller is not reacquired.
[0150] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, operating database or other media used in the embodiments provided by the present invention may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double operational data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0151] In summary, the present invention discloses a binary swarming control method for a multi-agent system under asynchronous communication, including: establishing a multi-agent system, and obtaining the competition or cooperation relationship between each agent in the multi-agent system; obtaining a weight function according to the competition or cooperation relationship between each agent; obtaining the speed information and position information of adjacent agents; obtaining a weight element according to the weight function and the position information; obtaining a binary swarming controller according to the speed information and weight element of the adjacent agents; and controlling the movement of the agents according to the binary swarming controller. The present invention designs a binary swarming controller under asynchronous communication, and the agent only needs to decide to communicate with the adjacent agent according to its own clock and update its own binary swarming controller to realize asynchronous communication. By defining a weight function to quantify the impact of the cooperation and competition relationship between agents on the movement of the agents, the multi-agent system is prompted to realize binary swarming behavior.
[0152] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A binary swarming control method for a multi-agent system under asynchronous communication, characterized in that: The method comprises: Establishing a multi-agent system and obtaining the competition or cooperation relationship between agents in the multi-agent system; Obtaining a weight function according to the competition or cooperation relationship between the agents; Obtain the speed and position information of adjacent agents; Obtaining a weight element according to the weight function and the position information; wherein the weight element is used to represent the degree of cooperation or competition between the agents in the multi-agent system; A binary swarming controller is obtained according to the velocity information of the adjacent agents and the weight elements; Controlling the movement of the agent according to the binary swarming controller, and re-performing the step of obtaining the speed information and position information of the adjacent agent to update the weight element and the binary swarming controller; The establishing of a multi-agent system and obtaining the competition or cooperation relationship between agents includes: Building a multi-agent ensemble , where the agent For the leader agent; Building a set of competitor agents , where the competitor agent and the leader agent There is a competitive relationship; Building a collection of follower agents , where the follower agent and the leader agent There is a cooperative relationship; Establishing a multi-agent system according to the set of competitor agents and the set of follower agents; If the agent satisfy or , then obtain the agent The relationship between them is a cooperative relationship; If the agent satisfy or , then obtain the agent The relationship between them is a competitive one; The obtaining of a weight element according to the weight function and the position information comprises: exist At discrete communication moments, if the agent If there is a cooperative relationship between them, the weight element for: ,in, For intelligent agents Decide when to communicate, is the weight function, For intelligent agents exist Location information at the moment, For intelligent agents exist Location information at the moment, For intelligent agents Decided and Adjacent communication moments, is the weight function The upper bound of exist At discrete communication moments, if the agent There is a competitive relationship between them, then the weight element for: ,in, For intelligent agents Decide when to communicate, is the weight function, For intelligent agents exist Location information at the moment, For intelligent agents exist Location information at the moment, For intelligent agents Decided and Adjacent communication moments, is the weight function The lower bound of exist At discrete communication moments, if the agent Cannot communicate directly, then the weight element ; The step of obtaining a binary swarming controller according to the speed information of the adjacent agents and the weight elements comprises: exist Discrete communication moments to obtain the agent The binary swarming controller is: in, is a sign function, It is an intelligent agent The neighbor set of Indicates in the agent Discrete communication moment agent With Agent Can establish communication, For Moment Agent The weight elements between For intelligent agents exist Speed information at the moment, For intelligent agents exist Speed information at the moment; The controlling the movement of the agent according to the binary swarming controller comprises: exist Discrete communication moments, updating agents The location is , the speed is ,in, For intelligent agents exist Location information at the moment, For intelligent agents exist Speed information at the moment, For intelligent agents exist The binary swarm controller of the moment, is a discrete time interval that satisfies: , For intelligent agents The maximum number of neighbors, ,in The weight function when there is a competitive relationship between the agents The lower bound of is the weight function when there is a cooperative relationship between the agents The upper bound of According to the intelligent Position and velocity control agent move.
2. The binary swarming control method for a multi-agent system under asynchronous communication according to claim 1, characterized in that: The weight function is obtained according to the competition or cooperation relationship between the intelligent agents, including: If the agent If there is a cooperative relationship between them, the weight function is obtained is a bounded monotonically decreasing function; If the agent There is a competitive relationship between them, then the weight function is obtained is a bounded monotonically increasing function.
3. The binary swarming control method for a multi-agent system under asynchronous communication according to claim 1, characterized in that: The method further comprises: like Not an intelligent agent The discrete communication moment of the agent No communication is done with neighboring agents, and the binary swarming controller is not reacquired.
4. A binary swarming control device for a multi-agent system under asynchronous communication, characterized in that: The device comprises: A relationship acquisition module, used to establish a multi-agent system and obtain the competition or cooperation relationship between each agent in the multi-agent system; A weight function acquisition module, used to obtain a weight function according to the competition or cooperation relationship between each of the intelligent agents; The speed and position information acquisition module is used to obtain the speed and position information of the adjacent intelligent agent; A weight element acquisition module, used to obtain a weight element according to the weight function and the position information; A binary swarming controller acquisition module, used to obtain a binary swarming controller according to the speed information of the adjacent intelligent agent and the weight element; A control movement module, used for controlling the movement of the agent according to the binary swarming controller, and re-executing the step of obtaining the speed information and position information of the adjacent agent to update the weight element and the binary swarming controller; The relationship acquisition module includes: Multi-agent set building unit, used to build a multi-agent set , where the agent For the leader agent; Competitor agent set building unit, used to build a competitor agent set , where the competitor agent and the leader agent There is a competitive relationship; Follower agent set establishment unit, used to establish a follower agent set , where the follower agent and the leader agent There is a cooperative relationship; A multi-agent system establishing unit, used for establishing a multi-agent system according to the competitor agent set and the follower agent set; Cooperation acquisition unit, used for agents satisfy or , then obtain the agent The relationship between them is a cooperative relationship; Competition relationship acquisition unit, used for agents satisfy or , then obtain the agent The relationship between them is a competitive one; The weight element acquisition module includes: The first weight element acquisition unit is used to At discrete communication moments, if the agent If there is a cooperative relationship between them, the weight element for ,in, For intelligent agents Decide when to communicate, is the weight function, For intelligent agents exist Location information at the moment, For intelligent agents exist Location information at the moment, For intelligent agents Decided and Adjacent communication moments, is the weight function The upper bound of The second weight element acquisition unit is used to At discrete communication moments, if the agent There is a competitive relationship between them, then the weight element for: ,in, For intelligent agents Decide when to communicate, is the weight function, For intelligent agents exist Location information at the moment, For intelligent agents exist Location information at the moment, For intelligent agents Decided and Adjacent communication moments, is the weight function The lower bound of The third acquisition unit of the weight element is used to At discrete communication moments, if the agent Cannot communicate directly, then the weight element ; The binary swarming controller acquisition module includes: The binary swarming controller acquires the unit for Discrete communication moments to obtain the agent The binary swarming controller is: ,in, is a sign function, It is an intelligent agent The neighbor set of Indicates in the agent Discrete communication moment agent With Agent Can establish communication, For Moment Agent The weight elements between For intelligent agents exist Speed information at the moment, For intelligent agents exist Speed information at the moment; The control movement module comprises: Speed position update unit, used to Discrete communication moments, updating agents The location is , the speed is in, For intelligent agents exist Location information at the moment, For intelligent agents exist Speed information at the moment, For intelligent agents exist The binary swarm controller of the moment, is a discrete time interval that satisfies: , For intelligent agents The maximum number of neighbors, ,in The weight function when there is a competitive relationship between the agents The lower bound of is the weight function when there is a cooperative relationship between the agents The upper bound of A mobile control unit is used to control the movement of the intelligent agent vi according to the position and speed of the intelligent agent vi.
5. An intelligent terminal, characterized in that: The intelligent terminal includes a memory, a processor, and a binary swarming control program for a multi-agent system under asynchronous communication, which is stored in the memory and can be run on the processor. When the processor executes the binary swarming control program for the multi-agent system under asynchronous communication, the steps of the binary swarming control method for a multi-agent system under asynchronous communication as described in any one of claims 1 to 3 are implemented.
6. A storage medium, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the binary swarming control method of a multi-agent system under asynchronous communication as described in any one of claims 1-3 above.
