A multi-agent consistency collaborative control method based on deep reinforcement learning

By constructing a communication topology and dynamic model for a multi-agent system through deep reinforcement learning, and combining a flexible action evaluation algorithm and entropy maximization reward, the problems of high cost and hyperparameter dependence in multi-agent systems are solved, and efficient consistent cooperative control and adaptive capabilities are achieved.

CN117970791BActive Publication Date: 2026-11-24CHONGQING UNIV OF POSTS & TELECOMM
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311676430.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-07
Publication Date
2026-11-24
Estimated Expiration
2043-12-07

AI Technical Summary

Technical Problem

In multi-agent systems, existing reinforcement learning methods are costly when dealing with complex samples and high-dimensional observations of complex behaviors, and are highly dependent on hyperparameters, making it difficult to achieve efficient model-free optimal control, especially when the system model parameters change.

Method used

A deep reinforcement learning-based approach is adopted to construct a communication topology and a dynamic model of a second-order continuous system. A neural network based on a flexible action evaluation algorithm is used to drive training through consistency error and improve the reward objective by combining entropy maximization terms, thereby achieving cooperative control among agents.

Benefits of technology

It achieves efficient and consistent collaborative control in complex multi-agent systems, adapts to changes in system parameters, meets performance indicators, and improves the balance and robustness of exploration and utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117970791B_ABST
    Figure CN117970791B_ABST
Patent Text Reader

Abstract

The application belongs to the field of multi-agent cooperative control, and particularly relates to a multi-agent consistency cooperative control method based on deep reinforcement learning, which comprises the following steps: constructing a communication topology by taking each agent of a linear multi-agent system as a communication node; constructing a dynamic model of the agent in a second-order continuous system according to algebraic graph theory and initializing the system; constructing a consistency error of the system according to the state information of each agent and its neighbor agent, and each agent reaching consistency when the consistency error of the system is stable; setting a neural network based on a flexible action-evaluation algorithm; each agent communicating with each other according to the communication topology, constantly obtaining the state information of the neighbor agent and saving its own state information in the communication process; enabling a training mode to update the parameters in the neural network when the consistency error exceeds the allowable range; and updating all agents through a policy network when the cooperative error is within the allowable range.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of multi-agent cooperative control, specifically relating to a multi-agent consensus cooperative control method based on deep reinforcement learning. Background Technology

[0002] Multi-agent systems (MAS) are systems composed of individuals that communicate with each other and their environment to accomplish complex tasks. They are widely used in intelligent robotics, traffic control, logistics scheduling, gaming, and the Internet of Things (IoT). In MAS tasks, the consensus problem is one of the most fundamental problems in complex network systems and has received widespread attention. Generally, it can be divided into two sub-problems: leaderless consensus and leader-follower consensus. In a leaderless system, each agent tends to reach consensus on some uncertain state. In a leader-follower system, the follower's state should eventually be the same as the leader's state. Meanwhile, people seek to satisfy more specific performance indicators, such as energy consumption, efficiency, and accuracy; these are called optimal consensus problems. However, it is important to note that the above results are derived under the premise of a known system model. On the other hand, system modeling can be difficult and time-consuming in some cases, and the difficulty increases with the complexity of the system, which is disastrous for swarm intelligence systems. Furthermore, model parameters may vary due to factors such as the age of the electronic product, temperature, humidity, magnetic fields, and others. Therefore, research on data-driven optimal consensus control techniques has become increasingly popular in recent years.

[0003] Reinforcement learning (RL) is a branch of artificial intelligence that aims to determine the optimal policy through trial and error, data collection, and empirical learning. These methods are advantageous for achieving model-free optimal control because they do not require all information about the system, only needing to build the optimal solution based on observations. To date, reinforcement learning methods have been widely applied in various fields, such as constrained optimal control, time-delay optimal control, and zero-sum games. Furthermore, it has seen some initial applications in model-free systems (MAS). However, these model-free methods still have some aspects that need improvement. For example, these methods are very costly in terms of sample complexity; even relatively simple tasks require a large number of steps for data collection, and complex behaviors observed in high dimensions may require even more. Offline learning algorithms can alleviate this problem to some extent. However, common offline learning algorithms, such as DDPG, are fragile in terms of hyperparameters, namely the learning rate, which needs to be carefully set for different problems to achieve good results. Therefore, the SAC algorithm was introduced, utilizing the maximum entropy framework to add an entropy maximization term to the reward objective of standard reinforcement learning, thus changing the objective of reinforcement learning. This provides substantial improvements in balancing exploration and exploitation with robustness. Summary of the Invention

