A method and device for switching between on-grid and off-grid of energy storage converter
By monitoring the status of the power grid in real time and using a hybrid synchronization mechanism for pre-synchronization, and adjusting the charging and discharging strategy in real time electricity prices and load demand, the problem of insufficient synchronization control and poor dynamic response matching in energy storage converter and off-grid switching is solved. , significantly improves the synchronization effect of the power grid and the economic benefits of the energy storage system, and ensures the stability of the power system.
Patent Information
- Application Number
- CN202411265575.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-10
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-09-10
AI Technical Summary
The existing energy storage converter and off-grid switching technology have insufficient synchronization control, poor dynamic response matching and lack of charging and discharging strategy optimization, resulting in poor synchronization effect between the converter and the power grid under abnormal conditions, which may cause voltage fluctuations or Frequency disturbance affects the stability of the power system.
By monitoring the operating status of the power grid in real time, pre-synchronization adjustment is performed using a hybrid synchronization mechanism, and controlling the converter output in combination with VSG; adjusting the charging and discharging strategy in combination with real-time electricity prices, load demand and energy storage status, predicting short-term load changes and dynamically distributing energy; After the power grid returns to normal, gradually switch back to grid connection mode.
It significantly improves the synchronization effect between the converter and the power grid, reduces the impact during off-grid switching, optimizes the energy distribution and economic benefits of the energy storage system, and ensures the stable operation of the power system.
Smart Images

