A source network load storage collaborative control-oriented power grid voltage sag rapid detection method

The voltage sag detection method using an adaptive sinusoidal tracker and a multi-stage noise suppression circuit solves the problems of long detection delay, noise sensitivity, and inability to adapt parameters in existing technologies, achieving fast and reliable voltage sag detection while balancing dynamic response speed and steady-state smoothness.

CN123183979APending Publication Date: 2026-11-27STATE GRID HUNAN ELECTRIC POWER COMPANY LIMITED +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611539852.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-30
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing voltage sag detection technologies suffer from problems such as long detection delay, sensitivity to noise, large fluctuations in steady-state estimation, and inability to adaptively adjust parameters. It is difficult to achieve a good balance between transient response speed, steady-state operation smoothness, parameter adaptability, and engineering practicality.

Method used

An adaptive sinusoidal tracker is used to estimate the voltage amplitude in real time. By constructing an adaptive sinusoidal tracker and using instantaneous voltage sampling values, reliable identification of voltage sag events can be achieved. A variable step size adaptive update mechanism and three-channel differentiated parameter configuration are adopted, combined with multi-stage noise suppression, to quickly detect voltage sags and adaptively adjust parameters.

Benefits of technology

It significantly shortens the voltage sag detection delay, improves the reliability and steady-state smoothness of the detection, and realizes fast and reliable voltage sag detection, taking into account both dynamic response speed and steady-state stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123183979A_ABST
    Figure CN123183979A_ABST
Patent Text Reader

Abstract

The application discloses a power grid voltage sag fast detection method for source network load storage cooperative control, and steps include: collecting power grid voltage in real time, performing preposed first-order low-pass filtering on voltage instantaneous value to obtain actual voltage value; obtaining amplitude, angular frequency and phase estimation value to calculate sinusoidal reference value, calculating tracking error of the sinusoidal reference value and the actual voltage value, determining amplitude, angular frequency and phase update step according to the size relationship between the absolute value of the tracking error and each channel threshold value, thereby calculating update amount and updating three state variables; if the amplitude estimation value after continuous multiple rounds of update is all lower than a sag threshold value, then a power grid voltage sag event is detected, a voltage sag compensation trigger signal is output, otherwise a new round of iteration is started. The application only uses instantaneous voltage sampling value, estimates voltage amplitude in real time through construction of an adaptive sinusoidal tracker, and realizes reliable discrimination of the voltage sag event.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power system operation and control technology, specifically to a rapid detection method for grid voltage sags in source-grid-load-storage coordinated control. Background Technology

[0002] With the deepening implementation of the "dual carbon" goals, large-scale grid connection of distributed power sources such as photovoltaics and wind power has led to the transformation of the traditional unidirectional power supply mode of "source follows load" into a complex active network with multi-level interaction of "source, grid, load, and storage." While this structural change provides green and clean energy to the power grid, it also brings a series of challenges, including bidirectional power flow, reduced system inertia, and increased node voltage fluctuations. Especially during peak load periods or sudden drops in renewable energy output (such as photovoltaic power outages caused by cloud cover), transient instability events such as grid frequency drops, bus voltage dips, and power angle instability are easily triggered. Therefore, constructing a source-grid-load-storage coordinated control strategy that can quickly respond to disturbances, smooth power fluctuations, and improve system transient stability has become crucial for ensuring the safe and stable operation of the new power system.

[0003] Currently, scholars both domestically and internationally have conducted extensive research on transient stability control under high-proportion renewable energy grid connection, resulting in various technical approaches, mainly including the following four categories: (I) Microgrid Frequency / Voltage Regulation Technology Based on Fixed-Parameter Droop Control: Traditional microgrids often employ Pf (active power-frequency) and QV (reactive power-voltage) droop control strategies to achieve load distribution among distributed power sources. This method has a clear physical concept and is easy to implement in engineering, making it the most widely used primary control method. However, since the droop coefficient is usually a fixed value, in the context of low system inertia, fixed droop control cannot adaptively adjust when faced with sudden large power shortages or drastic fluctuations in renewable energy output. This often leads to excessive frequency or voltage drops and long recovery times, making it difficult to meet the stringent requirements for transient stability in scenarios with a high proportion of renewable energy.

[0004] (II) Multi-source Coordinated Optimization Technology Based on Model Predictive Control (MPC): Model predictive control technology establishes a predictive model of the source-grid-load-storage system and continuously solves for the globally optimal control sequence over a future period to achieve multi-energy complementarity and supply-demand balance. Theoretically, this method can achieve global optimization and has strong capabilities in handling multiple constraints. However, its limitations are: firstly, it heavily relies on a precise mathematical model of the system, while new energy equipment with a high proportion of power electronic interfaces exhibits strong nonlinear characteristics, making modeling difficult; secondly, predictive control involves a large computational load, requiring high computing power from edge controllers, and prediction errors accumulate during continuous optimization, potentially leading to control inaccuracies during rapid transient processes.

[0005] (III) Inertia Support and Transient Stability Technology Based on Virtual Synchronous Machine (VSG): To compensate for the shortcomings of low-inertia systems, virtual synchronous machine technology simulates the rotor motion equations and excitation regulation characteristics of synchronous generators, enabling inverters to possess inertia and damping characteristics, thereby actively participating in the frequency and voltage support of the power grid. This method can significantly improve the system's disturbance rejection capability and demonstrate good transient stability potential. However, the rotational inertia and damping coefficient of the VSG are usually designed as constant values, which can lead to unnecessary power oscillations and reduce power quality during steady-state operation; while under large transient disturbances, the fixed inertia parameters may not be able to provide sufficient support, resulting in a contradiction of "unfriendly in steady state and insufficient in transient state".

