Multi-energy collaborative intelligent micro-grid control method, device, equipment and medium
By deploying synchronous phasor measurement units and grey relational analysis in microgrids, and dynamically allocating virtual inertia, the problem of inertia reduction caused by power electronic converters in traditional microgrids is solved, realizing virtual inertial control of multi-energy coordination, and improving system stability and anti-disturbance capability.
Patent Information
- Application Number
- CN202511349441.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-22
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2045-09-22
AI Technical Summary
In traditional microgrids, the large number of power electronic converters leads to reduced system inertia and large frequency fluctuations. Existing virtual inertial control methods are difficult to coordinate multiple energy sources, resulting in reduced system stability.
By deploying synchronous phasor measurement units to collect frequency signals, calculating the required virtual inertia, and combining grey relational analysis to dynamically allocate the virtual inertia of each energy unit, additional power commands are generated to drive the power electronic converter to perform power regulation, thereby realizing multi-energy collaborative virtual inertial control.
It improves the frequency stability of microgrids with a high proportion of power electronics, effectively avoids problems such as resource allocation mismatch and poor control adaptability, and ensures the dynamic safety of the system under complex operating conditions.
Smart Images

Figure CN121124115A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of power system stability control technology, and in particular relates to a multi-energy coordinated intelligent microgrid control method, device, equipment and medium. Background Technology
[0002] With the widespread application of renewable energy and power electronic equipment in microgrids, the physical inertia of microgrid systems has significantly decreased, leading to faster system response to disturbances and reduced stability margin. Traditional microgrids primarily rely on the rotational inertia provided by synchronous generators to maintain system frequency stability. However, the extensive use of power electronic converters in modern microgrids results in systems exhibiting "low inertia" and "weak damping" characteristics. Under these circumstances, when power disturbances occur, the frequency fluctuation amplitude increases, system stability decreases, and may even lead to faults such as protection activation, load shedding, and power source disconnection.
[0003] Traditional control methods based on the inertial characteristics of synchronous machines are ill-suited to this low inertia profile. Virtual inertial control, as an economical and effective solution, introduces virtual inertia and damping elements into the control system of power electronic devices, enabling them to exhibit inertial characteristics similar to those of synchronous generators. However, existing virtual inertial control methods are mostly designed for single-energy systems, lacking consideration for the coordinated use of multiple energy sources (such as wind power, photovoltaics, and energy storage) in microgrids, making it difficult to achieve balanced distribution and dynamic adjustment of system inertia. Summary of the Invention
[0004] Based on this, it is necessary to provide a multi-energy coordinated smart microgrid control method, device, equipment and medium to address the above-mentioned technical problems. The aim is to solve the low inertia problem in microgrids with a high proportion of power electronics. By coordinating virtual inertia control strategies of different types of power sources, the system inertia can be balanced and dynamically adjusted, thereby improving the system's transient stability and anti-disturbance capability.
[0005] Firstly, this application provides a multi-energy coordinated smart microgrid control method, including:
[0006] S1. The frequency signal of the microgrid system is collected by the synchronous phasor measurement unit deployed at the key nodes of the microgrid; based on the frequency change rate of the frequency signal, the required virtual inertia of the microgrid system is calculated through inertial demand assessment.
[0007] S2. Based on the physical model and operating constraints of each energy unit in the microgrid system, calculate the maximum virtual inertia that each energy unit can provide;
[0008] S3. Based on the demand virtual inertia and the maximum available virtual inertia, grey relational analysis is used to calculate the actual allocated virtual inertia of each energy unit.
[0009] S4. Based on the actual allocation of virtual inertia, generate additional power commands for each energy unit through the corresponding operation control model of each energy unit.
[0010] S5. The additional power commands corresponding to each energy unit are superimposed on the local control loop of the microgrid system to drive the power electronic converter to perform power regulation, so as to carry out virtual inertial control of multi-energy coordination.
[0011] Secondly, this application also provides a multi-energy coordinated smart microgrid control device for implementing the method described in the first aspect, the device comprising:
[0012] The dynamic inertial demand assessment module is used to collect the frequency signal of the microgrid system through synchronous phasor measurement units deployed at key nodes of the microgrid; based on the frequency change rate of the frequency signal, the virtual inertia demand of the microgrid system is calculated through inertial demand assessment.
[0013] The energy unit inertia capability assessment module is used to calculate the maximum virtual inertia that each energy unit can provide based on the physical model and operating constraints of each energy unit in the microgrid system.
[0014] The virtual inertia allocation optimization module is used to calculate the actual allocated virtual inertia of each energy unit based on the required virtual inertia and the maximum available virtual inertia, using grey relational analysis.
[0015] The additional power command generation module is used to generate additional power commands for each energy unit based on the actual allocated virtual inertia and the corresponding operation control model of each energy unit.
[0016] The collaborative power regulation execution module is used to superimpose the additional power commands corresponding to each energy unit onto the local control loop of the microgrid system, drive the power electronic converter to perform power regulation, and perform virtual inertial control of multi-energy collaboration.
[0017] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement a multi-energy coordinated smart microgrid control method as described in the first aspect.
[0018] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a multi-energy coordinated smart microgrid control method as described in the first aspect.
[0019] The aforementioned multi-energy collaborative smart microgrid control method, device, equipment, and medium accurately assess the system inertia demand by real-time acquisition of microgrid frequency signals and calculation of their rate of change. It then dynamically calculates the maximum virtual inertia each energy unit can provide, combining the physical characteristics and operational constraints of each unit. Using grey relational analysis, it dynamically matches system demand with unit capabilities to generate an optimal allocation scheme. This drives the dedicated control models of each unit to generate differentiated power regulation commands. Finally, power support is collaboratively executed through power electronic converters. This achieves precise matching and efficient collaboration of multi-energy virtual inertia capabilities, significantly enhancing the frequency stability of high-proportion renewable energy grids. It effectively avoids problems such as resource allocation mismatch and poor control adaptability in traditional methods, ensuring the dynamic safety of the system under complex operating conditions. Attached Figure Description
[0020] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 A flowchart illustrating a multi-energy coordinated smart microgrid control method provided by the present invention;
[0022] Figure 2 This is a schematic diagram of the process of performing grey relational analysis in an optional embodiment of the present invention;
[0023] Figure 3 This is a schematic diagram of the structure of a multi-energy coordinated intelligent microgrid control device provided by the present invention. Detailed Implementation
[0024] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0025] refer to Figure 1 The document presents a flowchart illustrating a multi-energy coordinated smart microgrid control method provided in this application, which includes the following steps:
[0026] S1. Frequency signals of the microgrid system are collected by synchronous phasor measurement units deployed at key nodes of the microgrid; based on the frequency change rate of the frequency signals, the virtual inertia of the microgrid system is calculated through inertial demand assessment.
[0027] Specifically, the deployment of synchronous phasor measurement units (PMUs) covers key nodes of the microgrid, including the main power supply bus, grid connection points of various energy units, and important load access points. The selected PMUs comply with relevant industry standards for synchronous phasor measurement in power systems and possess voltage measurement accuracy, frequency measurement accuracy, and sampling rate sufficient to meet the frequency dynamic characteristics acquisition requirements of low-inertia microgrids. The PMUs are connected to each node via voltage transformers (TVs) and current transformers (TAs). The TV ratio is matched to the rated voltage of the corresponding node, and the TA ratio is matched to the rated current of the corresponding node to ensure the accuracy of the acquired signals. Signal transmission adopts methods compliant with power system communication specifications and follows relevant international or industry communication standards to ensure that communication delays are controlled within the range required for real-time frequency signal analysis.
[0028] The rate of change of frequency (df / dt) can be calculated using the five-point sliding window numerical differentiation method. The specific formula is as follows:
[0029]
[0030] Where T is the PMU sampling period, and f(t+nT) is the sampling frequency at time t+nT. This method effectively suppresses the interference of sampling noise, such as switching noise of power electronic equipment, on the calculation of the rate of change by weighted differentiation of the frequencies of five adjacent sampling points.
[0031] Inertial demand assessment can be performed using a two-factor weighted model of "frequency deviation - rate of change", the formula of which is:
[0032]
[0033] Among them, H req The virtual inertia is the required value (unit: s), Δf = f - f0 (f0 is the rated frequency of the system, unit: Hz), and k1 and k2 are weighting coefficients.
[0034] Coefficient calibration can be completed through offline simulation: a microgrid simulation model including wind power, photovoltaic, energy storage and other energy sources is constructed to simulate typical system disturbance scenarios such as sudden load increases, sudden drops in new energy output and off-grid energy storage. The maximum frequency deviation and frequency recovery time of the system under different combinations of k1 and k2 are recorded. The optimal value is selected as the coefficient combination that makes the maximum frequency deviation of the system meet the grid frequency stability standard and the recovery time meet the dynamic response requirements under all disturbance scenarios. This ensures that the calculation of the required virtual inertia can adapt to the inertial replenishment needs of the system under different disturbances.
[0035] S2. Based on the physical model and operating constraints of each energy unit in the microgrid system, calculate the maximum virtual inertia that each energy unit can provide.
[0036] Specifically, the physical models of each energy unit are constructed based on its own topology and operating characteristics. For wind turbines, a third-order model of "wind speed-aerodynamic power-rotor speed-converter control" can be adopted, where the aerodynamic power formula can be P. wind =0.5ρC p (λ,β)Av 3 (ρ is the density of air, C) p λ is the calculation function for wind energy utilization coefficient, β is the blade tip speed ratio, A is the swept area, and v is the wind speed. The rotor-side converter adopts a vector control strategy, which realizes independent control of active and reactive power by adjusting the d-axis and q-axis currents. Its virtual inertia provision capability is constrained by the rated capacity and overload capacity of the converter, and inertial output is performed within the allowable current and power range of the converter.
[0037] For photovoltaic arrays, a "light intensity-temperature-PV characteristic" model can be adopted. The array consists of several photovoltaic modules connected in a specific series and parallel manner to match the system voltage and power requirements. The inverter adopts a three-phase full-bridge topology and has maximum power point tracking (MPPT) function and virtual inertia control interface. MPPT maximizes the extraction of photovoltaic output through a specific algorithm. Its virtual inertia output is affected by the current light intensity. When the light intensity is lower than a certain threshold, the photovoltaic output is insufficient to support the virtual inertia output. At this time, the unit does not have the ability to provide virtual inertia.
[0038] For energy storage systems, a "SOC-voltage-charge / discharge current" model can be adopted. The system consists of several energy storage cells connected in series and parallel to meet voltage and capacity requirements. It is equipped with a bidirectional DC / DC converter to realize bidirectional energy flow. The operating constraints include the SOC operating range, charge / discharge current limit, and instantaneous power limit. The SOC is controlled within a reasonable range to avoid overcharging and over-discharging. The charge / discharge current and power are within the rated range allowed by the converter and energy storage cells, ensuring the safe and stable operation of the energy storage system while providing virtual inertia support.
[0039] The calculation of the maximum virtual inertia that each energy unit can provide is based on the "power-inertia" equivalence relationship, and the formula can be:
[0040]
[0041] Among them, H i,max For the i-th type of energy, P can provide the maximum virtual inertia. i,avail P represents the current available power of this energy source. i,rated For the rated power of this energy source, H i,baseThis serves as the baseline inertia for the energy source (provided by the equipment manufacturer or obtained through experimental calibration). During calculation, the current available power is determined based on the real-time operating status of each energy unit. If the current available power of an energy unit is 0, its maximum virtual inertia is 0, and it will not participate in the subsequent virtual inertia allocation process, thus avoiding the waste of system resources caused by ineffective allocation.
[0042] S3. Based on the demand virtual inertia and the maximum available virtual inertia, grey relational analysis is used to calculate the actual allocated virtual inertia of each energy unit.
[0043] Specifically, the implementation of Grey Relational Analysis (GRA) follows the process of "reference sequence determination - comparison sequence determination - data preprocessing - correlation coefficient calculation - correlation degree calculation". First, the reference sequence and comparison sequence are determined. The reference sequence can be composed of the required virtual inertia calculated in step S1, and the comparison sequence is the maximum available virtual inertia of each energy unit. If there is a difference in dimensions between the reference sequence and the comparison sequence, an "initialization" method is used to eliminate the influence of dimensions. The initialization formula can be X... i ′(k)=X i (k) / X i (1), where X i ′(k) represents the processed data; X i (k) represents the original data, indicating the value at the k-th moment in the comparison sequence of the i-th energy unit; if the two have the same dimensions, no data preprocessing is required, and the data can proceed directly to the subsequent calculation stage.
[0044] The correlation coefficient can be calculated using Dunk's correlation formula:
[0045]
[0046] Where, ξ i (k) is the correlation coefficient of the i-th comparison sequence at time k; ζ is the resolution coefficient, which is used to balance the resolution of the correlation coefficient. It can be set to 0.5 to balance the resolution effect and the computational stability. It is the minimum difference between two levels, that is, the minimum value among all the differences between the comparison sequence and the reference sequence; The maximum difference between the two levels is the largest difference among all the differences between the comparison sequence and the reference sequence. The calculation first solves for the difference between each comparison sequence and the reference sequence, then determines the minimum and maximum differences at both levels, and finally substitutes these values into the formula to obtain the correlation coefficient for each comparison sequence.
[0047] correlation r i The correlation coefficient can be the average value; when only single-time data is involved, the correlation degree equals the correlation coefficient. The actual allocation of virtual inertia is calculated based on the "correlation degree ratio," using the following formula:
[0048]
[0049] Where n is the number of energy units participating in the allocation. The sum of the correlation of all participating energy units.
[0050] After allocation, the results are verified for rationality. First, it is verified that the allocated inertia of each unit does not exceed its maximum available virtual inertia to avoid operational failures caused by exceeding the unit's capacity. Second, it is verified that the sum of the allocated inertia of all units is consistent with the required virtual inertia to ensure that the system's required inertia is adequately replenished, and finally, a balanced allocation of inertia and efficient utilization of system resources are achieved.
[0051] S4. Based on the actual allocation of virtual inertia, generate additional power commands for each energy unit through the corresponding operation control model of each energy unit.
[0052] Specifically, the operation control model of each energy unit is designed in conjunction with its topology characteristics to ensure that the additional power command can be seamlessly compatible with the local control loop, so as to achieve accurate output of inertia.
[0053] For doubly-fed induction generator (DFIG) wind turbines, a model of "rotor-side converter vector control + virtual inertia-added control" can be adopted. The basic control logic of the rotor-side converter is to control reactive power through d-axis current and active power through q-axis current. The calculation of reactive power and active power is based on the d-axis and q-axis components of the stator voltage and rotor current, respectively. The virtual inertia-added power command is converted into the q-axis current increment, and the conversion formula can be obtained as follows: (ΔI q Let ΔP be the q-axis current increment. wind Additional power command for wind power, U d (The stator voltage is the d-axis component). In specific scenarios such as low voltage ride-through, the influence of the stator voltage q-axis component on current calculation can be ignored to simplify the control logic.
[0054] The calculation of the additional power command is based on the power-frequency relationship of the virtual inertia, and the formula is:
[0055]
[0056] Among them, H wind,alloc Assigning virtual inertia to wind power, S wind,rated This refers to the rated apparent power of wind power. The frequency change rate is used. The calculated q-axis current increment is superimposed on the q-axis current reference value of the rotor-side converter. The current tracking control of the converter enables rapid adjustment of wind power output to meet the virtual inertia replenishment requirements.
[0057] For photovoltaic inverters, a "MPPT control + virtual inertia droop control" model can be adopted. MPPT tracks the maximum power point of the photovoltaic array using a specific algorithm and outputs a basic power command. The virtual inertia-based additional power command employs a dual control strategy of "inertia-damping," as shown in the formula:
[0058]
[0059] Among them, H pv,alloc Assigning virtual inertia to photovoltaics, S pv,rated D represents the rated apparent power of the photovoltaic system. pv Δf is the damping coefficient, and Δf is the frequency deviation. The damping coefficient is determined through simulation calibration and is used to suppress system frequency oscillations and improve frequency stability. The total power command is the sum of the basic power command and the additional power command. It is necessary to ensure that the total power command is non-negative to avoid inverter shutdown due to abnormal power command. The total power command is converted into a d-axis current reference value through the inverter's current loop control, driving the inverter to output the corresponding current and realizing the virtual inertia output of the photovoltaic unit.
[0060] For energy storage systems, a model of "bidirectional DC / DC droop control + virtual inertia compensation control" can be adopted. The basic control for energy storage is droop control, and the basic power command is determined by the droop coefficient and frequency deviation. The formula for the virtual inertia-compensated power command is:
[0061]
[0062] Among them, H es,alloc To allocate virtual inertia to energy storage, S es,rated The rated apparent power of the energy storage is the total power command, which is the sum of the base power command and the additional power command. The command symbol represents the charging and discharging state of the energy storage system. The total power command is converted into the duty cycle command of the bidirectional DC / DC converter. By adjusting the duty cycle, the output voltage and current of the converter are controlled, thereby controlling the charging and discharging power of the energy storage system. Finally, the PWM controller outputs a drive signal to enable the DC / DC converter to perform the corresponding power regulation operation, completing the virtual inertia replenishment of the energy storage unit.
[0063] S5. The additional power commands corresponding to each energy unit are superimposed on the local control loop of the microgrid system to drive the power electronic converter to perform power regulation, so as to carry out virtual inertial control of multi-energy coordination.
[0064] Specifically, for the rotor-side converter of a doubly-fed induction generator (DFIG) wind turbine, a dual closed-loop control architecture of "current loop-speed loop" can be adopted. The current loop uses a PI controller, with the input signal being the deviation between the q-axis current reference value (the sum of the basic reference value and the additional current increment) and the actual current, and the output signal being the modulation signal of the rotor-side converter. The speed loop also uses a PI controller, with the input signal being the deviation between the speed reference value (determined by MPPT) and the actual speed, and the output signal being used to correct the q-axis current reference value of the current loop, forming a closed-loop control to improve the tracking accuracy of speed and current.
[0065] The converter can use IGBT modules that meet the power rating requirements. The drive circuit uses isolated drive chips to ensure the safety and anti-interference capability of the control signal. The drive signal is generated through space vector pulse width modulation (SVPWM) technology to ensure that the current tracking error is controlled within the allowable range. At the same time, the converter is equipped with overcurrent protection and overvoltage protection functions. The overcurrent protection sets the action threshold according to the rated current of the converter, and the overvoltage protection sets the action threshold according to the safe voltage of the DC bus. When the current or voltage exceeds the threshold, the protection mechanism is triggered quickly to avoid hardware damage caused by additional power commands.
[0066] For photovoltaic inverters, a dual closed-loop control architecture of "voltage loop-current loop" can be adopted. The voltage loop uses a PI controller, with the input signal being the deviation between the DC bus voltage reference value and the actual voltage, and the output signal being the d-axis current base reference value. The current loop also uses a PI controller, with the input signal being the deviation between the total d-axis current reference value (the sum of the base reference value and the additional reference value) and the actual current, and the output signal being the inverter's SVPWM modulation signal. The inverter uses IGBT modules that meet the power and voltage ratings, and sets a reasonable switching frequency to balance switching losses and output waveform quality. The filter circuit uses an LC filter structure to suppress output current ripple and ensure that the current waveform meets grid connection standards. In addition, the inverter also introduces a phase-locked loop (PLL), using synchronous rotating coordinate system PLL technology to track the grid voltage phase, ensuring that the phase of the additional power command output is consistent with the grid phase, avoiding reactive power fluctuations caused by phase deviation, and ensuring grid power quality.
[0067] For bidirectional DC / DC converters in energy storage systems, a "voltage loop-current loop" control architecture can be adopted. The voltage loop uses a PI controller, with the input signal being the deviation between the battery terminal voltage reference value and the actual voltage, and the output signal being the current reference value. The current loop also uses a PI controller, with the input signal being the deviation between the charging / discharging current reference value (calculated from the total power command) and the actual current, and the output signal being a PWM drive signal. The DC / DC converter employs a phase-shifted full-bridge topology to achieve wide-range voltage regulation and efficient energy conversion. IGBT modules matching the voltage and current ratings are selected, and an appropriate switching frequency is set. A filter circuit composed of inductors and capacitors is used to ensure that current ripple is controlled within the allowable range, guaranteeing the stable operation of the energy storage system.
[0068] Synchronization of multi-energy coordinated control is achieved through a central control unit (CCU). The CCU possesses sufficient computing power to meet real-time calculation requirements. It establishes communication connections with each power management unit (PMU) and energy unit controller via a bus conforming to power system communication standards. The CCU periodically receives frequency signals collected by each PMU and the operating status (including power, current, and SOC) of each energy unit. Based on the received signals, the CCU calculates the required virtual inertia and the allocated inertia for each unit, generating additional power commands for each energy unit and sending them to the corresponding unit controller via the communication bus. Upon receiving the commands, each unit controller updates its modulation signal within one control cycle, ensuring synchronized power regulation responses from all energy units and avoiding secondary frequency fluctuations caused by response delays that could affect system stability. Experimental verification shows that under this control process, the microgrid's frequency characteristics under typical disturbance scenarios meet stability requirements, and the output deviation of each energy unit is controlled within allowable limits, effectively achieving the virtual inertial control objective of multi-energy coordination.
[0069] The aforementioned multi-energy collaborative smart microgrid control method accurately assesses the system's inertia demand by real-time acquisition of microgrid frequency signals and calculation of their rate of change. It then dynamically calculates the maximum virtual inertia each energy unit can provide, combining the physical characteristics and operational constraints of each unit. Using grey relational analysis, it dynamically matches system demand with unit capabilities to generate an optimal allocation scheme. This drives the dedicated control models of each unit to generate differentiated power regulation commands. Finally, power support is collaboratively executed through power electronic converters. This achieves precise matching and efficient collaboration of multi-energy virtual inertia capabilities, significantly enhancing the frequency stability of high-proportion renewable energy grids. It effectively avoids problems such as resource allocation mismatch and poor control adaptability in traditional methods, ensuring the dynamic safety of the system under complex operating conditions.
[0070] In one optional embodiment, the energy unit includes a wind turbine, a photovoltaic system, and an energy storage system; based on the physical model and operating constraints of each energy unit in the microgrid system, the maximum virtual inertia that each energy unit can provide is calculated, including the following steps:
[0071] S11. Based on the rotor speed and output power of the wind turbine, the current releaseable rotational kinetic energy is calculated through the wind turbine dynamics model to obtain the current releaseable rotational kinetic energy of the wind turbine.
[0072] Specifically, the dynamic model of the wind turbine is based on the mechanical characteristics of the doubly-fed induction generator (DFIG), and the calculation of the rotor rotational kinetic energy is based on the formula. (Where J is the rotor moment of inertia, calibrated by the unit manufacturer; ω is the rotor angular velocity, which satisfies the condition of the rotational speed n.) In actual operation, the rotor speed is acquired in real time through a shaft encoder, and the output power P is acquired in combination with the voltage and current sensors of the converter. wind,out At the same time, considering the balance between aerodynamic power and mechanical power (aerodynamic power... Mechanical power P mech =P aero -P friction Where ρ is air density, R is wind turbine radius, v is wind speed, and C is wind speed. p P is the function for calculating the wind energy utilization coefficient. friction (For mechanical friction loss), the rate of change of rotor kinetic energy satisfies Therefore, the "currently releaseable rotational kinetic energy" can be obtained by integrating the power difference ∫(P) over the last 10 seconds. mech -P wind,out The energy can be obtained by dt, or by using the "reference kinetic energy (kinetic energy at rated speed)". ")" and "current kinetic energy" The difference between the current speed and the rated speed is calculated to accurately capture the real-time releaseable amount of kinetic energy of the wind turbine rotor. Specifically, when the current speed is lower than the rated speed, the difference is the releaseable kinetic energy.
[0073] S12. Based on the current releaseable rotational kinetic energy of the wind turbine and the preset maximum allowable speed deviation, calculate the maximum virtual inertia that the wind turbine can provide using the kinetic energy-inertia conversion formula; the kinetic energy-inertia conversion formula is:
[0074]
[0075] Among them, J wind_max E is the maximum virtual inertia that a wind turbine can provide. kin Δω represents the current releaseable rotational kinetic energy of the wind turbine, ω represents the current rotor angular velocity of the wind turbine, and Δω represents the current releaseable rotational kinetic energy of the wind turbine. max This is the preset maximum allowable speed deviation.
[0076] Specifically, the kinetic energy to inertia conversion formula The derivation is based on the physical nature of the frequency of the inertia-supported system. The inertia J of the synchronous generator can be obtained through... The relationship between power change and angular acceleration (approximately JωΔω / Δt) is considered. When the wind turbine releases rotor kinetic energy to support the system inertia, the rotor speed deviation must be limited within a safe range. Therefore, a preset maximum allowable speed deviation Δω is introduced. max It is determined by the constraints of safe operation of the unit.
[0077] During implementation, Δω max A 5% safety margin can be reserved (e.g., if the manufacturer specifies that the speed deviation exceeds 15% to trigger protection, the default is 10%). The E obtained from S11... kin Current rotor angular velocity ω, Δω max Substituting into the formula, we can obtain the maximum virtual inertia that the wind turbine can provide. For example, if E kin =5×10 5 J, ω = 141.37 rad / s (corresponding to a rotational speed of 1350 r / min), Δω max =15.7 rad / s, then This value matches the actual inertia of the unit, ensuring that the rotational speed does not exceed the safe range while maximizing the utilization of kinetic energy.
[0078] S13. Based on the illuminance, operating point voltage, and current data of the photovoltaic system, calculate the maximum available power of the photovoltaic system using the maximum power point tracking algorithm; subtract the current output power of the photovoltaic system from the maximum available power to obtain the power margin of the photovoltaic system.
[0079] Specifically, maximum power point tracking (MPPT) of a photovoltaic system can be achieved using the perturbation-observation method. The photovoltaic controller collects real-time data on illuminance, operating point voltage (V), and current (I) through a light sensor, a voltage sensor (connected in parallel to the photovoltaic array output), and a current sensor (connected in series). This is combined with a single-diode model of the photovoltaic module. Where I ph I0 is the photogenerated current, I0 is the reverse saturation current, q is the electron charge, and R0 is the photogenerated current. s For series resistance, R s (where n is the ideality factor, k is the Boltzmann constant, and T is the temperature), and a temperature coefficient is introduced to correct for the effect of temperature on power. The maximum power point voltage V is calculated under the current illumination and temperature. mpp and current I mpp Thus, the maximum available power P is obtained. pv,max =V mpp ×I mpp Current output power P pv,out (P) is obtained by multiplying the real-time acquired V and I. pv,out =V×I), power margin ΔPpv For P pv,max -P pv,out For example, light intensity of 800W / m 2 At a temperature of 25℃, MPPT calculates P. pv,max =200kW, current actual output P pv,out =180kW, then ΔP pv =20kW, this margin provides the power basis for the virtual inertia of the photovoltaic system.
[0080] S14. Based on the power margin of the photovoltaic system and the preset maximum allowable frequency change rate of the microgrid system, calculate the maximum virtual inertia that the photovoltaic system can provide using the power margin-inertia mapping model; the power margin-inertia mapping model is as follows:
[0081]
[0082] Among them, J pv_max The maximum virtual inertia that the photovoltaic system can provide, ΔP pv RoCoF represents the power margin, ω0 represents the angular velocity corresponding to the standard frequency of the microgrid system, and RoCoF represents the power margin. max This is the preset maximum allowable rate of frequency change.
[0083] Specifically, the power margin-inertia mapping model This stems from the relationship between virtual inertia and the rate of change of frequency (RoCoF). The inertia of a synchronous generator satisfies ΔP = Jω0RoCoF, where ω0 = 2πf0 is the rated angular frequency. The power margin ΔP of a photovoltaic system... pv This can be considered as additional power support capability, and therefore mapped to "equivalent virtual inertia" through this formula. The preset maximum allowable rate of frequency change, RoCoF, is... max It must meet the stability requirements of microgrids (e.g., national standards stipulate that the grid RoCoF should not exceed 2Hz / s, and the microgrid can preset the RoCoF). max = 1.5Hz / s, take the absolute value |RoCoF max |=1.5Hz / s). The ΔP of S13 pv Substitute into the formula, for example, ΔP pv =20000W, then This value represents the equivalent inertia that a photovoltaic system can simulate, and is used to support system frequency stability.
[0084] S15. Based on the state of charge, temperature and current charging and discharging current of the energy storage system, calculate the current available charging and discharging power limit of the energy storage system, and subtract the current actual power of the energy storage system from the current available charging and discharging power limit to obtain the charging and discharging power margin of the energy storage system.
[0085] Specifically, the usable charge / discharge power limit of an energy storage system (taking lithium batteries as an example) is constrained by three factors: state of charge (SOC), temperature, and charge / discharge current. SOC calculation can be performed using the ampere-hour integration method combined with open-circuit voltage calibration, as shown in the formula: Where SOC0 is the initial SOC, Q rated I represents the rated capacity, and I represents the charging / discharging current, with charging being positive and discharging being negative. Temperature constraints can limit the charging and discharging power using a pre-stored "power-temperature curve," such as charging power at 50% and discharging power at 80% of the rated capacity at 0℃; full power at 25℃; and 60% of the rated capacity for both charging and discharging at 45℃. Current constraints are determined by the battery's rate characteristics; for example, at a rated rate of 1C, the charging current is limited to 0.2C when SOC ≥ 90%, and the discharging current is limited to 0.2C when SOC ≤ 10%.
[0086] Based on the above constraints, the current available charging power limit P is determined by the lookup table method of the battery management system (BMS) (pre-stored SOC-temperature-power matrix). charge,limit and the current available discharge power limit P discharge,limit Current actual power P es,out The voltage and current sensors of the energy storage converter are used to collect and calculate the data, and the formula is P. es,out =V×I.
[0087] Therefore, the charging power margin ΔP charge =P charge,limit -P es,out If P es,out For charging power, ΔP charge ΔP represents the remaining chargeable power; if it represents the discharge power, then ΔP charge =P charge,limit Discharge power margin ΔP discharge =|P discharge,limit |-|P es,out |, if P es,out For discharge power, ΔP discharge ΔP represents the remaining discharge power; if it represents the charging power, then ΔP discharge =|P discharge,limit |
[0088] S16. Based on the charge / discharge power margin of the energy storage system and the preset maximum allowable frequency change rate of the microgrid system, calculate the maximum virtual inertia that the energy storage system can provide using a power-inertia linear conversion model; the power-inertia linear conversion model is as follows:
[0089]
[0090] Among them, J ess_max The maximum virtual inertia that the energy storage system can provide, ΔP charge ΔP is the charging power margin of the energy storage system.discharge This represents the discharge power margin of the energy storage system.
[0091] Specifically, the power-inertia linear conversion model The mapping logic is consistent with that of photovoltaic systems. The "sum of charge and discharge power margins" of an energy storage system is its total additional power capability, which is linearly converted into virtual inertia through its relationship with the rate of change of frequency and the rated angular frequency.
[0092] In the formula, ω0=314.16rad / s, |RoCoF max |=1.5Hz / s, consistent with S14. Assume energy storage charging power margin ΔP charge =30kW, discharge power margin ΔP discharge =40kW, then the total margin is 70kW, substituting into the equation gives... This virtual inertia reflects the equivalent inertia provided by the energy storage system to the microgrid through charging and discharging regulation. Due to the fast response speed of energy storage, its dynamic inertia regulation capability is better, and it can support the stability of system frequency more promptly.
[0093] In practice, the central controller needs to work with the local controllers of wind turbines, photovoltaics, and energy storage to collect data in real time and calculate the maximum virtual inertia that each unit can provide according to the above steps. This provides a basis for subsequent inertia allocation (such as grey relational analysis) and ensures the accurate implementation of virtual inertial control for multi-energy collaboration.
[0094] In this embodiment, the maximum virtual inertia supply potential of each wind turbine, photovoltaic system, and energy storage system is precisely quantified to provide a basis for multi-energy collaborative inertial control.
[0095] refer to Figure 2 In one optional embodiment, based on the required virtual inertia and the maximum available virtual inertia, grey relational analysis is used to calculate the actual allocated virtual inertia of each energy unit, including the following steps:
[0096] S21. Based on the maximum virtual inertia and response characteristics of each energy unit, construct a comparison sequence for each energy unit; the comparison sequence is X. i =[R i J i,max ]; where X i Represents the comparison sequence for the i-th energy unit; R i J represents the response characteristic index of the i-th energy unit; i,max This represents the maximum virtual inertia that the i-th energy unit can provide.
[0097] Specifically, the response characteristic index R iThe response speed of an energy unit to the system's inertia requirements, used to quantify this response, can be determined by combining the control architecture and physical characteristics of each energy unit. (R of the wind turbine...) i The control response delay for rotor kinetic energy release can be taken as the time difference between the detection of a frequency change by the synchronous phasor measurement unit (PMU) and the output of additional power by the wind turbine converter. This can be obtained through laboratory testing. The R of the photovoltaic system... i The adjustment response time of the Maximum Power Point Tracking (MPPT) algorithm is taken as the cycle of "voltage disturbance - power detection - reference update" in the disturbance observation method. The R of the energy storage system... i The charge / discharge command response time of the bidirectional DC / DC converter is taken as the delay from when the battery management system (BMS) receives the additional power command to when the converter output power is adjusted.
[0098] When constructing the comparison sequence, each energy unit corresponds to a two-dimensional vector X. i =[R i J i,max ], where J i,max The "maximum available virtual inertia" calculated in step S2 (or corresponding sub-steps S11-S16). For example, the maximum available virtual inertia of a wind turbine R. i =8ms, J i,max =225kg·m 2 Then its comparison sequence is X wind = [8,225]; A certain energy storage system R i =3ms, J i,max =148kg·m 2 Then the comparison sequence is X. ess =[3,148]. By simultaneously incorporating "response speed" and "inertia capability", grey relational analysis can achieve synergistic consideration of "fast response" and "large capability", avoiding resource waste or response lag caused by single-dimensional allocation.
[0099] S22. Calculate the correlation coefficient between the comparison sequence of each energy unit and the preset ideal sequence using the grey relational coefficient formula, and use this coefficient as the grey relational coefficient for each energy unit; the grey relational coefficient formula is:
[0100]
[0101] Where, ξ i (k) represents the correlation coefficient of the i-th energy unit in the k-th dimension of the comparison sequence, where k = 1 or 2. When k = 1, it represents the response characteristic dimension; when k = 2, it represents the maximum available inertia dimension. x0(k) represents the characteristic value of the k-th dimension of the ideal sequence. i (k) represents the characteristic value of the k-th dimension of the comparison sequence of the i-th energy unit; ρ is the preset resolution coefficient.
[0102] Specifically, when constructing the ideal sequence X0, the optimal characteristics of each dimension should be reflected. For the response characteristic dimension (k=1), the minimum response time among all energy units is selected (i.e., x0(1)=min{R1,R2,…,R...). n}), representing the ideal characteristic of "fastest response"; for the largest available inertia dimension (k=2), the largest J among all energy units is selected. i,max (i.e., x0(2)=max{J) 1,max J 2,max ,…,J n,max}), representing the ideal characteristic of "strongest inertia capability". This includes wind turbine units (X). wind =[8,225]), Photovoltaics (X) pv =[50,42]), Energy Storage (X) ess Taking a microgrid with x0 = [3,148] as an example, the ideal sequence is x0 = [3,225].
[0103] When calculating the grey relational coefficient, first determine the minimum difference Δ between the two levels. min The maximum difference between the two levels Δ max Δ min = This means iterating through both dimensions of all energy units, calculating the absolute difference from the ideal sequence, and taking the minimum value. Similarly, take the maximum value of the absolute difference.
[0104] For the example above, the absolute difference between each unit and the ideal sequence is:
[0105] Wind turbine units: |3-8|=5 (k=1), |225-225|=0 (k=2);
[0106] Photovoltaics: |3-50|=47 (k=1), |225-42|=183 (k=2);
[0107] Energy storage: |3-3|=0 (k=1), |225-148|=77 (k=2);
[0108] Therefore, Δ min =min{5,0,47,183,0,77}=0,Δ max =max{5,0,47,183,0,77}=183. The resolution coefficient ρ can be preset to 0.5 to balance the resolution and anti-interference of the correlation coefficient. Substitute into the grey relational coefficient formula. Calculate the correlation coefficients of each unit in two dimensions:
[0109] Wind turbine (i = wind):
[0110] Photovoltaics (i = pv):
[0111] Energy storage (i = ess):
[0112] The larger the correlation coefficient, the closer the unit is to the ideal characteristics in the corresponding dimension.
[0113] S23. Based on the grey relational coefficients of each energy unit, calculate the grey relational degree of each energy unit using the arithmetic mean algorithm; the formula for calculating the grey relational degree is:
[0114]
[0115] Where, γ i Let represent the grey relational degree of the i-th energy unit, and N be the number of feature indicators of the comparison sequence.
[0116] Specifically, the grey relational degree γ i It is the arithmetic mean of the correlation coefficients across all dimensions, used to comprehensively evaluate the overall similarity between the energy unit and the ideal sequence. The formula is: Where N is the number of feature indicators of the comparison sequence (here N=2, including two dimensions: "response characteristics" and "maximum available inertia").
[0117] Based on the calculation results of S22, the grey relational degree of each unit is:
[0118] Wind turbine units:
[0119] Photovoltaics:
[0120] Energy storage:
[0121] It is evident that wind turbines have the highest correlation, indicating that their overall performance in terms of "response speed" and "inertia capacity" is closest to the ideal state; photovoltaics have the lowest correlation due to their slow response speed and weak inertia capacity; although energy storage has the fastest response, its inertia capacity is inferior to that of wind power, so its correlation is in the middle.
[0122] S24. Based on the grey relational degree and maximum available virtual inertia of each energy unit, calculate the allocation coefficient of each energy unit using the proportional allocation formula; the proportional allocation formula is:
[0123]
[0124] Where, α i This represents the allocation coefficient for the i-th energy unit.
[0125] Specifically, the allocation coefficient α i It also reflects the "matching degree with the ideal sequence (grey relational degree γ)". i ")" and "Maximum inertia capacity (J)" i,max The formula is: The numerator is the product of "correlation degree - inertia capability", and the denominator is the sum of the products of all units, ensuring that the allocation coefficient is positively correlated with units that have "high matching degree and strong capability".
[0126] Based on the data above (wind turbine γ) wind ≈0.974, J wind,max =225; Photovoltaic γ pv ≈0.497, J pv,max =42; Energy storage γ ess ≈0.771, J ess,max =148), calculate the numerator:
[0127] Wind turbine: 0.974 × 225 ≈ 219.15;
[0128] Photovoltaics: 0.497 × 42 ≈ 20.874;
[0129] Energy storage: 0.771×148≈114.108.
[0130] The denominator is the sum of the three, i.e., 219.15 + 20.874 + 114.108 ≈ 354.132.
[0131] Therefore, the allocation coefficient for each unit is:
[0132] Wind turbine units:
[0133] Photovoltaics:
[0134] Energy storage:
[0135] The allocation coefficient reflects the proportion that each unit should bear in the total inertia demand. Wind turbines have the highest allocation ratio because of their best overall performance, while photovoltaics have the lowest allocation ratio because of their worst overall performance.
[0136] S25. Based on the allocation coefficient and the virtual inertia of demand, calculate the actual allocated virtual inertia of each energy unit using a linear allocation formula; the linear allocation formula is:
[0137] J i =α i ·J total
[0138] Among them, J iFor the actual allocation of virtual inertia to the i-th energy unit, J total For virtual inertia required.
[0139] Specifically, the actual allocation of virtual inertia J i Through the "distribution coefficient α" i "and "demand virtual inertia J" total The linear product of 'J' is obtained. i =α i ·J total J total It is the virtual inertia required by the microgrid system calculated in step S1.
[0140] If J total =300kg·m 2 Based on the allocation coefficient of S24, the actual virtual inertia allocated to each unit is:
[0141] Wind turbine: J wind =0.619×300≈185.7kg·m 2 ;
[0142] Photovoltaics: J pv =0.059×300≈17.7kg·m 2 ;
[0143] Energy storage: J ess =0.322×300≈96.6kg·m 2 .
[0144] The allocation result ensures that the total inertia is consistent with the demand (185.7+17.7+96.6≈300), ensures that the inertia allocated to each unit does not exceed its "maximum available virtual inertia" (185.7≤225, 17.7≤42, 96.6≤148), and ensures that "response speed" and "inertia capacity" are comprehensively considered, so that inertia replenishment is both efficient and timely, and avoids the aggravation of system frequency fluctuations caused by overload or response lag of a single unit.
[0145] In this embodiment, the response characteristics and maximum inertia capability of the integrated energy unit are combined to achieve optimal allocation of virtual inertia, thereby improving the rationality and synergy of inertia allocation.
[0146] In one optional embodiment, the step of generating the additional power command corresponding to the wind turbine includes:
[0147] S31. Based on the actual allocated virtual inertia of the wind turbine, the basic additional power command of the wind turbine is generated by combining the synchronous generator rotor motion equation model with real-time frequency change rate and frequency deviation data.
[0148] Specifically, the synchronous generator rotor motion equation is the core theoretical basis for generating the additional power command for wind turbine foundations, and its classic form is: Where J is the moment of inertia of the synchronous generator rotor, θ is the rotor electrical angle, and T... m For mechanical torque, T e This represents the electromagnetic torque. To adapt to the virtual inertia control scenario of wind turbine units, this equation is transformed into a power-frequency relationship, combined with the power-torque relationship P=Tω (ω is the rotor angular velocity, which satisfies ω=2πf with the system frequency f), and the conversion relationship between the virtual inertia time constant H and the rotational inertia J. (ω0 is the rated angular velocity, S) rated Given the rated apparent power of the wind turbine, the power-frequency dynamic equation including virtual inertia can be derived:
[0149]
[0150] Where Δf = f - f0 is the frequency deviation, P m For mechanical power, P e This refers to electromagnetic power.
[0151] In the virtual inertia control of wind turbines, the basic additional power command is essentially achieved by adjusting the electromagnetic power P. e The inertial response of a synchronous generator is simulated to compensate for system frequency fluctuations. This is combined with the actual virtual inertia H of the wind turbine obtained in step S3. wind,alloc Replace H in the above equation with H and introduce the real-time frequency change rate. Using the frequency deviation Δf as an input variable, the calculation formula for the basic additional power command can be further derived:
[0152]
[0153] In the formula ΔP base Based on additional power instructions, K d The damping coefficient is used to suppress frequency oscillations. Its value can be calibrated through offline simulation. It can usually be determined based on the system damping ratio requirement (generally 0.4 to 0.6) and the closed-loop bandwidth (usually 1 to 5 Hz) to ensure that the dynamic response speed of the system is not affected while suppressing oscillations.
[0154] Real-time frequency change rate The frequency deviation Δf can be obtained from real-time monitoring data of the microgrid. The frequency deviation is directly calculated by comparing the real-time frequency collected by the PMU deployed at the wind turbine grid connection point with the system's rated frequency. The frequency change rate is processed using the five-point sliding window numerical differentiation method, consistent with step S1, to handle the continuous frequency data collected by the PMU, thus avoiding interference from power electronic device switching noise on the calculation accuracy. In practical applications, it is necessary to ensure that the PMU data sampling period matches the wind turbine controller's operation period, enabling the basic additional power command to dynamically follow the system frequency changes in real time and accurately respond to inertial compensation requirements.
[0155] S32. Based on the basic additional power command of the wind turbine and the rotor speed change trend, the basic additional power command is dynamically corrected when a speed recovery requirement is detected through the speed recovery limitation mechanism, so as to obtain the corrected additional power command of the wind turbine.
[0156] Specifically, the design purpose of the speed recovery limiting mechanism is to prevent the rotor speed of wind turbines from dropping excessively due to the continuous provision of virtual inertia, thereby affecting the safe operation of the unit and its subsequent power generation capacity. The core of this mechanism is to determine whether the basic additional power command needs to be corrected based on the rotor speed change trend. The specific implementation is divided into two stages: "speed change trend detection" and "dynamic correction logic execution".
[0157] Rotor speed change trend detection is achieved by acquiring real-time rotor speed data from the wind turbine shaft encoder. A moving average method can be used to process the continuous speed signal to reduce measurement noise, and then the rate of change of speed can be calculated. (n is the rotor speed) is used to determine the trend. When If the duration exceeds the set threshold, or the real-time speed is lower than the rated speed by a certain percentage (the specific value can be determined in conjunction with the safe operating range provided by the unit manufacturer), it is determined that there is a need for speed recovery, triggering dynamic correction; otherwise, if the speed is maintained within the rated range and the rate of change is close to 0, no correction is required, and the basic additional power command is directly used.
[0158] The dynamic correction logic adopts a "speed deviation-correction coefficient" correlation model, introducing a correction coefficient k. corr The base additional power command is scaled, and the corrected additional power command formula is as follows:
[0159] ΔP corr =ΔP base ×k corr
[0160] Where the correction coefficient k corr The speed deviation Δn = n0 - n (where n0 is the rated speed) is designed as a piecewise function. When Δn ≤ 0 (the speed is higher than or equal to the rated value), k corr=1, no correction; when 0 < Δn ≤ Δn1 (Δn1 is the first threshold, which can be 5% of the rated speed), it can be calculated using the formula Linearly reduce the correction factor to mitigate the speed drop; when Δn > Δn1, the following formula can be used. (Δn2 is the second threshold, which can be 10% of the rated speed), further reducing the correction factor to prioritize speed recovery; when Δn≥Δn2, it can be defined as k corr =0.3, limiting the output of the basic additional power command to prevent the speed from continuing to drop below the safe threshold.
[0161] A hysteresis loop can be introduced during the correction process to prevent frequent switching of the correction coefficient due to minor fluctuations in rotational speed, which could lead to oscillations in the additional power command and affect the stability of the converter operation. Simultaneously, the corrected additional power command is compared with the current available power of the wind turbine to ensure that the corrected additional power command does not exceed the current available power (determined by the calculation result of "current available power of the wind turbine" in step S2), thus avoiding overcurrent protection activation of the converter due to command overload.
[0162] S33. By superimposing the corrected additional power command onto the original power reference value through the power control loop of the wind turbine rotor-side converter, the final active power regulation command of the wind turbine is obtained.
[0163] Specifically, the power control loop of the wind turbine rotor-side converter adopts a dual closed-loop architecture of "power loop-current loop". This architecture can achieve accurate tracking of active power while ensuring the stability of converter operation. The power loop is the outer loop and the current loop is the inner loop. The correction command is transmitted through the hierarchy of this dual closed loop and is finally converted into the modulation signal of the converter.
[0164] First, correct the additional power command ΔP. corr This is superimposed on the original power reference value of the wind turbine. The original power reference value is generated by the Maximum Wind Energy Tracking (MPPT) algorithm, the core of which is to adjust the rotor speed according to the real-time wind speed to capture the maximum wind energy and output an active power reference value P that matches the current wind speed. ref,MPPT The reference value for the total active power after superposition is P. ref,total =P ref,MPPT +ΔP corr This total reference value serves as the input to the power loop, and is correlated with the actual output active power P of the converter. actual The deviation signal ΔP = P is generated. ref,total -P actual .
[0165] The power loop uses a PI controller to adjust the deviation signal ΔP, and the output serves as the q-axis current reference value I for the current loop. q,refThis transformation is based on the stator flux orientation vector control principle of doubly-fed wind turbines. In the stator flux orientation coordinate system, active power control is achieved by adjusting the q-axis component of the rotor current, and the two satisfy a linear relationship P = 1.5ω0L. m I q / L s (L m For the mutual inductance between the stator and rotor, L s (For the stator inductance), therefore the output of the power loop PI controller can be directly mapped to the q-axis current reference value, ensuring accurate correspondence between active power and q-axis current.
[0166] The current loop serves as the inner loop, and its input is the q-axis current reference value I. q,ref The actual q-axis current I collected by the rotor-side current sensor q,actual deviation ΔI q =I q,ref -I q,actual Similarly, a PI controller is used for regulation. The output of the current loop PI controller is the modulation voltage reference value of the rotor-side converter. This reference value is converted into the IGBT drive signal through space vector pulse width modulation (SVPWM) technology, which controls the switching state of the converter, thereby adjusting the q-axis component of the rotor current, and finally achieving tracking of the total active power reference value.
[0167] In the parameter design of the power control loop, the principle of "inner loop bandwidth higher than outer loop" is followed. The current loop bandwidth can be set to 100-200Hz to quickly suppress current disturbances; the power loop bandwidth can be set to 10-20Hz to balance power tracking speed and system stability. Simultaneously, a feedforward compensation circuit is introduced, substituting real-time parameters such as stator flux linkage and rotor angular velocity into the current loop control equation to offset the impact of system coupling terms on current tracking accuracy. Furthermore, the converter is equipped with overcurrent and overvoltage protection logic. When the rotor current exceeds 1.2-1.5 times the rated value or the DC bus voltage exceeds 1.1-1.2 times the rated value, the active power reference value is immediately reduced to avoid hardware damage and ensure the safe operation of the wind turbine when executing active power regulation commands.
[0168] In this embodiment, the wind turbine provides virtual inertia while taking into account both the safe recovery of rotor speed and the inertial support requirements, ensuring stable and effective response of the unit.
[0169] In one optional embodiment, the step of generating the additional power command corresponding to the photovoltaic system includes:
[0170] S41. Based on the actual allocation of virtual inertia of the photovoltaic system, the basic additional power command of the photovoltaic system is generated through the virtual inertia-power conversion model.
[0171] Specifically, the virtual inertia-power conversion model for photovoltaic systems needs to be adapted to their characteristic of having no mechanically rotating parts. The core is to simulate the inertial response of a synchronous generator through power regulation, essentially converting the actually allocated virtual inertia into active power commands that can directly drive the inverter. The derivation of this model is based on the dynamic relationship between virtual inertia and frequency. The core function of virtual inertia is to suppress frequency changes by supplementing or absorbing active power. Its dynamic relationship with the rate of frequency change can be simplified and derived from the synchronous generator rotor motion equations. Considering the characteristic of photovoltaic systems that achieve power regulation solely through power electronic conversion, the virtual inertia-power conversion formula is finally obtained:
[0172]
[0173] In the formula ΔP pv,base Add power instructions to the photovoltaic system base, H pv,alloc To actually allocate virtual inertia to the photovoltaic system (derived from the inertia allocation results of the grey relational analysis above), S pv,rated The rated apparent power of the photovoltaic system, This represents the real-time frequency change rate of the microgrid.
[0174] From a technical perspective, the physical meaning of this formula is: a photovoltaic system needs to output active power that is positively correlated with its virtual inertia, rated power, and frequency change rate to offset rapid fluctuations in system frequency. When the system frequency decreases... At that time, ΔP pv,base A negative value indicates that the photovoltaic system needs to increase its active power output to support the frequency; when the system frequency increases... At that time, ΔP pv,base A positive value indicates that the photovoltaic system needs to reduce its active power output (or absorbed power) to suppress excessively high frequencies.
[0175] Model input parameter acquisition and coordination with microgrid monitoring system: H pv,alloc The central controller issues in real time based on the system's inertia requirements, and the update cycle is consistent with the inertia allocation cycle. The five-point sliding window numerical differentiation method, consistent with that used for wind turbines, is employed. Data is sourced from the PMU deployed at the grid connection point of the photovoltaic inverter, ensuring the accuracy of the frequency change rate calculation and avoiding command fluctuations caused by power electronic switching noise. Furthermore, the calculated ΔP... pv,base A limiting process is implemented to initially restrict its absolute value to no more than 30% to 50% of the current available power of the photovoltaic system (the specific percentage can be determined based on the stability of photovoltaic output), leaving room for adjustment and subsequent power reserve.
[0176] S42. Based on historical frequency disturbance statistics and future solar intensity predictions, the power reserve margin required by the photovoltaic system is calculated using a power margin adaptive algorithm.
[0177] Specifically, the design goal of the power margin adaptive algorithm is to ensure that the photovoltaic system, while providing virtual inertia support, reserves sufficient power to cope with potential future frequency disturbances and changes in irradiance, avoiding interruptions in inertial response due to insufficient power. The algorithm uses "historical disturbance demand - future output prediction" as dual inputs, and dynamically calculates the currently required power reserve margin ΔP through the synergy of statistical analysis and prediction models. pv,reserve The specific implementation is divided into three stages: "historical data statistics", "illuminance prediction modeling" and "margin dynamic calculation".
[0178] Historical frequency disturbances can be statistically analyzed by processing microgrid frequency disturbance data from the past 30 to 90 days. First, disturbance events with an absolute frequency deviation exceeding 0.1 Hz or an absolute frequency change rate exceeding 0.2 Hz / s can be identified. The maximum inertial power that the photovoltaic system needs to replenish in each event (i.e., |ΔP| under that event) is recorded. pv,base |peak value); then fit these peak data using a Weibull distribution or a normal distribution, and calculate the power value P corresponding to the 95% confidence interval. hist,95% This value represents the maximum disturbance demand that is most likely to occur in historical data, and serves as a basic reference for power reserve margin.
[0179] Future solar irradiance prediction employs a short-term forecasting model (prediction timeframe of 5–15 minutes, matching the photovoltaic output response delay). The models used include time series analysis models (such as ARIMA), machine learning models (such as LSTM), or physical models (based on meteorological satellite cloud images and radiative transfer equations). The prediction output is the average solar irradiance G over the future time period. pred Combined with the power-light characteristic curve of the photovoltaic array ( Where G is the light intensity, G std Calculate the predicted maximum available photovoltaic power P for the next 5–15 minutes (based on the irradiance under standard test conditions). pv,pred,max Simultaneously, calculate the current maximum available power P based on the current light intensity. pv,cur,max The power fluctuation ΔP caused by the change in illumination was obtained. pv,light =|P pv,pred,max -P pv,cur,max This fluctuation is incorporated into the power reserve margin to avoid insufficient photovoltaic output due to a sudden drop in sunlight.
[0180] The dynamic calculation of power reserve margin adopts a weighted summation model, and the formula is:
[0181] ΔP pv,reserve =k1·P hist,95% +k2·ΔP pv,light
[0182] In the formula, k1 and k2 are weighting coefficients, summing to 1, and their values are adaptively adjusted according to the microgrid's operating scenario. For example, when historical disturbances are frequent (e.g., the average number of disturbances per day exceeds 5), k1 is set to 0.6–0.7, and k2 is set to 0.3–0.4, prioritizing the needs of historical disturbances; when there are drastic changes in illumination (e.g., cloudy weather, with illumination fluctuations exceeding 200W / m within 10 minutes), k1 is set to 0.6–0.7, and k2 to 0.3–0.4, prioritizing the needs of historical disturbances. 2 When ΔP is low, k1 is set to 0.4–0.5, and k2 to 0.5–0.6, prioritizing responses to irradiance fluctuations. Furthermore, upper and lower margin limits are set: the lower limit can be 10% of the current maximum available power (to avoid an excessively small margin rendering the reserve meaningless), and the upper limit can be 40% of the current maximum available power (to avoid an excessively large margin wasting photovoltaic output), ensuring ΔP... pv,reserve Adjust dynamically within a reasonable range.
[0183] S43. Based on the basic additional power command and power reserve margin of the photovoltaic system, the final active power regulation command of the photovoltaic system is generated through superposition calculation.
[0184] Specifically, the generation of the final active power regulation command of the photovoltaic system is achieved through the coordinated constraint of "basic additional power command - power reserve margin". The core is to ensure sufficient reserved power while meeting the inertial support requirements, so as to avoid the system falling into secondary disturbances due to insufficient power. This process, combined with the control architecture of the photovoltaic inverter, accurately transmits the command to the power control loop. The specific implementation includes three stages: "command superposition constraint", "integration with the original power reference value", and "control loop adaptation".
[0185] The core of the command superposition constraint is to ensure that the basic additional power command does not exceed the range of "current available power - power reserve margin". First, calculate the maximum power P that the photovoltaic system can currently use for inertial support. pv,avail,inertia =P pv,cur,max -ΔP pv,reserve , where P pv,cur,max The maximum available power is calculated using the current MPPT algorithm; then the base additional power command ΔP is applied. pv,base Perform secondary amplitude limiting, when ΔP pv,base When <0 (output needs to be increased), its lower limit is limited to (-P). pv,avail,inertia This means that the maximum increase in output should not exceed the power available for inertial support, avoiding exceeding the current output capacity of the photovoltaic system; when ΔP pv,base When the output is >0 (output needs to be reduced), its upper limit is limited to (P). pv,cur,max -P pv,min To prevent the inverter from shutting down due to low output, P pv,min This is the minimum operating power of the photovoltaic inverter.
[0186] The integration with the original power reference value is based on the control logic of the photovoltaic inverter. Original power reference value P pv,ref,MPPT Generated by the MPPT algorithm, representing the maximum power output reference under the current illumination; the final active power adjustment command P pv,ref,total The sum of the original reference value and the base additional power command after limiting is given by the following formula:
[0187] P pv,ref,total =P pv,ref,MPPT +ΔP pv,base,lim
[0188] In the formula ΔP pv,base,lim This is the additional power command after the second-order limiting. The physical meaning of this fusion logic is: based on the maximum output of MPPT, the actual output is adjusted according to the system's inertial requirements; that is, the output is increased when the frequency needs to be supported (by superimposing a negative base command, due to ΔP). pv,base <0 time P pv,ref,total =P pv,ref,MPPT -|ΔP pv,base,lim | Note the sign logic here: when the system frequency decreases, the photovoltaic output needs to increase, hence ΔP pv,base If the value is negative, the actual output after superposition is higher than the MPPT reference value. It is necessary to ensure that this value does not exceed P. pv,cur,max When it is necessary to suppress the rise in frequency, reduce the output (superimpose a positive base instruction, and the actual output is lower than the MPPT reference value).
[0189] The control loop is adapted for the dual closed-loop architecture of "voltage loop-current loop" for photovoltaic inverters. Final instruction P pv,ref,total First, input the power loop and compare it with the actual output active power P of the inverter. pv,actual Formation of deviation ΔP pv =P pv,ref,total -P pv,actual The power loop uses a PI controller to adjust this deviation, and the output serves as the d-axis current reference value I for the current loop. d,ref The conversion is based on the power-current relationship of the photovoltaic inverter (P = 1.5U). grid,d I d U grid,d (This refers to the d-axis component of the grid voltage, based on grid voltage-oriented vector control); the current loop compares the d-axis current reference value with the actual d-axis current collected by the current sensor, outputs the modulated voltage reference value through the PI controller, and then converts it into an IGBT drive signal through SVPWM technology to realize the execution of the final command.
[0190] In addition, a command smoothing mechanism (e.g., using a first-order low-pass filter) can be introduced to prevent current loop oscillation caused by rapid changes in the basic additional power command; simultaneously, overcurrent and overvoltage protection can be configured: for example, when the inverter output current is detected to exceed the rated value by 1.2 to 1.5 times or the DC bus voltage exceeds the rated value by 1.1 to 1.2 times, P is immediately switched off. pv,ref,total Reduced to P pv,min This ensures the safe operation of the inverter and sends a fault signal to the central controller, triggering inertial support compensation from other energy units to maintain the stability of the microgrid frequency.
[0191] In this embodiment, the photovoltaic system provides inertial support while reserving power to cope with future frequency disturbances and changes in illumination, thus balancing inertial response and output stability.
[0192] In one optional embodiment, the step of generating the additional power command corresponding to the energy storage system includes:
[0193] S51. Allocate the actual virtual inertia of the energy storage system into fast response inertia and continuous support inertia according to a preset ratio.
[0194] Specifically, the proportion of virtual inertia actually allocated to the energy storage system should be adapted to its dual characteristics of "rapid response + continuous support," and the preset proportion can be determined based on the dynamic characteristics of the microgrid frequency. The actual allocated virtual inertia H can be... ess,alloc The fast response inertia H is divided into a 6:4 or 7:3 ratio. fast With continuous support inertia H slow H fast =k·H ess,alloc H slow = (1-k)·H ess,alloc , where k is the proportionality coefficient.
[0195] The core basis for the proportional division is the time-scale characteristics of frequency disturbances. The fast-response inertia targets the high-frequency rate of change (RoCoF) in the initial stage of frequency disturbance (0-2 seconds) by suppressing the rapid drop or rise of frequency through instantaneous power adjustment; the continuous support inertia targets the steady-state frequency deviation in the middle stage of disturbance (2-10 seconds) by maintaining the frequency within the allowable range through stable power output.
[0196] In practical applications, the proportional gain can be dynamically adjusted through offline simulation. Under typical disturbance scenarios such as sudden load increases and sharp drops in renewable energy output, the maximum frequency deviation and recovery time under different proportional gains are simulated, and the optimal proportional gain value (e.g., maximum deviation ≤ 0.5Hz, recovery time ≤ 10 seconds) is selected. For example, in microgrids with a high proportion of wind power, there are many high-frequency disturbances caused by wind power fluctuations; k can be set to 0.7 to enhance rapid response capabilities. In microgrids dominated by stable loads, k can be set to 0.6 to optimize continuous support.
[0197] S52. Based on the fast response inertia, an additional power command for the fast response stage is generated through the differential control loop.
[0198] Specifically, the generation of additional power commands during the fast response phase is based on the principle of differential control. Its core is to achieve instantaneous power compensation by capturing the rate of change of frequency (RoCoF), thus suppressing rapid dynamic frequency shifts. The input to the differential control loop is the real-time rate of change of frequency. Output and fast response inertia H fast Direct association, the formula is:
[0199]
[0200] In the formula ΔP fast Additional power commands are added for the fast response phase, S ess,rated The rated apparent power of the energy storage system is given by the coefficient 2, which is derived from the conversion relationship between virtual inertia and rotational inertia (consistent with the equation of motion of the synchronous generator rotor).
[0201] The physical meaning of this instruction is: when the system frequency drops rapidly... At that time, ΔP fast A negative value indicates that the energy storage system needs to release power instantaneously (discharge) to support the frequency; when the frequency rises rapidly... At that time, ΔP fast A positive value indicates that the energy storage system needs to absorb power instantaneously (charge) to suppress excessively high frequencies. To avoid command oscillations caused by high-frequency noise, a first-order low-pass filter can be added before the differential control stage to smooth the original frequency signal; at the same time, a command change rate limit should be set to ensure that the power switching speed of the energy storage converter does not exceed its hardware capabilities (such as the switching frequency and current change rate limits of the IGBT), preventing overcurrent protection from activating.
[0202] S53. Based on the continuous support inertia, an additional power command for the continuous support stage is generated through the proportional control link.
[0203] Specifically, the generation of additional power commands during the sustained support phase is based on the proportional control principle. Its core is to offset the steady-state frequency deviation through stable power output, maintaining the frequency near the rated value. The input to the proportional control loop is the real-time frequency deviation Δf = f - f0 (where f0 is the rated frequency), and the output is related to the sustained support inertia H. slow The relationship between the damping coefficient and the damping coefficient is shown in the following formula:
[0204]
[0205] In the formula ΔP slow To provide additional power commands during the sustained support phase, T slowIt is a time constant used to adjust the response speed of proportional control, balancing steady-state accuracy and dynamic stability.
[0206] The physical meaning of this instruction is: when the system has a negative frequency deviation (Δf < 0, frequency lower than the rated value), ΔP slow A negative value indicates that the energy storage system needs to continuously discharge to replenish power; when there is a positive frequency deviation (Δf>0), ΔP slow A positive value indicates that the energy storage system needs to continuously charge to absorb excess power.
[0207] The proportional control parameters are tuned using the root locus method or frequency domain analysis. Time constant T slow Too small a damping ratio will result in a large overshoot, while too large a ratio will lead to a slow response. The goal is to maintain the damping ratio of the closed-loop system within the range of 0.5 to 0.7, ensuring that the time for the frequency deviation to converge to within ±0.1Hz does not exceed 10 seconds. Furthermore, for ΔP... slow Set steady-state limits to avoid long-term high-power charging and discharging, which can lead to a decrease in the lifespan of energy storage batteries.
[0208] S54. The additional power command for the rapid response phase and the additional power command for the continuous support phase are superimposed and calculated to obtain the total additional power command for the energy storage system.
[0209] Specifically, the superposition logic of the total additional power command reflects the energy storage system's "transient-steady-state" all-time response capability to frequency disturbances. Through the synergy of rapid response and continuous support, it achieves overall optimization of frequency dynamic characteristics. The superposition formula is:
[0210] ΔP total =ΔP fast +ΔP slow
[0211] In the formula ΔP total This is the total additional power command for the energy storage system. Its sign and magnitude reflect the charging and discharging state and intensity of the energy storage system.
[0212] When ΔP total When ΔP < 0, the energy storage system operates in discharge mode, injecting power into the grid; when ΔP total When the value is greater than 0, the energy storage system operates in charging mode, absorbing power from the grid; the larger the amplitude, the higher the charging and discharging intensity, and the more significant the frequency regulation effect.
[0213] The superposition process satisfies the "dynamic coordination constraint." The decay rate of the fast response command matches the establishment rate of the continuous support command, avoiding reverse superposition between the two during the transition phase (e.g., 2-3 seconds after a disturbance), which would lead to fluctuations in total power. This is specifically achieved by introducing an exponential decay factor into the fast response command; the modified fast command is ΔP. fast,decay =ΔP fast ·e-t / τ (where τ is the decay time constant) to ensure that after the continuous support instruction is effectively established, the rapid response instruction gradually exits, reducing energy loss.
[0214] S55. Based on the total additional power instruction of the energy storage system and the real-time state of charge, through the dynamic amplitude limiting algorithm, the amplitude of the total additional power instruction is constrained to obtain the final active power regulation instruction of the energy storage system.
[0215] Specifically, the core of the dynamic amplitude limiting algorithm is to adjust the amplitude of the total additional power instruction according to the real-time state of charge (SOC) of the energy storage system, avoiding battery life attenuation or safety risks caused by overcharging and over-discharging, and maximizing the use of the energy storage capacity to participate in frequency regulation. This algorithm dynamically generates the amplitude limiting coefficient k through the SOC piecewise function lim , and constrains the total additional power instruction to finally obtain:
[0216] P ess,ref,total =ΔP total ·k lim
[0217] In the formula, P ess,ref,total is the final active power regulation instruction of the energy storage system, and the piecewise logic of the amplitude limiting coefficient k lim can be as follows:
[0218] SOC≥90% (high state of charge): During discharge (ΔP total <0), k lim =1.0 (allow full-power discharge, prioritize supporting frequency); during charging (ΔP total >0), k lim =0.2 - 0.3 (strictly limit charging to avoid overcharging).
[0219] 70% < SOC < 90% (medium-high state of charge): During discharge, k lim =1.0; during charging, k lim =0.6 - 0.8 (moderately limit charging).
[0220] 30% ≤ SOC ≤ 70% (normal state of charge): During both charging and discharging, take k lim =1.0 (unrestricted, fully participate in regulation).
[0221] 10% < SOC < 30% (medium-low state of charge): During discharge, k lim =0.5 - 0.7 (moderately limit discharge); during charging, k lim =1.0 (allow full-power charging).
[0222] SOC≤10% (low state of charge): During discharge, k lim=0.1~0.2 (strictly limit discharge to avoid over-discharge); during charging, k lim =1.0.
[0223] The specific value of the limiting factor can be calibrated according to the charge and discharge characteristics of the battery type (such as lithium battery or lead-acid battery). For example, the lower limit of SOC for lithium iron phosphate batteries can be relaxed to 5%, while ternary lithium batteries need to be strictly controlled above 10%. In addition, a 1-2 second lag can be introduced into the limiting process to prevent frequent switching of the limiting factor due to fluctuations in SOC near the threshold, which could cause power command oscillations. Finally, the command is input to the power control loop of the bidirectional converter of the energy storage system, and is converted into a PWM drive signal through dual closed-loop regulation of "voltage loop-current loop" to achieve precise charge and discharge power control, ensuring that the frequency support capability of the energy storage system is maximized under safety constraints.
[0224] In this embodiment, by leveraging the "rapid response + continuous support" characteristics of energy storage and combining dynamic constraints on the state of charge, inertia support is provided to the system efficiently and safely.
[0225] In one optional embodiment, the required virtual inertia of the microgrid system is calculated based on the frequency change rate of the frequency signal through inertial demand assessment, including the following steps:
[0226] S61. Based on the frequency signal, the frequency change rate is calculated using the center difference method to obtain the real-time frequency change rate; the formula for calculating the real-time frequency change rate is:
[0227]
[0228] Where RoCoF is the real-time frequency change rate, f t+Δt f represents the frequency value at time t+Δt. t-Δt This represents the frequency value at time t-Δt, where Δt is the sampling interval.
[0229] Specifically, the core principle of the central difference method is to use the frequency values of symmetrical sampling points before and after the current moment to derive the rate of frequency change through linear approximation, thereby reducing calculation errors. The frequency signal is synchronously sampled for voltage and current by synchronous phasor measurement units (PMUs) deployed at key nodes of the microgrid. The sampling frequency can be set to 100Hz (i.e., sampling interval Δt = 10ms) to ensure that the acquisition accuracy of the frequency dynamic characteristics can match the rapid frequency changes under the low inertia of the microgrid.
[0230] The formula for calculating the real-time frequency change rate is: Where f t+Δt f is the frequency measurement value at time t+Δt. t-ΔtThis is the frequency measurement at time t-Δt. This formula originates from the first-order approximation of Taylor expansion. Expanding the frequency function f(t) at time t, the central difference can cancel even-order error terms, resulting in higher accuracy and smaller phase delay compared to forward / backward differences.
[0231] To avoid measurement noise interference, the original frequency signal can be low-pass filtered before the center differential. The filter cutoff frequency can be set to 10Hz (higher than the highest frequency of the system's dynamic frequency change, while filtering out high-frequency noise from power electronic switches, etc.). A 32nd-order finite impulse response (FIR) filter can be used to balance the filtering effect with the computational load. For example, if the frequency at time t-Δt is 49.95Hz and at time t+Δt is 49.85Hz, then... A negative sign indicates that the frequency is decreasing.
[0232] S62. Identify the disturbance type identifier based on the real-time frequency change rate and the corresponding duration;
[0233] Where, when |RoCoF|≥Thr fast And duration T dur ≤T short When Thr is detected, it is determined to be a unit disconnection disturbance; when Thr slow ≤∣RoCoF∣ <Thr fast And T dur >T long When this occurs, it is determined to be a sudden load disturbance; among which, Thr fast To quickly set the perturbation threshold, Thr slow T is the slow perturbation threshold. short For short-term disturbance windows, T long This is a long-term disturbance window.
[0234] Specifically, the purpose of disturbance type identification is to distinguish between "unit disconnection disturbance" and "load change disturbance" based on the amplitude and duration of the frequency change rate, so as to provide a "disturbance intensity-type" correlation basis for the subsequent weighted assessment of demand virtual inertia.
[0235] Each threshold parameter was calibrated using offline simulation and engineering data:
[0236] For the fast perturbation threshold Thr fast By simulating a sudden grid disconnection scenario for generating units (synchronous turbines, wind turbines, etc.), the peak RoCoF value was recorded, and the 95th percentile of RoCoF under such scenarios was taken. For example, simulations showed that when 20% of the unit capacity is disconnected from the grid, the RoCoF can reach 8-10 Hz / s. Therefore, Thr fast Set to 8Hz / s.
[0237] For the slow perturbation threshold Thr slowBy simulating load abrupt changes (such as a 10% step change in rated load), the peak value of RoCoF was recorded, and the 95th percentile of RoCoF under such scenarios was taken. For example, when the load suddenly increases by 10%, the RoCoF is approximately 2-3 Hz / s. slow Set to 2Hz / s.
[0238] For short-time disturbance window T short The generator disconnection is a "transient strong disturbance" with an extremely short duration (usually 200-500ms), therefore T short Set to 300ms.
[0239] For a long-term disturbance window T long The load abruptly changes to a "continuous weak disturbance," lasting for a relatively long time (usually exceeding 1 second), therefore T long Set to 1 second.
[0240] In the disturbance identification process, the relationship between |RoCoF| and duration T is monitored in real time. dur From |RoCoF| beyond Thr slow Start timing. If |RoCoF|≥Thr fast And T dur ≤T short The disturbance was determined to be a generator disconnection disturbance (a strong, instantaneous disturbance requiring rapid replenishment of large inertia). If Thr slow ≤|RoCoF| <Thr fast And T dur >T long The disturbance was identified as a sudden load change (a continuous weak disturbance that requires continuous replenishment of inertia to maintain frequency stability).
[0241] S63. Based on the real-time frequency change rate, disturbance type identifier, and preset weighting coefficients, the virtual inertia of the microgrid is calculated using a weighted evaluation model to obtain the system virtual inertia of the microgrid. The formula for calculating the virtual inertia of the microgrid is as follows:
[0242]
[0243] Among them, J total For the required virtual inertia, w1 is the frequency change rate weighting coefficient, w2 is the change acceleration weighting coefficient, and S type This indicates the disturbance type impact factor set according to the disturbance type identifier. It represents the acceleration due to frequency change.
[0244] Specifically, the weighted evaluation model integrates three dimensions—frequency change rate amplitude, disturbance type, and frequency change acceleration—to quantify the microgrid's demand intensity for virtual inertia.
[0245] The frequency change rate weighting coefficient w1 reflects the direct contribution of RoCoF to inertia demand and can be calibrated through a "inertia-frequency deviation" simulation experiment. In the microgrid simulation model, the virtual inertia J is gradually increased, and the maximum frequency deviation Δf caused by RoCoF under different J values is recorded. max Establish Δf max The linear relationship between a and b, given by the least squares method, is as follows: This ensures that the inertia requirement has a reasonable linear relationship with RoCoF.
[0246] The acceleration change weighting coefficient w2 reflects the impact of the RoCoF change trend on inertia demand. If the absolute value of RoCoF increases, it indicates that the frequency deteriorates faster, requiring more inertia. The steps for calibrating w2 are as follows: Simulate a scenario where the frequency change rate itself accelerates (e.g., |RoCoF| increases over time, and the frequency drop / rise rate accelerates), and record the additional virtual inertia ΔJ required to maintain frequency stability. Establish a correlation equation, assuming that the additional inertia demand is related to the frequency change acceleration... "Linear dependence, that is: Then collect multiple sets The simulation data was fitted using the least squares method to obtain w2.
[0247] Disturbance type influence factor S type Adjust the inertia demand weight according to the type of disturbance. If it is a unit disconnection disturbance, it can be set to S. type =1.2 indicates that a strong instantaneous disturbance requires more inertia to quickly suppress the frequency drop; if it is a sudden load change disturbance, it can be set to S. type =0.8 indicates that a sustained weak disturbance requires more sustained inertia support.
[0248] In this implementation, by accurately identifying the type of microgrid disturbance and dynamically assessing inertial demand, the calculation of virtual inertia demand is made to better reflect the actual disturbance scenario, thereby improving the accuracy of inertial demand assessment.
[0249] The aforementioned multi-energy collaborative smart microgrid control method accurately assesses the system's inertia demand by real-time acquisition of microgrid frequency signals and calculation of their rate of change. It then dynamically calculates the maximum virtual inertia each unit can provide, considering the physical characteristics and operational constraints of energy units such as wind turbines, photovoltaics, and energy storage. Using grey relational analysis, it dynamically matches system demand with unit capabilities to generate an optimal allocation scheme. This drives the dedicated control models of each unit to generate differentiated power regulation commands. Finally, power support is collaboratively executed through power electronic converters. This method achieves precise matching and efficient collaboration of multi-energy virtual inertia capabilities, significantly enhancing the frequency stability of high-proportion renewable energy grids and effectively avoiding problems such as resource allocation mismatch and poor control adaptability in traditional methods. It also ensures the dynamic safety of the system under complex operating conditions.
[0250] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0251] Based on the same inventive concept, this application also provides an apparatus for implementing the multi-energy coordinated smart microgrid control method described above. The solution provided by this apparatus is similar to the implementation scheme described in the above method; therefore, the specific limitations of one or more multi-energy coordinated smart microgrid control apparatus embodiments provided below can be found in the limitations of the multi-energy coordinated smart microgrid control method described above, and will not be repeated here.
[0252] In one exemplary embodiment, such as Figure 3 As shown, a multi-energy coordinated smart microgrid control device 30 is provided to implement the methods in the above-described method embodiments. The device includes:
[0253] The dynamic inertial demand assessment module 31 is used to collect the frequency signal of the microgrid system through the synchronous phasor measurement unit deployed at the key nodes of the microgrid; based on the frequency change rate of the frequency signal, the virtual inertia demand of the microgrid system is calculated through inertial demand assessment.
[0254] The energy unit inertia capability assessment module 32 is used to calculate the maximum virtual inertia that each energy unit can provide based on the physical model and operating constraints of each energy unit in the microgrid system.
[0255] The virtual inertia allocation optimization module 33 is used to calculate the actual allocated virtual inertia of each energy unit based on the required virtual inertia and the maximum available virtual inertia using grey relational analysis.
[0256] The additional power command generation module 34 is used to generate additional power commands for each energy unit based on the actual allocated virtual inertia and the corresponding operation control model of each energy unit.
[0257] The collaborative power regulation execution module 35 is used to superimpose the additional power commands corresponding to each energy unit into the local control loop of the microgrid system, drive the power electronic converter to perform power regulation, and perform virtual inertial control of multi-energy collaboration.
[0258] Embodiments of this application also provide a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the aforementioned method embodiments.
[0259] Embodiments of this application also provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the above-described method embodiments.
[0260] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative. The components described as separate parts may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this disclosure according to actual needs. Those skilled in the art can understand and implement this without creative effort.
[0261] The above-described embodiments are merely illustrative of several implementation methods of the embodiments of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of the patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the embodiments of this application, and these modifications and improvements all fall within the protection scope of the embodiments of this application.
Claims
1. A multi-energy coordinated intelligent microgrid control method, characterized in that, The method includes: S1. The frequency signal of the microgrid system is acquired by synchronous phasor measurement units deployed at key nodes of the microgrid; based on the frequency change rate of the frequency signal, the required virtual inertia of the microgrid system is calculated through inertial demand assessment. S2. Based on the physical model and operating constraints of each energy unit in the microgrid system, calculate the maximum virtual inertia that each energy unit can provide; S3. Based on the required virtual inertia and the maximum available virtual inertia, the actual allocated virtual inertia of each energy unit is calculated using grey relational analysis. S4. Based on the actual allocated virtual inertia, generate additional power commands corresponding to each energy unit through the operation control model corresponding to each energy unit; S5. The additional power command corresponding to each energy unit is superimposed on the local control loop of the microgrid system to drive the power electronic converter to perform power regulation, so as to perform virtual inertial control of multi-energy coordination.
2. The method according to claim 1, characterized in that, The energy units include wind turbines, photovoltaic systems, and energy storage systems; the calculation of the maximum virtual inertia that each energy unit can provide, based on the physical model and operating constraints of each energy unit in the microgrid system, includes: S11. Based on the rotor speed and output power of the wind turbine, the currently releaseable rotational kinetic energy is calculated using the wind turbine dynamics model to obtain the current releaseable rotational kinetic energy of the wind turbine. S12. Based on the current releaseable rotational kinetic energy of the wind turbine and the preset maximum allowable rotational speed deviation, calculate the maximum virtual inertia that the wind turbine can provide using the kinetic energy-inertia conversion formula; the kinetic energy-inertia conversion formula is: Among them, J wind_max E represents the maximum virtual inertia that the wind turbine can provide. kin Δω represents the current releaseable rotational kinetic energy of the wind turbine, ω represents the current rotor angular velocity of the wind turbine, and Δω represents the current releaseable rotational kinetic energy of the wind turbine. max The preset maximum allowable speed deviation; S13. Based on the illuminance, operating point voltage, and current data of the photovoltaic system, calculate the maximum available power of the photovoltaic system using the maximum power point tracking algorithm; subtract the current output power of the photovoltaic system from the maximum available power to obtain the power margin of the photovoltaic system. S14. Based on the power margin of the photovoltaic system and the preset maximum allowable frequency change rate of the microgrid system, calculate the maximum virtual inertia that the photovoltaic system can provide using a power margin-inertia mapping model; the power margin-inertia mapping model is as follows: Among them, J pv_max The maximum virtual inertia that the photovoltaic system can provide is ΔP. pv The power margin is ω0, where ω0 is the angular velocity corresponding to the standard frequency of the microgrid system, and RoCoF is the power margin. max This is the preset maximum allowable rate of frequency change; S15. Based on the state of charge, temperature and current charging and discharging current of the energy storage system, calculate the current available charging and discharging power limit of the energy storage system, and subtract the current actual power of the energy storage system from the current available charging and discharging power limit to obtain the charging and discharging power margin of the energy storage system. S16. Based on the charge / discharge power margin of the energy storage system and the preset maximum allowable frequency change rate of the microgrid system, calculate the maximum virtual inertia that the energy storage system can provide using a power-inertia linear conversion model; the power-inertia linear conversion model is as follows: Among them, J ess_max The maximum virtual inertia that the energy storage system can provide is ΔP. charge ΔP represents the charging power margin of the energy storage system. discharge This represents the discharge power margin of the energy storage system.
3. The method according to claim 1, characterized in that, The calculation of the actual allocated virtual inertia for each energy unit based on the required virtual inertia and the maximum available virtual inertia, using grey relational analysis, includes: S21. Based on the maximum virtual inertia and response characteristics of each energy unit, construct a comparison sequence for each energy unit; the comparison sequence is X. i =[R i J i,max ]; where X i R represents the comparison sequence of the i-th energy unit; i J represents the response characteristic index of the i-th energy unit; i,max This represents the maximum virtual inertia that the i-th energy unit can provide; S22. Calculate the correlation coefficient between the comparison sequence of each energy unit and the preset ideal sequence using the grey relational coefficient formula, and use this coefficient as the grey relational coefficient for each energy unit; the grey relational coefficient formula is: Where, ξ i (k) represents the correlation coefficient of the i-th energy unit on the k-th dimension feature of the comparison sequence, k = 1 or 2. When k = 1, it represents the response characteristic dimension; when k = 2, it represents the maximum available inertia dimension. x0(k) represents the characteristic value of the k-th dimension of the ideal sequence. i (k) represents the characteristic value of the k-th dimension of the comparison sequence of the i-th energy unit; ρ is the preset resolution coefficient; S23. Based on the grey relational coefficients of each energy unit, the grey relational degree of each energy unit is calculated using an arithmetic average algorithm; the formula for calculating the grey relational degree is: Where, γ i The gray relational degree of the i-th energy unit is given by N, and the number of feature indicators of the comparison sequence is given by N. S24. Based on the grey relational degree and the maximum available virtual inertia of each energy unit, calculate the allocation coefficient of each energy unit using a proportional allocation formula; the proportional allocation formula is: Where, α i This represents the allocation coefficient for the i-th energy unit; S25. Based on the allocation coefficient and the required virtual inertia, calculate the actual allocated virtual inertia of each energy unit using a linear allocation formula; the linear allocation formula is: J i =α i ·J total Among them, J i For the actual allocation of virtual inertia to the i-th energy unit, J total The virtual inertia required.
4. The method according to claim 2, characterized in that, The steps for generating the additional power command corresponding to the wind turbine include: S31. Based on the actual allocated virtual inertia of the wind turbine, the basic additional power command of the wind turbine is generated by combining the synchronous generator rotor motion equation model with real-time frequency change rate and frequency deviation data. S32. Based on the basic additional power command of the wind turbine and the rotor speed change trend, the basic additional power command is dynamically corrected when a speed recovery requirement is detected through the speed recovery limitation mechanism to obtain the corrected additional power command of the wind turbine. S33. By superimposing the corrected additional power command onto the original power reference value through the power control loop of the wind turbine rotor-side converter, the final active power regulation command of the wind turbine is obtained.
5. The method according to claim 2, characterized in that, The steps for generating the additional power command corresponding to the photovoltaic system include: S41. Based on the actual allocated virtual inertia of the photovoltaic system, generate the basic additional power command of the photovoltaic system through the virtual inertia-power conversion model; S42. Based on historical frequency disturbance statistics and future light intensity predictions, calculate the current power reserve margin required by the photovoltaic system using a power margin adaptive algorithm. S43. Based on the basic additional power command of the photovoltaic system and the power reserve margin, the final active power adjustment command of the photovoltaic system is generated through superposition calculation.
6. The method according to claim 2, characterized in that, The steps for generating the additional power command corresponding to the energy storage system include: S51. The actual virtual inertia of the energy storage system is allocated into fast response inertia and continuous support inertia according to a preset ratio. S52. Based on the fast response inertia, generate additional power commands for the fast response stage through the differential control loop. S53. Based on the continuous support inertia, generate additional power commands for the continuous support stage through a proportional control loop. S54. The additional power command of the rapid response phase and the additional power command of the continuous support phase are superimposed and calculated to obtain the total additional power command of the energy storage system. S55. Based on the total additional power command and real-time state of charge of the energy storage system, the amplitude of the total additional power command is constrained by a dynamic limiting algorithm to obtain the final active power regulation command of the energy storage system.
7. The method according to any one of claims 1 to 6, characterized in that, The virtual inertia of the microgrid system, calculated based on the frequency change rate of the frequency signal and through inertial demand assessment, includes: S61. Based on the frequency signal, the frequency change rate is calculated using the center difference method to obtain the real-time frequency change rate; the formula for calculating the real-time frequency change rate is: Where RoCoF is the real-time frequency change rate, f t+Δt f represents the frequency value at time t+Δt. t-Δt This represents the frequency value at time t-Δt, where Δt is the sampling interval; S62. Based on the real-time frequency change rate and the corresponding duration, identify the disturbance type identifier; Where, when |RoCoF|≥Thr fast And duration T dur ≤T short When Thr is detected, it is determined to be a unit disconnection disturbance; when Thr slow ≤∣RoCoF∣ <Thr fast And T dur >T long When this occurs, it is determined to be a sudden load disturbance; among which, Thr fast To quickly set the perturbation threshold, Thr slow T is the slow perturbation threshold. short For short-term disturbance windows, T long For long-term disturbance windows; S63. Based on the real-time frequency change rate, the disturbance type identifier, and the preset weighting coefficient, the required virtual inertia is calculated using a weighted evaluation model to obtain the system's required virtual inertia for the microgrid; the calculation formula for the required virtual inertia is: Among them, J total For the required virtual inertia, w1 is the frequency change rate weighting coefficient, w2 is the change acceleration weighting coefficient, and S type This indicates the disturbance type influence factor set according to the disturbance type identifier. It represents the acceleration due to frequency change.
8. A multi-energy coordinated intelligent microgrid control device, used to implement the method according to any one of claims 1 to 7, characterized in that, The device includes: The dynamic inertial demand assessment module is used to collect the frequency signal of the microgrid system through synchronous phasor measurement units deployed at key nodes of the microgrid; based on the frequency change rate of the frequency signal, the required virtual inertia of the microgrid system is calculated through inertial demand assessment. The energy unit inertia capability assessment module is used to calculate the maximum virtual inertia that each energy unit can provide based on the physical model and operating constraints of each energy unit in the microgrid system. The virtual inertia allocation optimization module is used to calculate the actual allocated virtual inertia of each energy unit based on the required virtual inertia and the maximum available virtual inertia, using grey relational analysis. An additional power command generation module is used to generate additional power commands corresponding to each energy unit based on the actual allocated virtual inertia and through the operation control model corresponding to each energy unit. The collaborative power regulation execution module is used to superimpose the additional power commands corresponding to each energy unit onto the local control loop of the microgrid system, drive the power electronic converter to perform power regulation, and perform virtual inertial control of multi-energy collaboration.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the method of any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1 to 7.
Citation Information
Patent Citations
Direct-current micro-grid voltage cooperative control method based on virtual capacitance control
CN113507106A
Micro-grid virtual inertia optimal distribution method and device
CN119742813A
Multi-energy coordination control method and system for novel micro-grid
CN120016560A
Regional fan virtual inertia support scheduling method considering wind power plant group synergistic effect
CN120414558A
Fan inertia support evaluation and control method considering power grid inertia space-time distribution
CN120511696A
Cited By
Network construction type micro-grid control method, device, equipment, medium and product
CN121840692A
A network-constructing microgrid control method, device, equipment, medium and product
CN121840692B
Power interface converter stability control method for power-steam co-production system
CN121965750A