A wind farm charging and discharging control method, medium, device and product
By acquiring multi-source operational data and predictive model sets to predict electricity price sequences, and combining this with the objective function to optimize charging and discharging strategies, the problem of mismatched charging and discharging timing in traditional energy storage systems has been solved, thereby improving the operational profitability of wind farms.
Patent Information
- Application Number
- CN202611278867.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-21
- Publication Date
- 2026-11-24
AI Technical Summary
Traditional energy storage charging and discharging methods often lead to mismatches in charging and discharging timing during actual operation of energy storage systems, resulting in low operating returns for wind farms.
By acquiring multi-source operational data, a set of prediction models is used to predict the electricity price sequence at each time point in the future time domain. The charging and discharging power sequence is determined by combining the multi-source operational data, and the optimal charging and discharging strategy is selected through an objective function to achieve precise alignment between charging and discharging behavior and the electricity price cycle and fine matching of power.
It effectively improves the operating revenue of wind farms, avoids mismatch of charging and discharging timing, and improves the accuracy and economy of charging and discharging decisions.
Smart Images

Figure CN123162969A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of energy storage operation control, specifically relating to a charging and discharging control method for a wind farm, a storage medium, electronic equipment, and a computer program product. Background Technology
[0002] With the gradual improvement of my country's electricity market trading system, energy storage has a clear policy foundation and market environment for participating in refined charging and discharging transactions in the electricity spot market. At the same time, the installed capacity of new energy in many regions has achieved leapfrog growth, and new energy, mainly photovoltaic and wind power, has jumped from supplementary power sources to main power sources. Provinces have basically established an electricity market system that integrates medium- and long-term trading, spot electricity, and ancillary services.
[0003] However, the challenges brought about by the high proportion of new energy access, such as the increased difficulty of real-time balancing, the continuous widening of peak-valley differences, and the increasing sophistication of market price signals, are becoming increasingly prominent. Traditional energy storage charging and discharging methods that rely on fixed time periods, use a single real-time electricity price signal for decision-making, and have long-term fixed and unupdated strategies are no longer suitable for the price fluctuation rhythm of the spot market and the regional power generation and consumption characteristics. As a result, the energy storage system frequently experiences charging and discharging timing mismatches in actual operation, leading to low operating returns for wind farms. Summary of the Invention
[0004] The purpose of this application is to provide a charging and discharging control method, medium, equipment, and product for wind farms, which can solve the problem that traditional energy storage charging and discharging methods often lead to mismatches in charging and discharging timings in actual operation of the energy storage system, resulting in low operating returns for wind farms.
[0005] In a first aspect, embodiments of this application provide a charging and discharging control method for a wind farm, the method comprising: Acquire multi-source operational data; The predicted electricity price sequence is determined based on the multi-source operating data and the pre-built set of prediction models; Multiple charge and discharge power sequences are determined based on the predicted electricity price sequence and the multi-source operation data; Based on the predicted electricity price sequence and multiple charging and discharging power sequences, a pre-constructed objective function is solved to obtain the charging and discharging strategy of the wind farm; The wind farm is controlled to charge or discharge based on the aforementioned charging and discharging strategy.
[0006] Optionally, the multi-source operational data includes power generation data and forecast data, and the step of determining the forecast electricity price sequence based on the multi-source operational data and a pre-built set of forecast models includes: Calculate the bidding space for the Fireball eSports game based on the predicted data; The output percentage of thermal power at each moment is calculated based on the thermal power bidding space and the power generation data. Calculate thermal power generation time-series ramp-up data based on the power generation data; The predicted data, the thermal power bidding space, the thermal power output ratio at each time moment, and the thermal power time-series ramp-up data are input into the prediction model set to obtain the predicted electricity price sequence.
[0007] Optionally, the prediction model set includes multiple prediction models. The step of inputting the prediction data, the thermal power bidding space, the time-by-time output ratio of thermal power, and the thermal power time-series ramp-up data into the prediction model set to obtain the predicted electricity price sequence includes: Each prediction model predicts the electricity price at each time in the future time domain based on the prediction data, the thermal power bidding space, the thermal power output ratio at each time moment, and the thermal power time-series ramp-up data, thus obtaining the prediction results of each prediction model for each time in the future time domain. The predicted electricity price sequence is obtained by averaging and concatenating the prediction results of each prediction model at the same time.
[0008] Optionally, the multi-source operating data includes constraint data and energy storage data, and the step of determining multiple charge and discharge power sequences based on the predicted electricity price sequence and the multi-source operating data includes: Construct constraints based on the constraint data and the energy storage data; Extract the energy storage charge state at the current control moment from the energy storage data; Based on the predicted electricity price sequence and the energy storage charge state at the current control moment, determine multiple charging and discharging powers within the constraints at each time point in the future time domain, and obtain multiple charging and discharging power sequences corresponding to the future time domain.
[0009] Optionally, the step of solving a pre-constructed objective function based on the predicted electricity price sequence and multiple charging and discharging power sequences to obtain the charging and discharging strategy of the wind farm includes: Using the operating revenue of the wind farm at each time point in the future time domain as the solution objective, the objective function is solved based on the predicted electricity price sequence and multiple charging and discharging power sequences to obtain the corresponding operating revenue. Based on the operating revenue corresponding to each charging and discharging power sequence, a target charging and discharging power sequence is determined among multiple charging and discharging power sequences. The charging and discharging strategy is determined based on the multi-source operating data, the predicted electricity price sequence, and the target charging and discharging power sequence.
[0010] Optionally, determining the charging and discharging strategy based on the multi-source operating data, the predicted electricity price sequence, and the target charging and discharging power sequence includes: The first charging and discharging strategy is determined based on the constraint data in the multi-source operating data. Based on the energy storage data in the multi-source operation data and the predicted electricity price sequence, peak, flat and valley divisions are performed for each time point in the future time domain, the division result corresponding to each time point is determined, and a second charging and discharging strategy is determined based on multiple division results and the target charging and discharging power sequence. The third charging and discharging strategy is determined based on the static peak-valley period at each moment in the future time domain. The charging and discharging strategy is determined based on the first charging and discharging strategy, the second charging and discharging strategy, and the third charging and discharging strategy.
[0011] Optionally, after controlling the charging or discharging of the wind farm based on the charging and discharging strategy, the method further includes: Obtain actual charging and discharging power and actual spot electricity price; The actual arbitrage profit of the wind farm is calculated based on the actual charging and discharging power and the actual spot electricity price. The actual arbitrage profit is compared with the operating profit obtained based on the objective function to obtain the comparison result; Adjust the model parameters of each prediction model in the prediction model set based on the comparison results.
[0012] Secondly, embodiments of this application provide a storage medium that stores computer instructions, which, when executed by a computer, are used to perform the steps of the charging and discharging control method for a wind farm as described in the first aspect.
[0013] Thirdly, embodiments of this application provide an electronic device, including at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the steps of the wind farm charging and discharging control method as described in the first aspect.
[0014] Fourthly, embodiments of this application provide a computer program product, including a computer program / instructions, which, when executed by a processor, implement the steps of the charging and discharging control method for a wind farm as described in the first aspect.
[0015] In this embodiment, by acquiring multi-source operational data, a basis for judging the feasibility of charging and discharging decisions is provided, avoiding the generation of invalid decisions. A predictive model set is used to predict the predicted electricity price sequence at each moment in the future time domain, providing forward-looking information on electricity price trends for charging and discharging decisions. This allows the charging and discharging behavior of this application to align with the electricity price cycle in advance in the time dimension. Furthermore, the predicted electricity price sequence of this application is based on multi-source operational data prediction, unlike the real-time electricity price signal in the prior art which is directly collected from the power grid at the current moment. This allows this application to know the future electricity price fluctuation trend in advance. The charging and discharging power sequence is determined by combining the predicted electricity price sequence with the multi-source operational data. This method assigns a specific power value matching the energy storage state at each moment, unlike existing technologies that rely solely on a single real-time electricity price signal for qualitative judgment. It enables charging and discharging decisions to be further refined by combining power matching with real-time electricity prices. By selecting the optimal charging and discharging strategy through an objective function, and by predicting the electricity price sequence, it not only ensures that charging and discharging behavior is accurately aligned with the electricity price trend, but also achieves quantitative optimization of the charging and discharging strategy at each moment by predicting the power sequence. This avoids power mismatch caused by making qualitative decisions based solely on electricity price levels, and solves the problem of frequent charging and discharging timing mismatches in actual operation of energy storage systems caused by traditional energy storage charging and discharging methods, thereby effectively improving the operating benefits of wind farms. Attached Figure Description
[0016] Figure 1 This is a flowchart illustrating the steps of a charging and discharging control method for a wind farm provided in an embodiment of this application. Figure 2 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0017] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0018] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0019] The charging and discharging control method for wind farms provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.
[0020] Reference Figure 1 This is a flowchart illustrating the steps of a charging and discharging control method for a wind farm provided in an embodiment of this application, specifically including the following steps: Step 101: Obtain multi-source runtime data; In this embodiment, real-time and / or historical data from three sources—wind farms, the grid, and the energy storage unit—need to be collected to initialize parameters and generate multi-source operational data. It should be noted that this multi-source operational data refers only to single-unit energy storage in wind farms and does not involve the regional multi-unit ancillary services market.
[0021] Specifically, multi-source operational data includes, but is not limited to, power generation data, forecast data, constraint data, and energy storage data. Power generation data refers to the power generation-side operational data of the wind farm and its surrounding area, including the total regional power generation over the past year (15 minutes per day), power generation from non-market-based units, and real-time output of market-based thermal / hydro / wind / photovoltaic power. Forecast data refers to future time-domain forecasts and planning data provided by the grid dispatching side, including regional load forecasts, regional power transmission plans, and regional renewable energy forecast output. Constraint data refers to safety boundary data involved in wind farm operation, including transmission capacity limits for wind farm transmission lines and allowable operating ranges for node voltages. Energy storage data refers to the real-time status and rated parameters of the energy storage system itself, including the current state of charge (SOC, percentage of remaining battery capacity), state of health (SOH, percentage of battery health), rated maximum charge / discharge power, charge / discharge efficiency, and maximum daily allowable charge / discharge cycles.
[0022] It should be noted that the area mentioned above refers to the settlement area of the electricity spot market where the wind farm is located, that is, the dispatch jurisdiction to which the wind farm belongs when participating in electricity spot trading. The future time domain refers to the future time period from the current control time, such as the next 2 hours.
[0023] Step 102: Determine the predicted electricity price sequence based on the multi-source operating data and the pre-built set of prediction models; In existing technologies, a single model is typically used to fit historical electricity price sequences to output a future price forecast for a single point in time. This relies solely on the time-series patterns of electricity prices and historical prices. However, in the actual electricity market, spot prices are driven by supply and demand, and are related to various factors such as wind farm output, grid load levels, and regional power transmission plans. Furthermore, these factors exhibit nonlinear coupling relationships, making it difficult for a single model to effectively identify these complex mappings from historical data. Simultaneously, under high-load conditions, if renewable energy output is excessive, the actual electricity price may be lower. Since renewable energy output forecasts themselves have significant errors, these errors are amplified by the single model, further increasing the price forecast bias and resulting in low forecast accuracy.
[0024] In this embodiment, based on multi-source operational data, a pre-built set of prediction models is input to predict the electricity price at each future time in the time domain at each control time, thus obtaining a predicted electricity price sequence. The set of prediction models includes multiple machine learning models built based on different algorithm principles.
[0025] Specifically, because different models pay different attention to and respond differently to the same input feature, some models are good at capturing nonlinear interactions between features, some models are more robust to noise in the data, and some models can effectively handle high-dimensional sparse features. Therefore, this application's embodiment uses multiple models to predict electricity prices at various times in the future time domain. This integrates the advantages of each model and, to a certain extent, can suppress the risk of overfitting a single model to specific features, thereby improving the accuracy and stability of electricity price prediction.
[0026] Step 103: Determine multiple charge and discharge power sequences based on the predicted electricity price sequence and the multi-source operation data; In this embodiment of the application, based on the predicted electricity price sequence and multi-source operation data, the charging and discharging power at each time in the future time domain is taken multiple times at each control time to obtain multiple sets of charging and discharging power sequences covering the future time domain. Each charging and discharging power sequence contains the charging and discharging power values corresponding to each time in the future time domain.
[0027] Specifically, since the charging and discharging power of an energy storage system can be continuously measured within a certain power range, there are multiple combinations of power values at different times in the future time domain. Different combinations correspond to different charging and discharging power sequences, thus forming multiple candidate charging and discharging power sequences. In the process of forming multiple candidate sequences, it is necessary to refer to multi-source operating data simultaneously to ensure that the candidate sequences are physically feasible.
[0028] Step 104: Solve the pre-constructed objective function based on the predicted electricity price sequence and multiple charging and discharging power sequences to obtain the charging and discharging strategy of the wind farm; In this embodiment, to select the most economically viable scheme from multiple candidate charge / discharge power sequences, an objective function aimed at maximizing operational revenue needs to be pre-established. At each control time, based on the predicted electricity price at each time in the predicted electricity price sequence and the charge / discharge power at each time in each candidate charge / discharge power sequence, the objective function is solved to obtain the wind farm operational revenue corresponding to each candidate charge / discharge power sequence. Then, based on the criterion of maximizing revenue, the optimal charge / discharge power sequence is selected from multiple candidate sequences, and the charge / discharge strategy for the current control time is generated based on this optimal sequence.
[0029] Step 105: Control the wind farm to charge or discharge based on the charging and discharging strategy.
[0030] In this embodiment, the wind farm is equipped with an energy storage system. The charging and discharging of the wind farm essentially involves controlling the charging and discharging of this energy storage system. Therefore, after determining the charging and discharging strategy, the strategy is converted into control commands for the energy storage system and sent to the energy storage converter to control the energy storage system to charge, discharge, or operate in standby mode according to the control commands at the current control time. It should be noted that standby mode refers to the situation where the energy storage system neither charges nor discharges at the current control time.
[0031] Meanwhile, when the next control moment arrives, the updated multi-source operating data is reacquired, and steps 102 to 105 are repeated to achieve charging and discharging control at the next control moment.
[0032] In this embodiment, by acquiring multi-source operational data, a basis for judging the feasibility of charging and discharging decisions is provided, avoiding the generation of invalid decisions. A predictive model set is used to predict the predicted electricity price sequence at each moment in the future time domain, providing forward-looking information on electricity price trends for charging and discharging decisions. This allows the charging and discharging behavior of this application to align with the electricity price cycle in advance in the time dimension. Furthermore, the predicted electricity price sequence of this application is based on multi-source operational data prediction, unlike the real-time electricity price signal in the prior art which is directly collected from the power grid at the current moment. This allows this application to know the future electricity price fluctuation trend in advance. The charging and discharging power sequence is determined by combining the predicted electricity price sequence with the multi-source operational data. This method assigns a specific power value matching the energy storage state at each moment, unlike existing technologies that rely solely on a single real-time electricity price signal for qualitative judgment. It enables charging and discharging decisions to be further refined by combining power matching with real-time electricity prices. By selecting the optimal charging and discharging strategy through an objective function, and by predicting the electricity price sequence, it not only ensures that charging and discharging behavior is accurately aligned with the electricity price trend, but also achieves quantitative optimization of the charging and discharging strategy at each moment by predicting the power sequence. This avoids power mismatch caused by making qualitative decisions based solely on electricity price levels, and solves the problem of frequent charging and discharging timing mismatches in actual operation of energy storage systems caused by traditional energy storage charging and discharging methods, thereby effectively improving the operating benefits of wind farms.
[0033] In one embodiment of this application, the multi-source operational data includes power generation data and forecast data, and the step of determining the predicted electricity price sequence based on the multi-source operational data and a pre-built set of prediction models includes: Calculate the bidding space for the Fireball eSports game based on the predicted data; The output percentage of thermal power at each moment is calculated based on the thermal power bidding space and the power generation data. Calculate thermal power generation time-series ramp-up data based on the power generation data; The predicted data, the thermal power bidding space, the thermal power output ratio at each time moment, and the thermal power time-series ramp-up data are input into the prediction model set to obtain the predicted electricity price sequence.
[0034] In the actual electricity market, there is a significant correlation between spot electricity prices and the bidding space for thermal power. A larger bidding space for thermal power indicates a higher dependence of the system on thermal power output, a greater likelihood that marginal thermal power units will determine spot electricity prices, and a tendency for prices to rise. Conversely, if renewable energy output is abundant, the bidding space for thermal power is compressed, and electricity prices tend to fall. The impacts of load forecasting, power transmission plans, and predicted renewable energy output on electricity prices are not independent linear additives, but rather exhibit complex interactions at different times and under different supply and demand conditions. For example, in high-load scenarios, if renewable energy output is also high, the actual electricity price may still be low. A single model cannot effectively identify such nonlinear coupling relationships from historical data. Furthermore, renewable energy output forecasting itself has significant errors, which are amplified by a single model, further increasing the forecasting bias and resulting in low forecast accuracy.
[0035] To this end, this application's embodiments calculate the thermal power bidding space, the hourly output ratio of thermal power, and the time-series ramp-up data of thermal power from multi-source operational data, including power generation data and forecast data. These physical characteristics are used as inputs to a set of prediction models to enhance the model's ability to perceive the electricity price formation mechanism. Specifically, the thermal power bidding space reflects the output scale required by thermal power to meet system load and power transmission demands, and is a key factor determining the spot electricity price level. The hourly output ratio of thermal power reflects the load factor level of thermal power units at the current moment, influencing the bidding strategy of marginal thermal power units. The time-series ramp-up data of thermal power reflects the rate of change in thermal power output, characterizing the urgency of the system's demand for regulatory resources, which will be transmitted to the spot electricity price.
[0036] Specifically, the bidding space for thermal power generation is calculated based on the regional load forecast, regional power transmission plan, and regional renewable energy forecast output from the forecast data. That is, thermal power generation bidding space = regional load forecast + regional power transmission plan. Regional new energy power output forecast.
[0037] The percentage of thermal power output at any given time is calculated based on the thermal power bidding space and the total regional thermal power capacity in the power generation data. That is, the percentage of thermal power output at any given time = thermal power bidding space / total regional thermal power capacity.
[0038] The thermal power time-series ramp-up data is calculated based on the real-time output of market-based thermal power in the power generation data, i.e., thermal power time-series ramp-up data = real-time output value of thermal power at the current moment. The real-time output value of thermal power plants at the previous moment.
[0039] After determining the thermal power bidding space, the hourly output ratio of thermal power, and the time-series ramp-up data of thermal power, the regional load forecast, regional power transmission plan, regional new energy forecast output, thermal power bidding space, hourly output ratio of thermal power, and time-series ramp-up data of thermal power are used as independent variables input into the prediction model set. The historical spot electricity price is used as the dependent variable of the prediction model set. That is, based on the mapping relationship between the above independent variables and dependent variables, the prediction model set outputs the predicted electricity price sequence for each time in the future time domain.
[0040] It should be noted that all data in the aforementioned input prediction model set are time-labeled, meaning each data point corresponds to a specific time. All input data are organized chronologically, with each input data point forming a one-to-one correspondence with the spot electricity price label at that time. This allows the prediction model to learn the mapping pattern between different input data points and electricity prices at the same time, rather than inputting a mixture of data from different times. The output of the prediction model set is a sequence of predicted electricity prices for each time point in the future time domain. Each predicted electricity price value in this sequence is associated with its corresponding future time point to maintain the alignment of the prediction results in the time dimension.
[0041] This application's embodiments introduce physical characteristics reflecting the supply and demand state of the power system, such as the electricity price space, as input to the prediction model. This enables the prediction model to perceive the physical mechanism of electricity price formation, rather than relying solely on the time series patterns of electricity prices themselves, thereby improving the accuracy of electricity price prediction and providing reliable pricing signals for the subsequent optimization of charging and discharging strategies.
[0042] In one embodiment of this application, the prediction model set includes multiple prediction models. The step of inputting the prediction data, the thermal power bidding space, the time-by-time output ratio of thermal power, and the thermal power time-series ramp-up data into the prediction model set to obtain the predicted electricity price sequence includes: Each prediction model predicts the electricity price at each time in the future time domain based on the prediction data, the thermal power bidding space, the thermal power output ratio at each time moment, and the thermal power time-series ramp-up data, thus obtaining the prediction results of each prediction model for each time in the future time domain. The predicted electricity price sequence is obtained by averaging and concatenating the prediction results of each prediction model at the same time.
[0043] In the embodiments of this application, the prediction model set includes multiple prediction models, each of which predicts the electricity price at each time in the future time domain based on the input data.
[0044] In one embodiment, the prediction model set includes, but is not limited to, various machine learning models such as Random Forest, Extreme Gradient Boosting (XGBoost), and LightGBM. Among them, the Random Forest model, by constructing multiple decision trees and integrating their prediction results, exhibits strong data adaptability and resistance to overfitting; the Extreme Gradient Boosting model, through a gradient boosting strategy, progressively corrects prediction biases and has advantages in handling high-dimensional nonlinear data in industrial scenarios; the LightGBM model employs a histogram-based decision tree learning algorithm, characterized by high training efficiency and low memory consumption.
[0045] To further improve prediction accuracy, the aforementioned prediction models employ a multi-stage K-fold cross-validation and multi-layer stacked ensemble strategy during the training phase. Specifically, the historical dataset is divided into K parts. K-1 parts are used for training each time, while the remaining part is used for validation. This process is repeated K times, ensuring that each part serves as the validation set. The validation results are then averaged and concatenated to form a prediction result with the same number of samples as the original dataset. This strategy effectively utilizes limited historical data and reduces the random bias introduced by a single data partitioning method. Furthermore, during model training, the models employ the L1 loss function (RMSE) as the optimization objective to ensure gradient stability during training.
[0046] Before inputting the above data into the prediction model for training, the historical dataset needs to be preprocessed. During preprocessing, missing values in the historical dataset can be filled using mean imputation, and numerical features can be normalized to eliminate the influence of units.
[0047] Specifically, each prediction model employs the DenseBlock method and the Batch Normalization method during feature selection and model training. The DenseBlock method retains all previous features in each layer of the neural network model to alleviate the problem of information loss during feature transfer. The Batch Normalization method standardizes the distribution of each batch of training data, making the model training process faster and more stable, and avoiding the problem of data skew in subsequent layers due to the data distribution shift in a certain layer.
[0048] In one embodiment, the original dataset is preprocessed to obtain a standardized dataset (X, Y), where X is the input feature set and Y is the corresponding electricity price tag. The prediction model set M contains three prediction models: random forest, extreme gradient boosting, and distributed gradient boosting, with L stacking layers. In each stacking layer, multiple repeated K-fold cross-validation processes are performed. Specifically, the preprocessed dataset is randomly divided into K subsets of similar size. Each time, K-1 subsets are selected as the training set, and the remaining subset is used as the validation set. This process is repeated K times, ensuring that each subset has one opportunity to serve as the validation set. In each fold of each cross-validation step, the training set is used to train each prediction model in the prediction model set M. Then, the trained models are used to predict the validation set, and the prediction results of each model are recorded. This K-fold cross-validation process is repeated multiple times to reduce the random bias caused by random partitioning. The arithmetic mean of the prediction results from multiple repetitions is taken to obtain the prediction value of each model on the validation set in that layer. The prediction values of each model are used as new features and concatenated with the original dataset to form an expanded dataset for stacking in the next layer.
[0049] Repeat the above process until the preset number of stacking layers L is reached. In the last stacking layer, the expanded dataset is used as input to train the final meta-model or the prediction results of each model are weighted and fused to output the final predicted electricity price sequence. Through multi-layer stacking integration, each layer further corrects the bias based on the prediction results of the previous layer, thereby improving the prediction accuracy layer by layer.
[0050] After obtaining the prediction results of each prediction model for each time point in the future time domain, the prediction results of multiple prediction models at the same time point are averaged to obtain the fused predicted electricity price for that time point. The fused predicted electricity prices for each time point in the future time domain are then concatenated in chronological order to form a complete predicted electricity price sequence. The averaging operation suppresses the interference of extreme prediction values from a single model on the final result, and the concatenation operation organizes the predicted electricity prices for each time point into a sequence, facilitating subsequent rolling optimization steps.
[0051] This application's embodiments integrate multiple prediction models and employ a K-fold cross-validation strategy to combine the predictive advantages of each model and suppress the tendency of a single model to overfit specific data features. Through L1 loss function, mean interpolation, and normalization preprocessing, the model's resilience to data quality fluctuations is enhanced. Furthermore, dense block and batch normalization methods further improve the stability of model training and the sufficiency of feature extraction, enabling the prediction model set to stably output accurate and reliable predicted electricity price sequences.
[0052] In one embodiment of this application, the multi-source operational data includes constraint data and energy storage data, and the step of determining multiple charge-discharge power sequences based on the predicted electricity price sequence and the multi-source operational data includes: Construct constraints based on the constraint data and the energy storage data; Extract the energy storage charge state at the current control moment from the energy storage data; Based on the predicted electricity price sequence and the energy storage charge state at the current control moment, determine multiple charging and discharging powers within the constraints at each time point in the future time domain, and obtain multiple charging and discharging power sequences corresponding to the future time domain.
[0053] In this embodiment, the charging and discharging power of the energy storage system is limited by various boundary conditions and cannot be arbitrarily selected. Therefore, it is necessary to construct constraints based on grid-side constraints such as the transmission capacity limit of the wind farm's transmission line and the allowable range of node voltage in the constraint data, as well as energy storage-specific constraints such as the rated maximum charging and discharging power, the upper and lower limits of the state of charge operation, and the maximum allowable number of daily charging and discharging cycles in the energy storage data, to serve as the feasible domain boundary for subsequent charging and discharging power values.
[0054] Specifically, the constraints include total line output constraints, energy storage operation constraints, dynamic and boundary constraints of energy storage state of charge, energy storage power boundary constraints, and daily maximum equivalent charge and discharge cycles constraints.
[0055] The total output of the line is constrained to be 0 ≤ P_wind(t+k) + P(t+k) ≤ min(P_line_max, P_AGC), where P_wind(t+k) is the original output of the wind farm at time t+k, P(t+k) is the energy storage charging and discharging power at time t+k (discharging is positive and charging is negative), P_line_max is the transmission capacity limit of the wind farm's transmission line in the constraint data, and P_AGC is the AGC active power control command value. This constraint ensures that the total output of the wind farm and energy storage combined does not exceed the upper limit of the line capacity and the dispatch command.
[0056] The energy storage operation constraints include the state of charge dynamic equation SOC(t+k+1)=SOC(t+k)-(P_dis(t+k) / η-P_ch(t+k)×η)×Δt / Capacity, where SOC(t+k) is the state of charge at time t+k, P_dis(t+k) and P_ch(t+k) are the discharge power and charging power at time t+k, respectively, η is the charge and discharge efficiency, Δt is the control step size, and Capacity is the rated energy storage capacity; The state of charge boundary constraint is SOC_min≤SOC(t+k)≤SOC_max, where SOC_min and SOC_max are the upper and lower limits of the state of charge operation in the energy storage data, with SOC_min preferably being 10% and SOC_max preferably being 100%. The power boundary constraint is 0≤P(t+k)≤P_rated_max, where P_rated_max is the rated maximum charge and discharge power in the energy storage data; Based on the maximum permissible charge-discharge cycle count per day in the energy storage data, the daily maximum equivalent charge-discharge count is constrained to no more than a times, preferably a is 5.
[0057] It should be noted that in the above constraints, t is the current control time, k is the control cycle number advancing into the future from the current time, the value range of k is [1, Np], Np is the prediction time domain step size, representing the total number of future control cycles covered from the current time, the duration of each control cycle is Δt, and the future time domain is represented as [t+1, t+Np], that is, from the next control cycle from the current time to the end of the Np-th future control cycle.
[0058] After determining the feasible region, the state of charge (SOC) of the energy storage at the current control moment is extracted from the energy storage data as the starting point for generating the charge and discharge power sequence. This starting point is used to determine the available charge and discharge capacity at each moment under the current state. The higher the SOC, the larger the available discharge capacity and the smaller the available charge capacity; the lower the SOC, the larger the available charge capacity and the smaller the available discharge capacity.
[0059] Based on the predicted electricity price sequence and the available charging / discharging capacity information provided by the current State of Charge (SOC), the charging / discharging power at each time point in the future is taken multiple times within the feasible region of the constraints, generating multiple candidate charging / discharging power sequences. For example, discharging power is tended to be allocated during periods of higher electricity prices, while charging power is tended to be allocated during periods of lower electricity prices. Simultaneously, the charging / discharging power is adjusted according to the current SOC to avoid situations where discharging is impossible due to low SOC during periods of high electricity prices, or charging is impossible due to high SOC during periods of low electricity prices. Each candidate charging / discharging power sequence is a feasible solution that satisfies all constraints and includes the charging / discharging power values corresponding to each time point in the future time domain.
[0060] This application embodiment constructs multi-dimensional constraints including the grid side and the energy storage body side, limiting the energy storage charging and discharging power within a safe and feasible physical boundary. This avoids the problem of control command exceeding the limit caused by ignoring the line capacity or SOC boundary in the prior art. By extracting the current SOC as the starting point and generating multiple candidate power sequences in the feasible region based on the relationship between high and low electricity prices, it provides a sufficient and safe constraint-satisfied solution space for subsequent economic optimization.
[0061] In one embodiment of this application, the step of solving a pre-constructed objective function based on the predicted electricity price sequence and multiple charging and discharging power sequences to obtain the charging and discharging strategy of the wind farm includes: Using the operating revenue of the wind farm at each time point in the future time domain as the solution objective, the objective function is solved based on the predicted electricity price sequence and multiple charging and discharging power sequences to obtain the corresponding operating revenue. Based on the operating revenue corresponding to each charging and discharging power sequence, a target charging and discharging power sequence is determined among multiple charging and discharging power sequences. The charging and discharging strategy is determined based on the multi-source operating data, the predicted electricity price sequence, and the target charging and discharging power sequence.
[0062] In this embodiment, the objective function is expressed as follows:
[0063] Where R is the cumulative operating revenue of the wind farm in the future time domain [t+1, t+Np], P_dis(t+k) is the discharge power of the k-th control cycle, P_ch(t+k) is the charging power of the k-th control cycle, P(t+k) is the energy storage charging and discharging power at time t+k, λ(t+k) is the predicted electricity price of the k-th control cycle, Δt is the control step size, and η is the charging and discharging efficiency.
[0064] After obtaining the operational benefits corresponding to multiple candidate charge-discharge power sequences, the sequence with the largest total operational benefit is selected as the target charge-discharge power sequence based on the criterion of maximizing benefits. This target charge-discharge power sequence serves as one of the bases for generating the charge-discharge strategy for the future time domain at the current control moment. Specifically, the final charge-discharge strategy is determined based on multi-source operational data, predicted electricity price sequences, and the target charge-discharge power sequence.
[0065] The embodiments of this application use an objective function to quantify the benefits of each candidate charge-discharge power sequence, and select the optimal strategy from multiple candidate schemes based on the criterion of maximizing benefits, so that the final determined charge-discharge strategy achieves economic optimality while satisfying all safety constraints.
[0066] In one embodiment of this application, determining the charging and discharging strategy based on the multi-source operating data, the predicted electricity price sequence, and the target charging and discharging power sequence includes: The first charging and discharging strategy is determined based on the constraint data in the multi-source operating data. Based on the energy storage data in the multi-source operation data and the predicted electricity price sequence, peak, flat and valley divisions are performed for each time point in the future time domain, the division result corresponding to each time point is determined, and a second charging and discharging strategy is determined based on multiple division results and the target charging and discharging power sequence. The third charging and discharging strategy is determined based on the static peak-valley period at each moment in the future time domain. The charging and discharging strategy is determined based on the first charging and discharging strategy, the second charging and discharging strategy, and the third charging and discharging strategy.
[0067] In this embodiment, a hierarchical decision-making mechanism is adopted to generate the final charging and discharging strategy from a safety constraint layer, an economic optimization layer, and a basic rule layer. The first charging and discharging strategy corresponds to the safety constraint layer, the second to the economic optimization layer, and the third to the basic rule layer. These three layers arbitrate sequentially according to priority, ultimately outputting a charging and discharging strategy that satisfies all constraints.
[0068] The first charging and discharging strategy is determined based on the transmission capacity limits of wind farm outgoing lines and the allowable range of node voltages in the constraint data. Specifically, when the line transmission capacity is close to the upper limit, the first charging and discharging strategy forcibly prohibits energy storage discharge or forces energy storage charging to reduce the total output of the line and prevent line overload; when the node voltage is below the lower limit, the first charging and discharging strategy forces energy storage discharge to support the voltage and ensure the safe operation of the power grid. The instructions generated by this strategy are mandatory instructions and have the highest priority.
[0069] The second charging / discharging strategy is determined based on the current state of charge (SOC) of the energy storage and the predicted electricity price sequence from the energy storage data. Specifically, firstly, the time periods in the future time domain are dynamically divided into peak, flat, and valley periods according to the predicted electricity price sequence. The times with the highest predicted electricity price (ranked in the top digits) are designated as dynamic peak periods, the times with the lowest predicted electricity price (ranked in the bottom digits) as dynamic valley periods, and the remaining times as normal periods. Then, the division results are corrected based on the current SOC. If the current SOC is below a first preset threshold, discharging is not performed during the dynamic peak period to avoid insufficient discharge in subsequent periods; if the current SOC is above a second preset threshold, charging is not performed during the dynamic valley period to avoid excessive charge in subsequent periods. Finally, based on the corrected peak-flat-valley division results and the target charging / discharging power sequence, corresponding charging / discharging power values are matched within each time period to form the second charging / discharging strategy. For example, discharging power is allocated during dynamic peak periods, charging power is allocated during dynamic valley periods, and multi-objective optimization (such as maintaining the current SOC or standby) is performed during normal periods. This strategy aims to maximize revenue and has a lower priority than the first charging / discharging strategy. Wherein, Δt is preferably 15min, Np is preferably 8, the preset number of bits is preferably 2, the first preset threshold is preferably 30%, and the second preset threshold is preferably 90%.
[0070] The third charging and discharging strategy is determined based on a preset static peak-valley time period division. Specifically, the static peak-valley time period is a fixed time period division pre-set according to historical electricity price patterns. It is not dynamically adjusted according to the actual electricity price trend of the day. The default charging and discharging instructions are directly generated according to the static division results, namely, discharging during static peak hours, charging during static valley hours, and standing by during static normal hours. This ensures that the system has an executable charging and discharging strategy under any circumstances. This strategy serves as a backup plan and has the lowest priority.
[0071] After determining the first, second, and third charging / discharging strategies, arbitration is conducted step-by-step according to the priority order of safety constraint layer over economic optimization layer, and economic optimization layer over basic rule layer: if the first charging / discharging strategy has a mandatory command output, the first charging / discharging strategy is directly adopted as the final charging / discharging strategy; if the first charging / discharging strategy has no mandatory command output, the second charging / discharging strategy is adopted as the final charging / discharging strategy; if the second charging / discharging strategy has no explicit command output, such as during normal periods and without electricity price signals, the third charging / discharging strategy is adopted as the final charging / discharging strategy.
[0072] It should be noted that the generation processes of the first, second, and third charging / discharging strategies described above are only used to illustrate the generation methods of different strategies and do not imply that all three strategies must exist simultaneously at every control moment. In actual operation, if a certain layer has no corresponding instruction output, such as the safety constraint layer not triggering mandatory conditions or the economic optimization layer being in a normal period without a clear electricity price signal, then the corresponding strategy for that layer is empty, and the strategy of the next lower layer is directly used as the final output.
[0073] This application embodiment uses a hierarchical decision-making mechanism consisting of a safety constraint layer, an economic optimization layer, and a basic rule layer. Under the premise of ensuring the safe operation of the power grid, it prioritizes maximizing economic benefits and provides a fallback strategy when there are no clear safety or economic signals, so that the energy storage system has executable charging and discharging commands under all operating conditions.
[0074] In one embodiment of this application, after controlling the charging or discharging of the wind farm based on the charging and discharging strategy, the method further includes: Obtain actual charging and discharging power and actual spot electricity price; The actual arbitrage profit of the wind farm is calculated based on the actual charging and discharging power and the actual spot electricity price. The actual arbitrage profit is compared with the operating profit obtained based on the objective function to obtain the comparison result; Adjust the model parameters of each prediction model in the prediction model set based on the comparison results.
[0075] In this embodiment, after the energy storage system executes the charging and discharging strategy, it generates actual charging and discharging power, and at the same time, the electricity market also generates an actual spot electricity price. In order to evaluate the actual execution effect of the strategy within the current control cycle, it is necessary to obtain the above-mentioned actual data, and calculate the actual arbitrage profit based on the actual charging and discharging power and the actual spot electricity price, using the same calculation method as the objective function.
[0076] In actual operation, there may be a deviation between the predicted electricity price and the actual electricity price. This deviation may stem from factors such as errors in the prediction of renewable energy output, load fluctuations, or changes in market supply and demand. To quantify the impact of this deviation on revenue, the calculated actual arbitrage revenue is compared with the predicted operating revenue obtained from solving the objective function at the previous control time, thus obtaining the revenue deviation. When the absolute value of the revenue deviation exceeds a preset threshold, it indicates that the prediction accuracy of the current prediction model set can no longer meet the operational requirements, and the model parameters in the prediction model set need to be corrected.
[0077] Specifically, newly generated actual data within the current control cycle, including actual charging and discharging power, actual spot electricity prices, and corresponding multi-source operational data, are added to the historical training dataset. This data is then used to incrementally train or fine-tune each model in the prediction model set, enabling the models to adapt to the latest electricity price trends. After parameter adjustments, the prediction model set is updated for electricity price prediction in subsequent control cycles.
[0078] This application's embodiments compare actual arbitrage profits with predicted operating profits and trigger model parameter adjustments when the deviation exceeds a threshold, thereby achieving continuous updating and optimization of the prediction model set. This enables the model to adapt to changes in electricity price trends, avoiding the continuous accumulation of prediction deviations due to model rigidity, and thus ensuring the long-term accuracy of electricity price prediction and the economic efficiency of the charging and discharging strategy under the rolling optimization framework.
[0079] It should be noted that after the charging and discharging strategy is executed at each control time t, only the charging and discharging strategy for the current control time is executed, and strategies for other times are not executed. When the next control time t+1 arrives, the latest actual electricity price, thermal power output, energy storage state of charge, and other state data are acquired. Based on the updated multi-source operating data, the complete process of electricity price prediction, charging and discharging power sequence determination, objective function solution, and charging and discharging strategy generation is re-executed, forming a continuous rolling closed loop of prediction, execution, feedback, and re-prediction, enabling the charging and discharging strategy to be updated in real time with changes in electricity price trends and system state.
[0080] Based on actual data calculations, the wind farm charging and discharging control method provided in this application achieves a 96% accuracy rate in predicting high electricity price periods. Compared to traditional fixed-time charging and discharging strategies, the charging and discharging strategy generated based on this prediction result increases the spot market arbitrage profit of the energy storage system by 31%. Furthermore, because this application fully considers the energy storage state-of-charge boundary constraints and the daily maximum allowable charge-discharge cycle constraints during the decision-making process, the average daily equivalent full charge-discharge cycle count for a single energy storage system does not exceed 2 times, effectively avoiding overcharging and discharging of the energy storage battery, delaying battery life degradation, and verifying the effectiveness of the proposed method in terms of prediction accuracy, profit improvement, and battery life protection.
[0081] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of this application are not limited to the described order of actions, because according to the embodiments of this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of this application.
[0082] This application also provides a storage medium that stores computer instructions. When the computer executes the computer instructions, it is used to execute the various processes of the above-described wind farm charging and discharging control method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0083] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0084] This application also provides an electronic device, including a processor 2010, a memory 209, and a program or instructions stored in the memory 209 and executable on the processor 2010. When the program or instructions are executed by the processor 2010, they implement the various processes of the above-described wind farm charging and discharging control method embodiments and achieve the same technical effects. To avoid repetition, they will not be described again here.
[0085] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0086] Figure 2 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0087] The electronic device 200 includes, but is not limited to, components such as: radio frequency unit 201, network module 202, audio output unit 203, input unit 204, sensor 205, display unit 206, user input unit 207, interface unit 208, memory 209, and processor 2010.
[0088] Those skilled in the art will understand that the electronic device 200 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 2010 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 2 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0089] This application also provides a computer program product, including a computer program / instruction. When the computer program / instruction is executed by a processor, it implements the various processes of the above-described wind farm charging and discharging control method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0090] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0091] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0092] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A charging and discharging control method for a wind farm, characterized in that, include: Acquire multi-source operational data; The predicted electricity price sequence is determined based on the multi-source operating data and the pre-built set of prediction models; Multiple charge and discharge power sequences are determined based on the predicted electricity price sequence and the multi-source operation data; Based on the predicted electricity price sequence and multiple charging and discharging power sequences, a pre-constructed objective function is solved to obtain the charging and discharging strategy of the wind farm; The wind farm is controlled to charge or discharge based on the aforementioned charging and discharging strategy.
2. The control method according to claim 1, characterized in that, The multi-source operational data includes power generation data and forecast data. The step of determining the predicted electricity price sequence based on the multi-source operational data and a pre-built set of forecast models includes: Calculate the bidding space for the Fireball eSports game based on the predicted data; The output percentage of thermal power at each moment is calculated based on the thermal power bidding space and the power generation data. Calculate thermal power generation time-series ramp-up data based on the power generation data; The predicted data, the thermal power bidding space, the thermal power output ratio at each time moment, and the thermal power time-series ramp-up data are input into the prediction model set to obtain the predicted electricity price sequence.
3. The control method according to claim 2, characterized in that, The prediction model set includes multiple prediction models. The prediction data, the thermal power bidding space, the time-by-time output ratio of thermal power, and the thermal power time-series ramp-up data are input into the prediction model set to obtain the predicted electricity price sequence, including: Each prediction model predicts the electricity price at each time in the future time domain based on the prediction data, the thermal power bidding space, the thermal power output ratio at each time moment, and the thermal power time-series ramp-up data, thus obtaining the prediction results of each prediction model for each time in the future time domain. The predicted electricity price sequence is obtained by averaging and concatenating the prediction results of each prediction model at the same time.
4. The control method according to claim 1, characterized in that, The multi-source operational data includes constraint data and energy storage data. The step of determining multiple charge / discharge power sequences based on the predicted electricity price sequence and the multi-source operational data includes: Construct constraints based on the constraint data and the energy storage data; Extract the energy storage charge state at the current control moment from the energy storage data; Based on the predicted electricity price sequence and the energy storage charge state at the current control moment, determine multiple charging and discharging powers within the constraints at each time point in the future time domain, and obtain multiple charging and discharging power sequences corresponding to the future time domain.
5. The control method according to claim 4, characterized in that, The step of solving a pre-constructed objective function based on the predicted electricity price sequence and multiple charging and discharging power sequences to obtain the charging and discharging strategy of the wind farm includes: Using the operating revenue of the wind farm at each time point in the future time domain as the solution objective, the objective function is solved based on the predicted electricity price sequence and multiple charging and discharging power sequences to obtain the corresponding operating revenue. Based on the operating revenue corresponding to each charging and discharging power sequence, a target charging and discharging power sequence is determined among multiple charging and discharging power sequences. The charging and discharging strategy is determined based on the multi-source operating data, the predicted electricity price sequence, and the target charging and discharging power sequence.
6. The control method according to claim 5, characterized in that, The step of determining the charging and discharging strategy based on the multi-source operating data, the predicted electricity price sequence, and the target charging and discharging power sequence includes: The first charging and discharging strategy is determined based on the constraint data in the multi-source operating data. Based on the energy storage data in the multi-source operation data and the predicted electricity price sequence, peak, flat and valley divisions are performed for each time point in the future time domain, the division result corresponding to each time point is determined, and a second charging and discharging strategy is determined based on multiple division results and the target charging and discharging power sequence. The third charging and discharging strategy is determined based on the static peak-valley period at each moment in the future time domain. The charging and discharging strategy is determined based on the first charging and discharging strategy, the second charging and discharging strategy, and the third charging and discharging strategy.
7. The control method according to claim 1, characterized in that, After controlling the charging or discharging of the wind farm based on the charging and discharging strategy, the method further includes: Obtain actual charging and discharging power and actual spot electricity price; The actual arbitrage profit of the wind farm is calculated based on the actual charging and discharging power and the actual spot electricity price. The actual arbitrage profit is compared with the operating profit obtained based on the objective function to obtain the comparison result; Adjust the model parameters of each prediction model in the prediction model set based on the comparison results.
8. A storage medium, characterized in that, The storage medium stores computer instructions, which, when executed by the computer, are used to perform a charging and discharging control method for a wind farm as described in any one of claims 1-7.
9. An electronic device, characterized in that, Includes at least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform a wind farm charging and discharging control method as described in any one of claims 1-7.
10. A computer program product, comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement a charging and discharging control method for a wind farm as described in any one of claims 1-7.