[0006] (iv) Real-time State and Disturbance Estimation Algorithm Based on Adaptive Sine Tracker: To overcome the limitations of traditional fixed-parameter control, some scholars have recently proposed applying adaptive observer theory to power system control. By constructing an adaptive controller driven by nonlinear differential equations, key state variables such as system frequency, phase angle, and equivalent load disturbances can be estimated online in real time. Theoretically, this method can achieve accurate tracking of system dynamics without relying on an exact model, demonstrating good speed and adaptability.

[0007] However, existing adaptive cooperative control schemes still have the following shortcomings in practical engineering applications: ① Fixed coordination coefficients are difficult to balance the contradiction between transient support and steady-state optimization: In the source-grid-load-storage coordinated control loop, if the adjustment coefficient is large, the system responds quickly and provides strong support when encountering power fluctuations, but it is prone to power oscillations and frequency jitters between power sources under steady state; if the value is small, the steady-state operation is stable, but the transient response is slow, resulting in excessive frequency or voltage drops, or even system collapse.

[0008] ② The multi-dimensional control variables adopt a uniform adjustment strategy, failing to consider differentiated dynamic requirements: the frequency channel is most sensitive to droop control and directly determines the system's transient safety boundary; the voltage channel is affected by reactive power flow, changing relatively slowly but requiring rapid voltage regulation during transient periods; the phase angle channel (power angle stability) naturally possesses complex dynamic coupling characteristics due to its involvement in system oscillation modes. The three channels have significantly different requirements for control parameter sensitivity and response speed. Adopting a single coordinated strategy is a crude design, limiting the optimal balance of overall transient performance.

[0009] ③ Lack of systematic anti-disturbance mechanisms under strong disturbance environments: Existing solutions mostly rely solely on the algorithm's own gradient updates for power allocation, lacking hierarchical suppression measures for high-frequency random fluctuations in renewable energy output, parameter update oscillations caused by sudden load changes, and circulating current interference during the parallel operation of multiple inverters. In extreme weather or high-power shortage scenarios, this can easily lead to control command conflicts between multiple inverters, resulting in transient instability.

[0010] ④ Lack of adaptive switching capability of control parameters: Fixed control parameters cannot adapt to the time-varying characteristics of power grid operation (such as switching from grid-connected mode to islanded mode). When the operating conditions change, the preset parameters may be too large, causing system oscillation, or too small, causing control failure. The robustness and adaptability of the algorithm are limited. Summary of the Invention

[0011] The technical problem to be solved by this invention is that existing voltage sag detection technologies suffer from long detection delays, sensitivity to noise, large fluctuations in steady-state estimation, and inability to adaptively adjust parameters. A good balance has not yet been achieved between transient response speed, steady-state smoothness, parameter adaptability, and engineering practicality. There is an urgent need for a voltage sag detection technology that can detect voltage sags quickly and reliably, has parameter adaptability, and is easy to implement in engineering.

[0012] To address the aforementioned problems in existing technologies, a rapid detection technology for grid voltage sags in source-grid-load-storage coordinated control is provided. This technology utilizes only instantaneous voltage sampling values, constructs an adaptive sinusoidal tracker, and estimates the voltage amplitude in real time to reliably identify voltage sag events.

[0013] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is as follows: A rapid detection method for grid voltage sag in source-grid-load-storage coordinated control includes the following steps: Real-time acquisition of grid voltage to obtain instantaneous voltage values ​​at each sampling time; The instantaneous voltage value at the current sampling moment is subjected to a first-order low-pass filter to obtain the actual voltage value after the first-order low-pass filter. Obtain the amplitude estimate, angular frequency estimate, and phase estimate at the current sampling time. Calculate the sinusoidal reference value at the current sampling time based on the amplitude estimate and phase estimate. Calculate the tracking error between the sinusoidal reference value at the current sampling time and the actual voltage value. Determine the update step size of the amplitude estimate, angular frequency estimate, and phase estimate based on the relationship between the absolute value of the tracking error and the threshold values ​​of each channel. Based on the update step size of the amplitude estimate, angular frequency estimate, and phase estimate, the update amount of the amplitude estimate, angular frequency estimate, and phase estimate is calculated respectively. The amplitude estimate, angular frequency estimate, and phase estimate are added to the corresponding update amount to obtain the amplitude estimate, angular frequency estimate, and phase estimate after this round of updates, which are then used as the amplitude estimate, angular frequency estimate, and phase estimate at the next sampling time. If the amplitude estimate after a specified number of consecutive updates is lower than the sag threshold, a grid voltage sag event is detected, and a voltage sag compensation trigger signal is output. Otherwise, the next sampling time is taken as the current sampling time, and a first-order low-pass filter is applied to the instantaneous voltage value at the current sampling time to start a new round of iteration, until the amplitude estimate after a specified number of consecutive sampling times is lower than the sag threshold.

[0014] Furthermore, when applying a first-order low-pass filter to the instantaneous voltage value at the current sampling moment, the calculation formula is as follows:

[0015] in, For the first n The actual voltage value after filtering at each sampling time. For the first n The original sampled values ​​of the instantaneous voltage at each sampling time, where α is the filter coefficient; Initialization , This is the preset initial value for the instantaneous voltage value.

[0016] Furthermore, when calculating the sinusoidal reference value at the current sampling time based on the amplitude estimate and phase estimate, the calculation formula is as follows:

