Frequency adjustment method, device and equipment based on micro-grid and readable storage medium

By constructing a secondary frequency control model and linear controller, the frequency adjustment method based on the microgrid solves the problem of microgrid frequency fluctuation, improves frequency response efficiency and system stability, and is suitable for microgrid environments with high distributed power permeability .

CN119298105APending Publication Date: 2025-01-10ELECTRIC POWER RES INST CHINA SOUTHERN POWER GRID CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411454142.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-17
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

Due to the randomness and intermittent nature of distributed power supplies, frequency fluctuations are difficult to effectively control. Traditional methods are difficult to respond quickly under high distributed power penetration rates, affecting the quality of power and safe operation.

Method used

Based on the frequency adjustment method of microgrid, by constructing feedback variables of the secondary frequency control model, using linear control theory to construct a linear controller, determine the power term of the secondary frequency control model, and adjust the microgrid frequency according to the secondary frequency control strategy. Improve frequency response efficiency.

Benefits of technology

有效提高了微电网的频率响应效率,确保了系统的稳定性和可靠性,能够更好地应对负载变化和分布式电源故障等扰动。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119298105A_ABST
    Figure CN119298105A_ABST
Patent Text Reader

Abstract

The invention relates to a frequency adjustment method, device and equipment based on a micro-grid and a readable storage medium. The method comprises the following steps: constructing a feedback variable of a secondary frequency control model based on pre-acquired frequency information of a micro-grid, power information of distributed power supplies in the micro-grid and a distributed communication protocol among a plurality of distributed power supplies; constructing a linear controller based on the feedback variable and a linear control theory; determining a power item of a secondary frequency control model according to the power supply parameters of the linear controller and the distributed power supply; and determining a secondary frequency control strategy according to the secondary frequency control model with the determined power item, and adjusting the frequency of the microgrid based on the secondary frequency control strategy. By adopting the method, the frequency response efficiency of the micro-grid can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of power systems, and in particular to a frequency regulation method, device, equipment and readable storage medium based on a microgrid. Background Art

[0002] With the widespread use of renewable energy in power systems, microgrids face the challenge of frequency control in operation and control. Due to the low inertia of microgrids and the randomness and intermittency of the output of distributed power sources (such as solar and wind power), microgrids are prone to frequency fluctuations.

[0003] Traditional microgrid control strategies usually rely on the frequency support of the main grid or adopt droop control methods, which is feasible when the penetration rate of distributed generation is low.

[0004] However, as the proportion of distributed generation in microgrids increases, traditional methods have difficulty in quickly responding to frequency fluctuations caused by renewable energy. If this frequency instability cannot be effectively controlled, it will affect the power quality and even endanger the safe operation of the microgrid. Summary of the invention

[0005] Based on this, it is necessary to provide a frequency regulation method, device, equipment and readable storage medium based on a microgrid that can improve the frequency response efficiency of the microgrid in response to the above technical problems.

[0006] In a first aspect, the present application provides a frequency regulation method based on a microgrid, comprising:

[0007] Based on the pre-acquired frequency information of the microgrid, the power information of the distributed power sources in the microgrid and the distributed communication protocol between the multiple distributed power sources, the feedback variables of the secondary frequency control model are constructed;

[0008] Construct linear controllers based on feedback variables and linear control theory;

[0009] Determine the power term of the quadratic frequency control model according to the linear controller and the power parameters of the distributed power source;

[0010] A secondary frequency control strategy is determined according to a secondary frequency control model of the determined power term, and the frequency of the microgrid is adjusted based on the secondary frequency control strategy.

[0011] In one embodiment, the feedback variables of the secondary frequency control model are constructed based on the pre-acquired frequency information of the microgrid, the power information of the distributed power sources in the microgrid, and the distributed communication protocol between the multiple distributed power sources, including:

[0012] Establish a dynamic model of distributed power supply; the dynamic model of distributed power supply includes synchronous frequency, generator frequency, reference frequency, mechanical power, active power, mechanical power reference value, speed regulator output and droop coefficient;

[0013] Feedback variables are constructed based on the dynamic model of distributed power sources. The feedback variables include generator frequency feedback variables, active power feedback variables and secondary frequency control model feedback variables.

[0014] In one embodiment, the linear controller is constructed based on feedback variables and linear control theory, including:

[0015] Using feedback variables, a linear system is constructed; the linear system is used to characterize the corresponding relationship between the control signal of the linear system and the feedback variable and the derivative of the feedback variable;

[0016] According to the linear system and linear control theory, a linear controller is constructed; the linear controller represents the corresponding relationship between the generator frequency feedback variable and the active power feedback variable and the feedback variable of the secondary frequency control model.

[0017] In one embodiment, the method further comprises:

[0018] The feedback variable is used to construct the Lyapunov function; the Lyapunov function is used to characterize the corresponding relationship between the Lyapunov function and the feedback variable;

[0019] The Lyapunov function is derivatized to obtain the derivative of the Lyapunov function; the derivative of the Lyapunov function is used to characterize the corresponding relationship between the feedback variable and the derivative of the feedback variable;

[0020] Using feedback variables and linear controllers, a linear system is constructed, which is used to characterize the derivative of the feedback variable.

[0021] In one embodiment, the process of acquiring the power information of the distributed power source in the microgrid includes:

[0022] Obtain power information from the distributed power source corresponding to the leader node;

[0023] The power information is obtained by the distributed power source corresponding to the leading node from the synchronous vector measurement unit equipped in other distributed power sources to obtain the power information of each generator and sum it up to obtain the global power information, which is obtained based on the proportion of the global power information and the inverse of the droop coefficient of the distributed power source at the leading node in the sum of the inverses of the droop coefficients of all distributed power sources.