Figure CN118783505B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power grids, and in particular to a method and device for switching an energy storage converter on and off the grid. Background Art
[0002] With the rapid development of renewable energy and the gradual promotion of smart grid technology, the position of energy storage systems in power systems is becoming increasingly important. As an important component of energy storage systems, energy storage converters not only play a key role in energy storage and scheduling, but also have important significance in frequency regulation, load balancing and voltage stability of power systems. Traditional grid-connected and off-grid switching technologies usually rely on simple threshold control and fixed preset switching logic, which cannot fully cope with the frequent abnormal fluctuations and complex load changes during grid operation. To this end, in recent years, researchers and engineers have conducted a lot of exploration and innovation in the control strategy of energy storage converters, among which virtual synchronous generator (VSG) technology and multi-modal synchronous control mechanism have gradually become the focus.
[0003] However, the existing technology still has several deficiencies in the on-grid and off-grid switching process of energy storage inverters. First, most of the existing synchronization control strategies are based on adjustments based on a single parameter, and fail to fully consider the multi-dimensional changes in the operating status of the power grid, resulting in poor synchronization between the inverter and the power grid under abnormal conditions of the power grid, and potential instability risks. Secondly, traditional technologies often ignore the dynamic response matching problem between the energy storage system and the power grid when switching on and off the grid, which may cause voltage fluctuations or frequency disturbances during switching, thereby affecting the stability of the entire power system. In addition, the existing charging and discharging strategies are mostly static or based on simple rules, lacking comprehensive consideration of real-time electricity prices, load demand and energy storage status, resulting in the utilization efficiency and economic benefits of the energy storage system still need to be improved. Summary of the invention
[0004] In view of the problems existing in the above-mentioned existing on-grid and off-grid switching methods and devices of energy storage converters, the present invention is proposed.
[0005] Therefore, the problem to be solved by the present invention is that the existing energy storage converter on-grid and off-grid switching technology has insufficient synchronous control, poor dynamic response matching, and lack of optimization of charging and discharging strategies.
[0006] To solve the above technical problems, the present invention provides the following technical solutions: a method for switching an energy storage inverter between on-grid and off-grid, comprising: real-time monitoring of the operating status of the power grid, using a hybrid synchronization mechanism for pre-synchronization adjustment and using VSG to control the inverter output when the operating status of the power grid is abnormal; using sensors to confirm that all parameters are adjusted to the off-grid operation standards before switching the energy storage inverter to the off-grid mode; adjusting the charging and discharging strategy in combination with the real-time electricity price, load demand and energy storage status, predicting short-term load changes to adjust the inverter output and dynamically allocating energy according to the urgency and importance of the load; generating a switching instruction after the power grid returns to normal, and switching the energy storage inverter back to the on-grid mode.
[0007] As a preferred solution of the on-grid and off-grid switching method of the energy storage converter of the present invention, wherein: the real-time monitoring of the grid operation status refers to deploying sensors at the main transformer access point, load access point and energy storage unit attachment of the grid to collect real-time grid operation data, historical grid operation data and pre-process the collected data;
[0008] A random forest model is used to detect anomalies in the power grid operation data. The random forest model is trained using historical power grid operation data and the model parameters are optimized through the RSO algorithm. The real-time power grid operation data is input into the optimized random forest model to determine the operation status of the power grid. If the model output result is normal and the energy storage inverter is currently in off-grid mode, a switching instruction is generated to prepare to switch the mode of the energy storage inverter to the grid-connected mode. If the model output result is abnormal and the energy storage inverter is currently in the grid-connected mode, a switching instruction is generated to prepare to switch the mode of the energy storage inverter to the off-grid mode.
[0009] As a preferred solution of the on-grid and off-grid switching method of the energy storage converter of the present invention, wherein: when the grid operation state is abnormal, a hybrid synchronization mechanism is used to perform pre-synchronization adjustment and VSG is used to control the output of the converter, including: performing mean calculation on the frequency data and voltage data in the historical grid operation data to obtain the frequency mean and voltage mean, using the Euler formula to convert the phase into a complex form and perform mean calculation on all phase complex numbers, extracting the phase angle from the average complex number, and using the frequency mean, voltage mean and phase angle as the grid reference frequency, reference voltage and reference phase;
[0010] Calculate the deviation between the current output frequency of the energy storage converter and the grid reference frequency, and use the PV voltage drop control strategy to perform preliminary frequency synchronization. The adjustment formula is:
[0011] ;
[0012] In the formula, f out (t) is the output frequency of the converter at time t, M is the inertia constant, P refis the reference active power, P(t) is the actual active power, f ref is the reference frequency of the grid, P(t) is the actual active power at time t, and dt is the small increment of time;
[0013] After frequency synchronization, the deviation between the current output voltage of the energy storage converter and the grid reference voltage is calculated, and the voltage is initially synchronized through the double-drop control strategy. The adjustment formula is:
[0014] ;
[0015] Where V out (t) is the output voltage of the converter at time t, V ref is the reference voltage of the grid, D is the damping coefficient, is the reference reactive power, Q is the actual reactive power;
[0016] After voltage synchronization, the deviation between the current output phase of the energy storage converter and the grid reference phase is calculated, and the initial phase synchronization is performed through the phase-locked loop technology;
[0017] After completing the pre-synchronization adjustment, VSG is used to simulate the inertia and damping characteristics of the traditional synchronous generator for precise synchronization. The control formula is:
[0018] ;
[0019] Where J(t) is the real-time inertia coefficient, J0 is the initial inertia, is the frequency deviation between VSG and grid, b J is the damping adjustment coefficient, c J is the adjustment coefficient;
[0020] Adjust power output according to frequency deviation and synchronize the frequency of energy storage converter and grid:
[0021] ;
[0022] Where P out (t) is the real-time output power, P ref is the reference active power, K d is the frequency droop coefficient, is the reference frequency, Indicates the current output frequency of VSG;
[0023] Adjust the voltage output of the energy storage converter through QV droop control to synchronize with the grid voltage;
[0024] When the load changes, the damping coefficient D(t) is dynamically adjusted to smooth the frequency fluctuation. The adjustment formula is:
[0025] ;
[0026] Where P max is the maximum power output, P(t) is the real-time power output, K D is the damping adjustment coefficient.
[0027] As a preferred scheme of the on-grid and off-grid switching method of the energy storage inverter described in the present invention, the method includes: using sensors to confirm that all parameters are adjusted to the off-grid operation standard and then switching the energy storage inverter to the off-grid mode includes: setting the error range of the frequency, voltage and phase of the energy storage inverter, detecting the matching degree between the output frequency, voltage and phase of the current energy storage inverter and the reference frequency, voltage and phase of the power grid; if the output frequency, voltage and phase of the energy storage inverter are within the set error range, the energy storage inverter is switched to the off-grid mode; if the output frequency, voltage and phase of the energy storage inverter are not within the set error range, resynchronization is performed until all are within the set error range and then switched to the off-grid mode.
[0028] As a preferred solution of the on-grid and off-grid switching method of the energy storage converter of the present invention, wherein: the charging and discharging strategy is adjusted in combination with the real-time electricity price, load demand and energy storage state, including: using the load monitoring device to measure the current load demand L(t) in real time, obtaining the current energy storage state of the energy storage converter through the monitoring device of the energy storage system, and calculating the energy storage state response function :
[0029] ;
[0030] Where S(t) is the current energy storage capacity of the energy storage converter, S ref is the rated energy storage capacity of the energy storage converter, δ is the steepness adjustment constant of the response function;
[0031] Collect real-time electricity price data and calculate the time-varying function of electricity price :
[0032] ;
[0033] In the formula, p0 is the initial electricity price, α is the electricity price growth rate constant, β is the electricity price fluctuation frequency constant, and γ is the fluctuation amplitude adjustment constant;
[0034] Calculate the average electricity price within the time period T :
[0035] ;
[0036] Where dt is the small change in time;
[0037] Calculate the periodic fluctuation term G(t) of the energy storage converter:
[0038] ;
[0039] In the formula, p ref is the rated output power of the energy storage converter, g ref is the reference electricity price, ω1 is the angular frequency, φ is the initial phase;
[0040] The calculation formula for the comprehensive construction of the charging and discharging strategy power is expressed as:
[0041] ,
[0042] Where C(t) is the power of the charge and discharge strategy;
[0043] The charging and discharging strategy of the energy storage inverter is determined according to the real-time electricity price and load demand, and the output power of the energy storage inverter is adjusted according to the calculated C(t) value.
[0044] As a preferred solution of the on-grid and off-grid switching method of the energy storage converter of the present invention, wherein: the predicting of load changes in a short period of time to adjust the converter output and dynamically allocate energy according to the urgency and importance of the load includes: constructing a support vector regression model, using historical load data as a training set, using the training set and the loss function to train the support vector regression model, and adjusting the support vector regression model to minimize the prediction error;
[0045] The real-time load data is input into the support vector regression model to predict the future load of the energy storage converter;
[0046] Prioritize the load based on its urgency and importance, and categorize the predicted future load based on the extent and nature of the historical outage impact on that load:
[0047] If the load has high requirements on system stability and security and does not allow interruption, it is a high priority;
[0048] If the load allows short interruptions, it is medium priority;
[0049] If the load is allowed to be temporarily interrupted when energy is tight, it is a low priority;
[0050] Allocate energy to different loads according to priority.
[0051] As a preferred scheme of the on-grid and off-grid switching method of the energy storage inverter described in the present invention, wherein: the switching instruction is generated after the power grid returns to normal, and the energy storage inverter is switched back to the grid-connected mode, including: real-time monitoring of the stability of the operating state of the power grid, and after confirming that the grid parameters are within the stable range, the hybrid synchronization mechanism is used again for pre-synchronization, matching the output of the energy storage inverter and the grid parameters, generating a switching signal after all parameters are matched, gradually increasing the power exchange with the power grid and synchronously controlling the voltage and frequency fine-tuning to switch the energy storage inverter to the grid-connected mode.
[0052] Another object of the present invention is to provide a grid-connected and off-grid switching device for an energy storage converter, comprising:
[0053] Anomaly detection module, used to collect grid operation data for anomaly detection and identify abnormal status of the grid;
[0054] A switching control module is used to confirm the matching status of all parameters of the energy storage converter and the grid parameters according to the sensor, and control the energy storage converter to switch to the corresponding mode;
[0055] A synchronous control module is used to perform preliminary synchronization using the PV voltage drop control strategy and the double drop control strategy, and then perform precise synchronization using the VSG to simulate the inertia and damping characteristics of the traditional synchronous generator;
[0056] The energy management module is used to adjust the charging and discharging strategy based on real-time electricity prices, load demand and energy storage status, and predict the short-term load changes of the energy storage converter to adjust the converter output and dynamically allocate energy according to the urgency and importance of the load.
[0057] A computer device comprises: a memory and a processor; the memory stores a computer program, and the processor implements the steps of a method for switching an energy storage converter on and off the grid when executing the computer program.
[0058] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of a method for switching an energy storage converter on and off the grid.
[0059] The beneficial effects of the present invention are as follows: the present invention significantly improves the synchronization effect between the converter and the power grid by introducing a hybrid synchronization mechanism for pre-synchronization adjustment and combining it with the VSG technology to control the converter output, reduces the impact during on-grid and off-grid switching, and dynamically adjusts the charging and discharging strategy based on real-time electricity prices, load demand and energy storage status, thereby optimizing the energy distribution and economic benefits of the energy storage system and ensuring the stable operation of the power system. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for describing the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0061] Figure 1 A schematic flow chart of a method for switching an energy storage converter between a grid and an off-grid;
[0062] Figure 2 It is a structural schematic diagram of the grid-connected and off-grid switching system of the energy storage inverter. DETAILED DESCRIPTION
[0063] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings.
[0064] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0065] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor is it a separate or selective embodiment that is mutually exclusive with other embodiments.
[0066] Example 1, reference Figure 1 , which is the first embodiment of the present invention, and which provides a method for switching between an energy storage converter and an off-grid. The method for switching between an energy storage converter and an off-grid comprises:
[0067] S1. Real-time monitoring of the grid operation status. When the grid operation status is abnormal, the hybrid synchronization mechanism is used for pre-synchronization adjustment and VSG (Virtual Synchronous Generator) is used to control the converter output.
[0068] Specifically, the real-time monitoring of the grid operation status refers to deploying sensors at the main transformer access point, load access point and energy storage unit attachment of the grid to collect real-time grid operation data, historical grid operation data and pre-process the collected data;
[0069] A random forest model is used to detect anomalies in the power grid operation data. The random forest model is trained using historical power grid operation data and the model parameters are optimized through the RSO (Random Search Optimization) algorithm. The real-time power grid operation data is input into the optimized random forest model to determine the operation status of the power grid. If the model output result is normal and the energy storage inverter is currently in off-grid mode, a switching instruction is generated to prepare to switch the mode of the energy storage inverter to the grid-connected mode. If the model output result is abnormal and the energy storage inverter is currently in the grid-connected mode, a switching instruction is generated to prepare to switch the mode of the energy storage inverter to the off-grid mode.
[0070] By deploying sensors near the main transformer access point, load access point and energy storage unit, comprehensive monitoring of the power grid operation status can be achieved. Real-time monitoring can quickly capture abnormal fluctuations in the power grid and provide timely data support for subsequent anomaly detection. At the same time, by deploying sensors at multiple points, the diversity and accuracy of the data are ensured, which enables the random forest model to be based on more comprehensive information when detecting anomalies, reducing the possibility of false alarms or missed alarms. The application of the random forest model significantly improves the accuracy of power grid anomaly detection. Traditional anomaly detection methods may be limited to specific rules or models, while random forests effectively overcome the shortcomings of a single model being susceptible to noise or extreme values by integrating multiple decision trees. Its high accuracy and robustness enable the model to quickly and accurately identify abnormal situations in power grid status judgment, while reducing the false alarm rate and improving the detection efficiency. The use of the RSO algorithm effectively improves the classification performance of the random forest model. By performing random searches in the parameter space, the RSO algorithm can find the optimal hyperparameter combination, making the model more adaptable and more accurate when facing power grid operation data.
[0071] Furthermore, when the grid operation state is abnormal, a hybrid synchronization mechanism is used to perform pre-synchronization adjustment and VSG is used to control the converter output, including: performing mean calculation on the frequency data and voltage data in the historical grid operation data to obtain the frequency mean and voltage mean, using the Euler formula to convert the phase into a complex form and perform mean calculation on all phase complex numbers, extracting the phase angle from the average complex number, and using the frequency mean, voltage mean and phase angle as the grid reference frequency, reference voltage and reference phase;
[0072] Calculate the deviation between the current output frequency of the energy storage converter and the grid reference frequency, and use the PV voltage drop control strategy to perform preliminary frequency synchronization. The PV voltage drop control strategy is a strategy designed to control and reduce voltage drop by adjusting the relationship between active power (P) and voltage (V). The adjustment formula is:
[0073] ;
[0074] In the formula, f out (t) is the output frequency of the converter at time t, M is the inertia constant, P ref is the reference active power, which is set based on the grid load demand and the capacity of the converter, P(t) is the actual active power, and f ref is the reference frequency of the power grid, P(t) is the actual active power at time t, obtained by real-time monitoring of the output power signal of the converter, and dt is a small increment of time;
[0075] After frequency synchronization, the deviation between the current output voltage of the energy storage converter and the grid reference voltage is calculated, and the voltage is initially synchronized through the double-drop control strategy. The adjustment formula is:
[0076] ; Where V out (t) is the output voltage of the converter at time t, V ref is the reference voltage of the grid, D is the damping coefficient,
[0077] is the reference reactive power, which is set based on the reactive power demand of the grid and the capacity of the converter, Q is the actual reactive power, which is obtained by real-time monitoring of the reactive power output signal of the converter;
[0078] After voltage synchronization, the deviation between the current output phase of the energy storage converter and the grid reference phase is calculated, and the initial phase synchronization is performed through the phase-locked loop technology. The adjustment formula is: ;
[0079] In the formula, A out (t) is the output phase of the converter at time t, A ref is the reference phase of the grid, k a is the phase adjustment gain coefficient, and the PID (proportional-integral-differential) control strategy in control theory is applied, where k a It can be regarded as a proportional gain, which makes proportional adjustments to the phase error;
[0080] After completing the pre-synchronization adjustment, VSG is used to simulate the inertia and damping characteristics of the traditional synchronous generator for precise synchronization. The control formula is:
[0081] ;
[0082] Where J(t) is the real-time inertia coefficient, J0 is the initial inertia, is the frequency deviation between VSG and grid, b J is the damping adjustment coefficient, which is used to adjust the system's sensitivity to frequency deviation and is usually determined through experimental data or simulation. Jis the adjustment coefficient, which is used to adjust the baseline of the inertial response to ensure that the system maintains a stable response when there is a small deviation;
[0083] Adjust power output according to frequency deviation and synchronize the frequency of energy storage converter and grid:
[0084] ;
[0085] Where P out (t) is the real-time output power, P ref is the reference active power, determined according to load conditions, K d The frequency droop coefficient is a constant determined based on experimental data. It reflects the degree of response of the system to frequency changes. The specific value can be determined through experimental tuning. The reference frequency is the operating frequency of the power grid under ideal conditions and is set according to the standard frequency of the power grid. Indicates the current output frequency of VSG;
[0086] The voltage output of the energy storage converter is adjusted through QV droop control to synchronize with the grid voltage:
[0087] Among them, QV droop control is to adjust the relationship between reactive power (Q) and voltage (V). The energy storage converter can automatically adjust its output voltage according to system requirements, thereby maintaining the stability of system voltage and power quality; ;
[0088] Where E is the output voltage of the converter at the current time t, K q is the reactive power droop coefficient, which is determined through experimental tuning. is the reference voltage, the operating voltage of the power grid under ideal conditions, determined according to the rated voltage of the power grid. is the reference reactive power, which is set according to the load demand and grid status, and Q is the actual reactive power of the converter;
[0089] When the load changes, the damping coefficient D(t) is dynamically adjusted to smooth the frequency fluctuation. The adjustment formula is: ;
[0090] Where P max is the maximum power output, P(t) is the actual active power at time t, K D is the damping adjustment coefficient. By simulating different operating scenarios using power system simulation software (such as MATLAB / Simulink), we can observe the different K D The influence of value on system stability and frequency response is used to find the optimal value as K D value.
[0091] By calculating the average of the frequency, phase and voltage in the historical grid operation data, the reference value of the grid is obtained, and then compared and adjusted with the real-time output of the converter. This process can not only respond quickly to grid fluctuations and ensure the accurate synchronization of the frequency, phase and voltage of the converter and the grid, but also avoid the synchronization failure problem caused by simple control strategies in traditional technologies. The introduction of VSG technology enables the converter to simulate the inertia and damping characteristics of the synchronous generator when the grid frequency fluctuates, greatly improving the dynamic stability and response speed of the system. Especially when the frequency changes drastically, it can significantly reduce grid disturbances and ensure the power supply quality. After frequency synchronization, the double-reduction control strategy is used to perform preliminary voltage synchronization, and the phase is synchronized using the phase-locked loop technology. This combination not only effectively solves the voltage and phase mismatch problem between the converter and the grid, but also adjusts the parameters D and k a , making the system more stable and accurate during synchronization. Compared with the single synchronization control strategy in traditional technology, the present invention significantly improves the stability and accuracy of the converter under different operating conditions through dual adjustment and locking technology, and reduces voltage flicker and phase jump during grid-connected and off-grid switching. In the case of large load changes, the damping adjustment coefficient K is used. D Dynamically adjust the damping coefficient D(t) to smooth frequency fluctuations. This technology significantly improves the system's ability to cope with large load fluctuations. In traditional technologies, fixed damping coefficients often cannot adapt to dynamically changing load requirements, causing the system to be unstable when dealing with large load fluctuations. D The present invention can adjust the damping coefficient in real time according to the actual operating conditions, so that the system can still maintain the frequency stability and voltage stability when there is a large load fluctuation.
[0092] S2. Use sensors to confirm that all parameters are adjusted to the off-grid operation standard and then switch the energy storage converter to the off-grid mode;
[0093] Specifically, the use of sensors to confirm that all parameters are adjusted to the off-grid operation standard and then switching the PCS (Power Conversion System) to the off-grid mode refers to setting the error range of the frequency, voltage and phase of the energy storage inverter according to industry standards and specifications, detecting the matching degree between the output frequency, voltage and phase of the current energy storage inverter and the reference frequency, voltage and phase of the power grid; if the output frequency, voltage and phase of the energy storage inverter are within the set error range, the energy storage inverter is switched to the off-grid mode; if the output frequency, voltage and phase of the energy storage inverter are not within the set error range, resynchronization is performed until all are within the set error range and then switched to the off-grid mode.
[0094] By using high-precision sensors to detect the output frequency, voltage and phase of the energy storage inverter in real time, the present invention can ensure that all output parameters are adjusted in place before switching to the off-grid mode. Through the precise detection of the sensor, the operating status of the energy storage inverter can be captured in real time to ensure that when switching modes, the system is fully prepared and can be switched with minimal risk. The error range of the frequency, voltage and phase of the energy storage inverter is set through industry standards and specifications to ensure the safety and standardization of the switching operation. This standardized setting not only makes the system compatible with most power grid environments, but also ensures the safe operation of the system under different working conditions. Setting a reasonable error range helps to reduce the uncertainty factors in the operation of the system, thereby improving the stability of the entire power system. This standardized operation is different from the flexible or arbitrary settings in the prior art. In the case where the state of the power grid may change frequently, the use of standardized error range settings can better adapt to the diverse power grid conditions and make rapid adjustments when abnormalities occur in the power grid to avoid system failures caused by parameters exceeding the allowable range. If any of the output frequency, voltage and phase of the energy storage inverter fails to reach the set error range, the system will resynchronize until all parameters meet the requirements before switching to off-grid mode. This repeated confirmation process significantly improves the reliability and safety of system operation. Through this precise control, the present invention can ensure that all parameters are in the best state when switching to off-grid mode, thereby reducing the risk of power outages or equipment damage.
[0095] S3, adjust the charging and discharging strategy based on real-time electricity prices, load demand and energy storage status, predict short-term load changes, adjust the converter output and dynamically allocate energy according to the urgency and importance of the load;
[0096] Specifically, the combination of real-time electricity price, load demand and energy storage status to adjust the charging and discharging strategy refers to using load monitoring equipment (smart meter, load sensor) to measure the current load demand L(t) in real time, obtaining the current energy storage state of the energy storage converter through the monitoring equipment of the energy storage system, and calculating the energy storage state response function :
[0097] ;
[0098] Where S(t) is the current energy storage capacity of the energy storage converter, S ref is the rated energy storage capacity of the energy storage converter, δ is the steepness adjustment constant of the response function, dimensionless, reflecting the sensitivity of the energy storage state response, determined through tuning tests; collect real-time electricity price data and calculate the time-varying function of electricity price :
[0099] ;
[0100] In the formula, p0 is the initial electricity price, α is the electricity price growth rate constant, which reflects the growth or decay trend of electricity price over time, and is calculated through the fitting analysis of historical electricity price data, β is the electricity price fluctuation frequency constant, which reflects the short-term fluctuation frequency of electricity price, and is determined by spectrum analysis of short-term market fluctuation data, γ is the fluctuation amplitude adjustment constant, which controls the rate of change of short-term fluctuation amplitude, and is calculated through statistical analysis of historical data of electricity price fluctuation amplitude;
[0101] Calculate the average electricity price within the time period T ;
[0102] ;
[0103] Where dt is the small change in time;
[0104] Calculate the periodic fluctuation term G(t) of the energy storage converter:
[0105] ;
[0106] In the formula, p ref is the rated output power of the energy storage converter, g ref is the reference electricity price, which is calculated by the average of historical electricity prices. ω1 is the angular frequency, which is used to describe the periodic fluctuations in the power regulation strategy. The angular frequency is calculated based on the frequency of periodic events. It indicates how many arcs of periodic fluctuations the system completes per second. φ is the initial phase, which is used to describe the initial phase of the periodic fluctuations, which is determined by the initial conditions of the system or the starting point of the periodic event.
[0107] The calculation formula for the comprehensive construction of the charging and discharging strategy power is expressed as: ;
[0108] Where C(t) is the charge and discharge strategy power, which represents the charging or discharging power of the energy storage converter at time t;
[0109] The charging and discharging strategy of the energy storage inverter is determined according to the real-time electricity price and load demand, and the output power of the energy storage inverter is adjusted according to the calculated C(t) value.
[0110] By comparing the current energy storage capacity with the rated capacity and combining the response function to adjust the constant δ, the operating status of the energy storage system can be dynamically reflected. Compared with the traditional fixed threshold control method, the response function can more accurately adjust the charging and discharging operations, improve the adaptability and flexibility of the energy storage system, and can timely adjust the charging and discharging strategies according to the real-time status of the energy storage system to avoid the risk of over-discharging or over-charging, thereby extending the life of the energy storage system and improving the overall efficiency of the system. The real-time electricity price is modeled and analyzed through the electricity price time change function gp(t), which can effectively capture the growth trend and fluctuation characteristics of the electricity price. Not only the long-term change trend of the electricity price (controlled by α) but also the short-term fluctuation of the electricity price (controlled by β and γ) are considered. This multi-dimensional analysis of the electricity price can help the energy storage system charge when the electricity price is low and discharge when the electricity price is high, thereby maximizing the economic benefits. In addition, by accurately predicting the fluctuation of electricity prices, the system operation risks caused by the fluctuation of electricity prices can be effectively avoided, ensuring that the optimal operation strategy can be maintained when market conditions change. The introduction of the periodic fluctuation term G(t) is to better cope with the periodic changes in the market or load. It can help the energy storage system adapt to daily or weekly periodic changes and ensure that stable power supply and charging and discharging operations can be maintained under these changes. By reasonably setting the angular frequency ω1 and the initial phase φ, the system can accurately predict and respond to these periodic fluctuations, optimize the charging and discharging timing, and improve the economic benefits and stability of the system operation. By combining real-time electricity prices, load demand and energy storage status, and using precise mathematical models and function calculations, the intelligence and economy of the energy storage system's charging and discharging strategy are significantly improved.
[0111] Further, the predicting of load changes in the short term to adjust the converter output and dynamically allocate energy according to the urgency and importance of the load includes: constructing a support vector regression model, using historical load data as a training set, training the support vector regression model using the training set and a loss function, and adjusting the support vector regression model to minimize the prediction error;
[0112] The real-time load data is input into the support vector regression model to predict the future load of the energy storage converter;
[0113] Prioritize loads based on their urgency and importance, categorize predicted future loads based on historical outage impacts of that load, and the nature of that load (life support systems, data centers, production lines, etc.):
[0114] If the load has high requirements on system stability and security and does not allow interruption, it is a high priority;
[0115] If the load allows short interruptions, it is medium priority;
[0116] If the load is allowed to be temporarily interrupted when energy is tight, it is a low priority;
[0117] Allocate energy to different loads according to priority.
[0118] Using the SVR (Support Vector Regression) model to predict short-term load changes effectively solves the complex nonlinear problems in load changes, making the prediction results more accurate. Especially when the grid load is affected by multiple factors, the SVR model can better capture these complex relationships, thereby providing more reliable load prediction results. This directly improves the output adjustment strategy of the converter, ensuring that the system can reasonably allocate power resources based on accurate load predictions. Classify and prioritize the loads based on their historical power outage impacts and their essential characteristics (such as life support systems, data centers, production lines, etc.). Enable the system to prioritize the stable operation of critical loads when energy is tight, thereby improving the reliability and safety of the system. For example, for high-priority loads such as life support systems, even when power resources are tight, they can be given priority protection, thereby avoiding serious consequences caused by power outages.
[0119] S4, after the power grid returns to normal, a switching instruction is generated to switch the energy storage converter back to the grid-connected mode;
[0120] Specifically, generating a switching command after the power grid returns to normal and switching the energy storage inverter back to the grid-connected mode refers to real-time monitoring of the stability of the operating status of the power grid, and after confirming that the grid parameters are within a stable range, pre-synchronizing the mixed synchronization mechanism again to match the output of the energy storage inverter and the grid parameters, generating a switching signal after all parameters are matched, gradually increasing the power exchange with the power grid and synchronously controlling the fine-tuning of the voltage and frequency to switch the energy storage inverter to the grid-connected mode.
[0121] By real-time monitoring of key parameters of the grid, such as frequency, voltage and phase, the system can dynamically track changes in the state of the grid. Compared with traditional methods, this step can not only provide immediate status feedback after the grid is restored, but also respond quickly to possible abnormal fluctuations during the switching process, thereby avoiding potential risks of system instability. This real-time monitoring and confirmation process ensures that the system is connected to the grid at the most appropriate time, improving the stability of the overall grid. Through the hybrid synchronization mechanism, the system can accurately adjust the output frequency, voltage and phase of the energy storage converter before grid connection to make it highly matched with the grid parameters. This step not only reduces the current shock and voltage fluctuation at the moment of grid connection, but also significantly improves the smoothness and reliability of grid connection operation. Compared with the relatively single synchronization method in the prior art, the hybrid synchronization mechanism can comprehensively consider the matching of multiple grid parameters, greatly reducing the impact of grid connection operation on the grid. By gradually increasing power exchange, the grid and energy storage converter are allowed to gradually adapt to the new power load in a controllable process, reducing the instantaneous impact on the grid. In addition, by synchronously controlling the fine-tuning of voltage and frequency during the power exchange process, the parameter matching during the grid connection process can be further optimized to ensure that the power grid and energy storage converter can maintain stable operation throughout the process.
[0122] Example 2, reference Figure 2 , which is a second embodiment of the present invention, which is different from the previous embodiment and provides a grid-connected and off-grid switching device for an energy storage converter, comprising:
[0123] Anomaly detection module, used to collect grid operation data for anomaly detection and identify abnormal status of the grid;
[0124] A switching control module is used to confirm the matching status of all parameters of the energy storage converter and the grid parameters according to the sensor, and control the energy storage converter to switch to the corresponding mode;
[0125] A synchronous control module is used to perform preliminary synchronization using the PV voltage drop control strategy and the double drop control strategy, and then perform precise synchronization using the VSG to simulate the inertia and damping characteristics of the traditional synchronous generator;
[0126] The energy management module is used to adjust the charging and discharging strategy based on real-time electricity prices, load demand and energy storage status, and predict the short-term load changes of the energy storage converter to adjust the converter output and dynamically allocate energy according to the urgency and importance of the load.
[0127] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0128] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0129] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0130] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit with a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit with a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
Claims
1. A method for switching an energy storage converter between a grid and an off-grid, characterized in that: include: Monitor the grid operation status in real time. When the grid operation status is abnormal, use the hybrid synchronization mechanism to perform pre-synchronization adjustment and use VSG to control the converter output. Use sensors to confirm that all parameters are adjusted to the off-grid operation standard and then switch the energy storage inverter to off-grid mode; Adjust the charging and discharging strategy based on real-time electricity prices, load demand and energy storage status, predict short-term load changes, adjust converter output and dynamically allocate energy based on the urgency and importance of the load; After the power grid returns to normal, a switching command is generated to switch the energy storage converter back to the grid-connected mode; Real-time monitoring of the grid operation status refers to deploying sensors at the main transformer access point, load access point and energy storage unit attachment of the grid to collect real-time grid operation data, historical grid operation data and pre-process the collected data; Use the random forest model to detect anomalies in the power grid operation data, use the historical power grid operation data to train the random forest model and optimize the model parameters through the RSO algorithm, input the real-time power grid operation data into the optimized random forest model to determine the operation status of the power grid, if the model output result is normal and the energy storage converter is currently in the off-grid mode, then generate a switching instruction to prepare to switch the mode of the energy storage converter to the grid-connected mode, if the model output result is abnormal and the energy storage converter is currently in the grid-connected mode, then generate a switching instruction to prepare to switch the mode of the energy storage converter to the off-grid mode; When the grid operation state is abnormal, a hybrid synchronization mechanism is used to perform pre-synchronization adjustment and VSG is used to control the output of the converter, including: performing mean calculation on the frequency data and voltage data in the historical grid operation data to obtain the frequency mean and voltage mean, using the Euler formula to convert the phase into a complex form and perform mean calculation on all phase complex numbers, extracting the phase angle from the average complex number, and using the frequency mean, voltage mean and phase angle as the grid reference frequency, reference voltage and reference phase; Calculate the deviation between the current output frequency of the energy storage converter and the grid reference frequency, and use the PV voltage drop control strategy to perform preliminary frequency synchronization. The adjustment formula is: ; In the formula, f out (t) is the output frequency of the converter at time t, M is the inertia constant, P ref is the reference active power, P(t) is the actual active power, f ref is the reference frequency of the grid, P(t) is the actual active power at time t, and dt is the small increment of time; After frequency synchronization, the deviation between the current output voltage of the energy storage converter and the grid reference voltage is calculated, and the voltage is initially synchronized through the double-drop control strategy. The adjustment formula is: ; Where V out (t) is the output voltage of the converter at time t, V ref is the reference voltage of the grid, D is the damping coefficient, is the reference reactive power, Q is the actual reactive power; After voltage synchronization, the deviation between the current output phase of the energy storage converter and the grid reference phase is calculated, and the initial phase synchronization is performed through the phase-locked loop technology; After completing the pre-synchronization adjustment, VSG is used to simulate the inertia and damping characteristics of the traditional synchronous generator for precise synchronization. The control formula is: ; Where J(t) is the real-time inertia coefficient, J0 is the initial inertia, is the frequency deviation between VSG and grid, b J is the damping adjustment coefficient, c J is the adjustment coefficient; Adjust power output according to frequency deviation and synchronize the frequency of energy storage converter and grid: ; Where P out (t) is the real-time output power, P ref is the reference active power, K d is the frequency droop coefficient, is the reference frequency, Indicates the current output frequency of VSG; Adjust the voltage output of the energy storage converter through QV droop control to synchronize with the grid voltage; When the load changes, the damping coefficient D(t) is dynamically adjusted to smooth the frequency fluctuation. The adjustment formula is: ; Where P max is the maximum power output, P(t) is the real-time power output, K D is the damping adjustment coefficient; The method of adjusting the charging and discharging strategy in combination with the real-time electricity price, load demand and energy storage state includes: using the load monitoring device to measure the current load demand L(t) in real time, obtaining the current energy storage state of the energy storage converter through the monitoring device of the energy storage system, and calculating the energy storage state response function : ; Where S(t) is the current energy storage capacity of the energy storage converter, S ref is the rated energy storage capacity of the energy storage converter, δ is the steepness adjustment constant of the response function; Collect real-time electricity price data and calculate the time-varying function of electricity price : ; In the formula, p0 is the initial electricity price, α is the electricity price growth rate constant, β is the electricity price fluctuation frequency constant, and γ is the fluctuation amplitude adjustment constant; Calculate the average electricity price within the time period T : ; Where dt is the small change in time; Calculate the periodic fluctuation term G(t) of the energy storage converter: ; In the formula, p ref is the rated output power of the energy storage converter, g ref is the reference electricity price, ω1 is the angular frequency, φ is the initial phase; The calculation formula for the comprehensive construction of the charging and discharging strategy power is expressed as: ; Where C(t) is the power of the charge and discharge strategy; The charging and discharging strategy of the energy storage inverter is determined according to the real-time electricity price and load demand, and the output power of the energy storage inverter is adjusted according to the calculated C(t) value.
2. The method for switching between an on-grid and off-grid energy storage converter according to claim 1, wherein: The method uses a sensor to confirm that all parameters are adjusted to the off-grid operation standard and then switches the energy storage inverter to the off-grid mode, including: setting the error range of the frequency, voltage and phase of the energy storage inverter, detecting the matching degree between the output frequency, voltage and phase of the current energy storage inverter and the reference frequency, voltage and phase of the power grid; if the output frequency, voltage and phase of the energy storage inverter are within the set error range, the energy storage inverter is switched to the off-grid mode; if the output frequency, voltage and phase of the energy storage inverter are not within the set error range, resynchronization is performed until all are within the set error range and then switched to the off-grid mode.
3. The method for switching between an on-grid and off-grid energy storage converter according to claim 2, wherein: The predicting of short-term load changes to adjust converter output and dynamically allocate energy according to the urgency and importance of the load includes: constructing a support vector regression model, using historical load data as a training set, training the support vector regression model using the training set and a loss function, and adjusting the support vector regression model to minimize prediction errors; The real-time load data is input into the support vector regression model to predict the future load of the energy storage converter; Prioritize the load based on its urgency and importance, and categorize the predicted future load based on the extent and nature of the historical outage impact on that load: If the load has high requirements on system stability and security and does not allow interruption, it is a high priority; If the load allows short interruptions, it is medium priority; If the load is allowed to be temporarily interrupted when energy is tight, it is a low priority; Allocate energy to different loads according to priority.
4. The method for switching between on-grid and off-grid of an energy storage converter according to claim 3, characterized in that: The method of generating a switching instruction after the power grid returns to normal and switching the energy storage inverter back to the grid-connected mode includes: real-time monitoring of the stability of the operating state of the power grid, and after confirming that the power grid parameters are within a stable range, re-mixing the synchronization mechanism for pre-synchronization to match the output of the energy storage inverter and the power grid parameters, generating a switching signal after all parameters are matched, gradually increasing the power exchange with the power grid and synchronously controlling the voltage and frequency fine-tuning to switch the energy storage inverter to the grid-connected mode.
5. A grid-connected and off-grid switching device for an energy storage converter, characterized in that: Applied to the method according to any one of claims 1 to 4, comprising: Anomaly detection module, used to collect grid operation data for anomaly detection and identify abnormal status of the grid; A switching control module is used to confirm the matching status of all parameters of the energy storage converter and the grid parameters according to the sensor, and control the energy storage converter to switch to the corresponding mode; A synchronous control module is used to perform preliminary synchronization using the PV voltage drop control strategy and the double drop control strategy, and then perform precise synchronization using the VSG to simulate the inertia and damping characteristics of the traditional synchronous generator; The energy management module is used to adjust the charging and discharging strategy based on real-time electricity prices, load demand and energy storage status, and predict the short-term load changes of the energy storage converter to adjust the converter output and dynamically allocate energy according to the urgency and importance of the load.
6. A computer device comprising: A memory and a processor; the memory stores a computer program, characterized in that: when the processor executes the computer program, the steps of the on-grid and off-grid switching method of the energy storage converter described in any one of claims 1 to 4 are implemented.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the on-grid and off-grid switching method of the energy storage converter according to any one of claims 1 to 4 are implemented.