[0017] in, For the first n The sinusoidal reference value at each sampling time. For the first n The amplitude estimate at each sampling time. For the first n Phase estimates at each sampling time.

[0018] Furthermore, before determining the update step size of the amplitude estimate, angular frequency estimate, and phase estimate based on the relationship between the absolute value of the tracking error and the threshold values ​​of each channel, the method further includes: calculating the adaptive threshold value of each channel online using noise basis estimation, with the following calculation formula:

[0019] in, For the first n The original tracking error at each sampling time, It is an exponentially weighted average of the absolute values ​​of the original tracking errors. ,initialization ; It is the first i The threshold of the channel is as follows: i=1 corresponds to the amplitude channel, i=2 corresponds to the angular frequency channel, and i=3 corresponds to the phase channel. For the firsti Channel scaling factor, and The first i The channel has preset lower and upper thresholds, and .

[0020] Furthermore, when determining the update step size of the amplitude estimate, angular frequency estimate, and phase estimate based on the relationship between the absolute value of the tracking error and the threshold values ​​of each channel, the process includes: The absolute value of the tracking error is compared with the threshold value of each channel, and the step size coefficient of each channel is calculated based on the comparison results, as shown in the following expression:

[0021] in, and These are the maximum and minimum step size coefficients, respectively. This represents the original tracking error; For the first i The threshold of the channel, For the first i The step size coefficient of the channel: i=1 corresponds to the amplitude channel, i=2 corresponds to the angular frequency channel, and i=3 corresponds to the phase channel. Step size coefficient of each channel , , The basic weights of the amplitude channel, angular frequency channel, and phase channel are respectively used. , , Multiplying them yields the update step size for the amplitude estimate, angular frequency estimate, and phase estimate. , , .

[0022] Furthermore, when calculating the update amounts of the amplitude estimate, angular frequency estimate, and phase estimate based on the update step sizes of the amplitude estimate, angular frequency estimate, and phase estimate, the calculation formulas are as follows:

[0023]

[0024]

[0025] in, , and These are the update amounts for the amplitude estimate, angular frequency estimate, and phase estimate, respectively. , , These are the update step sizes for the amplitude estimate, angular frequency estimate, and phase estimate, respectively. , , These are the amplitude estimate, angular frequency estimate, and phase estimate at the nth sampling time, respectively. It is the tracking error at the nth sampling time. The sampling period.

[0026] Furthermore, before calculating the update amounts of the amplitude estimate, angular frequency estimate, and phase estimate based on the update step sizes of the amplitude estimate, angular frequency estimate, and phase estimate, the method further includes: performing error smoothing filtering on the tracking error to obtain a smoothed error, and using the value of the smoothed error to replace the value of the tracking error. The mathematical expression for performing error smoothing filtering on the tracking error is as follows:

[0027] in, For the first n The original tracking error at each sampling time, This is the smoothed error. Initialize as the forgetting factor. .

[0028] Furthermore, after calculating the update amounts of the amplitude estimate, angular frequency estimate, and phase estimate based on the update step sizes of the amplitude estimate, angular frequency estimate, and phase estimate, the method further includes: applying a limiting effect to the update amounts of the amplitude estimate, angular frequency estimate, and phase estimate, specifically by using the clip function to limit the update amount of the amplitude estimate to a preset maximum amplitude change between positive and negative values, the update amount of the angular frequency estimate to a preset maximum angular frequency change between positive and negative values, and the update amount of the phase estimate to a preset maximum phase change between positive and negative values. After adding the amplitude estimate, angular frequency estimate, and phase estimate to their corresponding update values, the method further includes: applying amplitude limiting to the updated angular frequency estimate and phase estimate, specifically using the clip function to limit the updated angular frequency estimate to between a preset maximum and minimum angular frequency value, and converting the updated phase estimate into... The equivalent phase value within the range.

[0029] Furthermore, after obtaining the amplitude estimate after this round of updates, the process also includes: performing a second exponential smoothing on the updated amplitude estimate to obtain the corresponding final amplitude estimate, calculated using the following formula:

[0030] in, This is the amplitude estimate after this round of updates. This is the final amplitude estimate from the previous round. This is the final amplitude estimate for this round. To output smoothing coefficients; initialize .

[0031] Furthermore, the statement that the amplitude estimate after a specified number of consecutive updates is lower than the sag threshold specifically means that the final amplitude estimate for a specified number of consecutive updates is lower than the sag threshold, which is 0.9 times the rated voltage amplitude.

[0032] Compared with the prior art, the advantages of the present invention are as follows: To address the issues of long detection delay and poor detection speed in existing voltage sag detection technologies, this invention determines the update step size of the amplitude, angular frequency, and phase estimates based on the relationship between the absolute value of the tracking error and the threshold value. The estimated values ​​of these three state variables are then updated point by point. Finally, the amplitude estimate is compared with the sag threshold to identify the sag. When a voltage sag occurs, the tracking error exceeds the threshold, the step size automatically increases, and the amplitude estimate quickly converges to the actual voltage. Unlike the traditional RMS method, which requires waiting for a complete power frequency cycle data window, this significantly shortens the detection delay and enables rapid detection and compensation triggering of voltage sags.

[0033] To address the issues of existing voltage sag detection technologies being sensitive to noise and exhibiting large fluctuations in steady-state estimation, this invention first applies a first-order low-pass filter to the acquired instantaneous voltage value, then calculates the tracking error based on the filtered voltage value and drives parameter updates. The pre-filter removes high-frequency noise from the sampled signal, making the amplitude estimate smoother in steady state, suppressing estimation jitter caused by noise, reducing the probability of false triggering in noisy environments, and improving the reliability of detection.