[0024] In one embodiment, the process of acquiring the frequency information of the microgrid includes:

[0025] For each distributed power source, the output frequency of the distributed power source is obtained from a synchronous vector measurement unit;

[0026] The output power is determined as the frequency information of the microgrid.

[0027] In one embodiment, the process of acquiring the distributed communication protocol between the plurality of distributed power sources includes:

[0028] Build a distributed communication network between multiple distributed power sources;

[0029] Get distributed communication protocols from distributed communication networks.

[0030] In a second aspect, the present application also provides a frequency regulation device based on a microgrid, comprising:

[0031] Based on the pre-acquired frequency information of the microgrid, the power information of the distributed power sources in the microgrid and the distributed communication protocol between the multiple distributed power sources, the feedback variables of the secondary frequency control model are constructed;

[0032] Construct linear controllers based on feedback variables and linear control theory;

[0033] Determine the power term of the quadratic frequency control model according to the linear controller and the power parameters of the distributed power source;

[0034] A secondary frequency control strategy is determined according to a secondary frequency control model of the determined power term, and the frequency of the microgrid is adjusted based on the secondary frequency control strategy.

[0035] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0036] Based on the pre-acquired frequency information of the microgrid, the power information of the distributed power sources in the microgrid and the distributed communication protocol between the multiple distributed power sources, the feedback variables of the secondary frequency control model are constructed;

[0037] Construct linear controllers based on feedback variables and linear control theory;

[0038] Determine the power term of the quadratic frequency control model according to the linear controller and the power parameters of the distributed power source;

[0039] A secondary frequency control strategy is determined according to a secondary frequency control model of the determined power term, and the frequency of the microgrid is adjusted based on the secondary frequency control strategy.

[0040] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the following steps are implemented:

[0041] Based on the pre-acquired frequency information of the microgrid, the power information of the distributed power sources in the microgrid and the distributed communication protocol between the multiple distributed power sources, the feedback variables of the secondary frequency control model are constructed;

[0042] Construct linear controllers based on feedback variables and linear control theory;

[0043] Determine the power term of the quadratic frequency control model according to the linear controller and the power parameters of the distributed power source;

[0044] A secondary frequency control strategy is determined according to a secondary frequency control model of the determined power term, and the frequency of the microgrid is adjusted based on the secondary frequency control strategy.

[0045] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0046] Based on the pre-acquired frequency information of the microgrid, the power information of the distributed power sources in the microgrid and the distributed communication protocol between the multiple distributed power sources, the feedback variables of the secondary frequency control model are constructed;

[0047] Construct linear controllers based on feedback variables and linear control theory;

[0048] Determine the power term of the quadratic frequency control model according to the linear controller and the power parameters of the distributed power source;

[0049] A secondary frequency control strategy is determined according to a secondary frequency control model of the determined power term, and the frequency of the microgrid is adjusted based on the secondary frequency control strategy.

[0050] The frequency regulation method, device, equipment and readable storage medium based on microgrid first construct the feedback variables of the secondary frequency control model based on the pre-acquired frequency information of the microgrid, the power information of the distributed power source in the microgrid and the distributed communication protocol between multiple distributed power sources; then construct a linear controller based on the feedback variables and linear control theory; determine the power term of the secondary frequency control model according to the linear controller and the power supply parameters of the distributed power source; finally determine the secondary frequency control strategy according to the secondary frequency control model with the determined power term, and adjust the frequency of the microgrid based on the secondary frequency control strategy; in the above method, the secondary frequency control strategy based on linear control can effectively improve the frequency response efficiency of the microgrid. By reasonably selecting the controller parameters and control strategy, the microgrid can be made more stable and reliable, and can more effectively cope with disturbances such as load changes and distributed power supply failures. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0052] FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment.

[0053] FIG2 is a schematic diagram of a flow chart of a frequency regulation method based on a microgrid in one embodiment;

[0054] FIG3 is a schematic flow chart of a frequency regulation method based on a microgrid in another embodiment;

[0055] FIG4 is a schematic flow chart of a frequency regulation method based on a microgrid in another embodiment;

[0056] FIG5 is a schematic flow chart of a frequency regulation method based on a microgrid in one embodiment;

[0057] FIG6 is a schematic flow chart of a frequency regulation method based on a microgrid in one embodiment;

[0058] FIG7 is a schematic flow chart of a frequency regulation method based on a microgrid in one embodiment;

[0059] FIG8 is a structural block diagram of a frequency regulation device based on a microgrid in one embodiment. DETAILED DESCRIPTION

[0060] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0061] In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG1. ​​The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store relevant data in the frequency regulation process based on the microgrid. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a frequency regulation method based on the microgrid is implemented.

[0062] Those skilled in the art will understand that the structure shown in FIG. 1 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0063] In an exemplary embodiment, as shown in FIG2 , a frequency regulation method based on a microgrid is provided, which is described by taking the method applied to the computer device in FIG1 as an example, and includes the following steps 201 to 204. Among them:

[0064] Step 201: construct feedback variables of a secondary frequency control model based on pre-acquired frequency information of a microgrid, power information of distributed power sources in the microgrid, and a distributed communication protocol between multiple distributed power sources.

[0065] Among them, a microgrid refers to a relatively independent small power system that can be connected to the main grid or operate independently, and usually includes distributed power sources, energy storage systems and loads.

[0066] Frequency information refers to the frequency value of the power system in the microgrid. Frequency is an important indicator of microgrid stability and is usually between 50Hz or 60Hz.

[0067] Distributed power generation refers to power generation equipment distributed in the power grid, such as solar cells, wind turbines and small generators, which are usually close to the load location and can generate electricity independently or in conjunction with the grid.

[0068] Power information refers to the power value output by distributed power sources, including its power generation capacity and load demand, reflecting the usage of electricity.