[0004] To address the shortcomings of existing technologies, this invention proposes a multi-agent consensus cooperative control method based on deep reinforcement learning, which includes:

[0005] S1: Construct a communication topology by treating each agent in a linear multi-agent system as a communication node;

[0006] S2: Construct a dynamic model of the agent in a second-order continuous system based on algebraic graph theory and initialize the system;

[0007] S3: Construct the system's consistency error based on the state information of each agent and its neighboring agents. When the system's consistency error is stable, all agents reach consistency.

[0008] S4: Set up a neural network based on the flexible motion-evaluation algorithm;

[0009] S5: Each agent communicates with each other according to the communication topology, and continuously acquires the state information of neighboring agents and saves its own state information during the communication process;

[0010] S6: When the consistency error exceeds the allowable range, the training mode is activated to update the parameters in the neural network; when the cooperation error is within the allowable range, all agents are updated through the policy network.

[0011] Furthermore, the process of constructing the communication topology includes: establishing an N+1 order undirected graph. ,in N represents the number of communication nodes in the multi-agent system. In this invention, the device or node acting as the leader is not controlled by the neural network but can be manually operated or controlled. The leader's position can influence the actions of the neural network-controlled agents as an environmental factor. Describe the set of edges. The set representing edge weights, For communication nodes To communication node The weight of an ordered pair of edges is given if and only if the node and nodes When there is no edge between That is, to obtain the set of neighboring nodes for each communication node. The degree matrix is ​​represented as ,in , Let L be the number of neighbors, and the Laplace matrix be represented as L = D − A.

[0012] Furthermore, the consensus error of agents in a second-order continuous system is:

[0013]

[0014] in, For the first Consistency error of each following agent; Represents communication node All neighboring nodes; For communication nodes To communication node The weights of ordered edges; Represents a node The weight of the ordered edge to the leader is given if and only if the node When there is no boundary between the leader and the leader, ; Indicates the first The position of the following agent; Indicates the leader's position; Indicates the first The speed of the following agent.

[0015] Furthermore, the consistency error of each agent constitutes the global error vector of the system, denoted as: The consistency error of the entire system is expressed as:

[0016]

[0017] in, It is a Laplace matrix; The connection matrix between nodes and leaders is represented as follows: ; For the position of leader; For the speed of the leader.

[0018] Furthermore, the neural network based on the flexible action-evaluation algorithm includes two action value networks, two target action value networks, and a policy network. The action value networks are used to evaluate the state. and actions The value of a target action under certain conditions is evaluated using a value network. and actions The value under certain conditions is used to calculate the iterative reward; the policy network is used to select action vectors based on the consistency error of the system.

[0019] Furthermore, the action value network is a backpropagation neural network that concatenates the system's consistency error and the actions of each following agent as input to the action value network, represented as follows: The neural network outputs the values ​​of state-action pairs. The structure of the action-value network is represented as follows:

[0020]

[0021] in, This represents the ReLU activation function. Indicating the first in the value network The output of the hidden layer, Indicating the first in the value network The weight matrix of each hidden layer Indicating the first in the value network The bias matrix of each hidden layer , Indicates the total number of layers in the value network; This is the output of the last layer of the value network.

[0022] Furthermore, the policy network is a backpropagation neural network, with the system's consistency error as input and the action vector as output. The structure of the policy network is represented as follows:

[0023]

[0024] in, This represents the ReLU activation function. This represents the tanh activation function; This represents the output of the i-th hidden layer in the policy network. This represents the weight matrix of the i-th hidden layer in the policy network. Let a represent the bias matrix of the i-th hidden layer in the policy network, where i∈{1,2,…,n_a}. Indicates the total number of layers in the value network; This is the output of the last layer of the value network.

