Anti-synchronization optimization control method for multi-agent systems under cooperative competition
By determining the topological structure and designing adaptive cooperative competition intensity functions in a multi-agent system, and using the Actor-Critic network structure to approximate control of action and performance functions, the problem of poor optimization in the existing technology is solved and the convergence of the system is improved and robustness, suitable for countersynchronous control under cooperative and competitive relationships.
Patent Information
- Application Number
- CN202210751251.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-28
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2042-06-28
AI Technical Summary
The existing multi-agent system research rarely considers optimization issues, especially when the agile computing power and storage are limited and the task complexity is high, the optimization is poor, and the existing research ignores the consistency of the cooperation-competitive relationship to the system. Influence.
By determining the system topology structure and Laplace connection matrix, designing adaptive cooperative competition intensity functions, building a local error system, using the Actor-Critic network structure to approximate the control action and performance functions of the agent, and using experience playback and target network technology , realize the anti-synchronous optimization control of multi-agent systems under cooperative and competitive relationships.
It improves the convergence and robustness of the multi-agent system, is suitable for situations where the system's accurate model is unknown, enhances the exploration ability of the agent and the environment, and realizes faster state convergence and stable control strategies.
Smart Images

Figure CN114995157B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent agent control methods, and in particular to an anti-synchronization optimization control method for a multi-agent system under a cooperative and competitive relationship. Background Art
[0002] In recent years, inspired by the clustering behavior of organisms in nature, experts and scholars have applied the consistency of multi-agent systems (MASs) to the collaborative control of complex systems. The consistency problem of multi-agent systems has important application prospects in the fields of smart grids, formation control, and drone clusters.
[0003] The consensus problem is a fundamental phenomenon for multi-agent systems. All agents achieve the same state through information exchange under the action of a consensus control protocol. In the past few years, most studies on consensus control have assumed a cooperative relationship between agents. However, in the real world, cooperative competition is also common. For example, in two alliances, the two sides hold opposite views and the members of each party reach an internal consensus. Obviously, it is meaningful to study the interaction of cooperative competition.
[0004] The existing research on the relationship between multi-agent systems mainly falls into the following categories:
[0005] Cooperation: There is only cooperation between the entire intelligent system. This model ignores the competition between multiple intelligent agents due to limited resources;
[0006] The cooperator competition relationship takes into account the cooperator competition relationship between agents, but ignores the effect of the intensity of cooperative competition on the convergence speed of the multi-agent system to reach consistency;
[0007] Most of the research works mentioned above are based on a single cooperative or competitive relationship. However, the limited resources in reality trigger competitive behaviors among agents and cooperative behaviors of joint collaboration, making the cooperative-competitive relationship among agents common in complex systems. The coexistence of cooperative-competitive relationships is more in line with practical needs. In existing research works, optimization problems are rarely considered. However, in practice, due to the limited computing power and storage of agents and the complexity of tasks, the optimization problem of multi-agent systems is an issue worth considering. Summary of the invention
[0008] The technical problem to be solved by the present invention is: how to solve the optimization problem that is less considered in existing research work. However, in practice, due to the limited computing power and storage of the agent and the complexity of the task, the optimization problem of the multi-agent system is poor. A method for anti-synchronization optimization control of the multi-agent system under a cooperative and competitive relationship is provided.
[0009] The present invention solves the above technical problems through the following technical solutions, and the present invention comprises the following steps:
[0010] S1: Determine the topological structure and Laplace connection matrix of the system according to the complexity of the connections between the multi-agent system;
[0011] S2: Create an adaptive cooperative competition intensity function, based on which, build a new local error system and redefine a reasonable performance function;
[0012] The multi-agent system includes a leader and a follower mode. Each agent contains its own state information. The state information of the i-th agent is represented by x i (k), x j (k) represents the state information of the jth agent. The cooperation or competition relationship between any two agents is expressed as: j (k)-x i (k) and x j (k)+x i (k);
[0013] S3: When the precise model of the multi-agent system is unknown, the Actor-Critic network structure is used to approximate the control actions and performance functions of the agents respectively;
[0014] S4: The Critic evaluates the approximate control actions of the Actor, and the Actor adjusts the control actions based on the Critic's evaluation. The entire process is updated using gradient descent. Experience replay and target network technology are added when training the neural network parameters. When the neural network parameters tend to be stable, the optimal anti-synchronization control strategy is obtained.
[0015] Furthermore, when S2 designs the adaptive cooperative competition intensity function, an improved DDPG algorithm is used to approximate the unknown precise model for optimal anti-synchronization control of the multi-agent system.
[0016] Furthermore, the adaptive cooperative competition intensity function in S2 is as follows:
[0017]
[0018] Among them, the expression of the sigmoid function is
[0019] Based on this, the internal error system is reconstructed
[0020]
[0021] where g i Indicates whether there is information exchange between followers and leaders, g i=1 indicates that there is information exchange between followers and leaders, g i =0 means none; x0(k) represents the leader's status information, a ij represents the connection relationship between agents, a ij =1 indicates that there is a cooperative relationship between the agents, a ij =-1 indicates that there is a competitive relationship between the agents.
[0022] Furthermore, in the leader and follower mode in S2, the dynamic equation of the leader and the dynamic equation of the follower are set, wherein:
[0023] The Leader’s Dynamic Equation:
[0024] x0(k+1)=Ax0(k)
[0025] The dynamic equation of the follower:
[0026] x i (k+1)=Ax i (k)+B i μ i (k);
[0027] Among them, μ i (k) represents the control input A, B of agent i at time k i is the constant moment of the unknown suitable dimension.
[0028] Furthermore, the process of designing the adaptive cooperative competition intensity function in S2 is as follows:
[0029]
[0030] Among them, the expression of the sigmoid function is
[0031] Based on this, the local error system is reconstructed, namely:
[0032]
[0033] Therefore, the compact form of the local error system is:
[0034]
[0035] in, and denote Kronecker product and Hadamard product respectively;
[0036] I n represents the n-dimensional identity matrix;
[0037] Define reasonable performance functions
[0038]
[0039] in Weight matrix Q ii ≥0, and R ii >0 is a symmetric matrix.
[0040] Furthermore, the Actor-Critic network structure is used in S3 to respectively approximate the control action and performance function of the intelligent agent;
[0041] Neural network approximation of control actions:
[0042] Neural network approximation of the performance function:
[0043] Furthermore, in said S4:
[0044] Critic network: The Critic network evaluates the quality of the agent's actions through the output of the action value function. For the Critic network, the following network structure is approximated
[0045]
[0046] where z ci (k)=(e i (k),μ i (e i (k))) is the input vector of the Critic network containing action and related position information, Represents the activation function.
[0047] By the difference method:
[0048]
[0049] in and The critic network and target critic network are used for approximation, and the neural network parameters are W and ci,now and
[0050] The goal is to train the Critic network so that the function Minimum, here the gradient descent method is used to adjust the neural network parameters, so the weight update of the Critic network is as follows
[0051]
[0052] Among them, β c ∈(0,1] is the learning rate.
[0053] Actor Network: Actor network is used to approximate control strategy, which is represented as follows:
[0054]
[0055] Among them, e i (k) is the input of the Actor network containing information about agent i and its neighbors. In order to obtain the optimal control strategy, as l→∞, the control strategy Approximating the optimal target control strategy using neural network method
[0056]
[0057] Since the above approximation method is not suitable for continuous action space, the algorithm proposed in this paper is used
[0058]
[0059] Therefore, the network weight update of the Actor network is expressed as:
[0060]
[0061] where β c ∈(0,1] is the learning rate.
[0062] Compared with the prior art, the present invention has the following advantages:
[0063] 1. The multi-agent system of the present invention includes multi-agents in a cooperative-competitive relationship. The agents are divided into two groups according to the interactive relationship between the agents in the multi-agent system. This complex internal relationship is more realistic than a single cooperative or competitive relationship, and ultimately achieves anti-synchronous control.
[0064] 2. The adaptive cooperative competition intensity function proposed in the present invention can effectively improve the convergence and robustness of the multi-agent system.
[0065] 3. The multi-agent system of the present invention is a system whose precise model is unknown. Compared with the traditional optimization method, which requires the precise model to be known, in many practical situations, the precise model of the system is unknown or difficult to obtain. The Actor-Critic framework proposed in the present invention can better solve the situation where the precise model of the system is unknown.
[0066] 4. The technical method of increasing the experience pool and the target network proposed in the present invention can effectively improve the exploration of the intelligent agent and the environment, and ultimately improve convergence. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] Figure 1 It is the overall flow chart of the present invention;
[0068] Figure 2 is a topological diagram that may appear during the system convergence process of the present invention;
[0069] Figure 3 This is an evolution diagram of the first component of the agent state of the comparative experiment of the present invention;
[0070] Figure 4 This is an evolution diagram of the second component of the agent state of the comparative experiment of the present invention;
[0071] Figure 5 It is the approximate optimization control evolution diagram of the comparative experiment of the present invention;
[0072] Figure 6 is an evolution diagram of the first component of the agent state of the present invention;
[0073] Figure 7 is an evolution diagram of the second component of the agent state of the present invention;
[0074] Figure 8 It is the approximate optimization control evolution diagram of the present invention;
[0075] Fig. 9 It is the convergence diagram of the cooperation and competition intensity parameters of the present invention;
[0076] Fig.10 It is the Actor-Critic interaction diagram in the present invention. DETAILED DESCRIPTION
[0077] The following is a detailed description of an embodiment of the present invention. This embodiment is implemented on the premise of the technical solution of the present invention, and a detailed implementation method and a specific operation process are given, but the protection scope of the present invention is not limited to the following embodiment.
[0078] like Figure 1 As shown, this embodiment provides a technical solution: an anti-synchronization optimization control method of a multi-agent system under a cooperative competition relationship, the method includes but is not limited to the following steps:
[0079] S1. According to the connection complexity (cooperative and competitive relationship) between multi-agent systems, determine the topological structure and Laplace connection matrix of the system;
[0080] S2, create an adaptive cooperative competition intensity function, based on which, build a new local error system and redefine a reasonable performance function;
[0081] The multi-agent system consists of a leader and a follower model. Each agent contains its own state information. The state information of the i-th agent is represented by x i (k), x j (k) represents the state information of the jth agent, and the cooperation or competition relationship between any two agents is represented by x j (k)-x i (k) and x j (k)+x i (k); Designing adaptive cooperation and competition intensity function
[0082]
[0083] Among them, the expression of the sigmoid function is T stands for transpose.
[0084] Based on this, the local error system is reconstructed
[0085]
[0086] Therefore, the compact form of the local error system is:
[0087]
[0088] in, and represent Kronecker product and Hadamard product respectively.
[0089] I n Represents the n-dimensional identity matrix.
[0090] Define reasonable performance functions
[0091]
[0092] in Weight matrix Q ii ≥0, and R ii >0 is a symmetric matrix.
[0093] S3, using the actor-critic network structure to approximate the control actions and performance functions of the intelligent agent respectively;
[0094] Neural network approximation of control actions:
[0095] Neural network approximation of the performance function:
[0096] S4. Critic evaluates the approximate control actions of the Actor, and the Actor adjusts the control actions based on the Critic's evaluation. The whole process is updated using gradient descent. Experience replay and target network technology are added when training the neural network parameters, so that the agent can fully explore the environment. When the neural network parameters tend to be stable, the control strategy that enables the system to achieve optimal anti-synchronization is found.
[0097] Critic network: The Critic network evaluates the quality of the agent's actions through the output of the action value function. For the Critic network, the following network structure is approximated
[0098]
[0099] where z ci (k)=(e i (k),μ i (e i (k))) is the input vector of the Critic network containing action and related position information, Represents the activation function.
[0100] By the difference method:
[0101]
[0102] in and Use the Critic network and the target Critic network to approximate respectively. The Critic network is used to estimate the performance function Its neural network parameters are W ci,now In order to make the multi-agent system more stable during training, the neural network parameters of the target critic network are The goal is to train the Critic network so that the function Minimum. The gradient descent method is used here to adjust the neural network parameters. Therefore, the weight update of the Critic network is as follows
[0103]
[0104] Among them, β c ∈(0,1] is the learning rate.
[0105] Actor Network: Actor network is used to approximate control strategy, which is represented as follows:
[0106]
[0107] Among them, e i(k) is the input of the Actor network containing information about agent i and its neighbors. In order to obtain the optimal control strategy, as l→∞, the control strategy Approximating the optimal target control strategy using neural network method Enables performance functions Take the minimum value.
[0108]
[0109] Since the above approximation method is not suitable for continuous action space, the adaptive cooperative competition intensity function in this case is used to obtain:
[0110]
[0111] Therefore, the network weight update of the Actor network is expressed as:
[0112]
[0113] The specific update method is as follows:
[0114] Algorithm 1: CS-DDPG
[0115] initialization:
[0116] 1: Initialize the leader x0(0) and follower x respectively i (0) status;
[0117] 2: Initialize local error e i (0);
[0118] 3: Randomly initialize the Critic and Actor neural network parameters in (0,1); the initialization neural network parameters of the target Critic and target Actor are the same as the Critic and Actor neural network parameters;
[0119] 4: β a and β c is the learning rate; b is the capacity of the experience pool; τ is a hyperparameter, in this algorithm, τ = 0.0001;
[0120] Iteration:
[0121] 5: Let k = 0, l = 0;
[0122] 6: Neural network approximate control action:
[0123] 7: Neural network approximate performance function:
[0124] 8: Calculate the loss value of Critic:
[0125]
[0126] 9: Update Critic neural network parameters:
[0127] 10: Update Actor neural network parameters:
[0128]
[0129] 11: Update critic target network parameters:
[0130] 12: Update actor target network parameters:
[0131] 13:If
[0132] 14:end;
[0133] 15: else let l+l+1, k=k+1 and repeat 6-12;
[0134] 16:end.
[0135] To make the update process more intuitive, use Fig.10 for display.
[0136] In order to verify the effectiveness of the proposed optimal anti-synchronization control based on adaptive cooperation-competition intensity, Matlab is used for simulation verification. Figure 2 The experimental topology is a multi-agent system with a leader-follower mode consisting of 5 nodes, where nodes 1, 2, 3, and 4 represent followers and node 0 represents the leader. Figure 2 , the agents are divided into two subgroups (agents 1 and 3 belong to one subgroup, and agents 2 and 4 belong to another subgroup). The solid line indicates that the agents are in a cooperative relationship, and the dotted line indicates that the agents are in a competitive relationship. It is worth noting that agents 1 and 2 will obtain information from the leader 0. The leader can act as a coordinator between the two subgroups.
[0137] The relevant parameters in the present invention are:
[0138] G=diag{1,1,0,0},C=diag{1,-1,1,-1}
[0139] Connection Matrix: Laplacian matrix:
[0140] The system related parameters are:
[0141] R 11 =R 22 =R 33 =R 44 =1, learning rate β a =β c =0.05.
[0142] From the simulation results, we can see that Figure 3 and Figure 4 In Figure 1, the state trajectories of four followers and one leader are shown. Then, we can conclude that the agent finally achieves anti-synchronization. The evolution of the near-optimal controller is shown in Figure 5 As shown, the controller oscillates strongly before reaching convergence.
[0143] In order to further verify the advantages of the present invention, the same agent dynamic system, topology, initial value of system state, critic weight, actor weight and other related parameters as given above can be used.
[0144] Will Figure 3 and Figure 6 , Figure 4 and Figure 7 Comparing under the same parameters, we found Figure 6 and Figure 7 The convergence speed of the middle state is faster, which means that the convergence speed of the agent can be adjusted by controlling the intensity of cooperative competition. To further illustrate the advantages of the proposed algorithm, Figure 5 and Figure 8 Comparative simulation results are given to describe the evolution of the controller. It is clear that Figure 8 The curve in is more stable and converges faster. This shows that the algorithm can generate a better controller.
[0145] Previous studies have shown that choosing inappropriate cooperation and competition intensity parameters can lead to instability in multi-agent systems. By designing an adaptive cooperation and competition intensity function, when a multi-agent system with cooperation and competition interactions finally reaches anti-synchronous consistency, the corresponding cooperation and competition intensity parameters converge to the optimal value (see Fig. 9 ), without the need to manually adjust the coordination parameters, ensuring the stability of the system and improving the robustness of the system.
[0146] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0147] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0148] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. Anti-synchronous optimization control method for multi-agent system under cooperative competition relationship, characterized in that: The following steps are involved: S1: Determine the topological structure and Laplace connection matrix of the system according to the connection complexity between the multi-agent system; S2: Create an adaptive cooperative competition intensity function, based on which, build a new local error system and redefine a reasonable performance function; The multi-agent system includes a leader and a follower mode. Each agent contains its own state information. The state information of the i-th agent is represented by x i (k), x j (k) represents the state information of the jth agent, and the cooperation or competition relationship between any two agents is expressed as: j (k)-x i (k) and x j (k)+x i (k); S3: When the precise model of the multi-agent system is unknown, the Actor-Critic network structure is used to approximate the control actions and performance functions of the agents respectively; S4: The Critic evaluates the Actor's approximate control actions, and the Actor adjusts the control actions based on the Critic's evaluation. The entire process uses gradient descent updates. Experience replay and target network technology are added when training neural network parameters. When the neural network parameters tend to be stable, the optimal anti-synchronization control strategy is obtained. When the S2 designs the adaptive cooperative competition intensity function, the improved DDPG algorithm is used to approximate the unknown precise model for optimal anti-synchronization control of the multi-agent system; The adaptive cooperative competition intensity function in S2 is as follows: Among them, the expression of the sigmoid function is Based on this, the internal error system is reconstructed where g i Indicates whether there is information exchange between followers and leaders, g i =1 indicates that there is information exchange between followers and leaders, g i =0 means none; x0(k) represents the leader's status information, a ij represents the connection relationship between agents, a ij =1 indicates that there is a cooperative relationship between the agents, a ij =-1 indicates that there is a competitive relationship between the agents.
2. The anti-synchronization optimization control method of a multi-agent system under cooperative competition according to claim 1, characterized in that: The leader and follower mode in S2 sets the dynamic equation of the leader and the dynamic equation of the follower, where: The Leader’s Dynamic Equation: x0(k+1)=Ax0(k) The dynamic equation of the follower: x i (k+1)=Ax i (k)+B i μ i (k); Among them, μ i (k) represents the control input of agent i at time k, A, B i is a constant matrix of unknown suitable dimension.
3. The anti-synchronization optimization control method of a multi-agent system under cooperative competition according to claim 1, characterized in that: The process of designing the adaptive cooperative competition intensity function in S2 is as follows: Based on this, the local error system is reconstructed, namely: Therefore, the compact form of the local error system is: in, and denote Kronecker product and Hadamard product respectively; I n represents the n-dimensional identity matrix; Define reasonable performance functions in Weight matrix Q ii ≥0, and R ii >0 is a symmetric matrix.
4. The anti-synchronization optimization control method of a multi-agent system under cooperative competition according to claim 1, characterized in that: In the S3, the Actor-Critic network structure is used to approximate the control action and performance function of the intelligent agent respectively; Neural network approximation of control actions: Neural network approximation of the performance function:
5. The anti-synchronization optimization control method of a multi-agent system under cooperative competition according to claim 1, characterized in that: In S4: Critic network: The Critic network evaluates the quality of the agent's actions through the output of the action value function. For the Critic network, the following network structure is approximated where z ci (k)=(e i (k),μ i (e i (k))) is the input vector of the Critic network containing action and related position information, represents the activation function; By the difference method: in and The critic network and target critic network are used for approximation, and the neural network parameters are W and ci,now and The goal is to train the Critic network so that the function Minimum, here the gradient descent method is used to adjust the neural network parameters, so the weight update of the Critic network is as follows Among them, β c ∈(0,1] is the learning rate; Actor Network: Actor network is used to approximate control strategy, which is represented as follows: Among them, e i (k) is the input of the Actor network containing information about agent i and its neighbors. In order to obtain the optimal control strategy, as l→∞, the control strategy Approximating the optimal target control strategy using neural network method Since the above approximation method is not suitable for continuous action space, the algorithm proposed in this paper is used Therefore, the network weight update of the Actor network is expressed as: where β c ∈(0,1] is the learning rate.