[0069] Distributed communication protocols are used to establish standards and rules for information exchange between distributed power sources, enabling efficient data transmission and coordination between different distributed power sources.

[0070] The feedback variables are used to adjust the secondary frequency control model so that the secondary frequency control model can achieve the required performance target. The feedback variables include frequency deviation signal, active power sharing deviation and secondary frequency control model design introduction items.

[0071] In the embodiment of the present application, first, data collection is required to obtain the frequency information of the microgrid and the power information of the distributed power source. Next, the distributed communication protocol is parsed to obtain the communication data between the distributed power sources. Then, the collected information is integrated into a unified data set for subsequent analysis. On this basis, the feedback variable is defined according to the integrated data.

[0072] Step 202: construct a linear controller based on feedback variables and linear control theory.

[0073] Among them, linear control theory uses linear equations to describe the behavior of linear controllers and designs linear controllers by controlling the linear relationship between input and output.

[0074] In the embodiment of the present application, the state equation or transfer function of the linear controller is established by using feedback variables to describe the dynamic characteristics of the linear controller. Next, the linear control theory is applied to analyze the stability and response characteristics of the linear controller and determine the design objectives of the linear controller, such as improving the rapid response of the system or reducing the overshoot. Then, a suitable control strategy is selected, such as proportional, integral or differential control, and the corresponding control gain is calculated based on theoretical derivation.

[0075] Finally, combined with the feedback variables, the specific implementation of the linear controller is constructed, and simulation tests are performed to verify its performance to ensure that the linear controller can effectively adjust the system output under different working conditions. Through these steps, an efficient linear controller can be successfully constructed based on feedback variables and linear control theory.

[0076] Step 203: determining the power term of the quadratic frequency control model according to the linear controller and the power supply parameters of the distributed power supply.

[0077] In an embodiment of the present application, first, power supply parameters related to the distributed power source are collected. Then, the output of the linear controller is combined with the collected power supply parameters, and the power adjustment required by the system is determined using the feedback mechanism of the controller. This step usually involves converting the control signal of the controller into a specific power demand. Then, control theory is applied to evaluate the calculated power adjustment to ensure that it meets the operating requirements and safety standards of the microgrid. Finally, the determined power term is integrated into the secondary frequency control model for use in subsequent control strategies.

[0078] Among them, the secondary frequency control model of distributed power supply is obtained according to the traditional droop control strategy, including frequency term and power term, as shown below:

[0079]

[0080]

[0081] in, is the frequency term, is the power term, is the secondary frequency control signal, is the droop coefficient, is the initial value of the secondary frequency control signal, Indicates the initial time.

[0082] Step 204: determine a secondary frequency control strategy according to the secondary frequency control model of the determined power item, and adjust the frequency of the microgrid based on the secondary frequency control strategy.

[0083] In the embodiment of the present application, first, the power term determined in the previous step is integrated into the secondary frequency control model to update the state of the secondary frequency control model. Then, based on the input power term, the control algorithm is used to calculate the required adjustment strategy. At this point, various control strategies such as gain adjustment, model predictive control, etc. can be applied to determine how to best adjust the frequency of the microgrid.

[0084] The effectiveness of the calculated control strategy is then evaluated to ensure that it can achieve the target frequency under different operating conditions.

[0085] Finally, the secondary frequency control strategy is formulated and is ready to be applied to the real-time frequency regulation of the microgrid to achieve dynamic response and stable operation of the system. The process of regulating the frequency of the microgrid can include: first, real-time monitoring of the frequency state of the microgrid to obtain the difference between the current frequency value and the target frequency. Then, according to the formulated secondary frequency control strategy, the required power adjustment amount is calculated to reduce the current frequency deviation. Then, the calculated power adjustment instruction is sent to the distributed power source to perform the corresponding power increase or decrease. Finally, the frequency changes are continuously monitored, the regulation effect is evaluated, and the control strategy is further optimized based on the feedback data to ensure that the frequency of the microgrid operates stably within the set range.

[0086] In some embodiments, a linear controller is used to obtain the power term of the quadratic frequency control strategy, and the power term is substituted into the general model of quadratic frequency control to obtain the proposed distributed quadratic frequency control strategy, as shown below:

[0087] Power term:

[0088]

[0089]

[0090] The distributed secondary frequency control strategy can be:

[0091]

[0092] In the above frequency regulation method based on microgrid, the feedback variables of the secondary frequency control model are first constructed based on the pre-acquired frequency information of the microgrid, the power information of the distributed power sources in the microgrid, and the distributed communication protocol between multiple distributed power sources; then a linear controller is constructed based on the feedback variables and linear control theory; the power term of the secondary frequency control model is determined according to the linear controller and the power supply parameters of the distributed power source; finally, the secondary frequency control strategy is determined according to the secondary frequency control model with the determined power term, and the frequency of the microgrid is adjusted based on the secondary frequency control strategy; in the above method, the secondary frequency control strategy based on linear control can effectively improve the frequency response efficiency of the microgrid. By reasonably selecting the controller parameters and control strategy, the microgrid can be made more stable and reliable, and can more effectively cope with disturbances such as load changes and distributed power supply failures.

[0093] In an exemplary embodiment, as shown in FIG3 , based on the pre-acquired frequency information of the microgrid, the power information of the distributed power sources in the microgrid, and the distributed communication protocol between the multiple distributed power sources, the feedback variables of the secondary frequency control model are constructed, including steps 301 to 302. Among them:

[0094] Step 301, establish a distributed power dynamic model; the distributed power dynamic model includes synchronous frequency, generator frequency, reference frequency, mechanical power, active power, mechanical power reference value, speed regulator output and droop coefficient.