[0034] To address the issues of existing voltage sag detection technologies, such as the inability to adaptively adjust parameters and the difficulty in balancing detection speed and steady-state smoothness, this invention utilizes the relationship between the absolute value of the tracking error and the threshold values ​​of each channel to determine the update step size. The update amount is calculated separately for the amplitude, angular frequency, and phase channels, and the estimated values ​​of amplitude, angular frequency, and phase are updated separately. The update result serves as the estimate for the next sampling moment, iterating point-by-point in a closed loop. The step size adaptively changes with the power grid's operating state, eliminating the need for manual tuning of fixed parameters. Furthermore, the three channels are updated independently without interference, balancing dynamic response speed and steady-state stability, achieving a good balance between detection speed and steady-state smoothness. Attached Figure Description

[0035] Figure 1 This is a flowchart of a method according to an embodiment of the present invention.

[0036] Figure 2This is a comparison between the method of this invention and existing methods. Detailed Implementation

[0037] The present invention will be further described below with reference to the accompanying drawings and specific preferred embodiments, but this does not limit the scope of protection of the present invention.

[0038] This embodiment proposes a rapid voltage sag detection method for grid-grid-load-storage coordinated control. This method is a real-time voltage sag detection scheme that uses only instantaneous voltage samples and is robust to grid noise and harmonics. Its core innovation lies in replacing the traditional fixed-step gradient descent method with a variable-step-size adaptive update mechanism, and introducing a three-channel differentiated parameter configuration and a four-level cascaded noise suppression structure to address the contradiction between dynamic response speed and steady-state smoothness in sag detection under strong noise environments. The technical concept is as follows: 1. Basic model of adaptive sine tracker.

[0039] The core of this method lies in establishing a dynamic model that can track the grid voltage waveform in real time. The gradient descent method is used to achieve adaptive adjustment of the three parameters of grid amplitude, angular frequency and phase, providing a theoretical basis for voltage waveform tracking.

[0040] Let the grid voltage sampling signal be Construct a sine wave generator: (1) in, Indicates the instantaneous amplitude (pu). Indicates instantaneous phase (rad). This represents the instantaneous angular frequency (rad / s). Therefore, equation (1) uses phase... Reflecting angular frequency There is no need to repeatedly add to the sine function. .

[0041] Define the error signal: (2) Error reflects the degree of deviation between the model output and the actual samples. Our goal is to make... As close as possible That is to let Minimize it as much as possible. To achieve optimal parameter convergence, the instantaneous squared error is chosen as the cost function to simplify the differentiation calculation: (3) The coefficient 1 / 2 is only for convenience in differentiation and does not affect the optimal solution. The cost function J(t) is a scalar that measures the accuracy of the model; the smaller its value, the more accurate the model.

[0042] To minimize The steepest descent method (gradient descent) is used, which adjusts the parameters along the negative gradient direction. For the three state variables... Find the partial derivatives separately: (4) (5) Due to angular frequency Through phase Indirect impact Using the chain rule: (6) But directly using... t Terms that can lead to time-varying problems are often approximated in engineering to avoid time-varying complex terms: angular frequency... The update amount is linearly related to the phase gradient term, and is designed to be... Proportional, that is: (7) at the same time, The update includes the natural integral term. and gradient correction term: (8) Introducing the basic step size coefficient These correspond to the amplitude, frequency, and phase channels, respectively, and together they form the continuous-time update equations: (9) (10) (11) (12) (13) in The step size parameters to be designed correspond to respectively This system of equations constitutes a nonlinear adaptive observer, capable of detecting input signals... Under the stimulus, the parameters are automatically adjusted so that... track The fundamental sinusoidal component of the power grid.

[0043] 2. Discretized digital implementation scheme.

[0044] To achieve digital processing, the continuous equations from equation (9) to equation (11) need to be transformed into discrete iterative form using the forward Euler method, while supplementing with engineering processing methods such as initialization and numerical constraints. Let the sampling period be... (Unit: seconds), discrete time index is n Then we have: (14) (15) (16) Where: parameters This represents the sampling period, and its size is... ,parameter The sampling frequency is represented by the update values ​​on the right-hand side of equations (14) to (16), which are respectively the update values ​​of the amplitude estimates. Update amount of angular frequency estimates Update amount of phase estimate .

[0045] When starting the algorithm, reasonable initial values ​​need to be provided to ensure fast convergence: V[0]: Set to the rated voltage amplitude, i.e., 1.0 pu (per unit). ; ω[0]: Set as the rated angular frequency, i.e., 2π×50rad / s. ; : Set to 0 rad; In this embodiment, the initial phase is not estimated using the first few sampling points, and the phase is updated point by point according to formula (16).

[0046] because It will grow indefinitely over time; in practice, it needs to be... Limited to Within a range to avoid numerical overflow, for example, when the phase estimate is At that time, through modulo operation Convert it to equivalent phase value within the range .

[0047] To prevent frequency estimation from diverging, one can... ω Apply upper and lower limits: (17) Typical range: minimum angular frequency Maximum angular frequency To adapt to fluctuations in power grid frequency.

[0048] 3. Adaptive variable step size strategy.

[0049] Fixed step size , , It is impossible to simultaneously meet the requirements of fast tracking and steady-state smoothing. This method proposes a piecewise linear variable step size function based on the absolute value of the error, and configures parameters differently for amplitude, frequency, and phase channels to generate dynamic step size coefficients independently for each channel.