[0025] Furthermore, in a neural network based on a flexible action-evaluation algorithm, the loss function of any action value network is expressed as:

[0026]

[0027] in, The loss function represents the action value network; Representational Policy Network The parameters, The parameters representing the action value network, Indicates the first Parameters of the value network for each target action; This indicates calculating the mean. Indicates the state and actions The output of the action value network under the given conditions; Indicates the discount factor; Indicates the state and actions The output of the target action value network under the given conditions, state Based on a set of empirical data retrieved from the experience pool, the set of data retrieved from the experience pool R is represented as follows: , express The state of the intelligent agent at all times. express The actions chosen by the agent at any given moment express The rewards of time;

[0028] The loss function of the policy network is expressed as:

[0029]

[0030] in, The loss function of the policy network is represented; Let N represent a noisy random variable that follows a Gaussian distribution; Indicates the learning rate; Indicates the state and noisy random variables The actions obtained by sampling the strategy using a Gaussian distribution under the given conditions; Indicates the state The output of the action value network under the condition of sampling the action;

[0031] The loss function based on the learning rate is expressed as:

[0032]

[0033] in, This represents the target value of the entropy of the policy network.

[0034] This invention, based on deep reinforcement learning, derives several consensus principles for led second-order continuous systems, addressing the problems of dimensionality explosion and hyperparameter dependence in practical situations. This strategy not only achieves optimal state consensus in multi-agent systems, satisfying more specific performance metrics, but also adapts to changes in model parameters due to factors such as the age of electronic products, temperature, humidity, magnetic fields, and others. Adding an entropy maximization term to the standard reinforcement learning reward objective alters the learning goal, providing substantial improvements in balancing exploration and exploitation with robustness. Attached Figure Description

[0035] Figure 1 This is a flowchart of the multi-agent consensus cooperative control method based on event-triggered pulses in this invention;

[0036] Figure 2 This is a topology diagram of an intelligent agent system according to a preferred embodiment of the present invention. Detailed Implementation

[0037] 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 skilled in the art without creative effort are within the scope of protection of the present invention.

[0038] This invention proposes a multi-agent consensus cooperative control method based on deep reinforcement learning, which includes:

[0039] S1: Construct a communication topology by treating each agent in a linear multi-agent system as a communication node;

[0040] S2: Construct a dynamic model of the agent in a second-order continuous system based on algebraic graph theory and initialize the system;

[0041] S3: Construct the system's consistency error based on the state information of each agent and its neighboring agents. When the system's consistency error is stable, all agents reach consistency.

[0042] S4: Set up a neural network based on the flexible motion-evaluation algorithm;

[0043] S5: Each agent communicates with each other according to the communication topology, and continuously acquires the state information of neighboring agents and saves its own state information during the communication process;

[0044] S6: When the consistency error exceeds the allowable range, the training mode is activated to update the parameters in the neural network; when the cooperation error is within the allowable range, all agents are updated through the policy network.

[0045] This invention proposes a multi-agent consensus cooperative control method based on deep reinforcement learning, such as... Figure 1 As shown, the method includes the following:

[0046] S1: Construct a communication topology by treating each agent of the linear multi-agent system as a communication node.

[0047] Algebraic graph theory is an important tool for studying multi-agent consensus. This invention utilizes algebraic graph theory to construct a communication topology graph. Specifically: Let... yes An undirected graph of order, in which It is an edge set. Represents a set of nodes. The total number of following agents in the system is denoted by 0, and 0 represents the leader node in the system. The undirected graph has a weighted adjacency matrix with non-negative elements. ,in For nodes To the node The weight of an ordered pair of edges is given if and only if the node and nodes When there is no boundary between them, Based on the degree matrix D and the Laplace matrix L of the undirected graph, , , This represents the diagonalization operation. Laplace matrix. Defined as:

[0048]

[0049] in, This represents the element in the i-th row and j-th column of the Laplace matrix. Representation and intelligent agent A collection of related neighboring intelligent agents.