[0095] In the embodiment of the present application, a distributed power dynamic model is established. The distributed power dynamic model is mainly based on the synchronous distributed power modeling;

[0096] Furthermore, the synchronous distributed power supply model is:

[0097]

[0098]

[0099]

[0100]

[0101] Among them, the subscript i represents the i-th distributed energy source; is the power angle; , and They are synchronous frequency, generator frequency and reference frequency; is the inertia time constant; and They are mechanical power and active power respectively; is the damping coefficient; is the mechanical power reference value; is the speed regulator output; and They are the mechanical time constant and the speed regulator time constant; is the droop coefficient.

[0102] Step 302: construct feedback variables based on the distributed power dynamic model, where the feedback variables include generator frequency feedback variables, active power feedback variables, and secondary frequency control model feedback variables.

[0103] In an embodiment of the present application, feedback variables are constructed based on a distributed power source dynamic model, and the feedback variables include generator frequency feedback variables, active power feedback variables, and secondary frequency control model feedback variables.

[0104] In some embodiments, the feedback variable of the secondary frequency controller is constructed using the frequency information and the power information and the distributed communication protocol, as shown in the following formula:

[0105]

[0106] in, is the frequency deviation signal; is the active power sharing deviation; The quadratic frequency control model design introduces terms; Frequency reference signal of the control center; is the weight of the adjacency matrix of the distributed communication network communication graph, where when distributed power sources i and j are interconnected, , otherwise ; and is a positive gain; when the node When connected to the control center, , otherwise .

[0107] In the above embodiments, establishing a dynamic model of distributed power sources and feedback variables can provide a more accurate and flexible control basis for secondary frequency control, and improve the frequency control efficiency and stability of the microgrid.

[0108] In an exemplary embodiment, as shown in FIG4 , a linear controller is constructed based on feedback variables and linear control theory, including steps 401 to 402. Among them:

[0109] Step 401, using feedback variables, construct a linear system; the linear system is used to characterize the corresponding relationship between the linear system control signal and the feedback variables and the derivatives of the feedback variables.

[0110] In the embodiment of the present application, in the control system design, it is first necessary to determine the feedback variables of the linear system. Next, key variables that can reflect the state of the linear system are selected as feedback variables, such as frequency deviation, power deviation, etc. Feedback variables are the basis of the control strategy and are used to describe the deviation between the current state of the linear system and the desired state.

[0111] With the feedback variable, a linear state equation describing the dynamic behavior of the linear system is established according to the physical law or empirical model of the linear system. If the original system is nonlinear, it can be approximated as a linear system near the operating point through linearization methods (such as Jacobi linearization). Define the control objectives, such as minimum steady-state error, fast and stable transition process, etc. Finally, a linear system is constructed using the feedback variable and the linear system state equation.

[0112] Step 402, constructing a linear controller according to linear system and linear control theory; the linear controller represents the corresponding relationship between the generator frequency feedback variable and the active power feedback variable and the secondary frequency control model feedback variable.

[0113] In the embodiment of the present application, first, the computer device analyzes the given control objectives and performance requirements to select the most appropriate control strategy. Next, the computer device defines the input-output relationship of the linear controller, ensuring that the input of the linear controller is the feedback variable of the system, and the output is the control signal used to adjust the linear controller.

[0114] After the basic structure of the controller is determined, the computer equipment determines the controller parameters based on linear control theory. The computer equipment then tests the behavior of the closed-loop system in a simulation environment. It runs simulation programs that simulate the performance of the linear controller under various operating conditions to verify that the design meets the expected control objectives.

[0115] From the simulation results, the computer device evaluates the performance of the linear controller and adjusts the controller parameters as necessary, a process that involves multiple iterations until the performance of the linear controller meets the predetermined performance criteria.

[0116] In the above embodiments, a linear system is constructed using feedback variables and a linear controller is designed, so that more accurate frequency control can be achieved and the stability and efficiency of the microgrid can be improved.

[0117] In an exemplary embodiment, as shown in FIG5 , the method may further include steps 501 to 503. In which:

[0118] Step 501, constructing a Lyapunov function using feedback variables; the Lyapunov function is used to characterize the corresponding relationship between the Lyapunov function and the feedback variables.

[0119] In the embodiment of the present application, a Lyapunov function is constructed using feedback variables; the Lyapunov function is used to characterize the corresponding relationship between the Lyapunov function and the feedback variables.

[0120] Step 502: Derivative processing is performed on the Lyapunov function to obtain the derivative of the Lyapunov function.

[0121] In the embodiment of the present application, the Lyapunov function is derivatized to obtain the derivative of the Lyapunov function.

[0122] Among them, the Lyapunov function derivative is used to characterize the corresponding relationship between the feedback variable and the feedback variable derivative.

[0123] The Lyapunov function is constructed using the feedback variable and its derivative is calculated as follows:

[0124]

[0125] in represents the Lyapunov function; represents the derivative of the Lyapunov function; represents the feedback variable; represents the feedback variable derivative, which is as follows:

[0126]

[0127] Step 503: construct a linear system using the feedback variable and the linear controller, where the linear system is used to characterize the derivative of the feedback variable.

[0128] In the embodiment of the present application, a linear system is constructed using feedback variables and a linear controller.

[0129] Therein, a linear system is used to characterize the derivative of the feedback variable.

[0130] The linear system that adjusts the motion trajectory of the differential term of the Lyapunov function is constructed using feedback variables as shown below:

[0131]

[0132] in, is the linear system control signal, the coefficient matrix and As shown below:

[0133]

[0134] in, , , , and is the matrix parameter.

[0135] Based on the feedback variable, the linear control theory is used to construct a linear control system that adjusts the motion trajectory of the differential term of the Lyapunov function, as shown below:

[0136]

[0137] in, , and is the linear controller gain.