[0050] Define corresponding dynamic step size coefficients for amplitude, angular frequency, and phase respectively. : (18) in, The maximum step size coefficient is (0.1 to 0.5). The minimum step size coefficient is (0.0001 to 0.001). It is the first i The noise decision threshold for each channel is defined as follows: i=1 corresponds to the amplitude channel, i=2 corresponds to the angular frequency channel, and i=3 corresponds to the phase channel. A fixed threshold can be used for the noise decision threshold. =0.015 pu、 =0.03 pu、 =0.05pu.

[0051] When the absolute value of the tracking error | e [n]| Exceeds the noise decision threshold of the corresponding channel At this time, the channel uses the maximum step size to quickly track voltage changes.

[0052] When the absolute value of the tracking error | e [n]| No more than the noise decision threshold of the corresponding channel At that time, the channel step size changes linearly with the absolute value of the error, and takes the minimum value when the error is zero.

[0053] The three state variables have different sensitivities to noise and different response requirements; therefore, their respective base weights and thresholds should be set differently. Specifically, in the amplitude channel, since the voltage amplitude is most sensitive to high-frequency noise and directly affects the accuracy of sag detection, its base weight should be... Set at 0.5 The relatively low range of 1.0, coupled with a small error threshold. (0.015 pu) This configuration prioritizes the smoothness and noise resistance of amplitude estimation, avoiding amplitude jumps caused by minor disturbances; for the frequency channel, considering that the power grid frequency itself changes relatively slowly, but in order to accommodate the need for rapid tracking when sags occur, its basic weight is... The level was moderately increased to 5. The range of 10, the error threshold The value is set to 0.03 pu, thus ensuring sufficient dynamic response speed while suppressing noise. In the phase channel, since the phase update mechanism inherently includes an integral stage, it naturally possesses strong low-pass filtering characteristics and has an inherent ability to suppress noise; therefore, its base weight... It can be directly set to the standard value of 1.0, and the error threshold can be set accordingly. The step size is relaxed to 0.05 pu to reduce excessive interference with the natural dynamic characteristics of the phase and ensure the overall stability of the system. The final actual step size for each channel is: (19) When the noise level changes over time, the following online noise basis estimation methods can be used to replace the three fixed thresholds mentioned above: (20) in, It is an exponentially weighted average of the absolute values ​​of the original tracking errors. , , Time recursion; For the first i Channel scaling factor, and The lower and upper limits are preset positive numbers. Three fixed thresholds can be used as the lower limit for each channel, and the upper limit is set according to the noise tolerance. When online estimation is enabled, equation (18) is used. Use fixed settings when not enabled. .

[0054] 4. Robust optimization design for multi-level noise suppression.

[0055] To improve robustness in noisy environments, this method deploys noise suppression mechanisms at four key locations in the signal path: the sampling input, the error driving end, the parameter update end, and the output detection end, forming a cascaded protection system. Power grid sampling signals often contain high-frequency noise. Before entering the core algorithm, the raw sampled voltage is first passed through a first-order low-pass digital filter: (twenty one) in, Here, represents the original sampled value of the grid voltage, and represents the instantaneous voltage value at the nth sampling time. The filtered sampled value represents the actual voltage value at the nth sampling time, and α is the filtering coefficient (0.9~0.95); initialization , The preset initial value for the instantaneous voltage value, for example, set to 0. The approximate cutoff frequency is 133 Hz when the sampling frequency is 10 kHz and α=0.92.

[0056] Tracking error signal It forms the basis for driving all parameter updates, and its quality directly affects algorithm performance. An exponentially weighted moving average is applied to the instantaneous error to eliminate error pulsation. (twenty two) in, The original tracking error given by equation (2) represents the tracking error between the sinusoidal reference value and the corresponding actual voltage value at the nth sampling time. This is the smoothed error; The forgetting factor is set to (0.8–0.95). Initialization. , This represents the sinusoidal reference value calculated based on the preset initial amplitude estimate and initial phase estimate. Compared with the initial actual voltage value Tracking error; gradient update term available Replace the original However, the threshold comparison and noise basis calculation still use the original... .

[0057] Even with pre-filtering and error smoothing, individual outlier sampling points can still lead to excessively large parameter updates. (Regarding amplitude updates...) Apply amplitude limit: (twenty three) Where parameters This indicates the maximum allowable amplitude change per sample, with 0.05 pu recommended (i.e., a maximum change of 5% per sampling period). Similarly, this applies to frequency and phase update amounts. , Amplitude limiting can also be applied: (twenty four) Where parameters and This indicates the maximum allowable angular frequency change and maximum phase change in a single sampling. , .

[0058] The amplitude estimate after this round of updates It may still contain high-frequency residuals. To further smooth the updated estimate, output exponential smoothing is applied: (25) in, This is the amplitude estimate after this round of updates. This is the final amplitude estimate from the previous round. This is the estimated final amplitude value for this round, where n > 0. Set the output smoothing coefficient (0.8–0.9); initialize That is, the initial value of the final amplitude estimate is the same as the initial value of the amplitude estimate.

[0059] 5. Voltage sag fault detection logic.

[0060] This method determines voltage sag based on smooth output amplitude and adds a multi-point continuous verification mechanism to avoid single-point false triggering due to noise.

[0061] Real-time comparison of the smoothed amplitude estimate with the nominal voltage: (26) in This is the rated voltage amplitude (1.0 pu in per-unit system). To prevent false triggering due to single-point noise, a continuous [voltage protection device] can be added. N Confirmation criteria for points below the threshold: (27) parameter N The typical value is 3 to 5, corresponding to an acknowledgment window of 0.3 to 0.5 ms. This measure effectively suppresses false alarms without significantly increasing latency.

