Distributed multi-agent fault-tolerant method and system based on adaptive consensus algorithm
The adaptive consensus algorithm is used to update the weights of adjacent agents in the multi-agent system, and the reward function and trust function are used to solve the problem of stringent network connectivity requirements in the multi-agent system and achieve a wide range of network topologies. Consistent state convergence and error node identification reduce system load.
Patent Information
- Application Number
- CN202111180922.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-11
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2041-10-11
AI Technical Summary
Existing multi-agent systems have strict requirements on network connectivity in fault-tolerant control, making it difficult to achieve effective state consistency in practical applications, especially when there are abnormal nodes.
A distributed multi-agent fault-tolerant method based on an adaptive consensus algorithm is adopted to adaptively update the weights of adjacent agents and use reward functions and trust functions to ensure that normal nodes reach agreement within a smaller range and identify and Exclude error nodes.
It relaxes the restrictions on the network topology, reduces the storage and computing load of the system, and can achieve consistent convergence of the status of normal nodes under a wider network topology, and identify and eliminate erroneous nodes.
Smart Images

Figure CN113918369B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of distributed systems and fault-tolerant control, and relates to a distributed multi-agent fault-tolerant method and system based on an adaptive consistency algorithm, which updates the weights of adjacent agents through an adaptive method so that normal nodes can achieve state consistency. Background Art
[0002] In recent years, multi-agent technology has become a research hotspot at home and abroad, and has been widely used in transportation systems, smart grids, drone control, health care equipment and other fields. As a basic problem of multi-agent systems, the basic content of its research is to design distributed control algorithms based on local information so that the state of the entire system converges to the same value.
[0003] In the multi-agent consensus system, the research on fault-tolerant control plays a very important role in solving practical problems, and it is also a hot spot and difficulty in current research. In a multi-agent system, not all agents will update their status according to a given algorithm. System errors include internal factors and external factors. Internal factors include damage to the agent that causes the individual to be unable to work normally, and external factors include the agent being controlled by the enemy and becoming a malicious node. Therefore, when there are abnormal nodes in the agent network, it is particularly important to make all normal nodes reach the same state.
[0004] In addition, in the prior art, by deleting suspicious agents, it is assumed that the maximum number F of faulty agents in the network is known. At each state update, each agent temporarily removes F relatively large values and F relatively small values from the information received from the adjacent agents. This method has become the most commonly used method in the field of fault-tolerant control, and is further applied to various multi-agent fault-tolerant control fields, including clock synchronization, spacecraft control, etc. However, this method is limited by network connectivity or network robustness, and is difficult to implement in practice. Therefore, in multi-agent fault-tolerant consistency control technology, it is necessary to consider relaxing the restrictions on network connectivity. Summary of the invention
[0005] In response to the problems existing in the prior art, the present invention provides a method and system for distributed multi-agent fault tolerance based on an adaptive consensus algorithm, which updates the weights between adjacent agents through adaptive means to ensure that the states of normal nodes can converge consistently.
[0006] In order to achieve the purpose of the present invention, the present invention adopts the following technical scheme:
[0007] A distributed multi-agent fault-tolerant method based on an adaptive consensus algorithm, the method comprising the following steps:
[0008] S1. Construct a multi-agent fault-tolerant consensus system model;
[0009] S2. Update the weights of neighboring agents in an adaptive manner, and the agent uses the updated weights to update its own state value;
[0010] S3. Perform interactive iterations on all updated agents to make the normal node states consistent and eliminate the erroneous nodes.
[0011] Preferably, step S1 is as follows: first, a multi-agent system network model is constructed, the network consisting of n agents labeled 1, 2, ..., n. Usually, the network relationship can be represented by a directed graph G = (V, E), where V = {1, 2, ..., n} represents the set of agents, Represents the connection relationship between agents. If agent i can receive information from agent j, then agent j is a neighbor node of agent i. The neighbor set of node i is marked as N i ={j|(j,i)∈E}.
[0012] x i (k+1)=x i (k)+u i (k)i∈V
[0013] where x i ∈R and u i ∈R represent the state value and control input of agent i at time k. Let x i (k)=[x1(k),…,x n (k)] T , for any integer k ≥ 0, the initial state x0 of the system is random. In the multi-agent consensus problem, all nodes are normal and use the same control input u i Collaborate with each other to reach a consensus state. However, in the multi-agent fault-tolerant consensus problem, some hidden fault nodes may prevent the system from converging.
[0014] Preferably, in step S2, due to the existence of faulty nodes, the entire network may not be able to reach a consensus. The suspicious nodes are excluded by minimizing their weights to be close to zero. A distributed algorithm is designed to ensure that normal nodes reach a consensus within a sufficiently small ε range.
[0015]
[0016] Agent i updates its own state information according to the information of neighbor nodes. The specific steps are as follows:
[0017] S21. First initialize the weight α between adjacent nodes ij and trust Qij ;
[0018] S22. Node i from its neighbor node j∈N i Receive information and get the relative state difference between each other, that is, x j -x i , score the neighbor agents and use the reward r ij To express;
[0019] S23. Reward r ij Normalization is performed to update the trust Q of node i to node j ij ;
[0020] S24. Update the weight α of agent i to each neighbor agent j by calculating all the comprehensive trusts ij , get the updated weight;
[0021] S25. Agent i uses the updated weight to update its own state value;
[0022] S26. Repeat steps S22-S25, and finally reach a consensus on the normal agent states through continuous iteration, and identify the erroneous agents.
[0023] Another preferred embodiment is that step S2 is specifically:
[0024] S21. Initialize the weight α of agent i to agent j ij and trust Q ij ;
[0025] S22. Update the weight α of agent i to each neighbor agent j by calculating all the comprehensive trusts ij , get the updated weight;
[0026] S23. Calculate the reward r by updating the weight ij ;
[0027] S24. If at time k, node j is a neighbor node of node i, then the reward r ij Normalization is performed to update the trust Q of node i to node j ij ; If at time k, node j is no longer a neighbor node of node i, then node i's trust in node j retains the trust value at time k-1;
[0028] S25. Calculate the adjacent weight α between nodes using the updated trust ij ;
[0029] S26. Agent i uses the updated weight to update its own state value;
[0030] S27. Repeat steps S22-S26, and finally reach a consensus on the normal agent states through continuous iteration, and identify the erroneous agents.
[0031] Preferably, in step S22, by comparing the relative state difference x between itself and its neighboring agents j -x i To calculate the instant reward r ij , expressed as:
[0032]
[0033] where ω i,j is the noise in the transmission process from node j to node i.
[0034] Preferably, in step S23, for each adjacent node j∈N i , trust level Q ij Initialized to 1, by rewarding r ij Normalization is recursively updated, expressed as:
[0035]
[0036] Preferably, in step S24, the weight α is updated by normalizing the trustworthiness of all adjacent nodes. ij , expressed as;
[0037]
[0038] In another preferred embodiment, in step S24, node i updates the trust of node j. Due to the topological change, there are two cases for updating the trust. If node j is a neighbor node of node i at time k, the reward r ij Normalization is performed to update the trust Q of node i to node j ij ,Right now:
[0039]
[0040] If at time k, node j is no longer a neighbor node of node i, then node i's trust in node j retains the trust value at time k-1, that is:
[0041] Q ij (k) = Q ij (k-1).
[0042] Preferably, in step S25, the updated state value of node i is expressed as:
[0043]
[0044] Among them, x i(k+1) represents the updated state value of agent i at time k+1; x i (k) represents the state value of agent i at time k; α ij (k) represents the weight of agent j to agent i at time k; x j (k) represents the state value of agent j at time k; ω i represents random noise.
[0045] The present invention also discloses a distributed multi-agent fault-tolerant system based on an adaptive consensus algorithm, comprising the following modules:
[0046] Building blocks for constructing multi-agent fault-tolerant consensus system models;
[0047] A processing module is used to process the intelligent agent in the constructed system model in an adaptive manner;
[0048] The iteration module is used to perform interactive iterative processing on all updated agents to make the state values of all normal agents consistent.
[0049] Compared with the prior art, the present invention has the following beneficial effects:
[0050] (1) In the existing methods for studying multi-agent fault-tolerant control problems, the requirements for network topology are very strict, requiring the number of error nodes in neighboring agents to be less than half of the total number of neighbors or requiring a large amount of historical information and computation. The consistency method proposed in this invention greatly relaxes the restrictions on network topology, requiring only that the network topology meet the requirements of the connectivity graph, and reduces the storage and computational load of the system.
[0051] (2) The consistency method proposed in the present invention can update adjacent weights in an adaptive manner through the designed reward function and trust function, thereby solving the fault-tolerant consistency problem of the system containing constant fault nodes and random fault nodes. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 This is a flow chart of a multi-agent fault-tolerant consistency control method according to Embodiment 1 of the present invention;
[0053] Figure 2 This is a flow chart of a fixed topology Q consistency algorithm in a multi-agent fault-tolerant consistency control method according to an embodiment of the present invention;
[0054] Figure 3 A directed network graph of fixed topology in a multi-agent fault-tolerant consistency control method according to a first embodiment of the present invention;
[0055] Figure 4 A simulation diagram of the fixed topology effect in an intelligent agent fault-tolerant consistency control method according to an embodiment of the present invention;
[0056] Figure 5 This is a block diagram of a distributed multi-agent fault-tolerant system based on an adaptive consensus algorithm according to Embodiment 2 of the present invention;
[0057] Figure 6 This is a flow chart of the consistency algorithm in the multi-agent fault-tolerant consistency control method under random topology in embodiment 3 of the present invention;
[0058] Figure 7 A directed network graph of random topology in the multi-agent fault-tolerant consistency control method in Embodiment 3 of the present invention;
[0059] Figure 8 This is a simulation diagram of the effect of the multi-agent fault-tolerant consistency control method under random topology in Example 3 of the present invention. DETAILED DESCRIPTION
[0060] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0061] The purpose of the present invention is to address the defects of the prior art and provide a distributed multi-agent fault-tolerant method and system based on an adaptive consensus algorithm under a fixed topology.
[0062] Embodiment 1
[0063] This embodiment provides a distributed multi-agent fault-tolerant method based on an adaptive consensus algorithm under a fixed topology. Figure 1 As shown, the following steps are included:
[0064] S1. Construct a multi-agent fault-tolerant consensus system model;
[0065] S2. Update the weights of neighboring agents in an adaptive manner, and the agent uses the updated weights to update its own state value;
[0066] S3. Perform interactive iterative processing on all updated agents, and finally reach a consensus on the status of normal nodes while eliminating erroneous nodes.
[0067] This embodiment provides a distributed multi-agent fault-tolerant method based on an adaptive consensus algorithm under a fixed topology, which aims to ensure that when a multi-agent system contains erroneous nodes, all normal agents in the system can reach a consistent state through interactive iteration and eliminate erroneous agents.
[0068] The consistency algorithm proposed in the present invention is a method for solving the fault-tolerant consistency problem. In this method, each agent scores the neighboring agent at each moment and updates the Q value in real time by comparing the state difference between itself and the neighboring agent, calculates the weight of each neighbor through the Q value, and updates its own state value according to the weight. At the same time, the weight can also reflect the wrong agent. Since the prior art has high requirements for network topology, it is required that the number of wrong nodes in the neighboring agent is less than half of the total number of neighbors, while the method of this embodiment does not have such a restriction.
[0069] Specifically, in step S1, a multi-agent fault-tolerant consistency system model is constructed.
[0070] The multi-agent topology is represented by a directed graph G(V, E), where V = {1, 2, ..., n} represents the set of agents, Represents the connection relationship between agents.
[0071] In this embodiment, if agent i can receive information from agent j, then agent j is called the neighbor of agent i, and the neighbor set of agent i is represented by N i ={j|(j,i)∈E}, the state information of agent i at time k is represented by x i (k).
[0072] There are several erroneous agents in the agent set V, and the types of erroneous agents include random state values and constant state values.
[0073] In step S2, the weights of neighboring agents are updated in an adaptive manner, and the agents use the updated weights to update their own state values.
[0074] First, initialize the weights α between adjacent nodes ij and trust Q ij ; By comparing the difference x between itself and its neighboring agents j -x i To calculate the instant reward r ij Next, the trust Q is calculated by normalizing the immediate reward ij Finally, through the trust Q ij Update the adjacent weight α ij In a multi-agent fault-tolerant control system, for neighbors with higher trust, the neighbor weight is larger; for suspicious neighbors with lower trust, when k→∞, the neighbor weight α ij,k → 0. How to update rewards and trust is discussed in detail below.
[0075] First, enter the relative distance x j -xi to describe the state difference at the current moment, and then convert the input into an immediate reward,
[0076]
[0077] where ω i,j is the noise in the transmission process from node j to node i. Each normal node will change its own state x i It is considered as a trustworthy value, and the reward value of neighbor j is inversely proportional to the relative distance between i and j:
[0078]
[0079] Here, the reward value is set between 0 and 1. i and x j When the values of are close to the same, the reward tends to 1; when the state difference between them tends to infinity, the reward value tends to 0.
[0080] For each adjacent node j∈N i , trust level Q ij is initialized to 1, and then based on the normalized reward r ij Perform recursive updates,
[0081]
[0082] Since at time k x i The state value of is determined by the weights of the neighboring nodes and the states of the neighboring nodes, so the last step is to update the neighboring weights by trust. By normalizing the trust of all neighboring nodes, the weight α ij Defined as:
[0083]
[0084] Finally, node i uses the state values of all neighbor nodes j and the weight α of node j ij Update its own state value and obtain the updated state value of node i, which is expressed as:
[0085]
[0086] Among them, x i (k+1) represents the updated state value of agent i at time k+1; x i (k) represents the state value of agent i at time k; α ij (k) represents the weight of agent j to agent i at time k; x j (k) represents the state value of agent j at time k; ω i (k) represents random noise.
[0087] In step S3, all updated agents are interactively iterated to finally reach a consensus on the normal node states and exclude the error nodes. The evaluation of the test results of the above embodiment is as follows:
[0088] 1. Convergence
[0089] like Figure 4 As shown in the figure, under the fixed topology, the state values of all normal agents can gradually converge to a consistent state, because random noise ω is added when the agent updates its own state value. i , so that the state value of the last node will produce a smaller disturbance.
[0090] 2. Applicability
[0091] In the prior art, there is usually a conditional restriction that the number of erroneous agents in the neighbor nodes of a normal agent cannot exceed half of the total number of neighbors. Figure 3 In the case of agents 5 and 6, the number of erroneous agents in their neighboring nodes is greater than or equal to half of the number of neighboring nodes. According to the method of the present invention, these nodes can better identify erroneous agents and make the states of normal agents tend to be consistent.
[0092] Embodiment 2
[0093] like Figure 5 As shown, the embodiment of the present invention also discloses a distributed multi-agent fault-tolerant system based on an adaptive consensus algorithm, comprising the following modules:
[0094] Building blocks for constructing multi-agent fault-tolerant consensus system models;
[0095] A processing module is used to process the intelligent agent in the constructed system model in an adaptive manner;
[0096] The iteration module is used to perform interactive iterative processing on all updated agents to make the state values of all normal agents consistent.
[0097] Specifically, in the building block, the topological structure of the multi-agent is expressed as: G(V, E), where V = {1, 2, ..., n} represents the set of agents, Represents the connection relationship between agents.
[0098] The processing modules are as follows:
[0099] S21. Initialize the weight α between adjacent nodes ij and trust Q ij ;
[0100] S22. Node i from its neighbor node j∈N i Receive information at each location and obtain the relative state value x between each otherj -x i , and score the neighbor agent with a reward r ij To express;
[0101] In the above step S22, by comparing the difference x between itself and its neighboring agents j -x i To calculate the instant reward r ij , expressed as:
[0102]
[0103] where ω i,j is the noise in the transmission process from node j to node i.
[0104] In the above step S23, for each adjacent node j∈N i , trust level Q ij Initialized to 1, by rewarding r ij Normalization is recursively updated, expressed as:
[0105]
[0106] S23. Reward r ij Normalization is performed to update the trust Q of node i to node j ij ;
[0107] S24. Update the weight α of agent i to each neighbor agent j by calculating all the comprehensive trusts ij , get the updated weight;
[0108] In the above step S24, the weight αij is updated by normalizing the trust of all adjacent nodes, which is expressed as:
[0109]
[0110] S25. Agent i uses the updated weight to update its own state value;
[0111] In the above step S25, the updated state value of node i is expressed as:
[0112]
[0113] Among them, x i (k+1) represents the updated state value of agent i at time k+1; x i (k) represents the state value of agent i at time k; α ij (k) represents the weight of agent j to agent i at time k; x j(k) represents the state value of agent j at time k; ω i Represents random noise. S26. Repeat steps S22-S25, and update the state value of the agent through continuous iteration, so that the normal agent states are finally consistent and the wrong agent is identified.
[0114] Embodiment 3
[0115] like Figure 6 , 7 As shown in FIG8 , the purpose of the present invention is to address the defects of the prior art and provide a distributed multi-agent fault-tolerant method based on an adaptive consensus algorithm under random topology conditions.
[0116] This embodiment provides a distributed multi-agent fault tolerance method based on an adaptive consensus algorithm under a random topology, comprising the following steps:
[0117] S1. Construct a multi-agent fault-tolerant consensus system model;
[0118] S2. Update the weights of neighboring agents in an adaptive manner, and the agent uses the updated weights to update its own state value;
[0119] S3. Perform interactive iterative processing on all updated agents, and finally reach a consensus on the status of normal nodes while eliminating erroneous nodes.
[0120] This embodiment provides a distributed multi-agent fault-tolerant method based on an adaptive consensus algorithm under random topology conditions. When the communication conditions between any two nodes may change randomly due to the transformation of the random topology, and the multi-agent system contains erroneous nodes, the normal agents in the system can all reach a consistent state through interactive iteration and eliminate the erroneous agents.
[0121] The consistency algorithm proposed in this embodiment is a method for solving the fault-tolerant consistency problem. In this method, each agent compares the state difference between itself and the neighboring agent, scores the neighboring agent at each moment and updates the Q value in real time, calculates the weight of each neighbor through the Q value, and updates its own state value according to the weight. At the same time, the weight can also reflect the wrong agent. Since the existing technology has high requirements for network topology, it is required that the number of wrong nodes in the neighboring agent is less than half of the total number of neighbors, but the method of this embodiment does not have such a restriction.
[0122] In step S1, a multi-agent fault-tolerant consensus system model is constructed.
[0123] The multi-agent topology is represented by a directed graph G(V, E), where V = {1, 2, ..., n} represents the set of agents, Represents the connection relationship between agents.
[0124] In this embodiment, if agent i can receive information from agent j, then agent j is called the neighbor of agent i, and the neighbor set of agent i is represented by N i ={j|(j,i)∈E}, the state information of agent i at time k is represented by x i (k).
[0125] There are several erroneous agents in the agent set V, and the types of erroneous agents include random state values and constant state values.
[0126] In step S2, the weights of neighboring agents are updated in an adaptive manner, and the agents use the updated weights to update their own state values.
[0127] First, initialize the weights α between adjacent nodes ij (0) = 0 and the trust level Q ij (0) = 1, j∈V. Then calculate the reward function r ij and the trust function Q ij , and update the weight α ij Finally, the node's own state value is calculated by the updated weight. The trust function of the consensus algorithm in the case of random topology is for the transformed neighbor nodes, and the trust Q ij There are different ways to update, as follows:
[0128] For each adjacent node j∈N i (k), update the weight α between neighbor nodes according to the comprehensive trust ij (k) have:
[0129]
[0130] For the reward function r ij (k) have:
[0131] r ij (k) = α ij (k)f(|x j (k)-x i (k)+ω ij (k)|), j∈N i (k)
[0132] For each adjacent node j∈N i (k), the trust level Q ij (k) According to the associated reward r ij (k) Perform recursive update, where η k is the step size:
[0133]
[0134] When adjacent nodes When the trust level Q ij (k) have:
[0135] Q ij (k) = Q ij (k-1)
[0136] Finally, the neighbor weights are updated by the trust. By normalizing the trust of all neighboring nodes, for j∈N i (k) The weight α ij (k) is defined as:
[0137]
[0138] For node status updates in random topology situations, node i has the following update rules:
[0139]
[0140] The results are evaluated as follows:
[0141] 1. Convergence
[0142] like Figure 7 As shown in the figure, in the case of random topology, the consensus algorithm can make the state values of all normal agents gradually converge to a consistent state. Since random noise ωi is added when the agent updates its own state value, the state value of the final node will produce a smaller disturbance.
[0143] 2. Applicability
[0144] Figure 7 Among the neighboring nodes of agent No. 4, the number of erroneous agents is greater than or equal to half of the number of neighboring nodes. According to the algorithm of the present invention, these nodes can better identify erroneous agents and make the states of normal agents tend to be consistent.
[0145] The distributed multi-agent fault-tolerant method based on the adaptive consensus algorithm under the random topology of this embodiment continuously evaluates the neighbor nodes by constructing a reward function and a trust function, and finally makes the normal node status consistent, while excluding the wrong nodes. The consistency algorithm proposed in this embodiment can solve the fault-tolerant consistency problem of the system containing constant fault nodes and random fault nodes, relax the restrictions of the network topology, and reduce the storage and computing load, that is, the number of wrong nodes in the neighboring agents can be greater than or equal to half of the total number of neighbors. The agents in the multi-agent fault-tolerant control system can identify the wrong agents through continuous interactive iterations, and finally make all normal agent state values consistent. Furthermore, for the case of time-varying communication between any two nodes, that is, the random topology, this embodiment proposes a modification method to ensure that the system can also achieve fault-tolerant consistency convergence at this time.
[0146] In summary, the consistency method proposed in the present invention can solve the fault-tolerant consistency problem of the system containing constant fault nodes and random fault nodes, greatly relax the restrictions of the network topology, and reduce the storage and computing load, that is, the number of error nodes in the neighboring intelligent agents can be greater than or equal to half of the total number of neighbors. The intelligent agents in the multi-agent fault-tolerant control system can identify the erroneous intelligent agents through continuous interactive iteration, and finally make the state values of all normal intelligent agents consistent.
[0147] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A distributed multi-agent fault-tolerant method based on an adaptive consensus algorithm, characterized by: The steps include: S1. Construct a multi-agent fault-tolerant consensus system model; S2. Update the weights of neighboring agents in an adaptive manner, and the agents use the updated weights to update their own state values; S3. Interact and iterate all updated agents to make the normal node states consistent; Step S2 is specifically as follows: S21. Initialize the weight α between adjacent nodes ij and trust Q ij ; S22. Node i from its neighbor node j∈N i Receive information at each location and obtain the relative state value x between each other j -x i , and score the neighbor agent with a reward r ij To express; S23. Reward r ij Normalization is performed to update the trust Q of node i to node j ij ; S24. Update the weight α of agent i to each neighbor agent j by calculating all the comprehensive trusts ij , get the updated weight; S25. Agent i uses the updated weight to update its own state value; S26. Repeat steps S22-S25, and update the state value of the agent through continuous iteration, so that the normal agent states are finally consistent and the erroneous agent is identified; In step S22, by comparing the difference x between itself and its neighboring agents j -x i To calculate the immediate reward r ij , expressed as: Among them, ω i,j is the noise in the transmission process from node j to node i; In step S23, for each adjacent node j∈N i , trust level Q ij Initialized to 1, by rewarding r ij Normalization is performed recursively and is expressed as: In step S24, the weight α is updated by normalizing the trust of all adjacent nodes. ij , expressed as: In step S24, node i updates the trust of node j. Due to the change of topology, there are two cases for updating the trust. If node j is a neighbor node of node i at time k, the reward r ij Normalization is performed to update the trust Q of node i to node j ij ,Right now: If at time k, node j is no longer a neighbor node of node i, then node i's trust in node j retains the trust value at time k-1, that is: Q ij (k)=Q ij (k-1) In step S25, the updated state value of node i is expressed as: Among them, x i (k+1) represents the updated state value of agent i at time k+1; x i (k) represents the state value of agent i at time k; α ij (k) represents the weight of agent j to agent i at time k; x j (k) represents the state value of agent j at time k; ω i represents random noise.
2. The distributed multi-agent fault-tolerant method based on the adaptive consensus algorithm according to claim 1 is characterized in that: In step S1, the topological structure of the multi-agent is represented as: G(V,E), where V = {1,2,…,n} represents the set of agents, Represents the connection relationship between agents.
3. A distributed multi-agent fault-tolerant method based on an adaptive consensus algorithm, characterized in that: The steps include: S1. Construct a multi-agent fault-tolerant consensus system model; S2. Update the weights of neighboring agents in an adaptive manner, and the agents use the updated weights to update their own state values; S3. Interact and iterate all updated agents to make the normal node states consistent; Step S2 is specifically as follows: S21. Initialize the weight α of agent i to agent j ij and trust Q ij ; S22. Update the weight α of agent i to each neighbor agent j by calculating all the comprehensive trusts ij , get the updated weight; S23. Calculate the reward r by updating the weight ij ; S24. If at time k, node j is a neighbor node of node i, then the reward r ij Normalization is performed to update the trust Q of node i to node j ij ; If at time k, node j is no longer a neighbor node of node i, then node i's trust in node j retains the trust value at time k-1; S25. Calculate the adjacent weight α between nodes using the updated trust ij ; S26. Agent i uses the updated weight to update its own state value; S27. Repeat steps S22-S26, and finally reach a consensus on the normal agent states through continuous iteration, and identify the erroneous agents; In step S22, by comparing the difference x between itself and its neighboring agents j -x i To calculate the immediate reward r ij , expressed as: Among them, ω i,j is the noise in the transmission process from node j to node i; In step S23, for each adjacent node j∈N i , trust Q ij Initialized to 1, by rewarding r ij Normalization is recursively updated, expressed as: In step S24, the weight α is updated by normalizing the trust of all adjacent nodes. ij , expressed as: In step S24, node i updates the trust of node j. Due to the change of topology, there are two cases for updating the trust. If node j is a neighbor node of node i at time k, the reward r ij Normalization is performed to update the trust Q of node i to node j ij ,Right now: If at time k, node j is no longer a neighbor node of node i, then node i's trust in node j retains the trust value at time k-1, that is: Q ij (k)=Q ij (k-1) In step S25, the updated state value of node i is expressed as: Among them, x i (k+1) represents the updated state value of agent i at time k+1; x i (k) represents the state value of agent i at time k; α ij (k) represents the weight of agent j to agent i at time k; x j (k) represents the state value of agent j at time k; ω i represents random noise.
4. A distributed multi-agent fault-tolerant system based on an adaptive consensus algorithm, used to implement a distributed multi-agent fault-tolerant method based on an adaptive consensus algorithm as claimed in any one of claims 1 to 3, characterized in that: Includes the following modules: Building blocks for constructing multi-agent fault-tolerant consensus system models; A processing module is used to process the intelligent agent in the constructed system model in an adaptive manner; The iteration module is used to perform interactive iterative processing on all updated agents to make the state values of all normal agents consistent.