[0138] In the above embodiment, the Lyapunov function can be used to analyze the stability of the microgrid and determine whether the microgrid can operate stably.

[0139] In an exemplary embodiment, a process of acquiring power information of a distributed power source in a microgrid includes:

[0140] Obtain power information from the distributed power source corresponding to the leader node;

[0141] The power information is obtained by the distributed power source corresponding to the leading node from the synchronous vector measurement unit equipped in other distributed power sources to obtain the power information of each generator and sum it up to obtain the global power information, which is obtained based on the proportion of the global power information and the inverse of the droop coefficient of the distributed power source at the leading node in the sum of the inverses of the droop coefficients of all distributed power sources.

[0142] Among them, the synchronized phasor measurement unit (micro PMU, abbreviated as μPMU) is a high-precision device used for dynamic monitoring and analysis of power systems.

[0143] In the embodiment of the present application, it is first necessary to install a synchronized phasor measurement unit on each distributed power source. These μPMUs can collect power information of each power source in real time.

[0144] The distributed power source is equipped with a synchronous phasor measurement unit to obtain the frequency of the microgrid and the active power information of the distributed power source, where the active information is as follows:

[0145]

[0146]

[0147] in, is the power demand deviation of the ith distributed energy source; represents the global power demand deviation; t represents the tth moment; t-1 represents the t-1th moment.

[0148] In the above embodiments, the power information of the distributed power source is obtained by using the synchronous vector measurement unit, which can improve the accuracy, real-time performance and reliability of the secondary frequency control and provide important data support for microgrid status monitoring and fault analysis.

[0149] In an exemplary embodiment, as shown in FIG6 , the process of acquiring the frequency information of the microgrid includes steps 601 to 602. Among them:

[0150] Step 601 : for each distributed power source, obtain the output frequency of the distributed power source from a synchronous vector measurement unit.

[0151] In the embodiment of the present application, it is first necessary to install a synchronous phasor measurement unit on each distributed power supply, which can collect the output frequency of each power supply in real time. The collected frequency data must be synchronized to ensure accuracy during comparison and calculation. Therefore, after data collection, synchronization processing is required to ensure that the timestamps of all μPMUs are consistent.

[0152] Next, the received frequency data is preprocessed, including filtering and denoising, to improve data quality, thereby obtaining the output frequency of each distributed power source.

[0153] Step 602: Determine the output power as the frequency information of the microgrid.

[0154] In the embodiment of the present application, the output power is determined as the frequency information of the microgrid.

[0155] In the above embodiment, by acquiring the frequency information of all distributed power sources, the operation status of the microgrid can be more comprehensively understood, abnormal situations can be discovered in time, and the reliability of the operation of the microgrid can be improved.

[0156] In an exemplary embodiment, as shown in FIG7 , the process of acquiring a distributed communication protocol between multiple distributed power sources includes steps 701 to 702. Among them:

[0157] Step 701: construct a distributed communication network among multiple distributed power sources.

[0158] Step 702: Obtain a distributed communication protocol from a distributed communication network.

[0159] In the embodiment of the present application, first, the computer device analyzes the layout and requirements of the microgrid and designs a network topology that meets the communication requirements. Next, the computer device selects appropriate communication equipment based on the planning results and guides field technicians to deploy these equipment at each distributed power node. These equipment may include routers, switches, wireless access points, and necessary network interface cards.

[0160] After deployment, the computer equipment configures the communication parameters for each node, selects the protocol suitable for the real-time data transmission requirements of the microgrid, and sets the IP address, port number, and data transmission format. Subsequently, the computer equipment establishes a communication link and enables data to be transmitted correctly and efficiently in the network through programming. After the communication link is established, the computer equipment performs operations to test the communication connection, sends test data packets, monitors their transmission, and records key performance indicators such as transmission success rate, delay, and packet loss rate. After the test is completed, the computer equipment performs performance tuning based on the test results.

[0161] Construct a distributed communication network to realize the interaction of frequency and power information between distributed power sources, as follows:

[0162]

[0163] have The distributed communication topology of the microgrid with distributed generation can be represented by an undirected graph Indicates that is the node set of distributed power generation; is an edge set representing the communication links between distributed generation sources, where nodes and nodes The edges between can be represented as ; is the graph adjacency matrix, where Represents edge The specific value is , otherwise .in is the pinning matrix. When connected to the control center, , otherwise .

[0164] In the above embodiments, through the communication network and protocol, the coordinated control of multiple distributed power sources can be achieved, the frequency stability can be improved, and the anti-disturbance capability can be enhanced. Distributed power sources can share information such as frequency deviation and power information through the communication network to provide more comprehensive information for secondary frequency control.

[0165] Based on all the above embodiments, a frequency regulation method based on a microgrid is also provided, and the method includes:

[0166] Step 1, obtaining power information from the distributed power source corresponding to the leader node;

[0167] The power information is obtained by the distributed power source corresponding to the leading node from the synchronous vector measurement unit equipped in other distributed power sources to obtain the power information of each generator and sum it up to obtain the global power information, which is obtained based on the proportion of the global power information and the inverse of the droop coefficient of the distributed power source at the leading node in the sum of the inverses of the droop coefficients of all distributed power sources.

[0168] Step 2: For each distributed power source, the output frequency of the distributed power source is obtained from the synchronous vector measurement unit.

[0169] Step 3: Determine the output power as the frequency information of the microgrid.

[0170] Step 4, constructing a distributed communication network among multiple distributed power sources;

[0171] Step 5: Obtain the distributed communication protocol from the distributed communication network.

[0172] Step 6, establishing a distributed power dynamic model; the distributed power dynamic model includes synchronous frequency, generator frequency, reference frequency, mechanical power, active power, mechanical power reference value, speed regulator output and droop coefficient.