[0050] S2: Construct a dynamic model of the agent in a second-order continuous system based on algebraic graph theory and initialize the system.

[0051] S3: Construct the system's consistency error based on the state information of each agent and its neighboring agents, expressed as:

[0052]

[0053] in, Represents a node The weight of the ordered edge to the leader is given if and only if the node When there is no boundary between the leader and the leader, The connection matrix between nodes and the leader is defined as follows: The consistency error of the entire system is expressed as:

[0054]

[0055] in, Represents the global error vector; This represents a vector consisting of the positions of all following agents; This represents the vector formed by the velocities of all following agents; For the position of leader; For the speed of the leader.

[0056] S4: Based on the flexible action-evaluation algorithm, two action value networks, two target action value networks, and one policy network are set up. The action value network is a backpropagation neural network, with the input being... The output is the value of the state-action pair. The structure of the action-value network is represented as follows:

[0057]

[0058] in, This represents the ReLU activation function. Indicating the first in the value network The output of the hidden layer, Indicating the first in the value network The weight matrix of each hidden layer Indicating the first in the value network The bias matrix of each hidden layer , Indicates the total number of layers in the value network; This is the output of the last layer of the value network.

[0059] The structure of the target action value network is the same as that of the action value network. The iterative reward can be represented as:

[0060]

[0061] in, Indicates the current state. Indicates the current action. Indicates the current reward. Represents the target action value network The parameters, This means that although there are two target action value networks and action value networks, only the network with the smaller action value is selected each time, thereby alleviating the problem of overestimation of action value.

[0062] The policy network is also a backpropagation neural network, with the consistency error as input and the action vector as output. The structure of the policy network is represented as follows:

[0063]

[0064] in, This represents the tanh activation function; This represents the output of the i-th hidden layer in the policy network. This represents the weight matrix of the i-th hidden layer in the policy network. Let a represent the bias matrix of the i-th hidden layer in the policy network, where i∈{1,2,…,n_a}. Indicates the total number of layers in the value network; This is the output of the last layer of the value network.

[0065] When generating action vectors, the output is first normalized and then scaled up to the size required by the system to avoid generating excessively large action vectors. This indicates the upper limit of the system's actions.

[0066] S5: Each agent communicates with each other according to the communication topology, and continuously acquires the state information of neighboring agents and saves its own state information during the communication process.

[0067] The agent's sensors receive the agent's state information, including its current position and velocity, as well as its position and velocity at the previous moment.

[0068] S6: When the consistency error exceeds a certain level, the training mode is activated to update the parameters in the neural network; when the cooperation error is within the allowable range, all agents are updated through the policy network.

[0069] The deep reinforcement learning control strategy designed in this invention only activates the training mode to update the parameters in the neural network when the consistency error exceeds a certain level. In the training mode, a batch of data is randomly sampled from the experience replay buffer, and then this data is used to update the policy network and the action value network. The loss function for updating any action value network can be expressed as:

[0070]

[0071] in, The loss function represents the action value network; Representational Policy Network The parameters, The parameters representing the action value network, Indicates the first Parameters of the value network for each target action; This indicates calculating the mean. Indicates the state and actions The output of the action value network under the given conditions; Indicates the discount factor; Indicates the state and actions The output of the target action value network under the given conditions, state Based on a set of empirical data retrieved from the experience pool, the set of data retrieved from the experience pool R is represented as follows: , express The state of the intelligent agent at all times. express The actions chosen by the agent at any given moment express The rewards of time; The target policy network with network parameters θ According to the action performed The state reached later get;

[0072] The loss function of the policy update network can be expressed as:

[0073]

[0074] in, The loss function of the policy network is represented; Let N represent a noisy random variable that follows a Gaussian distribution; Indicates the learning rate; Indicates the state and noisy random variables The actions obtained by sampling the strategy using a Gaussian distribution under the given conditions; Indicates the state The output of the action value network under the condition of sampling.

[0075] The loss function for updating the learning rate can be expressed as:

[0076]