[0062] Based on the above concept, such as Figure 1 As shown, the method in this embodiment includes the following steps: S101: Initialize the amplitude estimate, angular frequency estimate, and phase estimate.

[0063] As mentioned above, in this embodiment, the initial value V[0] of the amplitude estimate is set to the rated voltage amplitude, the initial value ω[0] of the angular frequency estimate is set to the rated angular frequency, and the initial value of the phase estimate is... [0] is set to 0 rad; S102: ADC acquires grid voltage.

[0064] In this embodiment, the grid voltage is acquired in real time by an analog-to-digital converter (ADC) to obtain the instantaneous voltage value at each sampling moment. , where n represents the nth sampling time; S103: First-order low-pass filter.

[0065] According to the aforementioned formula (21), the instantaneous voltage value at the current sampling time is... Perform a first-order low-pass filter to obtain the actual voltage value after the first-order low-pass filter. ; S104: Generate a sinusoidal reference model.

[0066] Obtain the amplitude estimate at the current sampling time. Angular frequency estimate With phase estimate When n=0, the amplitude estimate, angular frequency estimate, and phase estimate at the current sampling time are the initial values ​​of step S101. When n≠0, the amplitude estimate, angular frequency estimate, and phase estimate at the current sampling time are the amplitude estimate, angular frequency estimate, and phase estimate after the previous iteration. According to the aforementioned formula (1), the sine reference value at the current sampling time is calculated based on the amplitude estimate, angular frequency estimate, and phase estimate. The calculation formula is as follows:

[0067] Among them, the estimated angular frequency value pass The phase update formula is used in the reference value calculation; S105: Calculate the tracking error.

[0068] According to the aforementioned formula (2), calculate the tracking error between the sinusoidal reference value and the actual voltage value at the current sampling time. , , It is the sine reference value at the nth sampling time; S106: Error smoothing filter.

[0069] According to the aforementioned formula (22), the tracking error is... Perform error smoothing filtering to obtain the smoothed error. ; S107: Calculate dynamic parameters by segmented variable step size.

[0070] First, after filtering the power grid sampling signal using the fundamental frequency, a sliding window statistical method or a time-frequency analysis method is used to determine whether the noise level changes with time. If it does not change with time, a fixed three-channel threshold is used. When the noise level changes, it can be calculated online according to equation (20). , , , to replace the corresponding fixed threshold.

[0071] Then, the absolute values ​​of the tracking errors are compared according to equation (18). With each channel threshold value , , Obtain the step size coefficient for each channel. , , Based on equation (19), multiply by the corresponding basic weights to obtain the update step size of the amplitude estimate, angular frequency estimate, and phase estimate. , , Threshold decision uses the original error. The state update can use the smoothing error of equation (22) .

[0072] Finally, according to the update amount on the right side of the aforementioned formulas (14) to (16), the smoothed error is used. Tracking error in the alternative formula The update step size is based on the amplitude estimate, angular frequency estimate, and phase estimate. , , Calculate the update amounts for the amplitude estimate, angular frequency estimate, and phase estimate, respectively. , , Then, according to the aforementioned formulas (23) and (24), the clip function is used to update the amplitude estimate, angular frequency estimate, and phase estimate. , , Apply amplitude limits respectively, and then calculate the amplitude estimates according to the aforementioned formulas (14) to (16). Angular frequency estimate Phase estimation value Each with the corresponding update volume , , Add them together to obtain the amplitude estimate after this round of updates. Angular frequency estimate With phase estimate And these values ​​are used as the amplitude estimate, angular frequency estimate, and phase estimate for the next sampling time. S108: Detection of grid voltage sag events.

[0073] If the amplitude estimate after a specified number of consecutive updates is lower than the sag threshold, a grid voltage sag event is detected. To reduce the probability of false triggering, the amplitude estimate after this round of updates is first subjected to quadratic exponential smoothing according to the aforementioned formula (25) to obtain the corresponding final amplitude estimate. Then, according to the aforementioned formulas (26) and (27), if the final amplitude estimate for a specified number of consecutive rounds is lower than the temporary drop threshold of 0.9× If a voltage sag event is detected, a voltage sag compensation trigger signal is output. Otherwise, the next sampling time is taken as the current sampling time, and step S102 is executed to start a new round of iteration until the final amplitude estimate of a specified number of consecutive rounds is lower than the sag threshold.

[0074] To verify the effectiveness of the method proposed in this embodiment, a 10 kV distribution network model with distributed power source access was built in the MATLAB / Simulink simulation environment for verification.

[0075] A three-phase short-circuit fault is introduced at the beginning of the line at 0.5 s, causing a voltage dip on the bus. The fault lasts for 1 s. To simulate a real industrial environment, Gaussian white noise with a signal-to-noise ratio (SNR) of 20 dB is superimposed on the voltage sampling signal. The method proposed in this embodiment is compared with the commonly used single-cycle sliding window RMS algorithm in engineering. The simulation waveform is shown in Figure 2.