[0173] Step 7: construct feedback variables based on the distributed power dynamic model, where the feedback variables include generator frequency feedback variables, active power feedback variables, and secondary frequency control model feedback variables.

[0174] Step 8, constructing a Lyapunov function using the feedback variable; the Lyapunov function is used to characterize the corresponding relationship between the Lyapunov function and the feedback variable.

[0175] Step 9, constructing a linear controller based on linear system and linear control theory; the linear controller characterizes the corresponding relationship between the generator frequency feedback variable and the active power feedback variable and the secondary frequency control model feedback variable.

[0176] Step 10: Determine the power term of the quadratic frequency control model according to the linear controller and the power supply parameters of the distributed power supply.

[0177] Step 11: determine a secondary frequency control strategy according to the secondary frequency control model of the determined power item, and adjust the frequency of the microgrid based on the secondary frequency control strategy.

[0178] In the above embodiment, the feedback variables of the secondary frequency control model are first constructed based on the pre-acquired frequency information of the microgrid, the power information of the distributed power sources in the microgrid, and the distributed communication protocol between multiple distributed power sources; then a linear controller is constructed based on the feedback variables and linear control theory; the power term of the secondary frequency control model is determined according to the linear controller and the power supply parameters of the distributed power source; finally, the secondary frequency control strategy is determined according to the secondary frequency control model with the determined power term, and the frequency of the microgrid is adjusted based on the secondary frequency control strategy; in the above method, the secondary frequency control strategy based on linear control can effectively improve the frequency response efficiency of the microgrid. By reasonably selecting the controller parameters and control strategy, the microgrid can be made more stable and reliable, and can more effectively cope with disturbances such as load changes and distributed power supply failures.

[0179] It should be noted that in the embodiments of the present application, the execution order of step 1, step 2 to step 3, and step 4 to step 5 is not limited. In the actual execution process, steps 2 to step 3 may be executed first, then steps 4 to step 5, and finally step 1. Steps 4 to step 5 may be executed first, then step 1, and finally steps 2 to step 3. Steps 1, steps 2 to step 3, and steps 4 to step 5 may also be executed in parallel, and the present application does not limit this.

[0180] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0181] Based on the same inventive concept, the embodiment of the present application also provides a frequency regulation device based on a microgrid for implementing the frequency regulation method based on a microgrid involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more embodiments of the frequency regulation device based on a microgrid provided below can refer to the limitations of the frequency regulation method based on a microgrid above, and will not be repeated here.

[0182] In an exemplary embodiment, as shown in FIG8 , a frequency regulation device based on a microgrid is provided, comprising: a variable construction module 801, a controller construction module 802, a power term determination module 803 and a frequency regulation module 804, wherein:

[0183] A variable construction module 801 is used to construct feedback variables of a secondary frequency control model based on pre-acquired frequency information of a microgrid, power information of distributed power sources in the microgrid, and a distributed communication protocol between multiple distributed power sources;

[0184] A controller construction module 802, for constructing a linear controller based on feedback variables and linear control theory;

[0185] A power term determination module 803, used to determine the power term of the quadratic frequency control model according to the linear controller and the power supply parameters of the distributed power supply;

[0186] The frequency adjustment module 804 is used to determine a secondary frequency control strategy according to the secondary frequency control model of the determined power item, and adjust the frequency of the microgrid based on the secondary frequency control strategy.

[0187] In an exemplary embodiment, the variable construction module 801 is specifically used to establish a distributed power dynamic model; the distributed power dynamic model includes synchronous frequency, generator frequency, reference frequency, mechanical power, active power, mechanical power reference value, governor output and droop coefficient; feedback variables are constructed based on the distributed power dynamic model, and the feedback variables include generator frequency feedback variables, active power feedback variables and secondary frequency control model feedback variables.

[0188] In an exemplary embodiment, the controller construction module 802 is specifically used to construct a linear system using feedback variables; the linear system is used to characterize the correspondence between the linear system control signal and the feedback variable and the derivative of the feedback variable; a linear controller is constructed based on the linear system and linear control theory; the linear controller characterizes the correspondence between the generator frequency feedback variable and the active power feedback variable and the secondary frequency control model feedback variable.

[0189] In an exemplary embodiment, the above device may further include:

[0190] A function construction module is used to construct a Lyapunov function using feedback variables; the Lyapunov function is used to characterize the corresponding relationship between the Lyapunov function and the feedback variables;

[0191] A derivation module is used to perform derivation processing on the Lyapunov function to obtain the derivative of the Lyapunov function; the derivative of the Lyapunov function is used to characterize the corresponding relationship between the feedback variable and the derivative of the feedback variable;

[0192] The system building module is used to build a linear system using feedback variables and linear controllers. The linear system is used to characterize the derivative of the feedback variable.

[0193] In an exemplary embodiment, the variable construction module 801 is specifically used to obtain power information from the distributed power source corresponding to the leading node; the power information is obtained by the distributed power source corresponding to the leading node from the synchronous vector measurement unit equipped in other distributed power sources. The power information of each generator is obtained and summed up to obtain the global power information, and the global power information is obtained based on the proportion of the inverse of the droop coefficient of the distributed power source of the leading node to the sum of the inverses of the droop coefficients of all distributed power sources.

[0194] In an exemplary embodiment, the variable construction module 801 is specifically configured to obtain the output frequency of each distributed power source from the synchronous vector measurement unit; and determine the output power as the frequency information of the microgrid.

[0195] In an exemplary embodiment, the variable construction module 801 is specifically used to construct a distributed communication network among multiple distributed power sources; and obtain a distributed communication protocol from the distributed communication network.