[0077] Indicates the policy network in state The degree of randomness, i.e., the entropy value of the policy network. This represents a preset target value indicating the degree of randomness in the policy. When the entropy of the policy network is higher than... At that time, training objective It will increase the learning rate The value of is reduced, thus allowing for more thorough exploration during the training process.

[0078] Each agent updates the parameters in the neural network by activating training mode based on the state information of its neighbors and its own state information when the consistency error exceeds a certain level; specifically: during the execution phase, the system consistency error is judged. If the preset value is exceeded, the training mode is activated to update the parameters in the neural network.

[0079] Each agent controls its speed during the execution phase based on the state information of its neighbors and its own state information, according to the action selected by the policy network for each agent. Specifically, as can be seen from the dynamic model, during the execution phase, the position information at the next moment will be related to the current speed information; the speed information at the next moment is determined by the policy network whose input is the current state.

[0080] To ensure the existence of a stable policy, the continuous multi-agent system in this invention must meet the following conditions: the parameter matrices A and B in the system dynamics model are deterministic and unknown; the parameter matrices A and B are controllable; the system communication topology contains a spanning tree, and at least one follower agent can communicate with the leader; and the initial policy network is acceptable.

[0081] Previous research has demonstrated that if the policy network and action-value network are updated using gradient descent at any time and in any update round, and the initial action policy of any agent is acceptable, then the action policy in any update round after iteration will also be acceptable. This action policy can also stabilize the system and constrain the loss function.

[0082] The process of updating the parameters of the action value network is represented as follows:

[0083]

[0084] in, This represents the parameters of the action value network at time t; in this embodiment... = , This represents the gradient of the network parameter w.

[0085] The direction of parameter updates is given by the gradient of the action value network, and the step size of parameter updates depends on the loss function. Therefore, iterative rewards This directly affects the convergence of the action value network. The target action value network only delays the update speed of the action value network, but does not affect the convergence of the system. Therefore, the convergence analysis will be based on iterative rewards. .

[0086] In some instances, if the number of following agents is 4, the topology graph is as follows: Figure 2 As shown. The Laplace matrix of the system and the connection matrix between nodes and the leader are:

[0087]

[0088] To accelerate the controller's learning speed, the maximum absolute value of the control policy is set to 200. One policy network and four action-value networks are constructed for the controller.

[0089] The policy network consists of four layers: an input layer, two hidden layers with a total of 256 neurons each, and an output layer with a total of 4 neurons. The action value network consists of four layers: an input layer, two hidden layers with a total of 256 neurons each, and an output layer with a total of 1 neuron.

[0090] The size of the experience replay pool is set to 100,000, and the initial learning rate is set to 0.001.

[0091] In the initial strategy Under acceptable conditions, with controller iteration, this intelligent agent system can achieve agent consistency using the deep learning-based multi-agent consensus cooperative control method of this invention. This invention enables the controller to self-learn and achieve optimal consensus control as the system's inherent parameters change due to temperature variations or component aging.

[0092] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.

Claims

1. A multi-agent consistency collaborative control method based on deep reinforcement learning, characterized in that, Specifically, the following steps are included: S1: Construct a communication topology by treating each agent in a linear multi-agent system as a communication node; S2: Construct a dynamic model of the agent in a second-order continuous system based on algebraic graph theory and initialize the system; S3: Construct the system's consistency error based on the state information of each agent and its neighboring agents. When the system's consistency error is stable, all agents reach consistency. S4: Set up a neural network based on the flexible motion-evaluation algorithm; S5: Each agent communicates with each other according to the communication topology, and continuously acquires the state information of neighboring agents and saves its own state information during the communication process; S6: When the consistency error exceeds the allowable range, the training mode is activated to update the parameters in the neural network; when the cooperation error is within the allowable range, all agents are updated through the policy network.

2. A multi-agent consensus cooperative control method based on deep reinforcement learning according to claim 1, characterized in that, The process of constructing a communication topology includes: building an N+1 order undirected graph. ,in N is the number of communication nodes in the multi-agent system. Describe the set of edges. The set representing edge weights, For communication nodes To communication node The weight of the ordered edges is given if and only if the node and nodes When there is no edge between Based on the degree matrix D and the Laplace matrix L of the undirected graph, the set of neighboring nodes for each communicating node is obtained. The degree matrix is ​​represented as ,in , Let L be the number of neighbors; the Laplace matrix is ​​represented as L = D − A.