[0076] Figure 2 The instantaneous voltage value after noise superposition (curve 1), the effective voltage value based on the single-cycle RMS method (curve 2), and the effective voltage value based on the method proposed in this embodiment (curve 3) are shown, and the actual start time of the sag (107.1 ms) and the detection trigger point of each method are marked. It can be clearly observed from the waveforms that: In terms of dynamic response performance, the single-cycle RMS algorithm requires a full power frequency cycle (20 ms) of data window for moving average, resulting in significant lag in its detection results. Simulations show that the RMS algorithm only determines that the voltage has dropped below the threshold at 113.6 ms. In contrast, the method proposed in this embodiment utilizes a variable step-size mechanism, changing the tracking slope the instant a voltage dip occurs, and rapidly completing the detection at 107.1 ms. The detection time difference between the two methods reaches 6.5 ms. In a voltage dip event occurring at 0.5 s, the detection delay of the method proposed in this embodiment is only 54% of that of the traditional method, significantly improving the real-time performance of voltage dip detection.

[0077] In terms of noise resistance and smoothing performance, during the steady-state operation phase (0 s ~ 0.5 s), curve 3 (the method proposed in this embodiment) is smoother than curve 2 (RMS algorithm), without any glitches caused by short-time harmonics or noise interference. This verifies the effectiveness of the four-level cascaded noise suppression structure and steady-state micro-step strategy introduced in the method proposed in this embodiment, avoiding the misjudgments and frequent fluctuations that are easily generated by the traditional RMS method in noisy environments.

[0078] In terms of steady-state accuracy, during the steady-state recovery period after fault clearance (after 1.5 s), the voltage amplitude estimated by the method proposed in this embodiment quickly converges to 1.0 pu, with a shorter recovery time and a steady-state estimation error of less than 0.5%, which is far superior to the RMS algorithm affected by the window length.

[0079] In summary, this invention proposes a rapid detection method for grid voltage sags in source-grid-load-storage coordinated control. This method utilizes only instantaneous voltage samples, constructs an adaptive sinusoidal tracker, and estimates the voltage amplitude in real time to reliably identify voltage sag events. Its main contributions are as follows: 1. Establishment of the basic model for the adaptive sinusoidal tracker: The core mathematical model for voltage waveform tracking is established. By constructing a sinusoidal signal generator, and using the instantaneous squared error as the cost function, the continuous-domain adaptive update equations for the three state variables—amplitude, angular frequency, and phase—are derived using the gradient descent method, providing a theoretical basis for subsequent discretization implementation.

[0080] 2. Algorithm Discretization and Variable Step Size Adaptive Update Mechanism Design: Digital iteration is generated using the forward Euler method, and basic weights are configured for the three channels of amplitude, angular frequency, and phase. Error threshold and dynamic step size It accelerates tracking under large errors and suppresses noise under steady-state small errors. The threshold can be a fixed value or adjusted online according to the noise floor.

[0081] 3. Multi-level noise suppression robust optimization design: Construct a four-level cascaded noise suppression structure, deploying noise suppression links at the sampling input end (first-order exponential filtering), the error driving end (exponential weighted smoothing), the parameter update end (update amount limiting), and the output detection end (secondary exponential smoothing), forming a layered and progressive noise barrier to improve the robustness of the algorithm in strong noise environments.

[0082] 4. Voltage Sag Fault Detection Logic: This describes the complete logical judgment process from comparing the smoothed amplitude estimate with the nominal voltage to confirming the sag event by checking for N consecutive points below the threshold. By adding a continuous N-point confirmation mechanism (N is 3~5), false triggering caused by single-point noise is effectively suppressed without significantly increasing the detection delay, thus forming an executable protection scheme.

[0083] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-readable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a machine for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The functions specified in one or more boxes. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable apparatus for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0084] The above description is merely a preferred embodiment of the present invention. The scope of protection of the present invention is not limited to the above embodiments. All technical solutions falling within the scope of the present invention's concept are within the scope of protection of the present invention. It should be noted that for those skilled in the art, any improvements and modifications made without departing from the principles of the present invention should also be considered within the scope of protection of the present invention.

Claims

1. A rapid detection method for grid voltage sag in source-grid-load-storage coordinated control, characterized in that, Includes the following steps: Real-time acquisition of grid voltage to obtain instantaneous voltage values ​​at each sampling time; The instantaneous voltage value at the current sampling moment is subjected to a first-order low-pass filter to obtain the actual voltage value after the first-order low-pass filter. Obtain the amplitude estimate, angular frequency estimate, and phase estimate at the current sampling time. Calculate the sinusoidal reference value at the current sampling time based on the amplitude estimate and phase estimate. Calculate the tracking error between the sinusoidal reference value at the current sampling time and the actual voltage value. Determine the update step size of the amplitude estimate, angular frequency estimate, and phase estimate based on the relationship between the absolute value of the tracking error and the threshold values ​​of each channel. Based on the update step size of the amplitude estimate, angular frequency estimate, and phase estimate, the update amount of the amplitude estimate, angular frequency estimate, and phase estimate is calculated respectively. The amplitude estimate, angular frequency estimate, and phase estimate are added to the corresponding update amount to obtain the amplitude estimate, angular frequency estimate, and phase estimate after this round of updates, which are then used as the amplitude estimate, angular frequency estimate, and phase estimate at the next sampling time. If the amplitude estimate after a specified number of consecutive updates is lower than the sag threshold, a grid voltage sag event is detected, and a voltage sag compensation trigger signal is output. Otherwise, the next sampling time is taken as the current sampling time, and a first-order low-pass filter is applied to the instantaneous voltage value at the current sampling time to start a new round of iteration, until the amplitude estimate after a specified number of consecutive sampling times is lower than the sag threshold.

