A distributed local Lipschitz algorithm based on controlled barrier function
Through the distributed local Lipschitz algorithm based on the control barrier function, the problem of difficulty in ensuring the security of multi-agent systems in nonlinear optimization problems is solved, efficient calculation and robustness are achieved, and it is suitable for complex network structures.
Patent Information
- Application Number
- CN202410182833.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-19
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-02-19
AI Technical Summary
When existing multi-agent systems deal with non-convex and nonlinear optimization problems, it is difficult to ensure the security of the system, and distributed algorithms may not be able to obtain feasible solutions in complex environments.
The distributed local Lipschitz algorithm based on the control barrier function is used to ensure the safety and robustness of the system by constructing a topology diagram, establishing objective functions and constraints, and calculating feedback control inputs based on the gradient descent method and quadratic programming method. .
It improves the robustness and adaptability of multi-agent systems, reduces communication costs, has strong applicability, and can ensure the security and computing efficiency of the system in nonlinear optimization problems.
Smart Images

Figure CN117742141B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of multi-agent system control, and in particular to a distributed local Lipschitz algorithm based on a control barrier function. Background Art
[0002] A multi-agent system is a collection of multiple mutually coupled agents, each of which has a certain degree of autonomy and can communicate with other agents by sensing the surrounding environment. Practical systems are often large and complex, and the goal of a multi-agent system is to replace these systems with small systems that can communicate and coordinate with each other and are easy to manage. In other words, it is hoped that multiple agents can form an interactive whole to solve large and complex problems that exceed the capabilities of a single system.
[0003] In recent years, with the widespread application of multi-agent network optimization in robot cooperation, sensor networks, energy systems and wireless networks, the distributed optimization problem of multi-agent systems has become a hot topic in the control field. The goal of distributed optimization of multi-agent systems is to minimize the sum of local objective functions through agent collaboration, while each agent can only obtain its own local objective function and the state information of neighboring agents. Compared with centralized methods, distributed optimization methods have the advantages of small computational complexity and low communication cost, and improve the robustness and adaptability of the system.
[0004] In actual optimization problems, due to the complexity of the environment and the system, the objective function and constraint function to be optimized are generally non-convex and nonlinear. However, the currently used algorithms are not non-convex and nonlinear. When the algorithm stops, a feasible solution may not be obtained, thus failing to guarantee the security of the system. Summary of the invention
[0005] The present invention aims to solve at least one of the technical problems existing in the related art. To this end, the present invention provides a distributed local Lipschitz algorithm based on a control barrier function.
[0006] The present invention provides a distributed local Lipschitz algorithm based on a control barrier function, comprising:
[0007] S1: construct a topology graph based on the multi-agent network structure, and construct an adjacency matrix according to the topology graph;
[0008] S2: Establishing the objective function to be optimized of the multi-agent system and the constraints of the objective function;
[0009] S3: Establishing a state equation of the multi-agent system based on the gradient descent method, and obtaining a value threshold of the feedback control input through the state equation and the control barrier function calculation;
[0010] S4: within the value threshold, obtaining feedback control input by calculating through quadratic programming method;
[0011] S5: Control the multi-agent system based on the solution of the objective function and the feedback control input.
[0012] According to a distributed local Lipschitz algorithm based on a control barrier function provided by the present invention, in step S1, the nodes of the topological graph represent single agents, and the edges of the topological graph represent neighbor relationships between agents.
[0013] According to a distributed local Lipschitz algorithm based on a control barrier function provided by the present invention, the expression of the objective function in step S2 is:
[0014] ;
[0015] in, is the objective function, is a stack of decision variables for each agent, is the first index value, is the number of agents in the multi-agent system, For the The state of an agent, No. The local objective function of each agent;
[0016] The constraint condition in step S2 is expressed as:
[0017] ;
[0018] in, is the inequality constraint function, is the equality constraint function.
[0019] According to a distributed local Lipschitz algorithm based on a control barrier function provided by the present invention, the expression of the state equation in step S3 is:
[0020] ;
[0021] ;
[0022] in, For the The gradient of the local objective function corresponding to each agent, To control the gain, is the second index value, For the The set of neighboring agents of an agent, For the The agent and The weight of the edge between agents, For the The state of an agent, For the The integral of the consistency error between the state of an agent and its neighboring agents, For the The integral of the consistency error between the state of an agent and its neighboring agents, For the The Jacobian matrix of the inequality constraint function corresponding to the agents, For the The Jacobian matrix of the equality constraint function corresponding to the agents, For the The first feedback controller corresponding to the agent, For the The second feedback controller corresponds to each agent.
[0023] According to a distributed local Lipschitz algorithm based on a control barrier function provided by the present invention, in step S3, the expression of the value threshold of the feedback control input is:
[0024] ;
[0025] in, is the feedback control input threshold, for The set of dimensional non-negative real vectors, for dimensional real vector set, is the gradient of the objective function corresponding to the multi-agent system, is the Jacobian matrix of the inequality constraint function corresponding to the multi-agent system, is the Jacobian matrix of the equality constraint function corresponding to the multi-agent system, is the Laplace matrix, The consistency error between each agent and its neighboring agents is integrated and stacked, is any positive integer, is the first feedback controller corresponding to the multi-agent system, It is the second feedback controller corresponding to the multi-agent system.
[0026] According to a distributed local Lipschitz algorithm based on a control barrier function provided by the present invention, in step S4, the expression of the feedback control input is:
[0027] .
[0028] The present invention provides a distributed local Lipschitz algorithm based on a control barrier function. The distributed control method is adopted, which not only improves the robustness and adaptability of the entire network, but also meets the topological structure requirements of the network topology structure. It has strong applicability and is easy to implement. It only needs to communicate with local neighboring intelligent bodies to calculate the local objective function. The calculation efficiency is high and the communication cost is low. In addition, the present invention solves the safety-critical nonlinear optimization problem based on the distributed local Lipschitz algorithm of the control barrier function. The method is applicable to the situation where the objective function and the constraint equation are non-convex and nonlinear, and the safety of the system can always be guaranteed during the operation of the algorithm.
[0029] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0031] Figure 1 The present invention provides a flow chart of a distributed local Lipschitz algorithm based on a control barrier function. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical scheme and advantages of the present invention clearer, the technical scheme of the present invention will be clearly and completely described below in conjunction with the drawings in the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present invention. The following embodiments are used to illustrate the present invention, but cannot be used to limit the scope of the present invention.
[0033] In the description of the embodiments of the present invention, it should be noted that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the embodiments of the present invention and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as limitations on the embodiments of the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.
[0034] In the description of the embodiments of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "connected" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the embodiments of the present invention can be understood according to specific circumstances.
[0035] In the embodiments of the present invention, unless otherwise clearly specified and limited, the first feature being "above" or "below" the second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, the first feature being "above", "above" and "above" the second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. The first feature being "below", "below" and "below" the second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.
[0036] 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 embodiment 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.
[0037] Combine the following Figure 1 Embodiments of the present invention are described.
[0038] The present invention provides a distributed local Lipschitz algorithm based on a control barrier function, comprising:
[0039] S1: construct a topology graph based on the multi-agent network structure, and construct an adjacency matrix according to the topology graph;
[0040] Wherein, in step S1, the nodes of the topological graph represent single agents, and the edges of the topological graph represent neighbor relationships between agents.
[0041] Furthermore, the constructed multi-agent network structure topology is undirected and connected. The network structure topology diagram of each node is expressed as: ,in Represents a collection of nodes, Represents a set of edges, a set Representation Node The set of neighbor nodes.
[0042] Then determine the adjacency matrix of the constructed multi-agent network structure graph, and the elements in the adjacency matrix Representative Node The weight value of the edge between nodes There are edges connecting them, then ; If the node There is no edge connecting them, then For undirected graphs, there exists .
[0043] S2: Establishing the objective function to be optimized of the multi-agent system and the constraints of the objective function;
[0044] Wherein, the expression of the objective function in step S2 is:
[0045] ;
[0046] in, is the objective function, is a stack of decision variables for each agent, is the first index value, is the number of agents in the multi-agent system, For the The state of an agent, No. The local objective function of each agent;
[0047] The constraint condition in step S2 is expressed as:
[0048] ;
[0049] in, is the inequality constraint function, is the equality constraint function.
[0050] Furthermore, the objective function and constraints should be combined.
[0051] S3: Establishing a state equation of the multi-agent system based on the gradient descent method, and obtaining a value threshold of the feedback control input through the state equation and the control barrier function calculation;
[0052] Wherein, the expression of the state equation in step S3 is:
[0053] ;
[0054] ;
[0055] in, For the The gradient of the local objective function corresponding to each agent, To control the gain, is the second index value, For the The set of neighboring agents of an agent, For the The agent and The weight of the edge between agents, For the The state of an agent, For the The integral of the consistency error between the state of an agent and its neighboring agents, For the The integral of the consistency error between the state of an agent and its neighboring agents, For the The Jacobian matrix of the inequality constraint function corresponding to the agents, For the The Jacobian matrix of the equality constraint function corresponding to the agents, For the The first feedback controller corresponding to the agent, For the The second feedback controller corresponds to each agent.
[0056] Furthermore, That is, the first Line The element of the column, which is the The agent and The weight of an agent.
[0057] The above formula can be rewritten as:
[0058]
[0059] Furthermore, the following feedback control input threshold can be obtained from this formula.
[0060] Wherein, in step S3, the expression of the value threshold of the feedback control input is:
[0061] ;
[0062] in, is the feedback control input threshold, for The set of dimensional non-negative real vectors, for dimensional real vector set, is the gradient of the objective function corresponding to the multi-agent system, is the Jacobian matrix of the inequality constraint function corresponding to the multi-agent system, is the Jacobian matrix of the equality constraint function corresponding to the multi-agent system, is the Laplace matrix, The consistency error between each agent and its neighboring agents is integrated and stacked, is any positive integer, is the first feedback controller corresponding to the multi-agent system, It is the second feedback controller corresponding to the multi-agent system.
[0063] S4: within the value threshold, obtaining feedback control input by calculating through quadratic programming method;
[0064] Wherein, in step S4, the expression of the feedback control input is:
[0065] .
[0066] S5: Control the multi-agent system based on the solution of the objective function and the feedback control input.
[0067] Furthermore, after the above steps S1 to S5, the algorithm is allowed to run for 20 seconds to obtain the optimal control decision, which is used to perform collaborative control of multiple agents.
[0068] The present invention provides a distributed local Lipschitz algorithm based on a control barrier function, the basic idea of which is to combine the gradient descent and control barrier function methods, define the range of safe and feasible feedback control inputs according to the control barrier function, and then use quadratic programming to determine the specific control inputs. The difficulties in designing a distributed local Lipschitz algorithm based on a control barrier function are: first, the security of the system must always be guaranteed; second, to ensure the distributed characteristics of the algorithm, each node can only use its own information and that of its neighbors.
[0069] The present invention provides a distributed local Lipschitz algorithm based on a control barrier function, and studies how to solve safety-critical nonlinear optimization problems based on a distributed local Lipschitz algorithm based on a control barrier function. The method is applicable to the case where the objective function and the constraint equation are non-convex and non-linear, and can not only solve simple linear optimization problems, but also solve more complex nonlinear and non-convex optimization problems. The method has low requirements on the network structure. During the entire calculation process, each node only uses the information of neighbor nodes, which saves communication and calculation costs and greatly improves the calculation efficiency.
[0070] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A distributed local Lipschitz algorithm based on a control barrier function, characterized in that: include: S1: construct a topology graph based on the multi-agent network structure, and construct an adjacency matrix according to the topology graph; S2: Establish the objective function to be optimized for the multi-agent system and the constraints of the objective function; the expression of the objective function is: ; in, is the objective function, is a stack of decision variables for each agent, is the first index value, is the number of agents in the multi-agent system, For the The state of an agent, For the The local objective function of each agent; The constraint condition is expressed as: ; in, is the inequality constraint function, is the equality constraint function; S3: Based on the gradient descent method, a state equation of the multi-agent system is established, and the value threshold of the feedback control input is obtained by calculating the state equation and the control barrier function; the expression of the state equation is: ; ; in, For the The gradient of the local objective function corresponding to each agent, To control the gain, is the second index value, For the The set of neighboring agents of an agent, For the The agent and The weight of the edge between agents, For the The state of an agent, For the The integral of the consistency error between the state of an agent and its neighboring agents, For the The integral of the consistency error between the state of an agent and its neighboring agents, For the The Jacobian matrix of the inequality constraint function corresponding to the agents, For the The Jacobian matrix of the equality constraint function corresponding to the agents, For the The first feedback controller corresponding to the agent, For the A second feedback controller corresponding to each intelligent agent; The expression of the value threshold of the feedback control input is: ; in, is the feedback control input threshold, for The set of dimensional non-negative real vectors, for dimensional real vector set, is the gradient of the objective function corresponding to the multi-agent system, is the Jacobian matrix of the inequality constraint function corresponding to the multi-agent system, is the Jacobian matrix of the equality constraint function corresponding to the multi-agent system, is the Laplace matrix, The consistency error between each agent and its neighboring agents is integrated and stacked, is any positive integer, is the first feedback controller corresponding to the multi-agent system, A second feedback controller corresponding to the multi-agent system; S4: within the value threshold, obtaining feedback control input by calculating through quadratic programming method; S5: Control the multi-agent system based on the solution of the objective function and the feedback control input.
2. A distributed local Lipschitz algorithm based on a control barrier function according to claim 1, characterized in that: In step S1, the nodes of the topological graph represent single agents, and the edges of the topological graph represent neighbor relationships between agents.
3. A distributed local Lipschitz algorithm based on a control barrier function according to claim 1, characterized in that: In step S4, the expression of the feedback control input is: 。