3. A multi-agent consensus cooperative control method based on deep reinforcement learning according to claim 1, characterized in that, The consensus error of agents in a second-order continuous system is: in, For the first Consistency error of each following agent; Represents communication node All neighboring nodes; For communication nodes To communication node The weights of ordered edges; Represents communication node The weight of the ordered edge to the leader is given if and only if the node When there is no boundary between the leader and the leader, ; Indicates the first The position of the following agent; Indicates the leader's position; Indicates the first The speed of the following agent.

4. A multi-agent consensus cooperative control method based on deep reinforcement learning according to claim 3, characterized in that, The consistency error of each agent constitutes the global error vector of the system, denoted as: The consistency error of the entire system is expressed as: in, It is a Laplace matrix; The connection matrix between nodes and leaders is represented as follows: ; This represents a vector consisting of the positions of all following agents; This represents the vector formed by the velocities of all following agents; For the speed of the leader.

5. A multi-agent consensus cooperative control method based on deep reinforcement learning according to claim 1, characterized in that, The neural network based on the flexible action-evaluation algorithm consists of two action value networks, two target action value networks, and a policy network. The action value networks are used to evaluate the state. and actions The value of a target action under certain conditions is evaluated using a value network. and actions The value under certain conditions is used to calculate the iterative reward; the policy network is used to select action vectors based on the consistency error of the system.

6. A multi-agent consensus cooperative control method based on deep reinforcement learning according to claim 5, characterized in that, The action value network is a backpropagation neural network that concatenates the system's consistency error and the actions of each following agent as input to the action value network, represented as follows: The neural network outputs the values ​​of state-action pairs. The structure of the action-value network is represented as follows: in, This represents the ReLU activation function. Indicating the first in the value network The output of the hidden layer, Indicating the first in the value network The weight matrix of each hidden layer Indicating the first in the value network The bias matrix of each hidden layer , Indicates the total number of layers in the value network; This is the output of the last layer of the value network.

7. A multi-agent consensus cooperative control method based on deep reinforcement learning according to claim 5, characterized in that, The policy network is a backpropagation neural network. Its input is the system's consistency error, and its output is an action vector. The structure of the policy network is represented as follows: in, This represents the ReLU activation function. This represents the output of the i-th hidden layer in the policy network. This represents the weight matrix of the i-th hidden layer in the policy network. Let a represent the bias matrix of the i-th hidden layer in the policy network, where i∈{1,2,…,n_a}. Indicates the total number of layers in the value network; This is the output of the last layer of the value network; This indicates the upper limit of the system's actions.

8. A multi-agent consensus cooperative control method based on deep reinforcement learning according to claim 5, characterized in that, In a neural network based on a flexible action-evaluation algorithm, the loss function of any action value network is expressed as: in, The loss function represents the action value network; Representational Policy Network The parameters, The parameters representing the action value network, Indicates the first Parameters of the value network for each target action; This indicates calculating the mean. Indicates the state and actions The output of the action value network under the given conditions; Indicates the discount factor; Indicates the state and actions The output of the target action value network under the given conditions, state Based on a set of empirical data retrieved from the experience pool, the set of data retrieved from the experience pool R is represented as follows: , express The state of the intelligent agent at all times. express The actions chosen by the agent at any given moment express The rewards of time; The loss function of the policy network is expressed as: in, The loss function of the policy network is represented; Let N represent a noisy random variable that follows a Gaussian distribution; Indicates the learning rate; Indicates the state and noisy random variables Actions obtained by sampling a Gaussian distribution under certain conditions; Indicates the state The output of the action value network under the condition of sampling the action; The loss function based on the learning rate is expressed as: in, This represents the target value of the entropy of the policy network.

Citation Information

Patent Citations

  • Intelligent unmanned cluster system optimal consistency cooperative control method under influence of multiple time delays

    CN115793448A

  • Training policy neural networks using path consistency learning

    US20190332922A1