[0196] Each module in the above-mentioned frequency regulation device based on microgrid can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0197] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0198] Based on the pre-acquired frequency information of the microgrid, the power information of the distributed power sources in the microgrid and the distributed communication protocol between the multiple distributed power sources, the feedback variables of the secondary frequency control model are constructed;

[0199] Construct linear controllers based on feedback variables and linear control theory;

[0200] Determine the power term of the quadratic frequency control model according to the linear controller and the power parameters of the distributed power source;

[0201] A secondary frequency control strategy is determined according to a secondary frequency control model of the determined power term, and the frequency of the microgrid is adjusted based on the secondary frequency control strategy.

[0202] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0203] Establish a dynamic model of distributed power supply; the dynamic model of distributed power supply includes synchronous frequency, generator frequency, reference frequency, mechanical power, active power, mechanical power reference value, speed regulator output and droop coefficient;

[0204] Feedback variables are constructed based on the dynamic model of distributed power sources. The feedback variables include generator frequency feedback variables, active power feedback variables and secondary frequency control model feedback variables.

[0205] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0206] Using feedback variables, a linear system is constructed; the linear system is used to characterize the corresponding relationship between the control signal of the linear system and the feedback variable and the derivative of the feedback variable;

[0207] According to the linear system and linear control theory, a linear controller is constructed; the linear controller represents the corresponding relationship between the generator frequency feedback variable and the active power feedback variable and the feedback variable of the secondary frequency control model.

[0208] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0209] The Lyapunov function is derivatized to obtain the derivative of the Lyapunov function; the derivative of the Lyapunov function is used to characterize the corresponding relationship between the feedback variable and the derivative of the feedback variable;

[0210] Using feedback variables and linear controllers, a linear system is constructed, which is used to characterize the derivative of the feedback variable.

[0211] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0212] Obtain power information from the distributed power source corresponding to the leader node;

[0213] The power information is obtained by the distributed power source corresponding to the leading node from the synchronous vector measurement unit equipped in other distributed power sources to obtain the power information of each generator and sum it up to obtain the global power information, which is obtained based on the proportion of the global power information and the inverse of the droop coefficient of the distributed power source at the leading node in the sum of the inverses of the droop coefficients of all distributed power sources.

[0214] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0215] For each distributed power source, the output frequency of the distributed power source is obtained from a synchronous vector measurement unit;

[0216] The output power is determined as the frequency information of the microgrid.

[0217] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0218] Build a distributed communication network between multiple distributed power sources;

[0219] Get distributed communication protocols from distributed communication networks.

[0220] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0221] Based on the pre-acquired frequency information of the microgrid, the power information of the distributed power sources in the microgrid and the distributed communication protocol between the multiple distributed power sources, the feedback variables of the secondary frequency control model are constructed;

[0222] Construct linear controllers based on feedback variables and linear control theory;

[0223] Determine the power term of the quadratic frequency control model according to the linear controller and the power parameters of the distributed power source;

[0224] A secondary frequency control strategy is determined according to a secondary frequency control model of the determined power term, and the frequency of the microgrid is adjusted based on the secondary frequency control strategy.

[0225] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0226] Establish a dynamic model of distributed power supply; the dynamic model of distributed power supply includes synchronous frequency, generator frequency, reference frequency, mechanical power, active power, mechanical power reference value, speed regulator output and droop coefficient;

[0227] Feedback variables are constructed based on the dynamic model of distributed power sources. The feedback variables include generator frequency feedback variables, active power feedback variables and secondary frequency control model feedback variables.

[0228] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0229] Using feedback variables, a linear system is constructed; the linear system is used to characterize the corresponding relationship between the control signal of the linear system and the feedback variable and the derivative of the feedback variable;

[0230] According to the linear system and linear control theory, a linear controller is constructed; the linear controller represents the corresponding relationship between the generator frequency feedback variable and the active power feedback variable and the feedback variable of the secondary frequency control model.

[0231] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0232] The feedback variable is used to construct the Lyapunov function; the Lyapunov function is used to characterize the corresponding relationship between the Lyapunov function and the feedback variable;

[0233] The Lyapunov function is derivatized to obtain the derivative of the Lyapunov function; the derivative of the Lyapunov function is used to characterize the corresponding relationship between the feedback variable and the derivative of the feedback variable;

[0234] Using feedback variables and linear controllers, a linear system is constructed, which is used to characterize the derivative of the feedback variable.

[0235] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0236] Obtain power information from the distributed power source corresponding to the leader node;

[0237] The power information is obtained by the distributed power source corresponding to the leading node from the synchronous vector measurement unit equipped in other distributed power sources to obtain the power information of each generator and sum it up to obtain the global power information, which is obtained based on the proportion of the global power information and the inverse of the droop coefficient of the distributed power source at the leading node in the sum of the inverses of the droop coefficients of all distributed power sources.

[0238] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0239] For each distributed power source, the output frequency of the distributed power source is obtained from a synchronous vector measurement unit;

[0240] The output power is determined as the frequency information of the microgrid.

[0241] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0242] Build a distributed communication network between multiple distributed power sources;

[0243] Get distributed communication protocols from distributed communication networks.

[0244] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0245] Based on the pre-acquired frequency information of the microgrid, the power information of the distributed power sources in the microgrid and the distributed communication protocol between the multiple distributed power sources, the feedback variables of the secondary frequency control model are constructed;

[0246] Construct linear controllers based on feedback variables and linear control theory;

[0247] Determine the power term of the quadratic frequency control model according to the linear controller and the power parameters of the distributed power source;

[0248] A secondary frequency control strategy is determined according to a secondary frequency control model of the determined power term, and the frequency of the microgrid is adjusted based on the secondary frequency control strategy.

[0249] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0250] Establish a dynamic model of distributed power supply; the dynamic model of distributed power supply includes synchronous frequency, generator frequency, reference frequency, mechanical power, active power, mechanical power reference value, speed regulator output and droop coefficient;