2. The method for rapid detection of grid voltage sag in source-grid-load-storage coordinated control according to claim 1, characterized in that, When applying a first-order low-pass filter to the instantaneous voltage value at the current sampling moment, the calculation formula is as follows: in, For the first n The actual voltage value after filtering at each sampling time. For the first n The original sampled values ​​of the instantaneous voltage at each sampling time, where α is the filter coefficient; Initialization , This is the preset initial value for the instantaneous voltage value.

3. The method for rapid detection of grid voltage sag in source-grid-load-storage coordinated control according to claim 1, characterized in that, When calculating the sinusoidal reference value at the current sampling time based on the amplitude estimate and phase estimate, the calculation formula is as follows: in, For the first n The sinusoidal reference value at each sampling time. For the first n The amplitude estimate at each sampling time. For the first n Phase estimates at each sampling time.

4. The method for rapid detection of grid voltage sag in source-grid-load-storage coordinated control according to claim 1, characterized in that, Before determining the update step size of the amplitude estimate, angular frequency estimate, and phase estimate based on the relationship between the absolute value of the tracking error and the threshold values ​​of each channel, the method further includes: calculating the adaptive threshold value of each channel online using noise basis estimation, as shown in the following formula: in, For the first n The original tracking error at each sampling time, It is an exponentially weighted average of the absolute values ​​of the original tracking errors. ,initialization ; It is the first i The threshold of the channel is as follows: i=1 corresponds to the amplitude channel, i=2 corresponds to the angular frequency channel, and i=3 corresponds to the phase channel. For the first i Channel scaling factor, and The first i The channel has preset lower and upper thresholds, and .

5. The method for rapid detection of grid voltage sag in source-grid-load-storage coordinated control according to claim 1, characterized in that, When determining the update step size for the amplitude estimate, angular frequency estimate, and phase estimate based on the relationship between the absolute value of the tracking error and the threshold values ​​of each channel, the following steps are included: The absolute value of the tracking error is compared with the threshold value of each channel, and the step size coefficient of each channel is calculated based on the comparison results, as shown in the following expression: in, and These are the maximum and minimum step size coefficients, respectively. This represents the original tracking error; For the first i The threshold of the channel, For the first i The step size coefficient of the channel is i=1 for the amplitude channel, i=2 for the angular frequency channel, and i=3 for the phase channel. Step size coefficient of each channel , , The basic weights of the amplitude channel, angular frequency channel, and phase channel are respectively... , , Multiplying them yields the update step size for the amplitude estimate, angular frequency estimate, and phase estimate. , , .

6. The method for rapid detection of grid voltage sag in source-grid-load-storage coordinated control according to claim 1, characterized in that, When calculating the update amounts of the amplitude estimate, angular frequency estimate, and phase estimate based on the update step sizes of the amplitude estimate, angular frequency estimate, and phase estimate, the calculation formulas are as follows: in, , and These are the update amounts for the amplitude estimate, angular frequency estimate, and phase estimate, respectively. , , These are the update step sizes for the amplitude estimate, angular frequency estimate, and phase estimate, respectively. , , These are the amplitude estimate, angular frequency estimate, and phase estimate at the nth sampling time, respectively. It is the tracking error at the nth sampling time. The sampling period.

7. The method for rapid detection of grid voltage sag in source-grid-load-storage coordinated control according to claim 6, characterized in that, Before calculating the update amounts of the amplitude estimate, angular frequency estimate, and phase estimate based on the update step sizes of the amplitude estimate, angular frequency estimate, and phase estimate, the method further includes: performing error smoothing filtering on the tracking error to obtain a smoothed error, and using the value of the smoothed error to replace the value of the tracking error. The mathematical expression for performing error smoothing filtering on the tracking error is as follows: in, For the first n The original tracking error at each sampling time, This is the smoothed error. Initialize as the forgetting factor .

8. The method for rapid detection of grid voltage sag in source-grid-load-storage coordinated control according to claim 1, characterized in that, After calculating the update amounts of the amplitude estimate, angular frequency estimate, and phase estimate based on the update step sizes of the amplitude estimate, angular frequency estimate, and phase estimate, the method further includes: applying a limiting effect to the update amounts of the amplitude estimate, angular frequency estimate, and phase estimate, respectively. Specifically, the clip function is used to limit the update amount of the amplitude estimate to a preset maximum amplitude change between positive and negative values, the update amount of the angular frequency estimate to a preset maximum angular frequency change between positive and negative values, and the update amount of the phase estimate to a preset maximum phase change between positive and negative values. After adding the amplitude estimate, angular frequency estimate, and phase estimate to their corresponding update values, the method further includes: applying amplitude limiting to the updated angular frequency estimate and phase estimate, specifically using the clip function to limit the updated angular frequency estimate to between a preset maximum and minimum angular frequency value, and converting the updated phase estimate into... The equivalent phase value within the range.

9. The method for rapid detection of grid voltage sag in source-grid-load-storage coordinated control according to claim 1, characterized in that, After obtaining the amplitude estimate after this round of updates, the process also includes: performing a second exponential smoothing on the updated amplitude estimate to obtain the corresponding final amplitude estimate, calculated using the following formula: in, This is the amplitude estimate after this round of updates. This is the final amplitude estimate from the previous round. This is the final amplitude estimate for this round. To output smoothing coefficients; initialize .

10. The method for rapid detection of grid voltage sag in source-grid-load-storage coordinated control according to claim 9, characterized in that, The statement that the amplitude estimate after a specified number of consecutive updates is lower than the sag threshold specifically means that the final amplitude estimate after a specified number of consecutive updates is lower than the sag threshold, which is 0.9 times the rated voltage amplitude.