Virtual power plant system consistency control method and device based on multi-agent
By establishing an edge-to-edge directed communication topology diagram and correlation matrix in the virtual power plant system, the communication between virtual machine groups is optimized, the resource consumption problem caused by the virtual machine group consistency control in the virtual power plant system is solved, and a more efficient system consistency is achieved. properties and applicability.
Patent Information
- Application Number
- CN202410763630.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-06-14
AI Technical Summary
The existing multi-virtual unit consistency control method results in a large amount of communication resource consumption and power consumption in the virtual power plant system, and has poor practical applicability.
By establishing the edge-to-edge directed communication topology diagram and correlation matrix of the virtual power plant system, determining the dynamic equations, calculating consistency errors and event-triggered control protocols, optimizing communication between virtual machine groups, achieving edge state convergence to the same goal, and reducing communication Frequency and resource consumption.
It effectively reduces the communication resource consumption and power consumption between virtual machine groups, enhances the applicability of the virtual power plant system, and improves the convergence speed and accuracy between nodes.
Smart Images

Figure CN118331033B
Abstract
Description
Technical Field
[0001] The present application relates to multi-agent system control, and more specifically, to a multi-agent-based virtual power plant system consistency control method and device. Background Art
[0002] With the rapid development of multi-agent technology, multi-agent collaborative control has been widely used in the engineering field, such as in virtual power plant systems. Applying multi-virtual machine group collaborative control to virtual power plant systems requires considering the consistency of multi-virtual machine groups. The existing multi-virtual machine group consistency control method mainly considers the node-to-node relationship between the state quantities of the virtual machine groups. According to the topological structure of the multi-virtual machine group network, when the node-based event trigger mechanism meets the trigger condition, the virtual machine group transmits the current information to all adjacent virtual machine groups at the same time. However, the existing multi-virtual machine group consistency control method will cause a large amount of communication resource consumption and power consumption of the virtual machine group during the control process, and its practical applicability is poor. Summary of the invention
[0003] In view of this, the present invention provides a virtual power plant system consistency control method and device based on multi-agent, the main purpose of which is to solve the problem that the existing consistency control method based on multi-virtual machine groups will cause a large amount of communication resource consumption and power consumption of virtual machine groups during the control process, and the practical applicability is poor.
[0004] According to a first aspect of the present application, a multi-agent-based virtual power plant system consistency control method is provided, wherein the virtual power plant system includes a plurality of virtual machine groups, including:
[0005] An edge-to-edge directed communication topology graph of the virtual power plant system is established based on the multiple virtual machine groups, and an edge-to-edge directed association matrix of the virtual power plant system is established based on the edge-to-edge directed communication topology graph, wherein the edge-to-edge directed communication topology graph is composed of multiple virtual machine group nodes, edges between adjacent virtual machine group nodes, and a weight matrix of each edge;
[0006] Determine the edge-to-edge dynamic equation of the virtual power plant system based on the edge-to-edge directed association matrix of the virtual power plant system, and obtain the edge-to-edge consistency error and edge event measurement sampling error of each virtual machine group based on the output frequency of each virtual machine group in the edge-to-edge dynamic equation, wherein the edge-to-edge dynamic equation is composed of the edge-to-edge directed association matrix, the output frequency of each virtual machine group, and the edge event triggering control protocol to be determined;
[0007] Determine the edge event triggering control protocol of each virtual machine group based on the edge event measurement sampling error of each virtual machine group and the weight matrix of the corresponding edge, and determine the edge event triggering mechanism of each virtual machine group, and when the edge event triggering mechanism of a virtual machine group meets the triggering condition, update the edge event triggering control protocol of the virtual machine group;
[0008] Based on the edge event triggering control protocol of each virtual machine group and the edge-to-edge consistency error control, the edge states of each virtual machine group converge to the same target, so that the virtual power plant system reaches a consistent state.
[0009] Optionally, determining the edge-to-edge dynamic equation of the virtual power plant system based on the edge-to-edge directed association matrix of the virtual power plant system includes:
[0010] Establishing a dynamic equation for the consistency of each virtual machine group, wherein the dynamic equation for the consistency of each virtual machine group is composed of an output frequency of the virtual machine group and a side event triggering control protocol of the virtual machine group;
[0011] Based on the edge-to-edge directed association matrix, the output frequency of each virtual machine group is mapped from the node space to the edge space to obtain the edge-to-edge state variables of the virtual power plant system;
[0012] The edge-to-edge state variables of the virtual power plant system are used to simplify the dynamic equations of consistency of the virtual machine groups, so as to obtain the edge-to-edge dynamic equations of the virtual power plant system.
[0013] Optionally, the using the edge-to-edge state variables of the virtual power plant system to simplify the dynamic equations of consistency of each virtual machine group to obtain the edge-to-edge dynamic equations of the virtual power plant system includes:
[0014] Marking the edge-to-edge directed association matrix to obtain a marked edge-to-edge directed association matrix, wherein the marked edge-to-edge directed association matrix is composed of a full column rank association matrix of a communication topology graph containing an arbitrary spanning tree and association matrices corresponding to remaining edges of the communication topology graph not containing an arbitrary spanning tree;
[0015] Simplifying the edge-to-edge directed association matrix using the full column rank association matrix and the association matrices corresponding to the remaining edges to obtain a simplified edge-to-edge directed association matrix;
[0016] Simplifying the edge-to-edge state variables of the virtual power plant system by using the simplified edge-to-edge directed association matrix to obtain simplified edge-to-edge state variables of the virtual power plant system;
[0017] The simplified edge-to-edge state variables are used to transform the dynamic equations of consistency of each virtual machine group into the edge-to-edge dynamic equations of the virtual power plant system.
[0018] Optionally, the obtaining the edge-to-edge consistency error and the edge event measurement sampling error of each virtual machine group based on the output frequency of each virtual machine group in the edge-to-edge dynamic equation includes:
[0019] Extracting edge state variables of each virtual machine group from the simplified edge-to-edge state variables of the virtual power plant system, wherein the edge state variables of each virtual machine group are composed of the edge-to-edge directed association matrix and the output frequency of the virtual machine group;
[0020] Determine an edge-to-edge consistency error of each virtual machine group, wherein the edge-to-edge consistency error of each virtual machine group is equal to a difference between an edge state variable of the virtual machine group and an edge state variable of an adjacent virtual machine group;
[0021] Determine the estimated value variable corresponding to the edge state variable of each virtual machine group, calculate the difference between the estimated value variable of each virtual machine group and the corresponding edge state variable, and obtain the edge event measurement sampling error of each virtual machine group.
[0022] Optionally, before determining the edge event triggering mechanism of each virtual machine group, the method further includes:
[0023] Determine a trigger function for each virtual machine group based on the edge-to-edge directed association matrix, the edge-to-edge consistency error of each virtual machine group, and a weight matrix of the corresponding edge;
[0024] The edge event triggering mechanism of each virtual machine group is determined based on the triggering function of each virtual machine group.
[0025] Optionally, when the edge event triggering mechanism of a virtual machine group meets the triggering condition, updating the edge event triggering control protocol of the virtual machine group includes:
[0026] When the edge event trigger mechanism of a virtual machine group meets the trigger conditions, the edge event measurement sampling error of the virtual machine group is set to 0 so that the edge state variable of the virtual machine group is equal to the corresponding estimated value variable, and the edge state variable of the virtual machine group is used to replace the corresponding estimated value variable in the edge event trigger control protocol of the virtual machine group to obtain an updated edge event trigger control protocol of the virtual machine group.
[0027] Optionally, the triggering of a control protocol based on edge events of each virtual machine group and edge-to-edge consistency error controls the edge states of each virtual machine group to converge to the same target so that the virtual power plant system reaches a consistent state, including:
[0028] Establishing a Lyapunov function based on the edge-to-edge consistency error of each virtual machine group, and determining the derivative of the edge-to-edge consistency error of each virtual machine group;
[0029] Deriving the Lyapunov function to obtain a derivative of the Lyapunov function, substituting the derivative of the edge-to-edge consistency error of each virtual machine group into the derivative of the Lyapunov function to obtain an intermediate derivative of the Lyapunov function;
[0030] The trigger condition is used to process the intermediate derivative of the Lyapunov function to obtain the target derivative of the Lyapunov function, and the target derivative of the Lyapunov function is set to a specified value to control the edge states of each virtual machine group to converge to the same preset target so that the virtual power plant system reaches a consistent state, and the value of the specified value is less than or equal to 0.
[0031] Optionally, the preset target is that the output frequency of the virtual machine group is the same as the output frequency of an adjacent virtual machine group.
[0032] According to a second aspect of the present application, a multi-agent-based virtual power plant system consistency control device is provided, wherein the virtual power plant system includes a plurality of virtual machine groups, including:
[0033] An establishing module, used to establish an edge-to-edge directed communication topology graph of the virtual power plant system based on the multiple virtual machine groups, and to establish an edge-to-edge directed association matrix of the virtual power plant system based on the edge-to-edge directed communication topology graph, wherein the edge-to-edge directed communication topology graph is composed of multiple virtual machine group nodes, edges between adjacent virtual machine group nodes, and a weight matrix of each edge;
[0034] A determination module, used to determine the edge-to-edge dynamic equation of the virtual power plant system based on the edge-to-edge directed association matrix of the virtual power plant system, and to obtain the edge-to-edge consistency error and edge event measurement sampling error of each virtual machine group based on the output frequency of each virtual machine group in the edge-to-edge dynamic equation, wherein the edge-to-edge dynamic equation is composed of the edge-to-edge directed association matrix and the output frequency of each virtual machine group, and the edge event triggering control protocol to be determined;
[0035] An update module is used to determine the edge event triggering control protocol of each virtual machine group based on the edge event measurement sampling error of each virtual machine group and the weight matrix of the corresponding edge, and determine the edge event triggering mechanism of each virtual machine group, and when the edge event triggering mechanism of a virtual machine group meets the triggering condition, update the edge event triggering control protocol of the virtual machine group;
[0036] The control module is used to control the edge states of each virtual machine group to converge to the same target based on the edge event triggering control protocol of each virtual machine group and the edge-to-edge consistency error, so that the virtual power plant system reaches a consistent state.
[0037] By means of the above technical scheme, the present application provides a method and device for consistency control of a virtual power plant system based on a multi-agent. The present application first establishes an edge-to-edge directed communication topology diagram of the virtual power plant system, and then establishes an edge-to-edge directed association matrix of the virtual power plant system. The edge-to-edge dynamic equation of the virtual power plant system is determined through the edge-to-edge directed association matrix of the virtual power plant system. Then, the edge-to-edge consistency error and edge event measurement sampling error of each virtual machine group are obtained through the output frequency of each virtual machine group in the edge-to-edge dynamic equation of the virtual power plant system. Then, the edge event triggering control protocol of each virtual machine group is determined based on the edge event measurement sampling error of each virtual machine group and the weight matrix of the corresponding edge. Then, the edge event triggering control protocol of each virtual machine group is determined. Whether the edge event triggering mechanism meets the triggering conditions. When the edge event triggering mechanism of a virtual machine group meets the triggering conditions, the edge event triggering control protocol of the virtual machine group is updated. Through the edge event triggering control protocols of each virtual machine group and the edge-to-edge consistency error, the edge states of each virtual machine group are controlled to converge to the same target, so that the virtual power plant system reaches a consistent state; the present application updates the edge event triggering control protocol of the virtual machine group corresponding to the virtual host whose edge event triggering mechanism meets the triggering conditions, and subsequently controls the edge states of each virtual machine group to converge to the same target based on this, solves the consistency problem of multiple virtual machine groups, effectively reduces the communication frequency between virtual machine groups, and thereby reduces the communication resource consumption and power consumption of the virtual machine group, enhancing the practical applicability.
[0038] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0040] Figure 1 A flowchart of a multi-agent-based virtual power plant system consistency control method provided in an embodiment of the present application is shown;
[0041] Figure 2 A flowchart of another multi-agent-based virtual power plant system consistency control method provided in an embodiment of the present application is shown;
[0042] Figure 3 A schematic diagram of the structure of a multi-agent based virtual power plant system consistency control device provided in an embodiment of the present application is shown;
[0043] Figure 4 A structural schematic diagram of a multi-agent-based virtual power plant system consistency control device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0044] Various aspects and features of the present application are described herein with reference to the accompanying drawings.
[0045] It should be understood that various modifications may be made to the embodiments of the present application. Therefore, the above description should not be considered as limiting, but only as an example of an embodiment. Other modifications within the scope and spirit of the present application will occur to those skilled in the art.
[0046] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.
[0047] These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment given as a non-limiting example with reference to the accompanying drawings.
[0048] It should also be understood that although the present application has been described with reference to some specific examples, those skilled in the art will be able to readily implement many other equivalent forms of the present application.
[0049] The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
[0050] Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it should be understood that the embodiments applied for are merely examples of the present application, which can be implemented in a variety of ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that make the present application unclear. This specification may use the phrases "in one embodiment", "in another embodiment", "in yet another embodiment" or "in other embodiments", which may refer to one or more of the same or different embodiments according to the present application.
[0051] The embodiment of the present application provides a method for controlling consistency of a virtual power plant system based on multi-agents. The virtual power plant system includes multiple virtual machine groups, such as Figure 1 As shown, including:
[0052] 101. Establish an edge-to-edge directed communication topology graph of a virtual power plant system based on multiple virtual machine groups, and establish an edge-to-edge directed association matrix of the virtual power plant system based on the edge-to-edge directed communication topology graph.
[0053] In the embodiment of the present application, considering that the virtual power plant system includes many virtual motors, and the state quantity of each virtual motor is different, that is, the virtual power plant system has a complex network relationship, the present application proposes a new method for solving the problem of collaborative control of multiple virtual machine groups, so that the convergence speed between nodes of the virtual power plant system is faster and the convergence accuracy is higher, thereby enabling the virtual power plant system to reach a consistent state. First, an edge-to-edge directed communication topology graph of the virtual power plant system is established based on the virtual machine group, and then an edge-to-edge directed association matrix of the virtual power plant system is established based on the edge-to-edge directed communication topology graph. It should be noted that the edge-to-edge directed communication topology graph is composed of multiple virtual machine group nodes, edges between adjacent virtual machine group nodes, and a weight matrix for each edge. For example, the edge-to-edge directed communication topology graph can be used Description, where express N A collection of virtual machine group nodes, each node represents a virtual machine group, Indicates the nodes in a virtual machine group M A collection of edges, each of which can also represent information communication between agents. is the edge weight matrix, w ij Indicates the connection weight between virtual machine groups. , ,node i Can receive nodes j Information, ,otherwise, , b ij Represents a directed edge, that is, from node i To Node j The connecting edge.
[0054] It should be noted that the intelligent agent can be understood as a group of virtual machines in this application.
[0055] 102. The edge-to-edge dynamic equation of the virtual power plant system is determined based on the edge-to-edge directed correlation matrix of the virtual power plant system, and the edge-to-edge consistency error and edge event measurement sampling error of each virtual machine group are obtained based on the output frequency of each virtual machine group in the edge-to-edge dynamic equation.
[0056] In the embodiment of the present application, the edge-to-edge dynamic equation of the virtual power plant system can be determined based on the edge-to-edge directed association matrix of the virtual power plant system, that is, the edge-to-edge dynamic equation of the virtual power plant system is composed of the edge-to-edge directed association matrix and the output frequency of each virtual machine group and the edge event triggering control protocol to be determined, that is, the specific form of the edge-to-edge dynamic equation is:
[0057] ,
[0058] in, Indicates the conversion i The derivative of the state variable of the virtual machine group, , I N express N The identity matrix, , A is the system matrix of the first compatible dimension, B is the system matrix of the second compatible dimension, x i For the i The state variables of the virtual machine group, u i To be determined i The edge event triggers the control protocol for the virtual machine group. x for N The set of state variables of a virtual machine group, u for N A set of edge event-triggered control protocols for the virtual machine groups to be determined, E T is the transpose of the edge-to-edge directed incidence matrix.
[0059] Furthermore, the edge-to-edge consistency error and edge event measurement sampling error of each virtual machine group are obtained based on the output frequency of each virtual machine group in the edge-to-edge dynamic equation.
[0060] 103. Determine the edge event triggering control protocol of each virtual machine group based on the edge event measurement sampling error of each virtual machine group and the weight matrix of the corresponding edge, and determine the edge event triggering mechanism of each virtual machine group. When the edge event triggering mechanism of a virtual machine group meets the triggering condition, update the edge event triggering control protocol of the virtual machine group;
[0061] In an embodiment of the present application, after determining the edge event measurement sampling error of each virtual machine group, the edge event triggering control protocol of each virtual machine group can be determined in combination with the weight matrix of the corresponding edge, and then the edge event triggering mechanism of each virtual machine group is determined. When the edge event triggering mechanism of a virtual machine group meets the triggering conditions, this means that the virtual machine group only communicates with the adjacent virtual machine group. At this time, the edge event measurement sampling error of the virtual machine group can be set to 0. Based on this, the edge event triggering control protocol of the virtual machine group is updated. After the above steps, whenever it is determined that the edge event triggering mechanism of the virtual machine group meets the triggering conditions, the edge event triggering control protocols of these virtual machine groups will be updated, which will be used to converge the edge states of each virtual machine group to the same target.
[0062] 104. Based on the edge event triggering control protocol of each virtual machine group and the edge-to-edge consistency error control, the edge states of each virtual machine group converge to the same target, so that the virtual power plant system reaches a consistent state.
[0063] In an embodiment of the present application, based on the edge event triggering control protocol of each virtual machine group and the edge-to-edge consistency error control, the edge states of each virtual machine group converge to the same target, so that the virtual power plant system reaches a consistent state, that is, the virtual power plant system achieves edge-to-edge consistency.
[0064] The method provided in the embodiment of the present application first establishes an edge-to-edge directed communication topology diagram of the virtual power plant system, and then establishes an edge-to-edge directed association matrix of the virtual power plant system, determines the edge-to-edge dynamic equation of the virtual power plant system through the edge-to-edge directed association matrix of the virtual power plant system, and then obtains the edge-to-edge consistency error and edge event measurement sampling error of each virtual machine group through the output frequency of each virtual machine group in the edge-to-edge dynamic equation of the virtual power plant system, and then determines the edge event triggering control protocol of each virtual machine group based on the edge event measurement sampling error of each virtual machine group and the weight matrix of the corresponding edge, and then determines whether the edge event triggering mechanism of each virtual machine group meets the triggering conditions. When a virtual When the edge event trigger mechanism of the unit meets the trigger conditions, the edge event trigger control protocol of the virtual machine group is updated, and the edge states of each virtual machine group are controlled to converge to the same target through the edge event trigger control protocol of each virtual machine group and the edge-to-edge consistency error, so that the virtual power plant system reaches a consistent state; the present application updates the edge event trigger control protocol of the virtual machine group corresponding to the virtual host whose edge event trigger mechanism meets the trigger conditions, and subsequently controls the edge states of each virtual machine group to converge to the same target based on this, thereby solving the consistency problem of multiple virtual machine groups, effectively reducing the communication frequency between virtual machine groups, and thereby reducing the communication resource consumption and power consumption of the virtual machine groups, and enhancing practical applicability.
[0065] Further, as a refinement and extension of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, the embodiment of the present application provides another virtual power plant system consistency control method based on multi-agents, such as Figure 2 As shown, the method includes:
[0066] 201. Establish an edge-to-edge directed communication topology graph of a virtual power plant system based on multiple virtual machine groups.
[0067] 202. An edge-to-edge directed association matrix of a virtual power plant system is established based on the edge-to-edge directed communication topology graph.
[0068] In the embodiment of the present application, the edge-to-edge directed association matrix is expressed as , where the rows represent the nodes of the virtual power plant system and the columns represent the edges of the virtual power plant system, for example, [E] ij =−1 indicates a node i It is a directed edge b ij The end node of[E] ij =1 indicates a node i It is a directed edge b ij The initial node, otherwise [E] ij =0.
[0069] It should be noted that it is also necessary to define in advance that the edge-to-edge directed association matrix is equal to the sum of the internal association matrix and the external association matrix, that is, ,in, represents the internal incidence matrix, represents the external incidence matrix.
[0070] That is to say, the edge-to-edge consistency of the virtual power plant system aims to make the difference between adjacent nodes in the complex network consistent, and the corresponding control scheme aims to synchronize the individual states of all virtual machine groups, and the synchronization target of the individual states can be converted to the edge state convergence to 0. In contrast, the prior art mainly considers the node-to-node relationship between the state quantities of virtual machine groups, and the prior art multi-virtual machine group consistency control method aims to make the states of all nodes in the virtual power plant communication network consistent.
[0071] 203. The edge-to-edge dynamic equations of the virtual power plant system are determined based on the edge-to-edge directed correlation matrix of the virtual power plant system.
[0072] In the embodiment of the present application, a dynamic equation for the consistency of each virtual machine group is first established. The dynamic equation for the consistency of each virtual machine group is composed of the output frequency of the virtual machine group and the edge event triggering control protocol of the virtual machine group. The specific form of the dynamic equation for the consistency of each virtual machine group is:
[0073] ,
[0074] in, Indicates i The state variable of a virtual machine group, that is, the output frequency of the virtual machine group, Indicates the pending i The edge event triggers the control protocol for the virtual machine group. A is the system matrix of the first compatible dimension, B is the system matrix of the second compatible dimension.
[0075] Next, based on the edge-to-edge directed association matrix, the output frequency of each virtual machine group is mapped from the node space to the edge space to obtain the edge-to-edge state variables of the virtual power plant system. That is, by using the coordinate transformation method, the node space is mapped to the edge space. The specific form of the edge-to-edge state variables of the virtual power plant system is:
[0076] ,
[0077] in, , , z The state variables corresponding to the edge-to-edge consistency of the virtual machine group, E T Represents the transpose of the edge-to-edge directed incidence matrix.
[0078] Afterwards, the edge-to-edge directed association matrix is labeled to obtain a labeled edge-to-edge directed association matrix, which is composed of the full column rank association matrix of the communication topology graph containing any spanning tree and the association matrix corresponding to the remaining edges of the communication topology graph that does not contain any spanning tree. In other words, the equivalent simplified dynamic system is represented by edge-to-edge state variables, and the association matrix is appropriately labeled. The labeled edge-to-edge directed association matrix can be expressed as:
[0079] ,
[0080] in, represents the full column rank incidence matrix of the communication topology graph containing any spanning tree, where , Represents the incidence matrix corresponding to the remaining edges of the communication topology graph that does not contain any spanning tree.
[0081] Then, the edge-to-edge directed association matrix is simplified using the full column rank association matrix and the association matrix corresponding to the remaining edges to obtain a simplified edge-to-edge directed association matrix. The specific form of the simplified edge-to-edge directed association matrix is:
[0082] ,
[0083] in, , I N-1 express N -1 identity matrix, .
[0084] Furthermore, the simplified edge-to-edge directed association matrix is used to simplify the edge-to-edge state variables of the virtual power plant system to obtain the simplified edge-to-edge state variables of the virtual power plant system. The specific form of the simplified edge-to-edge state variables is:
[0085] ,
[0086] in, , .
[0087] Finally, the simplified edge-to-edge state variables are used to transform the dynamic equations of consistency of each virtual machine group into the edge-to-edge dynamic equations of the virtual power plant system. The specific form of the edge-to-edge dynamic equations is:
[0088] ,
[0089] in, Indicates the conversion i The derivative of the state variable of the virtual machine group, , I N express N The identity matrix, .
[0090] 204. Based on the output frequency of each virtual machine group in the edge-to-edge dynamic equation, the edge-to-edge consistency error and the edge event measurement sampling error of each virtual machine group are obtained.
[0091] In the embodiment of the present application, the edge state variables of each virtual machine group are first extracted from the simplified edge-to-edge state variables of the virtual power plant system. The edge state variables of each virtual machine group are composed of an edge-to-edge directed association matrix and the output frequency of the virtual machine group, for example z i , z j wait
[0092] Next, the edge-to-edge consistency error of each virtual machine group is determined, wherein the edge-to-edge consistency error of each virtual machine group is equal to the difference between the edge state variable of the virtual machine group and the edge state variable of an adjacent virtual machine group. The specific form of the edge-to-edge consistency error of each virtual machine group is:
[0093] ,
[0094] in, Indicates i The edge state variables of the virtual machine group, Indicates j The edge state variables of the virtual machine group, Indicates i The edge-to-edge consistency error of the virtual machine groups. The adjacent virtual machine groups here should not only be connected to the virtual machine group, but also be on the same edge as the virtual machine group.
[0095] It should be noted that the edge-to-edge consistency error of each virtual machine group also needs to meet the edge-to-edge consistency stability condition of the virtual power plant system, that is,
[0096] ,
[0097] in, t For time.
[0098] After that, it is necessary to determine the estimated value variable corresponding to the edge state variable of each virtual machine group, calculate the difference between the estimated value variable of each virtual machine group and the corresponding edge state variable, and obtain the edge event measurement sampling error of each virtual machine group. The specific form of the edge event measurement sampling error of each virtual machine group is:
[0099] ,
[0100] in, For the i The edge event measurement sampling error of the virtual machine group, Express The estimated value variable, Indicates followers j (No. j virtual machine groups) through the edge To followers i (No. i virtual machine group) k A trigger moment, Indicates followers j Through the edge To followers i The first k+1 A trigger moment, and
[0101] ,
[0102] in, represents the state transition matrix.
[0103] 205. Obtain the edge event triggering mechanism of each virtual machine group, and when the edge event triggering mechanism of a virtual machine group meets the triggering condition, update the edge event triggering control protocol of the virtual machine group.
[0104] In the embodiment of the present application, the specific method for obtaining the edge event triggering mechanism of each virtual machine group is:
[0105] First, the trigger function of each virtual machine group is determined based on the edge-to-edge directed association matrix, the edge-to-edge consistency error of each virtual machine group, and the weight matrix of the corresponding edge. The specific form of the trigger function of each virtual machine group is:
[0106] ,
[0107] in, h ij Represents the trigger function, , , d is a positive constant, Q is a positive definite matrix.
[0108] Next, the edge event triggering mechanism of each virtual machine group is determined based on the triggering function of each virtual machine group. The specific form of the edge event triggering mechanism of each virtual machine group is:
[0109] ,
[0110] in, Indicates a trigger function, inf indicates that a specific condition is met The minimum value under .
[0111] Then, when it is determined that the edge event trigger mechanism of a virtual machine group meets the trigger condition, the edge event trigger control protocol of the virtual machine group is updated. The specific form of the trigger condition here is:
[0112] ,
[0113] That is, the trigger function in the edge event trigger mechanism meets the trigger condition, indicating that the edge event is triggered. The virtual machine group meets the current edge event trigger condition and only communicates with the adjacent virtual machine group. At this time, the edge event measurement sampling error of the virtual machine group is set to 0. In other words, the edge state variable of the virtual machine group can be made Equal to the corresponding estimated value variable ,Right now, , using the edge state variables of the virtual machine group The corresponding estimated value variable in the edge event triggering control protocol of the virtual machine group Replace it and get the updated edge event triggering control protocol of the virtual machine group, which is as follows:
[0114] Get the i Edge event triggering protocol for VM groups u i ,Right now,
[0115] ,
[0116] in, d is a positive constant, F is the feedback gain matrix to be determined, and ;
[0117] use For i Edge event triggering protocol for VM groups u i In Replace it and get the edge event trigger control protocol of the updated virtual machine group ,Right now,
[0118] .
[0119] 206. Based on the edge event triggering control protocol of each virtual machine group and the edge-to-edge consistency error control, the edge states of each virtual machine group converge to the same target, so that the virtual power plant system reaches a consistent state.
[0120] In the embodiment of the present application, it can be known from step 205 that for the virtual machine groups whose edge event trigger mechanism meets the trigger condition, the edge event measurement sampling error of these virtual machine groups is set to 0, based on which, the edge event trigger control protocol of these virtual machine groups is updated. For example, the virtual power plant system includes 5 virtual machine groups, of which the edge event trigger mechanism of 2 virtual machine groups meets the trigger condition, the edge event measurement sampling error of these 2 virtual machine groups is set to 0, and the edge event trigger control protocol of these 2 virtual machine groups is updated. Therefore, in step 206, the following steps can be specifically performed:
[0121] First, a Lyapunov function is established based on the edge-to-edge consistency error of each virtual machine group, and the derivative of the edge-to-edge consistency error of each virtual machine group is determined. The specific form of the Lyapunov function is:
[0122] ,
[0123] The specific form of the derivative of the edge-to-edge consistency error of each virtual machine group is:
[0124] ,
[0125] in, Indicates j The state variable of a virtual machine group, that is, the output frequency of the virtual machine group, Indicates j The edge event triggers the control protocol for a group of virtual machines.
[0126] Next, the Lyapunov function is differentiated to obtain the derivative of the Lyapunov function. The derivative of the edge-to-edge consistency error of each virtual machine group is substituted into the derivative of the Lyapunov function to obtain the intermediate derivative of the Lyapunov function. The specific form of the intermediate derivative of the Lyapunov function is:
[0127] ,
[0128] in, represents the intermediate derivative of the Lyapunov function.
[0129] Then, the intermediate derivative of the Lyapunov function is processed using the trigger condition to obtain the target derivative of the Lyapunov function. The specific form of the target derivative of the Lyapunov function is:
[0130] ,
[0131] Finally, by setting the target derivative of the Lyapunov function to be less than or equal to 0, the edge states of each virtual machine group are controlled to converge to the same preset target, so that the virtual power plant system reaches a consistent state. Setting the derivative of the target Lyapunov function to be less than or equal to 0 can be expressed as:
[0132] ,
[0133] That is, when the target derivative of the Lyapunov function When , the virtual power plant system reaches edge-to-edge consistency asymptotic stability.
[0134] It should also be noted that in the representation of edge-to-edge state variables, the edge-to-edge error coordinate is set as the difference between adjacent state variables of the virtual power plant system. The consistency problem can be restated as the stability problem of the origin in the error coordinate. When setting the edge-to-edge consistency stability goal of the virtual power plant system based on multi-agents, the consistency condition needs to satisfy , that is, the output frequency of a virtual machine group is the same as the output frequency of an adjacent virtual machine group, ultimately achieving edge-to-edge consistency of the virtual power plant system.
[0135] The method provided in the embodiment of the present application first establishes an edge-to-edge directed communication topology diagram of the virtual power plant system, and then establishes an edge-to-edge directed association matrix of the virtual power plant system, determines the edge-to-edge dynamic equation of the virtual power plant system through the edge-to-edge directed association matrix of the virtual power plant system, and then obtains the edge-to-edge consistency error and edge event measurement sampling error of each virtual machine group through the output frequency of each virtual machine group in the edge-to-edge dynamic equation of the virtual power plant system, and then determines the edge event triggering control protocol of each virtual machine group based on the edge event measurement sampling error of each virtual machine group and the weight matrix of the corresponding edge, and then determines whether the edge event triggering mechanism of each virtual machine group meets the triggering conditions. When a virtual When the edge event trigger mechanism of the unit meets the trigger conditions, the edge event trigger control protocol of the virtual machine group is updated, and the edge states of each virtual machine group are controlled to converge to the same target through the edge event trigger control protocol of each virtual machine group and the edge-to-edge consistency error, so that the virtual power plant system reaches a consistent state; the present application updates the edge event trigger control protocol of the virtual machine group corresponding to the virtual host whose edge event trigger mechanism meets the trigger conditions, and subsequently controls the edge states of each virtual machine group to converge to the same target based on this, thereby solving the consistency problem of multiple virtual machine groups, effectively reducing the communication frequency between virtual machine groups, and thereby reducing the communication resource consumption and power consumption of the virtual machine groups, and enhancing practical applicability.
[0136] Further, as Figure 1 The specific implementation of the method is as follows: Figure 3As shown, an embodiment of the present invention provides a virtual power plant system consistency control device based on multi-agent, including: an establishment module 301, a determination module 302, an update module 303 and a control module 304.
[0137] The establishment module 301 is used to establish an edge-to-edge directed communication topology graph of the virtual power plant system based on the multiple virtual machine groups, and to establish an edge-to-edge directed association matrix of the virtual power plant system based on the edge-to-edge directed communication topology graph, wherein the edge-to-edge directed communication topology graph is composed of multiple virtual machine group nodes, edges between adjacent virtual machine group nodes, and a weight matrix of each edge;
[0138] The determination module 302 is used to determine the edge-to-edge dynamic equation of the virtual power plant system based on the edge-to-edge directed association matrix of the virtual power plant system, and obtain the edge-to-edge consistency error and edge event measurement sampling error of each virtual machine group based on the output frequency of each virtual machine group in the edge-to-edge dynamic equation, wherein the edge-to-edge dynamic equation is composed of the edge-to-edge directed association matrix and the output frequency of each virtual machine group, and the edge event triggering control protocol to be determined;
[0139] The updating module 303 is used to determine the edge event triggering control protocol of each virtual machine group based on the edge event measurement sampling error of each virtual machine group and the weight matrix of the corresponding edge, and determine the edge event triggering mechanism of each virtual machine group, and when the edge event triggering mechanism of a virtual machine group meets the triggering condition, update the edge event triggering control protocol of the virtual machine group;
[0140] The control module 304 is used to control the edge states of each virtual machine group to converge to the same target based on the edge event triggering control protocol of each virtual machine group and the edge-to-edge consistency error, so that the virtual power plant system reaches a consistent state.
[0141] In a specific application scenario, the determination module 302 is also used to: establish a dynamic equation for the consistency of each virtual machine group, wherein the dynamic equation for the consistency of each virtual machine group is composed of the output frequency of the virtual machine group and the edge event triggering control protocol of the virtual machine group; based on the edge-to-edge directed association matrix, the output frequency of each virtual machine group is mapped from the node space to the edge space to obtain the edge-to-edge state variables of the virtual power plant system; use the edge-to-edge state variables of the virtual power plant system to simplify the dynamic equation for the consistency of each virtual machine group to obtain the edge-to-edge dynamic equation of the virtual power plant system.
[0142] In a specific application scenario, the determination module 302 is also used to: mark the edge-to-edge directed association matrix to obtain a marked edge-to-edge directed association matrix, wherein the marked edge-to-edge directed association matrix is composed of a full column rank association matrix of a communication topology graph containing any spanning tree and an association matrix corresponding to the remaining edges of the communication topology graph that does not contain any spanning tree; simplify the edge-to-edge directed association matrix using the full column rank association matrix and the association matrix corresponding to the remaining edges to obtain a simplified edge-to-edge directed association matrix; simplify the edge-to-edge state variables of the virtual power plant system using the simplified edge-to-edge directed association matrix to obtain the simplified edge-to-edge state variables of the virtual power plant system; and convert the dynamic equations of the consistency of each virtual machine group into the edge-to-edge dynamic equations of the virtual power plant system using the simplified edge-to-edge state variables.
[0143] In a specific application scenario, the determination module 302 is also used to: extract the edge state variables of each virtual machine group from the simplified edge-to-edge state variables of the virtual power plant system, the edge state variables of each virtual machine group being composed of the edge-to-edge directed association matrix and the output frequency of the virtual machine group; determine the edge-to-edge consistency error of each virtual machine group, wherein the edge-to-edge consistency error of each virtual machine group is equal to the difference between the edge state variable of the virtual machine group and the edge state variable of an adjacent virtual machine group; determine the estimated value variable corresponding to the edge state variable of each virtual machine group, calculate the difference between the estimated value variable of each virtual machine group and the corresponding edge state variable, and obtain the edge event measurement sampling error of each virtual machine group.
[0144] In specific application scenarios, such as Figure 4 As shown, the device also includes: an acquisition module 305.
[0145] The acquisition module 305 is used to determine the trigger function of each virtual machine group based on the edge-to-edge directed association matrix, the edge-to-edge consistency error of each virtual machine group and the weight matrix of the corresponding edge; and determine the edge event trigger mechanism of each virtual machine group based on the trigger function of each virtual machine group.
[0146] In a specific application scenario, the update module 303 is also used to: when the edge event trigger mechanism of a virtual machine group meets the trigger condition, set the edge event measurement sampling error of the virtual machine group to 0 so that the edge state variable of the virtual machine group is equal to the corresponding estimated value variable, and use the edge state variable of the virtual machine group to replace the corresponding estimated value variable in the edge event trigger control protocol of the virtual machine group to obtain an updated edge event trigger control protocol of the virtual machine group.
[0147] In a specific application scenario, the control module 304 is also used to: establish a Lyapunov function based on the edge-to-edge consistency error of each virtual machine group, and determine the derivative of the edge-to-edge consistency error of each virtual machine group; derive the Lyapunov function to obtain the derivative of the Lyapunov function, substitute the derivative of the edge-to-edge consistency error of each virtual machine group into the derivative of the Lyapunov function to obtain the intermediate derivative of the Lyapunov function; use the trigger condition to process the intermediate derivative of the Lyapunov function to obtain the target derivative of the Lyapunov function, and set the target derivative of the Lyapunov function to a specified value so as to control the edge state of each virtual machine group to converge to the same preset target, so that the virtual power plant system reaches a consistent state, and the value of the specified value is less than or equal to 0.
[0148] In a specific application scenario, the control module 304 is further used to: the preset target is that the output frequency of the virtual machine group is the same as the output frequency of an adjacent virtual machine group.
[0149] The device provided by the embodiment of the present application first establishes an edge-to-edge directed communication topology diagram of the virtual power plant system through an establishment module, and then establishes an edge-to-edge directed association matrix of the virtual power plant system, and determines the edge-to-edge dynamic equation of the virtual power plant system by using the edge-to-edge directed association matrix of the virtual power plant system through a determination module, and then obtains the edge-to-edge consistency error and edge event measurement sampling error of each virtual machine group through the output frequency of each virtual machine group in the edge-to-edge dynamic equation of the virtual power plant system, and then determines the edge event triggering control protocol of each virtual machine group based on the edge event measurement sampling error of each virtual machine group and the weight matrix of the corresponding edge through an update module, and then judges whether the edge event triggering mechanism of each virtual machine group meets the triggering conditions When the edge event trigger mechanism of a virtual machine group meets the trigger conditions, the edge event trigger control protocol of the virtual machine group is updated, and the edge state of each virtual machine group is controlled to converge to the same target by using the edge event trigger control protocol of each virtual machine group and the edge-to-edge consistency error through the control module, so that the virtual power plant system reaches a consistent state; the application updates the edge event trigger control protocol of the virtual machine group corresponding to the virtual host whose edge event trigger mechanism meets the trigger conditions, and subsequently controls the edge state of each virtual machine group to converge to the same target based on this, solves the consistency problem of multiple virtual machine groups, effectively reduces the communication frequency between virtual machine groups, thereby reducing the communication resource consumption and power consumption of the virtual machine group, and enhancing the practical applicability.
[0150] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by hardware, or by means of software plus necessary general hardware platforms. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the present application.
[0151] Those skilled in the art will appreciate that the accompanying drawings are merely schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily required for implementing the present application.
[0152] Those skilled in the art will appreciate that the modules in the device in the implementation scenario can be distributed in the device in the implementation scenario according to the implementation scenario description, or can be changed accordingly and located in one or more devices different from the implementation scenario. The modules in the above implementation scenario can be combined into one module, or can be further split into multiple sub-modules.
[0153] The above application serial numbers are for description only and do not represent the advantages or disadvantages of the implementation scenarios.
[0154] Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present application.
Claims
1. A consistency control method for a virtual power plant system based on multi-agents, wherein the virtual power plant system comprises a plurality of virtual machine groups, characterized in that: include: An edge-to-edge directed communication topology graph of the virtual power plant system is established based on the multiple virtual machine groups, and an edge-to-edge directed association matrix of the virtual power plant system is established based on the edge-to-edge directed communication topology graph, wherein the edge-to-edge directed communication topology graph is composed of multiple virtual machine group nodes, edges between adjacent virtual machine group nodes, and a weight matrix of each edge; Determine the edge-to-edge dynamic equation of the virtual power plant system based on the edge-to-edge directed association matrix of the virtual power plant system, and obtain the edge-to-edge consistency error and edge event measurement sampling error of each virtual machine group based on the output frequency of each virtual machine group in the edge-to-edge dynamic equation, wherein the edge-to-edge dynamic equation is composed of the edge-to-edge directed association matrix, the output frequency of each virtual machine group, and the edge event triggering control protocol to be determined; Determine the edge event triggering control protocol of each virtual machine group based on the edge event measurement sampling error of each virtual machine group and the weight matrix of the corresponding edge, and determine the edge event triggering mechanism of each virtual machine group, and when the edge event triggering mechanism of a virtual machine group meets the triggering condition, update the edge event triggering control protocol of the virtual machine group; Based on the edge event triggering control protocol of each virtual machine group and the edge-to-edge consistency error control, the edge states of each virtual machine group converge to the same target, so that the virtual power plant system reaches a consistent state; Before determining the edge event triggering mechanism of each virtual machine group, the method further includes: Determine a trigger function for each virtual machine group based on the edge-to-edge directed association matrix, the edge-to-edge consistency error of each virtual machine group, and a weight matrix of the corresponding edge; Determine the edge event triggering mechanism of each virtual machine group based on the triggering function of each virtual machine group; The trigger function of each virtual machine group is: , in, h ij Represents the trigger function, A is the system matrix of the first compatible dimension, Q is a positive definite matrix, Indicates i The edge-to-edge consistency error of the virtual machine group is d is a normal number, , B is the system matrix of the second compatible dimension, , E is the simplified edge-to-edge directed incidence matrix, For the i The edge event measurement sampling error of the virtual machine group is w ij represents the connection weight between virtual machine groups; When the edge event triggering mechanism of a virtual machine group meets the triggering condition, updating the edge event triggering control protocol of the virtual machine group includes: When the edge event trigger mechanism of a virtual machine group meets the trigger condition, the edge event measurement sampling error of the virtual machine group is set to 0 so that the edge state variable of the virtual machine group is equal to the corresponding estimated value variable, and the edge state variable of the virtual machine group is used to replace the corresponding estimated value variable in the edge event trigger control protocol of the virtual machine group to obtain an updated edge event trigger control protocol of the virtual machine group; The updated edge event triggering control protocol of the virtual machine group is: , in, For the updated i The edge event trigger protocol of a virtual machine group, d is a normal number, F is the feedback gain matrix to be determined, and , is the edge state variable of the virtual machine group The estimated value variable, is the edge state variable of the virtual machine group; The edge event-triggered control protocol of each virtual machine group and the edge-to-edge consistency error control of the edge states of each virtual machine group converge to the same target so that the virtual power plant system reaches a consistent state, including: Establishing a Lyapunov function based on the edge-to-edge consistency error of each virtual machine group, and determining the derivative of the edge-to-edge consistency error of each virtual machine group; Deriving the Lyapunov function to obtain a derivative of the Lyapunov function, substituting the derivative of the edge-to-edge consistency error of each virtual machine group into the derivative of the Lyapunov function to obtain an intermediate derivative of the Lyapunov function; The trigger condition is used to process the intermediate derivative of the Lyapunov function to obtain the target derivative of the Lyapunov function, and the target derivative of the Lyapunov function is set to a specified value to control the edge states of each virtual machine group to converge to the same preset target, so that the virtual power plant system reaches a consistent state, and the value of the specified value is less than or equal to 0; The derivative of the edge-to-edge consistency error of each virtual machine group is: , in, Indicates the conversion i The derivative of the state variable of the virtual machine group, Indicates the conversion j The derivative of the state variable of the virtual machine group, I N express N The identity matrix, Indicates i The state variables of the virtual machine group, Indicates j The state variables of the virtual machine group, Indicates j The edge event triggers the control protocol for the virtual machine group. Indicates i The edge event triggers the control protocol for a group of virtual machines.
2. The multi-agent based virtual power plant system consistency control method according to claim 1 is characterized in that: The determining of the edge-to-edge dynamic equation of the virtual power plant system based on the edge-to-edge directed association matrix of the virtual power plant system comprises: Establishing a dynamic equation for the consistency of each virtual machine group, wherein the dynamic equation for the consistency of each virtual machine group is composed of an output frequency of the virtual machine group and a side event triggering control protocol of the virtual machine group; Based on the edge-to-edge directed association matrix, the output frequency of each virtual machine group is mapped from the node space to the edge space to obtain the edge-to-edge state variables of the virtual power plant system; The edge-to-edge state variables of the virtual power plant system are used to simplify the dynamic equations of consistency of the virtual machine groups, so as to obtain the edge-to-edge dynamic equations of the virtual power plant system.
3. The multi-agent based virtual power plant system consistency control method according to claim 2 is characterized in that: The method of simplifying the dynamic equations of consistency of each virtual machine group by using the edge-to-edge state variables of the virtual power plant system to obtain the edge-to-edge dynamic equations of the virtual power plant system includes: Marking the edge-to-edge directed association matrix to obtain a marked edge-to-edge directed association matrix, wherein the marked edge-to-edge directed association matrix is composed of a full column rank association matrix of a communication topology graph containing an arbitrary spanning tree and association matrices corresponding to remaining edges of the communication topology graph not containing an arbitrary spanning tree; Simplifying the edge-to-edge directed association matrix using the full column rank association matrix and the association matrices corresponding to the remaining edges to obtain a simplified edge-to-edge directed association matrix; Simplifying the edge-to-edge state variables of the virtual power plant system by using the simplified edge-to-edge directed association matrix to obtain simplified edge-to-edge state variables of the virtual power plant system; The simplified edge-to-edge state variables are used to transform the dynamic equations of consistency of each virtual machine group into the edge-to-edge dynamic equations of the virtual power plant system.
4. The multi-agent based virtual power plant system consistency control method according to claim 3 is characterized in that: The step of obtaining the edge-to-edge consistency error and edge event measurement sampling error of each virtual machine group based on the output frequency of each virtual machine group in the edge-to-edge dynamic equation includes: Extracting edge state variables of each virtual machine group from the simplified edge-to-edge state variables of the virtual power plant system, wherein the edge state variables of each virtual machine group are composed of the edge-to-edge directed association matrix and the output frequency of the virtual machine group; Determine an edge-to-edge consistency error of each virtual machine group, wherein the edge-to-edge consistency error of each virtual machine group is equal to a difference between an edge state variable of the virtual machine group and an edge state variable of an adjacent virtual machine group; Determine the estimated value variable corresponding to the edge state variable of each virtual machine group, calculate the difference between the estimated value variable of each virtual machine group and the corresponding edge state variable, and obtain the edge event measurement sampling error of each virtual machine group.
5. The multi-agent based virtual power plant system consistency control method according to claim 1, characterized in that: The edge event-triggered control protocol of each virtual machine group and the edge-to-edge consistency error control of the edge states of each virtual machine group converge to the same target so that the virtual power plant system reaches a consistent state, including: Establishing a Lyapunov function based on the edge-to-edge consistency error of each virtual machine group, and determining the derivative of the edge-to-edge consistency error of each virtual machine group; Deriving the Lyapunov function to obtain a derivative of the Lyapunov function, substituting the derivative of the edge-to-edge consistency error of each virtual machine group into the derivative of the Lyapunov function to obtain an intermediate derivative of the Lyapunov function; The trigger condition is used to process the intermediate derivative of the Lyapunov function to obtain the target derivative of the Lyapunov function, and the target derivative of the Lyapunov function is set to a specified value to control the edge states of each virtual machine group to converge to the same preset target so that the virtual power plant system reaches a consistent state, and the value of the specified value is less than or equal to 0.
6. The multi-agent based virtual power plant system consistency control method according to claim 1 is characterized in that: The preset target is that the output frequency of the virtual machine group is the same as the output frequency of the adjacent virtual machine group.
7. A multi-agent based virtual power plant system consistency control device, the virtual power plant system includes a plurality of virtual machine groups, characterized in that: include: An establishing module, used to establish an edge-to-edge directed communication topology graph of the virtual power plant system based on the multiple virtual machine groups, and to establish an edge-to-edge directed association matrix of the virtual power plant system based on the edge-to-edge directed communication topology graph, wherein the edge-to-edge directed communication topology graph is composed of multiple virtual machine group nodes, edges between adjacent virtual machine group nodes, and a weight matrix of each edge; A determination module, used to determine the edge-to-edge dynamic equation of the virtual power plant system based on the edge-to-edge directed association matrix of the virtual power plant system, and to obtain the edge-to-edge consistency error and edge event measurement sampling error of each virtual machine group based on the output frequency of each virtual machine group in the edge-to-edge dynamic equation, wherein the edge-to-edge dynamic equation is composed of the edge-to-edge directed association matrix and the output frequency of each virtual machine group, and the edge event triggering control protocol to be determined; An update module is used to determine the edge event triggering control protocol of each virtual machine group based on the edge event measurement sampling error of each virtual machine group and the weight matrix of the corresponding edge, and determine the edge event triggering mechanism of each virtual machine group, and when the edge event triggering mechanism of a virtual machine group meets the triggering condition, update the edge event triggering control protocol of the virtual machine group; A control module, configured to control the edge states of each virtual machine group to converge to the same target based on the edge event triggering control protocol of each virtual machine group and the edge-to-edge consistency error, so that the virtual power plant system reaches a consistent state; An acquisition module, configured to determine a trigger function of each virtual machine group based on the edge-to-edge directed association matrix, the edge-to-edge consistency error of each virtual machine group, and a weight matrix of a corresponding edge; Determine the edge event triggering mechanism of each virtual machine group based on the triggering function of each virtual machine group; The trigger function of each virtual machine group is: , in, h ij Represents the trigger function, A is the system matrix of the first compatible dimension, Q is a positive definite matrix, Indicates i The edge-to-edge consistency error of the virtual machine group is d is a normal number, , B is the system matrix of the second compatible dimension, , E is the simplified edge-to-edge directed incidence matrix, For the i The edge event measurement sampling error of the virtual machine group is w ij represents the connection weight between virtual machine groups; When the edge event triggering mechanism of a virtual machine group meets the triggering condition, updating the edge event triggering control protocol of the virtual machine group includes: When the edge event trigger mechanism of a virtual machine group meets the trigger condition, the edge event measurement sampling error of the virtual machine group is set to 0 so that the edge state variable of the virtual machine group is equal to the corresponding estimated value variable, and the edge state variable of the virtual machine group is used to replace the corresponding estimated value variable in the edge event trigger control protocol of the virtual machine group to obtain an updated edge event trigger control protocol of the virtual machine group; The updated edge event triggering control protocol of the virtual machine group is: , in, For the updated i The edge event trigger protocol of a virtual machine group, d is a positive constant, F is the feedback gain matrix to be determined, and , is the edge state variable of the virtual machine group The estimated value variable, is the edge state variable of the virtual machine group; The edge event-triggered control protocol of each virtual machine group and the edge-to-edge consistency error control of the edge states of each virtual machine group converge to the same target so that the virtual power plant system reaches a consistent state, including: Establishing a Lyapunov function based on the edge-to-edge consistency error of each virtual machine group, and determining the derivative of the edge-to-edge consistency error of each virtual machine group; Deriving the Lyapunov function to obtain a derivative of the Lyapunov function, substituting the derivative of the edge-to-edge consistency error of each virtual machine group into the derivative of the Lyapunov function to obtain an intermediate derivative of the Lyapunov function; The trigger condition is used to process the intermediate derivative of the Lyapunov function to obtain the target derivative of the Lyapunov function, and the target derivative of the Lyapunov function is set to a specified value to control the edge states of each virtual machine group to converge to the same preset target, so that the virtual power plant system reaches a consistent state, and the value of the specified value is less than or equal to 0; The derivative of the edge-to-edge consistency error of each virtual machine group is: , in, represents the derivative of the state variable of the i-th virtual machine group after transformation, represents the derivative of the state variable of the jth virtual machine group after transformation, IN represents N unit matrices, represents the state variable of the i-th virtual machine group, represents the state variable of the j-th virtual machine group, represents the edge event triggering control protocol of the j-th virtual machine group, Indicates the edge event triggering control protocol of the i-th virtual machine group.