[0251] Feedback variables are constructed based on the dynamic model of distributed power sources. The feedback variables include generator frequency feedback variables, active power feedback variables and secondary frequency control model feedback variables.

[0252] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0253] Using feedback variables, a linear system is constructed; the linear system is used to characterize the corresponding relationship between the control signal of the linear system and the feedback variable and the derivative of the feedback variable;

[0254] According to the linear system and linear control theory, a linear controller is constructed; the linear controller represents the corresponding relationship between the generator frequency feedback variable and the active power feedback variable and the feedback variable of the secondary frequency control model.

[0255] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0256] The feedback variable is used to construct the Lyapunov function; the Lyapunov function is used to characterize the corresponding relationship between the Lyapunov function and the feedback variable;

[0257] The Lyapunov function is derivatized to obtain the derivative of the Lyapunov function; the derivative of the Lyapunov function is used to characterize the corresponding relationship between the feedback variable and the derivative of the feedback variable;

[0258] Using feedback variables and linear controllers, a linear system is constructed, which is used to characterize the derivative of the feedback variable.

[0259] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0260] Obtain power information from the distributed power source corresponding to the leader node;

[0261] The power information is obtained by the distributed power source corresponding to the leading node from the synchronous vector measurement unit equipped in other distributed power sources to obtain the power information of each generator and sum it up to obtain the global power information, which is obtained based on the proportion of the global power information and the inverse of the droop coefficient of the distributed power source at the leading node in the sum of the inverses of the droop coefficients of all distributed power sources.

[0262] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0263] For each distributed power source, the output frequency of the distributed power source is obtained from a synchronous vector measurement unit;

[0264] The output power is determined as the frequency information of the microgrid.

[0265] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0266] Build a distributed communication network between multiple distributed power sources;

[0267] Get distributed communication protocols from distributed communication networks.

[0268] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0269] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0270] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A frequency regulation method based on a microgrid, characterized in that: The method comprises: Constructing feedback variables of a secondary frequency control model based on pre-acquired frequency information of a microgrid, power information of distributed power sources in the microgrid, and a distributed communication protocol between a plurality of distributed power sources; Constructing a linear controller based on the feedback variable and linear control theory; Determining a power term of a quadratic frequency control model according to the linear controller and power supply parameters of the distributed power source; A secondary frequency control strategy is determined according to the secondary frequency control model of the determined power term, and the frequency of the microgrid is adjusted based on the secondary frequency control strategy.

2. The method according to claim 1, characterized in that The feedback variables of the secondary frequency control model are constructed based on the pre-acquired frequency information of the microgrid, the power information of the distributed power sources in the microgrid, and the distributed communication protocol between the multiple distributed power sources, including: Establishing a distributed power dynamic model; the distributed power dynamic model includes synchronous frequency, generator frequency, reference frequency, mechanical power, active power, mechanical power reference value, governor output and droop coefficient; The feedback variables are constructed based on the distributed power source dynamic model, and the feedback variables include generator frequency feedback variables, active power feedback variables and secondary frequency control model feedback variables.

3. The method according to claim 2, characterized in that The step of constructing a linear controller based on the feedback variable and linear control theory includes: Using the feedback variable, a linear system is constructed; the linear system is used to characterize the corresponding relationship between the linear system control signal and the feedback variable and the feedback variable derivative; The linear controller is constructed according to the linear system and the linear control theory; the linear controller characterizes the corresponding relationship between the generator frequency feedback variable, the active power feedback variable and the secondary frequency control model feedback variable.

4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Constructing a Lyapunov function using the feedback variable; the Lyapunov function is used to characterize the corresponding relationship between the Lyapunov function and the feedback variable; Performing a derivation process on the Lyapunov function to obtain a derivative of the Lyapunov function; the derivative of the Lyapunov function is used to characterize the corresponding relationship between the feedback variable and the derivative of the feedback variable; The linear system is constructed by using the feedback variable and the linear controller, and the linear system is used to characterize the feedback variable derivative.

5. The method according to any one of claims 1 to 3, characterized in that: The process of acquiring power information of distributed power sources in the microgrid includes: Acquire the power information from the distributed power source corresponding to the leader node; The power information is obtained by the distributed power source corresponding to the leading node obtaining the power information of each generator from the synchronous vector measurement unit equipped in other distributed power sources and summing up the power information to obtain the global power information, and the power information is obtained based on the proportion of the global power information and the inverse of the droop coefficient of the distributed power source at the leading node to the sum of the inverses of the droop coefficients of all distributed power sources.

6. The method according to claim 5, characterized in that The process of acquiring the frequency information of the microgrid includes: For each of the distributed power sources, obtaining the output frequency of the distributed power source from the synchronous vector measurement unit; The output power is determined as frequency information of the microgrid.

7. The method according to any one of claims 1 to 3, characterized in that: The process of acquiring the distributed communication protocol between the plurality of distributed power sources includes: Building a distributed communication network among a plurality of the distributed power sources; The distributed communication protocol is obtained from the distributed communication network.

8. A frequency regulation device based on a microgrid, characterized in that: The device comprises: A variable construction module, used to construct feedback variables of a secondary frequency control model based on pre-acquired frequency information of a microgrid, power information of distributed power sources in the microgrid, and a distributed communication protocol between a plurality of distributed power sources; A controller building module, used for building a linear controller based on the feedback variable and linear control theory; A power term determination module, used to determine the power term of the quadratic frequency control model according to the linear controller and the power supply parameters of the distributed power supply; The frequency regulation module is used to determine a secondary frequency control strategy according to a secondary frequency control model of the determined power item, and regulate the frequency of the microgrid based on the secondary frequency control strategy.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.