Wave load adaptive smoothing method and system based on sliding window average and medium
By applying sliding window averaging to the data center load and dynamically adjusting the charging and discharging of the energy storage device, the problem of the energy storage device being unable to adapt to fluctuating loads under fixed threshold control is solved, achieving adaptive smoothing of fluctuating loads and improving the stability of power supply and power grid.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- STATE GRID JIANGSU ELECTRIC POWER CO LTD RESEARCH INSTITUTE
- Filing Date
- 2026-05-08
- Publication Date
- 2026-06-02
Smart Images

Figure CN122136937A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of energy storage control technology, and in particular to a method, system and medium for adaptive smoothing of fluctuating loads based on sliding window averaging. Background Technology
[0002] With the rapid development of artificial intelligence computing tasks, the load patterns of data centers are changing. Compared with the relatively stable and slowly changing loads in traditional data centers, the loads of data centers serving AI training and inference services are more dynamic and volatile, especially prone to frequent changes and sudden fluctuations. Such loads exert a more significant impact on the power supply side during operation, increasing the regulation pressure on the power supply system and potentially affecting the stability of the data center's power supply process and the overall stability of the power grid.
[0003] To mitigate the adverse effects of load fluctuations, existing technologies typically deploy energy storage devices on the data center side. These devices regulate load fluctuations through charging and discharging, absorbing or releasing power when the load increases and adjusting in the opposite direction when the load decreases, thus reducing the power fluctuations perceived by the power supply side to some extent. While these technologies achieve a certain smoothing effect, their control methods usually rely on pre-set fixed thresholds or relatively rigid adjustment rules, determining whether to trigger energy storage charging and discharging actions based on preset boundaries. This approach often struggles to adjust the control benchmark in real-time according to changes in load levels when facing load scenarios with complex fluctuation characteristics and continuously changing operating states. This results in a mismatch between the energy storage regulation capability and the actual load fluctuations. When the load is in different operating ranges or its fluctuation characteristics change, the fixed threshold control method is prone to insufficient smoothing and weak adaptability, making it difficult to continuously and effectively suppress the impact of load fluctuations on the power supply side. Therefore, providing an energy storage charging and discharging control scheme that can dynamically adjust with load changes and achieve adaptive smoothing for data center loads with significant fluctuation characteristics has become a pressing technical problem in this field.
[0004] The information disclosed in this background section is intended only to enhance the understanding of the general background of this disclosure and should not be construed as an admission or in any way implying that the information constitutes prior art known to those skilled in the art. Summary of the Invention
[0005] This invention provides an adaptive smoothing method, system, and medium for fluctuating loads based on sliding window averaging, which can effectively solve the problems in the background art.
[0006] To achieve the above objectives, the technical solution adopted by the present invention is as follows: An adaptive smoothing method for fluctuating loads based on sliding window averaging, the method comprising: The instantaneous load power on the load side is obtained, and a power balance relationship is established between the power supply, energy storage device and load, so that the instantaneous load power is characterized as the combined power of the power supply and the charging and discharging power of the energy storage device. The instantaneous load power is continuously sampled at a preset sampling frequency to obtain the load power sampling sequence corresponding to the current moment; The load power sampling sequence is averaged within a sliding time window to obtain the target smoothed power corresponding to the current moment. The target charging and discharging power of the energy storage device at the current moment is determined based on the power deviation between the instantaneous load power and the target smooth power at the current moment. The energy storage device is controlled to charge or discharge at the target charging or discharging power so that the power output of the power supply is smoothed relative to the fluctuation of the instantaneous load power.
[0007] Furthermore, the power balance relationship between the power supply, energy storage device, and load includes: The instantaneous load power is defined as P1, the power supply power is defined as P2, and the charging and discharging power of the energy storage device is defined as P3. The power balance relationship between the instantaneous load power, the power supply power, and the charging and discharging power of the energy storage device is established as P1=P2+P3.
[0008] Furthermore, a power measuring point is set at the power output point to measure the instantaneous value of the instantaneous load power through the power measuring point.
[0009] Furthermore, the preset sampling frequency is set to be at least two orders of magnitude higher than the load power fluctuation frequency.
[0010] Furthermore, the window length of the preset sliding time window is set to be at least one order of magnitude longer than the load power fluctuation period.
[0011] Further, obtaining the target smoothing power corresponding to the current moment includes: The preset sliding time window is determined to include n known sampling points; The instantaneous load power corresponding to each sampling point within the preset sliding time window is averaged to obtain the target smoothed power; And the target smoothing power satisfies: ; in, This represents the average power within the sliding time window; n represents the number of known sampling points within the sliding time window. This represents the instantaneous load power corresponding to the i-th sampling point.
[0012] Further, based on the power deviation between the instantaneous load power at the current moment and the target smoothed power, including: Based on the fact that the preset sampling frequency is at least two orders of magnitude higher than the load power fluctuation frequency, when determining the target charging and discharging power at time n+1, the instantaneous load power at time n is used. The instantaneous load power at time n+1 The calculated value; The target charge / discharge power at time n+1 is determined based on the difference between the instantaneous load power at time n and the target smooth power at time n. And the target charge / discharge power satisfies: ; in, The target charging / discharging power is represented at time n+1. The instantaneous load power at time n is represented; This represents the average value of the instantaneous load power corresponding to each sampling point within the previous sliding time window.
[0013] Further, determining the target charge / discharge power of the energy storage device at the current moment includes: exist When the value is greater than 0, the energy storage device is controlled to charge, and the charging power is [value missing]. ; exist When the value is less than 0, the energy storage device is controlled to discharge, and the discharge power is... .
[0014] An adaptive smoothing system for fluctuating loads based on sliding window averaging, the system comprising: The power balancing module acquires the instantaneous load power on the load side and establishes a power balance relationship between the power supply, energy storage device and load, so as to characterize the instantaneous load power as the combined power of the power supply and the charging and discharging power of the energy storage device. The continuous sampling module continuously samples the instantaneous load power at a preset sampling frequency to obtain the load power sampling sequence corresponding to the current moment. The sliding window averaging module performs sliding window averaging on the load power sampling sequence within a sliding time window to obtain the target smoothed power at the current moment. The power determination module determines the target charging and discharging power of the energy storage device at the current moment based on the power deviation between the instantaneous load power and the target smooth power at the current moment. The fluctuation smoothing module controls the energy storage device to charge or discharge according to the target charging and discharging power, so as to smooth the fluctuation of the power output of the power supply relative to the instantaneous load power.
[0015] A computer-readable storage medium storing a computer program, the computer program including program instructions that, when executed by a processor, implement an adaptive smoothing method for fluctuating loads based on sliding window averaging.
[0016] The technical solution of this invention can achieve the following technical effects: By continuously sampling the instantaneous power of the load and calculating the sliding window average value, the charging and discharging power of the energy storage device is determined using the sliding window average value as a dynamic smoothing benchmark. This achieves adaptive smoothing of fluctuating loads and effectively solves the technical problem that fixed threshold energy storage control is difficult to achieve adaptive smoothing for loads with high-frequency and step-fluctuation characteristics.
[0017] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 This is a flowchart illustrating the adaptive smoothing method for fluctuating loads based on sliding window averaging. Figure 2 This is a schematic diagram illustrating the step characteristics of data center load. Figure 3 Schematic diagram illustrating the characteristics of energy storage in mitigating fluctuating power. Figure 4 A diagram illustrating the energy storage charging and discharging strategy. Detailed Implementation
[0020] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments.
[0021] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.
[0022] Example 1; like Figure 1 and Figure 2 As shown, this application provides an adaptive smoothing method for fluctuating loads based on sliding window averaging, the method comprising: S10: Obtain the instantaneous load power on the load side and establish the power balance relationship between the power supply, energy storage device and load, so as to characterize the instantaneous load power as the combined power of the power supply and the charging and discharging power of the energy storage device. S20: Continuously sample the instantaneous load power at a preset sampling frequency to obtain the load power sampling sequence corresponding to the current moment; S30: Perform sliding window averaging on the load power sampling sequence within a sliding time window to obtain the target smoothed power at the current moment; S40: Determine the target charging and discharging power of the energy storage device at the current moment based on the power deviation between the instantaneous load power and the target smooth power at the current moment; S50: Controls the energy storage device to charge or discharge according to the target charging and discharging power, so as to smooth the fluctuation of the power output of the power supply relative to the instantaneous load power.
[0023] Specifically, in load smoothing scenarios applied to data centers, especially AI data centers, this implementation first acquires the instantaneous load power on the load side and establishes a power balance relationship between the power supply, energy storage device, and load. This allows the power change on the load side to be decomposed into the power portion borne by the power supply and the charging / discharging power portion borne by the energy storage device. Preferably, a power measurement point is set at the power output point to measure the instantaneous load power value in real time, thus providing raw data for subsequent smoothing control. After acquiring the instantaneous load power, the instantaneous load power is continuously sampled at a preset sampling frequency to form a continuously updated load power sampling sequence over time. The preset sampling frequency is preferably... A frequency higher than the load power fluctuation frequency is selected to ensure accurate reflection of the dynamic changes in fluctuating load. After obtaining the load power sampling sequence, a sliding window averaging process is performed on the load power sampling sequence within a sliding time window. Preferably, the window length of the sliding time window is greater than the load fluctuation period, so that the sliding window averaging result can characterize the smoothing benchmark of the load power at the current stage, thereby obtaining the target smoothed power corresponding to the current moment. This implementation method does not use a fixed threshold to determine whether the energy storage is active, but uses the sliding window averaging result as a smoothing reference that is dynamically updated with load changes, so that the energy storage charging and discharging benchmark can adaptively change with the load level. After obtaining the target smoothed power, based on the current moment... The power deviation between the instantaneous load power and the target smoothing power determines the target charging and discharging power of the energy storage device at the current moment. Specifically, when the instantaneous load power is higher than the target smoothing power, it indicates that the current load has overshooted relative to the smoothing reference, and the energy storage device preferably absorbs the corresponding deviation power for charging. When the instantaneous load power is lower than the target smoothing power, it indicates that the current load has undershooted relative to the smoothing reference, and the energy storage device preferably releases the corresponding deviation power for discharging, thereby making the power borne by the power supply side more stable. Furthermore, controlling the energy storage device to charge or discharge according to the target charging and discharging power smooths the fluctuation of the power output of the power supply relative to the instantaneous load power. In other words... The energy storage device handles the variable portion of the load fluctuation, while the power supply mainly handles the smoothed base power portion, thereby reducing the impact of fluctuating loads on the power supply side. For example, in a preferred application scenario, when changes in the computing power demand of a data center cause continuous fluctuations in load power, the system continuously collects the instantaneous load power and performs sliding window averaging on the sampled values over a recent period to obtain the current dynamic smoothing benchmark. Then, the currently measured instantaneous power is compared with the dynamic smoothing benchmark, and the deviation between the two is used as the basis for the charging and discharging control of the energy storage device. This allows the energy storage device to adaptively change its charging and discharging power according to changes in load characteristics, ultimately achieving the smoothing of fluctuating loads.Compared to existing technologies that use fixed thresholds for energy storage compensation, this implementation method can more effectively adapt to operational needs under different load levels and fluctuation conditions. It avoids the problem of energy storage failing to intervene promptly and effectively when the load is low or when load characteristics change. Therefore, it can better smooth fluctuating loads and improve system operational stability and reliability.
[0024] The technical solution of this invention continuously samples the instantaneous power of the load and calculates the sliding window average value. The sliding window average value is used as the dynamic smoothing benchmark to determine the charging and discharging power of the energy storage device, thereby achieving adaptive smoothing of fluctuating loads. This effectively solves the technical problem that fixed threshold energy storage control is difficult to achieve adaptive smoothing for loads with high-frequency and step-fluctuation characteristics.
[0025] Furthermore, such as Figure 3 As shown, the power balance relationship between the power supply, energy storage device, and load includes: Define the instantaneous load power as P1, the power supply power as P2, and the charging and discharging power of the energy storage device as P3. The power balance relationship between instantaneous load power, power supply power and energy storage device charging and discharging power is established as P1=P2+P3.
[0026] As a preferred embodiment of the above, the power relationship between the power supply, energy storage device, and load is first uniformly defined and clearly characterized. Preferably, the power consumed by the load in real time is defined as the instantaneous load power P1, the power supplied by the power supply to the load is defined as the power supply power P2, and the power corresponding to the energy storage device during charging or discharging is defined as the energy storage device charging / discharging power P3. Through these definitions, the load power, which originally changes dynamically over time, is decomposed into the power component borne by the power supply and the regulating power component borne by the energy storage device, thus providing a unified power description basis for subsequent sliding window averaging calculations and energy storage charging / discharging control. Furthermore, the power balance relationship between instantaneous load power, power supply power, and energy storage device charging / discharging power is established as P1 = P2 + P3. The significance of this preferred power balance relationship lies in the fact that it not only illustrates that the load-side power originates from the combined action of the power supply and the energy storage device, but also clarifies that the function of the energy storage device in this scheme is not independent power supply, but rather dynamic compensation and smoothing of the power supply output during load power fluctuations. This allows the power supply to bear more of the smoothed power portion, while the energy storage device bears the fluctuating portion. In other words, when the load power changes, P3 changes accordingly to ensure that P1 is always satisfied by the combined action of P2 and P3. This ensures that the target charging and discharging power determined subsequently based on the sliding window averaging can be accurately executed under this power balance relationship. Furthermore, in a preferred application, a power measurement point can be set at the load power output point to obtain the instantaneous value of P1. The effect of energy storage on load fluctuation mitigation is analyzed in conjunction with the established relationship P1=P2+P3. When the load fluctuates upwards, the energy storage device participates in power balance by adjusting P3; when the load fluctuates downwards, the energy storage device similarly maintains the overall power relationship by changing P3, thereby achieving the effect of separating load fluctuations from the power supply side. For example, in a data center where the load changes with computing power demand... In scenarios with fluctuating load power, if the load power increases at a certain moment, the instantaneous load power P1 at that moment will increase accordingly, while the power supply power P2 can remain relatively stable. The difference in power supply power is adjusted by the charging and discharging power P3 of the energy storage device. Conversely, when the load power decreases, P3 can also change accordingly to continue to satisfy the power balance relationship. Therefore, by defining P1, P2 and P3 and establishing the power balance relationship P1=P2+P3, the basic expression framework of the entire adaptive smoothing strategy is actually formed. This allows the subsequent sliding window averaging to obtain the smoothing benchmark and the determination of the energy storage charging and discharging power based on the deviation to be carried out under a clear, unified and executable power relationship.
[0027] Furthermore, a power measurement point is set at the power output point to measure the instantaneous value of the instantaneous load power.
[0028] As a preferred embodiment of the above embodiments, in order to provide accurate and continuous raw power data for subsequent sliding window averaging processing and the charging and discharging control of the energy storage device, a power measuring point is set at the power output point corresponding to the load to measure the instantaneous load power. The instantaneous load power value is obtained in real time through the power measuring point. Preferably, the power output point is set at a location that can truly reflect the actual power changes on the load side, ensuring that the collected power information can directly characterize the dynamic changes of the load during operation. The function of the power measuring point is not only to perform general power detection, but more importantly, to provide the basic input for dynamic smoothing control, enabling subsequent... The continuous sampling, sliding window averaging, and deviation calculation are all based on the measurement results of actual load power changes. Therefore, the power measurement point preferably continuously outputs the instantaneous value that represents the load power state at the current moment, and uses the instantaneous value as the instantaneous load power for subsequent processing. Furthermore, since the historical data formed by the load power change over time dynamically constructs a smoothing benchmark, the data obtained by the power measurement point is real-time and continuous compared to conventional measurement methods that are only used for coarse monitoring. This allows the data to fully reflect the fluctuation characteristics of the fluctuating load during operation, thereby ensuring that the subsequent sliding window averaging result can accurately represent the smoothed power level of the current stage.
[0029] Furthermore, the preset sampling frequency is set to be at least two orders of magnitude higher than the load power fluctuation frequency.
[0030] As a preferred embodiment of the above, the fluctuation frequency of the target load is first determined based on its power fluctuation characteristics during operation. Then, a matching sampling frequency is set based on this frequency, enabling the sampling process to continuously acquire instantaneous load power data at a rate much higher than the actual rate of change of load power. This avoids the problem of insufficient characterization of the load fluctuation process due to an excessively low sampling frequency. Furthermore, the sampling frequency setting method is not a conventional sampling requirement in the general sense, but is directly related to the construction of a dynamic smoothing benchmark using sliding window averaging. This is because only when the sampling frequency is significantly higher than the load power fluctuation frequency can the resulting load power sampling sequence contain sufficiently dense historical power information, thereby making the sliding window averaging result more accurately reflect the power change trend of the current stage and giving higher reliability to the target charging and discharging power determined by the deviation between the instantaneous load power and the target smoothing power. In other words, the sampling frequency setting method, which is at least two orders of magnitude higher than the load power fluctuation frequency, is essentially to ensure the smooth implementation of the technical chain of continuous sampling, sliding window averaging, deviation determination, and energy storage regulation, so that the target smoothing power and target charging and discharging power at each subsequent moment are based on sufficiently fine and continuous sampling data.
[0031] Furthermore, the preset sliding time window length is set to be at least one order of magnitude longer than the load power fluctuation period.
[0032] As a preferred embodiment of the above, the fluctuation period of the target load is first determined based on the power change pattern during operation. Then, the window length of the sliding time window is set according to the fluctuation period, making the sliding time window longer than a single fluctuation process on a time scale. This ensures that the sampled data entering the sliding window averaging calculation includes not only power change information near the current moment but also power change information over a continuous historical period. Thus, the target smoothed power no longer reflects only instantaneous fluctuations but also the overall smoothness level of the load power in the current stage. Furthermore, the window length setting method does not use a fixed threshold as the energy storage control benchmark but dynamically constructs a smoothing benchmark through the sliding window averaging result. If the sliding time window length is too short, the smoothing... The average result tends to over-follow instantaneous fluctuations, making it difficult to reflect the smoothing effect. This weakens the energy storage device's ability to share fluctuating power. However, setting the window length to be at least an order of magnitude longer than the load power fluctuation period allows the target smoothed power to be more stable relative to the instantaneous load power. This makes the target charging and discharging power determined by the deviation between the two more suitable as the control basis for the energy storage device. In other words, the setting of the sliding time window actually determines how the dynamic smoothing benchmark is formed. Only when the window length is sufficient to cover the load fluctuation process can the sliding window averaging process effectively extract the smoothed part of the load power and let the power supply bear the smoothed part, while the energy storage device bears the part of the fluctuation-related change.
[0033] Furthermore, such as Figure 4 As shown, the target smoothing power at the current time is obtained, including: The preset sliding time window includes n known sampling points; The instantaneous load power corresponding to each sampling point within the preset sliding time window is averaged to obtain the target smoothed power; And the target smoothing power satisfies: ; in, This represents the average power within the sliding time window; n represents the number of known sampling points within the sliding time window. This represents the instantaneous load power corresponding to the i-th sampling point.
[0034] As a preferred embodiment of the above, after continuously sampling the instantaneous load power, a preset sliding time window is determined to contain several known sampling points. The instantaneous load power corresponding to each sampling point within the preset sliding time window is averaged to obtain the target smoothed power corresponding to the current moment. The target smoothed power is preferably obtained by summing the instantaneous load power of all sampling points within the sliding time window and then dividing by the number of sampling points. It is not just a general averaging of the sampled values, but rather an averaging of continuous historical sampling data within the sliding time window to construct a smoothed reference value that can be dynamically updated with changes in the load operating state. This allows the subsequent charging and discharging control of the energy storage device to no longer rely on a fixed threshold, but rather on the historical power level of the load itself in the current stage. Therefore, the target smoothed power essentially represents the smoothed portion of the load power in the current stage, while the deviation of the instantaneous load power from the target smoothed power constitutes the fluctuation portion subsequently borne by the energy storage device. Furthermore, as the sliding time window slides forward continuously, the sampling points entering the averaging calculation are also updated synchronously with time, so that the target smoothed power can be continuously adjusted according to changes in load power, thereby ensuring that the smoothing reference has adaptability.
[0035] Furthermore, such as Figure 4 As shown, based on the power deviation between the instantaneous load power at the current moment and the target smoothed power, it includes: Based on the fact that the preset sampling frequency is at least two orders of magnitude higher than the load power fluctuation frequency, when determining the target charging and discharging power at time n+1, the instantaneous load power at time n is used. The instantaneous load power at time n+1 The calculated value; The target charge / discharge power at time n+1 is determined based on the difference between the instantaneous load power at time n and the target smooth power at time n. And the target charge / discharge power satisfies: ; in, This represents the target charging / discharging power at time n+1; This represents the instantaneous load power at time n; This represents the average instantaneous load power corresponding to each sampling point within the previous sliding time window.
[0036] As a preferred embodiment of the above, since the preset sampling frequency is much larger than the load power fluctuation frequency, the instantaneous load power change between adjacent moments can be approximately continuous. Based on this, the instantaneous load power at the current moment, i.e., the (n+1)th moment, can be approximated as equivalent to the instantaneous load power at the nth moment. Accordingly, the target charging and discharging power at the current moment is determined as the difference between the instantaneous load power at the current moment and the target smoothing power corresponding to the previous sliding time window. The key is that the control quantity of the energy storage device is directly established on the deviation of the instantaneous load power relative to the dynamic smoothing reference, rather than on a fixed threshold. In other words, the target charging and discharging power is not preset, but is determined by the negative... The target smoothing power is dynamically determined by the load's own historical sampling data. Therefore, when the load is in different operating states or the fluctuation level changes, the target charging and discharging power can also be adjusted synchronously, so that the energy storage device always compensates around the actual load level of the current stage. Furthermore, since the target smoothing power comes from the average result of historical sampling values within the sliding time window, the target charging and discharging power actually represents the deviation of the current instantaneous load power from the smoothed part. This deviation can be understood as the fluctuation part that needs to be borne by the energy storage device, while the power supply mainly bears the stable part corresponding to the target smoothing power, thereby achieving the technical effect of smoothing the output power of the power supply.
[0037] Furthermore, determining the target charge / discharge power of the energy storage device at the current moment includes: exist When the value is greater than 0, the energy storage device is charged, and the charging power is [value missing]. ; exist When <0, the energy storage device is controlled to discharge, and the discharge power is .
[0038] As a preferred embodiment of the above embodiment, after determining the target charge / discharge power of the energy storage device at the current moment based on the power deviation between the instantaneous load power and the target smoothing power, the energy storage device is further controlled to perform corresponding charging or discharging actions based on the positive or negative attribute of the target charge / discharge power. Specifically, when the target charge / discharge power is greater than zero, it indicates that the instantaneous load power at the current moment is higher than the target smoothing power, meaning the current load has an upward deviation relative to the smoothing reference. In this case, it is preferable to control the energy storage device to enter a charging state and use the target charge / discharge power as the charging power for energy absorption, thereby absorbing the power portion exceeding the smoothing reference at the current moment. When the target charge / discharge power is less than zero, it indicates that the instantaneous load power at the current moment is lower than the target smoothing power, meaning the current load has a downward deviation relative to the smoothing reference. In this case, it is preferable to control the energy storage device to enter a discharging state and use the absolute value of the target charge / discharge power as the discharging power for energy release, thereby compensating for the current load being lower than the smoothing reference. The target charging and discharging power determined by the aforementioned scheme is further transformed into directly executable energy storage control actions. This allows the dynamic smoothing benchmark formed by the sliding window averaging to be truly implemented in the real-time charging and discharging process of the energy storage device, thereby completing closed-loop control from deviation calculation to action execution. Compared with the existing method of judging whether the energy storage device is active only by using a fixed threshold, this scheme directly distinguishes the charging and discharging directions by the sign of the target charging and discharging power, enabling the adjustment behavior of the energy storage device to automatically switch according to the actual load changes. Therefore, it is more conducive to adapting to the dynamic changes of fluctuating loads under different operating conditions. Furthermore, in a preferred application, the process of controlling the charging or discharging of the energy storage device can be directly centered around the target charging and discharging power. That is to say, the target charging and discharging power not only determines the direction of the energy storage device's action, but also determines the adjustment intensity undertaken by the energy storage device at the current moment. This allows the power output of the power supply to be closer to the smoothing level corresponding to the target smoothing power.
[0039] Example 2; Based on the same inventive concept as the sliding window averaging-based adaptive smoothing method for fluctuating loads in the foregoing embodiments, the present invention also provides a sliding window averaging-based adaptive smoothing system for fluctuating loads, the system comprising: The power balancing module acquires the instantaneous load power on the load side and establishes a power balance relationship between the power supply, energy storage device and load, so as to characterize the instantaneous load power as the combined power of the power supply and the charging and discharging power of the energy storage device. The continuous sampling module continuously samples the instantaneous load power at a preset sampling frequency to obtain the load power sampling sequence corresponding to the current moment. The sliding window averaging module performs sliding window averaging on the load power sampling sequence within a sliding time window to obtain the target smoothed power at the current moment. The power determination module determines the target charging and discharging power of the energy storage device at the current moment based on the power deviation between the instantaneous load power and the target smooth power at the current moment. The fluctuation smoothing module controls the energy storage device to charge or discharge according to the target charging and discharging power, so as to smooth the fluctuation of the power output of the power supply relative to the instantaneous load power.
[0040] The adjustment system described above in this invention can effectively implement the adaptive smoothing method for fluctuating loads based on sliding window averaging, and the technical effects it can achieve are as described in the above embodiments, and will not be repeated here.
[0041] Example 3; Based on the same inventive concept as the sliding window averaging-based adaptive smoothing method for fluctuating loads in the foregoing embodiments, the present invention also provides a computer-readable storage medium storing a computer program, the computer program including program instructions, which, when executed by a processor, can implement the sliding window averaging-based adaptive smoothing method for fluctuating loads.
[0042] Although this application has been described in conjunction with specific features and embodiments, it is obvious that various modifications and combinations can be made thereto without departing from the spirit and scope of this application. Accordingly, this specification and drawings are merely exemplary illustrations of the application as defined herein, and are to be considered as covering any and all modifications, variations, combinations, or equivalents within the scope of this application. Clearly, those skilled in the art can make various alterations and modifications to this application without departing from its scope. Thus, if such modifications and modifications fall within the scope of this application and its equivalents, this application intends to include such modifications and modifications.
Claims
1. An adaptive smoothing method for fluctuating loads based on sliding window averaging, characterized in that, The method includes: The instantaneous load power on the load side is obtained, and a power balance relationship is established between the power supply, energy storage device and load, so that the instantaneous load power is characterized as the combined power of the power supply and the charging and discharging power of the energy storage device. The instantaneous load power is continuously sampled at a preset sampling frequency to obtain the load power sampling sequence corresponding to the current moment; The load power sampling sequence is averaged within a sliding time window to obtain the target smoothed power corresponding to the current moment. The target charging and discharging power of the energy storage device at the current moment is determined based on the power deviation between the instantaneous load power and the target smooth power at the current moment. The energy storage device is controlled to charge or discharge at the target charging or discharging power so that the power output of the power supply is smoothed relative to the fluctuation of the instantaneous load power.
2. The adaptive smoothing method for fluctuating loads based on sliding window averaging according to claim 1, characterized in that, The power balance relationship between the power supply, energy storage device, and load includes: The instantaneous load power is defined as P1, the power supply power is defined as P2, and the charging and discharging power of the energy storage device is defined as P3. The power balance relationship between the instantaneous load power, the power supply power, and the charging and discharging power of the energy storage device is established as P1=P2+P3.
3. The adaptive smoothing method for fluctuating loads based on sliding window averaging according to claim 1, characterized in that, A power measurement point is set at the power output point to measure the instantaneous value of the instantaneous load power through the power measurement point.
4. The adaptive smoothing method for fluctuating loads based on sliding window averaging according to claim 1, characterized in that, The preset sampling frequency is set to be at least two orders of magnitude higher than the load power fluctuation frequency.
5. The adaptive smoothing method for fluctuating loads based on sliding window averaging according to claim 1, characterized in that, The window length of the preset sliding time window is set to be at least one order of magnitude longer than the load power fluctuation period.
6. The adaptive smoothing method for fluctuating loads based on sliding window averaging according to claim 5, characterized in that, Obtaining the target smoothing power corresponding to the current time includes: The preset sliding time window is determined to include n known sampling points; The instantaneous load power corresponding to each sampling point within the preset sliding time window is averaged to obtain the target smoothed power; And the target smoothing power satisfies: ; in, This represents the average power within the sliding time window; n represents the number of known sampling points within the sliding time window. This represents the instantaneous load power corresponding to the i-th sampling point.
7. The adaptive smoothing method for fluctuating loads based on sliding window averaging according to claim 1, characterized in that, The power deviation between the instantaneous load power at the current moment and the target smoothed power includes: Based on the fact that the preset sampling frequency is at least two orders of magnitude higher than the load power fluctuation frequency, when determining the target charging and discharging power at time n+1, the instantaneous load power at time n is used. The instantaneous load power at time n+1 The calculated value; The target charge / discharge power at time n+1 is determined based on the difference between the instantaneous load power at time n and the target smooth power at time n. And the target charge / discharge power satisfies: ; in, The target charging / discharging power is represented at time n+1. The instantaneous load power at time n is represented; This represents the average value of the instantaneous load power corresponding to each sampling point within the previous sliding time window.
8. The adaptive smoothing method for fluctuating loads based on sliding window averaging according to claim 7, characterized in that, Determining the target charge / discharge power of the energy storage device at the current moment includes: exist When the value is greater than 0, the energy storage device is controlled to charge, and the charging power is [value missing]. ; exist When the value is less than 0, the energy storage device is controlled to discharge, and the discharge power is... .
9. A fluctuating load adaptive smoothing system based on sliding window averaging, characterized in that, The system includes: The power balancing module acquires the instantaneous load power on the load side and establishes a power balance relationship between the power supply, energy storage device and load, so as to characterize the instantaneous load power as the combined power of the power supply and the charging and discharging power of the energy storage device. The continuous sampling module continuously samples the instantaneous load power at a preset sampling frequency to obtain the load power sampling sequence corresponding to the current moment. The sliding window averaging module performs sliding window averaging on the load power sampling sequence within a sliding time window to obtain the target smoothed power at the current moment. The power determination module determines the target charging and discharging power of the energy storage device at the current moment based on the power deviation between the instantaneous load power and the target smooth power at the current moment. The fluctuation smoothing module controls the energy storage device to charge or discharge according to the target charging and discharging power, so as to smooth the fluctuation of the power output of the power supply relative to the instantaneous load power.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, the computer program including program instructions that, when executed by a processor, implement the adaptive smoothing method for fluctuating loads based on sliding window averaging as described in any one of claims 1-8.