A power system virtual power plant construction and operation platform

By constructing a virtual power plant operation platform for the power system, integrating data acquisition, market environment forecasting, and reinforcement learning modules, the problems of inaccurate forecasting and insufficient feedback in traditional virtual power plant operation have been solved. This has enabled accurate forecasting and dynamic strategy optimization of the power market, improving operational efficiency and economic benefits.

CN123180858APending Publication Date: 2026-11-27JIAOZUO POWER SUPPLY COMPANY OF STATE GRID HENAN ELECTRIC POWER
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Traditional virtual power plant operation and management lacks flexibility and adaptability, making it difficult to accurately predict electricity market prices and load demand. It also lacks a real-time market feedback mechanism, affecting operational efficiency and economic benefits. Furthermore, the user interface is not intuitive.

Method used

A virtual power plant construction and operation platform for the power system is constructed, which integrates modules for data acquisition and preprocessing, market environment forecasting, reinforcement learning decision-making, strategy execution and feedback, evaluation and optimization, as well as platform interaction and visualization. Deep Q-network (DQN) is used for price and load demand forecasting and dynamic trading strategy optimization.

Benefits of technology

It enables accurate forecasting of electricity market prices and load demand, improves the operational efficiency and economic benefits of virtual power plants, enhances adaptability and competitiveness, provides an intuitive user interface, and supports multi-terminal access and data sharing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123180858A_ABST
    Figure CN123180858A_ABST
Patent Text Reader

Abstract

The application discloses a kind of power system virtual power plant construction and operation platform, it is related to power system technical field, the platform includes data acquisition and pretreatment module, market environment prediction module, reinforcement learning core module, strategy execution and feedback module, evaluation and optimization module and platform interaction and visualization module;The application realizes the accurate prediction of power market price trend and load demand and dynamic transaction strategy optimization by constructing the prediction model of fusion price and load demand, and combining reinforcement learning module, improves the operation efficiency and economic benefit of virtual power plant, by market environment prediction module, the application can make full use of historical data, accurately predict the power market price and load demand using advanced machine learning algorithms, provide strong support for virtual power plant transaction strategy formulation, at the same time, reinforcement learning module can dynamically adjust transaction strategy according to real-time market feedback and prediction error.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power system technology, specifically to a platform for constructing and operating virtual power plants in power systems. Background Technology

[0002] With the accelerated global energy transition and the continuous development of smart grid technology, virtual power plants, as an emerging energy management approach, are gradually becoming an important component of the power system. Virtual power plants integrate and optimize distributed energy resources, such as solar, wind, and energy storage systems, to achieve efficient energy utilization and supply-demand balance. However, the operation and management of virtual power plants face many challenges, such as fluctuations in electricity market prices, uncertainty in load demand, and the diversity of distributed energy resources. Therefore, developing a virtual power plant construction and operation platform that can accurately predict electricity market price trends and load demand, and dynamically adjust trading strategies based on real-time market feedback, has significant practical implications and application value.

[0003] Traditional technologies have many shortcomings in the operation and management of virtual power plants. On the one hand, traditional technologies often adopt rule-based or experience-based trading strategies, which are difficult to adapt to complex and ever-changing market environments. This approach lacks flexibility and adaptability, making it difficult to accurately predict electricity market prices and load demand, thus affecting the operational efficiency and economic benefits of virtual power plants. On the other hand, traditional technologies lack effective real-time market feedback mechanisms, making it impossible to adjust trading strategies in a timely manner according to market changes, which puts virtual power plants at a disadvantage in market competition. In addition, traditional technologies also lack intuitive user interfaces and visualization methods, making it difficult for operation and management personnel to intuitively understand the operating status and trading situation of virtual power plants.

[0004] Therefore, developing a virtual power plant construction and operation platform for power systems will help improve the operational efficiency and economic benefits of virtual power plants, and promote the development of energy transition and smart grid technology. Summary of the Invention

[0005] The purpose of this invention is to overcome the shortcomings of existing technologies and provide a virtual power plant construction and operation platform for power systems. This platform integrates modules for data acquisition and preprocessing, market environment prediction, reinforcement learning decision-making, strategy execution and feedback, evaluation and optimization, as well as platform interaction and visualization. By constructing a prediction model that integrates price and load demand, and combining it with the reinforcement learning algorithm of Deep Q Network (DQN), it achieves accurate prediction of electricity market price trends and load demand, as well as dynamic optimization of trading strategies.

[0006] To solve the above-mentioned technical problems, the present invention provides the following technical solution: a virtual power plant construction and operation platform for power systems, the platform including a data acquisition and preprocessing module, a market environment prediction module, a reinforcement learning core module, a strategy execution and feedback module, an evaluation and optimization module, and a platform interaction and visualization module;

[0007] The data acquisition and preprocessing module collects electricity market prices, load demand information, operating status of various components of the virtual power plant, meteorological data, and energy storage status information from the electricity market trading platform, power grid monitoring system, and the distributed energy resource management system, energy storage system monitoring device, and smart meters inside the virtual power plant. It uses data cleaning technology to remove outliers, filtering technology to smooth fluctuating data, and normalization technology to unify the dimensions.

[0008] The market environment prediction module: Based on the preprocessed data, it constructs a prediction model that integrates price and load demand, uses historical data for model training to optimize model parameters, and uses cross-validation to prevent overfitting.

[0009] The reinforcement learning module: uses a deep Q-network (DQN) to construct a virtual power plant trading strategy decision model, calculates the prediction error and trend of market price and load demand through the prediction model, adjusts the reward function of the reinforcement learning algorithm according to the error trend and error magnitude, outputs a trading strategy according to the reward function of the reinforcement learning algorithm, and optimizes the output trading strategy.

[0010] The strategy execution and feedback module executes the optimized trading strategy generated by the reinforcement learning module in the actual electricity market, interacts with other market participants, realizes electricity trading in the virtual power plant, collects real-time market feedback information during the trading execution process, including but not limited to transaction price, transaction volume, and market price fluctuations, and feeds this information back to the reinforcement learning module and the market environment prediction module to optimize the market environment prediction module and the reinforcement learning module.

[0011] The evaluation and optimization module: Based on a preset evaluation index system, it comprehensively evaluates the performance of the virtual power plant's trading strategy. The evaluation indexes include, but are not limited to, economic benefit indicators, market risk indicators, and operational stability indicators. Based on the evaluation results, it further optimizes and adjusts the parameters of the reinforcement learning model, the parameters of the market environment prediction model, and the operation strategy of the virtual power plant.

[0012] The platform's interaction and visualization module provides a convenient and user-friendly interface for operation and management personnel, supports multi-terminal access, and uses line charts, bar charts, and GIS visualization methods to display the virtual power plant's operating status, transaction status, and evaluation results. It also allows manual intervention in operating parameters and supports data export and sharing.

[0013] Furthermore, the formula for constructing the price prediction model in the market environment prediction module is as follows: ,in, yes Price forecast at any given time is the actual price at time t, and a, b, c, d are model parameters. This is the weighting coefficient, and T is the period of price fluctuation. It is a phase parameter.

[0014] Furthermore, the formula for constructing the load demand forecasting model in the market environment forecasting module is as follows: ,in, yes Forecasted load demand at any given time. Here, is the actual load at time t, and e, f, g, h, and k are model parameters. It is the weighting coefficient.

[0015] Furthermore, the training steps for the price prediction model in the market environment prediction module are as follows:

[0016] (1) Extract historical price data sequences from the preprocessed dataset The price data was divided into training, validation, and test sets in a 7:2:1 ratio.

[0017] (2) Create the price prediction model framework using the formula: and initialize the model parameters;

[0018] (3) For each time step t in the training set, input the past price data into the price prediction model to obtain the predicted price. ;

[0019] (4) The mean squared error (MSE) is used as the loss function for the price prediction model, and the formula is: Where N is the number of training samples. It is the time index of the nth training sample;

[0020] (5) Calculate the gradient of the loss function with respect to the model parameters using the backpropagation algorithm, and update the parameters using stochastic gradient descent based on the calculated gradient. The formula is: ,in, It's the learning rate. It is the gradient of the loss function with respect to the old parameters;

[0021] (6) After each training cycle, evaluate the performance of the price prediction model on the validation set, calculate the loss on the validation set, and stop training if the loss on the validation set does not decrease significantly over multiple consecutive cycles.

[0022] (7) Use the test set to evaluate the final price prediction model, calculate the loss and other evaluation metrics on the test set, and measure the model’s performance on unseen data.

[0023] Furthermore, the training steps for the load demand forecasting model are as follows:

[0024] (1) Extract historical load demand data sequences from the preprocessed dataset. The price data was divided into training, validation, and test sets in a 7:2:1 ratio.

[0025] (2) Create the load demand forecasting model architecture using the formula: And randomly initialize the model parameters;

[0026] (3) For each time step t in the training set, input the input data into the load demand prediction model to obtain the predicted load demand. ;

[0027] (4) The mean squared error (MSE) is used as the loss function for the load demand forecasting model, and the formula is: Where N is the number of training samples. It is the time index of the nth training sample;

[0028] (5) For a single sample Calculate the loss function with respect to the parameters gradient Based on the calculated gradient, the model parameters are updated using stochastic gradient descent, as shown in the formula: ,in For parameters, The learning rate;

[0029] (6) After each training cycle, evaluate the performance of the load demand prediction model on the validation set, calculate the loss evaluation index on the validation set, and stop training if the loss on the validation set does not decrease significantly over multiple consecutive cycles.

[0030] (7) Use the test set to evaluate the final load demand forecasting model, calculate the loss and other evaluation metrics on the test set, and judge the performance of the model on unseen data.

[0031] Furthermore, the trading strategy decision-making model in the reinforcement learning module uses a Deep Q-Network (DQN) as the basic dynamic reinforcement learning algorithm to construct the trading strategy decision-making model for the virtual power plant. The input layer of the model receives key state information of the current electricity market, including but not limited to the current market price. ,past Average market price over a period of time ( Current load demand Available power of each power generation unit within the virtual power plant ( ), Current power of the energy storage system and the current trading session The hidden layer consists of multiple fully connected layers, using ReLU as the activation function to extract and learn complex features and latent patterns from the state information. The number of neurons in the output layer corresponds to the action space dimension of the virtual power plant, and the output value of each neuron represents the expected action to be taken in the current state. Value, action space includes but is not limited to different pricing strategies ( Power allocation scheme ( ) and the charging and discharging operation of energy storage systems The Xavier method is used to initialize the model's weight parameters.

[0032] Furthermore, the reinforcement learning module calculates the prediction errors and trends of market prices and load demand using a prediction model at each decision step. The forecast values ​​for electricity market prices and load demand are obtained from the market environment forecasting module. Simultaneously, the corresponding actual values ​​are obtained from the data acquisition and preprocessing module. Calculate price forecast error and load forecasting error Calculation of price forecast error: Calculation of load forecasting error: Calculate the error magnitude index The formula is: Calculate the rate of change of error The formula is: , Used to measure the trend of error change; a positive value indicates that the error is increasing, and a negative value indicates that the error is decreasing.

[0033] Furthermore, the reinforcement learning module adjusts the reward function based on the error magnitude, according to the error magnitude index. Set three error ranges: low error range ( , Mean error range ( ) and high error range ( ),in and As a threshold, in the low error range, the reward function The main focus is on improving the revenue and market share of virtual power plants, as shown in the formula: ,in , and It is the reward coefficient, and , , , It is the profit of the virtual power plant at the current decision-making step. This represents the current market share; within the mean error range, the reward weight for profit growth is reduced, while the reward for strategy stability and flexibility is increased, as shown in the formula: ,in , , and For the corresponding reward coefficient, and , It is based on the similarity value between the current strategy and the strategies of the previous few decision steps. This value represents the degree of difference between the current strategy and historically used strategies; in the high error range, the focus is on rewarding the risk avoidance and recovery capabilities of the virtual power plant, as shown in the formula: ,in , and It is the reward coefficient, and , It is measured by the percentage reduction in unsold electricity volume and the degree of reduction in price fluctuation risk. It is a value calculated based on the speed at which the virtual power plant recovers from a high-error state to the normal error range.

[0034] Furthermore, the reinforcement learning module adjusts the reward function based on the error change trend: Let... For the preset threshold, when When this happens, an additional reward will be given, and the reward formula is as follows: ,in For the reward coefficient; when When, maintain the current reward function setting; when At times, imposing certain penalties can increase the incentive for exploring new strategies. The calculation formula is: ,in The penalty coefficient is used, and the reward formula is as follows: ,in To explore reward coefficient The degree of difference between the new strategy and historically used strategies.

[0035] Furthermore, the optimization of the output trading strategy in the reinforcement learning module, at each decision step t, is based on the current state. ,use Greedy strategies use probability Select Action Explore new strategy spaces, using probability The action with the highest Q-value predicted by the model is selected using the following formula: ,in It is a random number uniformly distributed in the range [0, 1]. These are the parameters of the DQN model, which determine the selected action. Observe market feedback to determine the next stage. and corresponding rewards , experience tuple The experience tuples are stored in the experience replay buffer, and a batch of experience tuples are randomly sampled from the experience replay buffer periodically. The parameters used to update the DQN model, where, , For batch size, the mean squared error loss function is used to minimize the difference between the target Q-value and the predicted Q-value. The calculation formula is: ,in It is a discount factor. These are the parameters of the target network. The parameters of the online learning network are updated using the backpropagation algorithm to minimize the loss function.

[0036] Compared with existing technologies, this virtual power plant construction and operation platform for power systems has the following advantages:

[0037] I. This invention constructs a predictive model that integrates price and load demand, and combines it with a reinforcement learning module to achieve accurate prediction of electricity market price trends and load demand, as well as dynamic optimization of trading strategies. This improves the operational efficiency and economic benefits of virtual power plants. Through the market environment prediction module, this invention can fully utilize historical data and employ advanced machine learning algorithms to accurately predict electricity market prices and load demand, providing strong support for the formulation of trading strategies for virtual power plants. At the same time, the reinforcement learning module can dynamically adjust trading strategies based on real-time market feedback and prediction errors, ensuring that virtual power plants maintain optimal operating conditions under different market environments.

[0038] Second, this invention further enhances the adaptability and competitiveness of virtual power plants by introducing a dynamic reward function adjustment mechanism based on prediction error and changing trends into the reinforcement learning module. Traditional reinforcement learning algorithms often use fixed reward functions, which are difficult to adapt to complex and ever-changing market environments. However, this invention calculates the prediction errors and changing trends of market prices and load demand, and dynamically adjusts the reward function according to the magnitude of the error and the changing trend. This enables virtual power plants to make optimal decisions under different error states, which not only improves the risk avoidance and recovery capabilities of virtual power plants, but also promotes the stability and flexibility of strategies, laying a solid foundation for the long-term development of virtual power plants in the electricity market.

[0039] Other advantages, objectives and features of the invention will be set forth in part in the description which follows, and in part will be apparent to those skilled in the art from the following examination or study, or may be learned from the practice of the invention. Attached Figure Description

[0040] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are merely some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without any creative effort.

[0041] Figure 1 A schematic diagram of the structure of a virtual power plant construction and operation platform for a power system;

[0042] Figure 2 A flowchart for a virtual power plant construction and operation platform for a power system. Detailed Implementation

[0043] To further illustrate the technical means and effects of the present invention in achieving its intended purpose, the following detailed description of the specific implementation methods, structures, features, and effects of the present invention, in conjunction with the accompanying drawings and preferred embodiments, is provided below.

[0044] Example 1

[0045] Virtual power plant operation under peak-valley electricity pricing scenario

[0046] In a certain region, the electricity market implements a peak-valley pricing policy, and virtual power plants are connected to this electricity market.

[0047] Real-time electricity price information is obtained from the electricity market trading platform, revealing that prices are higher during peak hours (e.g., 8:00-22:00) and lower during off-peak hours (e.g., 22:00-8:00 the next day). Load demand information is obtained from the power grid monitoring system, showing that industrial and commercial electricity demand is high during the day and residential electricity demand is relatively low at night. The operating status of each power generation unit (e.g., solar and wind power generation units) is obtained from the distributed energy resource management system within the virtual power plant, including power generation capacity and equipment fault information. Energy storage status information, such as current power consumption and charging / discharging efficiency, is obtained from the energy storage system monitoring device. The collected data is cleaned to remove obviously erroneous electricity price and load data (e.g., negative electricity prices or loads far exceeding the normal range). Load demand data is smoothed by filtering to avoid excessive data fluctuations affecting forecasts. Normalization techniques are used to unify the dimensions of various data, such as unifying power generation capacity and energy storage capacity to the same order of magnitude.

[0048] The construction of the price prediction model involves extracting historical price data sequences from the preprocessed dataset. The price data is divided into training, validation, and test sets in a 7:2:1 ratio. A price prediction model architecture is then created using the following formula: And initialize the model parameters for each time step in the training set. By inputting past price data into the price prediction model, the predicted price can be obtained. The mean squared error (MSE) is used as the loss function for the price prediction model, and the formula is as follows: ,in, It is the number of training samples. It is the first The time index of each training sample is used to calculate the gradient of the loss function with respect to the model parameters using the backpropagation algorithm. Based on the calculated gradient, the parameters are updated using stochastic gradient descent. The formula is: ,in, It's the learning rate. The gradient of the loss function with respect to the old parameters is used to evaluate the performance of the price prediction model on the validation set after each training cycle. The loss on the validation set is calculated. If the loss on the validation set does not decrease significantly over several consecutive cycles, training is stopped to prevent overfitting. The final price prediction model is evaluated using the test set. The loss on the test set and other evaluation metrics are calculated to measure the model's performance on unseen data.

[0049] The construction of the load demand forecasting model involves extracting historical load demand data sequences from the preprocessed dataset. The price data is divided into training, validation, and test sets in a 7:2:1 ratio. A load demand forecasting model architecture is then created using the following formula: And randomly initialize the model parameters for each time step in the training set. The input data is fed into the load demand forecasting model to obtain the predicted load demand. The mean squared error (MSE) is used as the loss function for the load demand forecasting model, and the formula is as follows: For a single sample Stochastic gradient descent calculates the loss function with respect to the parameters. gradient Based on the calculated gradient, the model parameters are updated using stochastic gradient descent, as shown in the formula: ,in For parameters, The learning rate is used to evaluate the performance of the load demand prediction model on the validation set after each training cycle. The loss evaluation metric on the validation set is calculated. If the loss on the validation set does not decrease significantly over several consecutive cycles, training is stopped. The final load demand prediction model is then evaluated using the test set. The loss and other evaluation metrics on the test set are calculated to determine the model's performance on unseen data.

[0050] Forecasts indicate that peak electricity prices will remain high in the coming week, and daytime load demand will increase further as temperatures rise.

[0051] A Deep Q-Network (DQN) is selected as the basic dynamic reinforcement learning algorithm to construct a trading strategy decision model for a virtual power plant. The input layer of the model receives key state information of the current electricity market, including but not limited to the current market price. ,past Average market price over a period of time ( Current load demand Available power of each power generation unit within the virtual power plant ( ), Current power of the energy storage system and the current trading session The hidden layer consists of multiple fully connected layers, using ReLU as the activation function to extract and learn complex features and latent patterns from the state information. The number of neurons in the output layer corresponds to the action space dimension of the virtual power plant, and the output value of each neuron represents the expected action to be taken in the current state. Value, action space includes but is not limited to different pricing strategies ( Power allocation scheme ( ) and the charging and discharging operation of energy storage systems The model's weight parameters are initialized using the Xavier method. Trading strategies are formulated based on the model. During peak hours, due to high electricity prices and large load demand, the virtual power plant prioritizes full-capacity operation of its internal generation units and appropriately discharges according to the energy storage system status to obtain higher returns.

[0052] The forecasting model calculates the forecasting errors and trends of market prices and load demand at each decision step. The forecast values ​​for electricity market prices and load demand are obtained from the market environment forecasting module. Simultaneously, the corresponding actual values ​​are obtained from the data acquisition and preprocessing module. Calculate price forecast error and load forecasting error Calculation of price forecast error: Calculation of load forecasting error: Calculate the error magnitude index The formula is: According to the error magnitude index Set three error ranges: low error range ( , Mean error range ( ) and high error range ( ),in and The threshold value was calculated to be within the low error range. The reward function focuses on increasing profits. Virtual power plants will actively participate in market transactions and raise prices to obtain more profits. The formula is: Calculate the rate of change of error : The trend of prediction error changes shows that the error is decreasing. Additional rewards are given to encourage continued adherence to the current strategy; the reward formula is as follows: The trading strategy is updated based on the reward formula.

[0053] The output strategy is optimized at each decision step t, based on the current state. ,use Greedy strategies use probability Select Action Explore new strategy spaces, using probability The action with the highest Q-value predicted by the model is selected using the following formula: ,in It is a random number uniformly distributed in the range [0, 1]. These are the parameters of the DQN model, which determine the selected action. Observe market feedback to determine the next stage. and corresponding rewards , experience tuple Experience tuples are stored in an experience replay buffer. When the buffer is full, the oldest experience tuple is discarded. A batch of experience tuples is periodically randomly sampled from the experience replay buffer. The parameters used to update the DQN model, where, , For batch size, the mean squared error loss function is used to minimize the difference between the target Q-value and the predicted Q-value. The calculation formula is: ,in It is a discount factor. These are the parameters of the target network. The parameters of the online learning network are updated through the backpropagation algorithm to minimize the loss function, and the optimized policy is output.

[0054] The established trading strategy is executed in the electricity market, interacting with other power generation companies, electricity sales companies, and other market participants. Feedback information during the execution process is collected, such as transaction price and transaction volume. If the actual transaction price is higher than expected, it indicates that the strategy is effective. Positive information is then fed back to the reinforcement learning module and the market environment prediction module to further optimize the strategy.

[0055] The effectiveness of the trading strategy of the virtual power plant was evaluated based on economic benefit indicators (such as profit and cost), market risk indicators (such as price fluctuation risk), and operational stability indicators (such as power generation stability). The evaluation results showed that the strategy performed well during peak hours, but the charging and discharging strategy of the energy storage system during off-peak hours needed to be optimized. Based on the evaluation results, the parameters of the reinforcement learning model (such as reward coefficient), the parameters of the market environment prediction model (such as weight coefficient), and the operation strategy of the virtual power plant (such as the off-peak energy storage charging and discharging strategy) were adjusted.

[0056] Operations and management personnel can use the platform's interactive and visualization modules to view the changes in power generation and electricity price trends of the virtual power plant over the past week using line charts, and to view the transaction volume of electricity at different times using bar charts. They can also use GIS visualization to view the distribution location and operating status of various distributed energy resources within the virtual power plant. Based on the visualization information, management personnel can identify that the solar power generation units in a certain area have low power generation efficiency at specific times, which may be due to shading issues. They can manually intervene in the operating parameters and adjust the operating strategy of the power generation units in that area (such as adjusting the angle of the solar panels). At the same time, the relevant data can be exported and shared with other departments for further analysis.

[0057] In summary, in the peak-valley electricity pricing scenario, the virtual power plant acquires various types of data through the data acquisition and preprocessing module. After the market environment prediction module uses a prediction model trained with a specific formula to accurately predict electricity prices and load demand, the reinforcement learning module formulates trading strategies based on error calculation and reward functions under different intervals and trends. During peak hours, it actively arranges power generation and discharge to obtain high returns. The strategy execution and feedback module collects trading information in real time and provides feedback for optimization. The evaluation and optimization module adjusts model parameters and operating strategies based on multi-indicator evaluation. The platform interaction and visualization module helps managers view the status in multiple ways, manually intervene, and share data, thus achieving efficient operation of the virtual power plant.

[0058] Example 2:

[0059] Virtual power plant operation in extreme weather scenarios

[0060] In some regions, extreme heat and humidity may occur in the summer, which can have a significant impact on power supply and demand.

[0061] Meteorological data indicates that a sustained period of high temperatures is expected in the coming week, with maximum temperatures reaching over 40℃. Electricity price information obtained from the power market trading platform shows an upward trend in prices due to anticipated increased electricity demand. Load demand information from the power grid monitoring system indicates a significant increase in electricity demand for residential air conditioning equipment during the high temperatures. The operating status of various components, such as the heat dissipation of distributed energy resource generation units and the temperature information of energy storage systems, are obtained from the internal system of the virtual power plant. The collected data is then cleaned, filtered, and smoothed to remove abnormal sensor data that may be caused by high temperatures, ensuring data accuracy.

[0062] Based on the preprocessed data, a price prediction model is constructed, with the following formula: Construct a load demand forecasting model, the formula is: It is predicted that electricity market prices will continue to rise in the coming days due to the high temperatures, and load demand will reach its peak.

[0063] A Deep Q-Network (DQN) dynamic reinforcement learning algorithm is selected as the basis for constructing a trading strategy decision model for a virtual power plant. The model formulates strategies based on prediction results. Due to the impact of high temperatures on power generation unit efficiency, priority is given to operating power generation units with good heat dissipation. Charging and discharging are rationally scheduled according to the energy storage system's capacity and temperature to avoid overheating damage. The prediction model calculates the prediction errors and trends of market prices and load demand at each decision step. The forecast values ​​for electricity market prices and load demand are obtained from the market environment forecasting module. Simultaneously, the corresponding actual values ​​are obtained from the data acquisition and preprocessing module. Calculate price forecast error and load forecasting error Calculation of price forecast error: Calculation of load forecasting error: Calculate the error magnitude index The formula is: Calculate the rate of change of error : The reward function of the reinforcement learning algorithm is adjusted based on the error change trend and the error magnitude, respectively, according to the error magnitude index. Set three error ranges: low error range ( , Mean error range ( ) and high error range ( ),in and The threshold is calculated. Within the mean error range ( The formula is as follows: Reduce the reward weight for profit growth and increase the reward for strategy stability and flexibility. ,in , , and For the corresponding reward coefficient, and , It is based on the similarity value between the current strategy and the strategies of the previous few decision steps. This is a value representing the degree of difference between the current strategy and historically commonly used strategies. The value, in Within the interval, maintain the current reward function settings, update the trading strategy according to the reward formula, output the updated strategy, and optimize the output strategy.

[0064] The system implements trading strategies to cope with high temperatures, engages in electricity trading with other market participants, and collects feedback information in real time during the trading process, such as actual transaction prices, transaction volumes, and market price fluctuations. If it finds that the actual load demand growth rate exceeds expectations, it promptly feeds this information back to the reinforcement learning module and the market environment prediction module so that the strategy can be adjusted.

[0065] The effectiveness of the virtual power plant's operation strategy under high-temperature weather was evaluated according to the evaluation index system. The evaluation results showed that although the peak load demand was successfully met, some power generation units experienced a certain degree of performance degradation due to prolonged high-temperature operation. Based on the evaluation results, the parameters of the reinforcement learning model were optimized, the weight coefficients of meteorological data in the market environment prediction model were adjusted, and the operation strategy of the virtual power plant was optimized, such as increasing the inspection frequency of power generation units and optimizing heat dissipation measures.

[0066] Operations managers can use the platform's interactive and visualization modules to view the virtual power plant's operating status during high-temperature weather. They can observe the real-time trends of power generation and load demand using line graphs, compare the power generation contributions of different power generation units using bar charts, and view the geographical distribution and operating status of each component of the virtual power plant through GIS visualization (such as using different colors to indicate the temperature status of power generation units). Based on the visualization information, if managers find that the temperature of the energy storage system in a certain area is too high, they can manually intervene in the operating parameters, adjust the heat dissipation strategy of the energy storage system in that area (such as increasing the operating power of ventilation equipment), and export and share the relevant data with the technical maintenance department for further analysis and processing. In summary, when facing extreme high temperatures, the virtual power plant first collects and preprocesses data on weather, electricity prices, load, and the status of internal components. The market environment prediction module considers multiple factors and trains a price prediction model according to standard procedures. The reinforcement learning module formulates response strategies based on the prediction results, adjusts them according to the corresponding reward function in different intervals based on the error situation, and also considers the error change trend for rewards and penalties. Feedback information is collected during strategy execution to facilitate adjustments. The evaluation and optimization module evaluates and improves based on indicators. The platform interaction and visualization module allows managers to effectively monitor, intervene, and share data, ensuring the stable operation of the virtual power plant under extreme weather conditions.

[0067] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention in any way. Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make some modifications or alterations to the above-disclosed technical content to create equivalent embodiments without departing from the scope of the present invention. Any simple modifications, equivalent changes and alterations made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention shall still fall within the scope of the present invention.

Claims

1. A platform for constructing and operating virtual power plants in a power system, characterized in that, The platform includes a data acquisition and preprocessing module, a market environment prediction module, a reinforcement learning core module, a strategy execution and feedback module, an evaluation and optimization module, and a platform interaction and visualization module. The data acquisition and preprocessing module collects electricity market prices, load demand information, operating status of various components of the virtual power plant, meteorological data, and energy storage status information from the electricity market trading platform, power grid monitoring system, and the distributed energy resource management system, energy storage system monitoring device, and smart meters inside the virtual power plant. It uses data cleaning technology to remove outliers, filtering technology to smooth fluctuating data, and normalization technology to unify the dimensions. The market environment prediction module: Based on the preprocessed data, it constructs a prediction model that integrates price and load demand, uses historical data for model training to optimize model parameters, and uses cross-validation to prevent overfitting. The reinforcement learning module: uses a deep Q-network (DQN) to construct a virtual power plant trading strategy decision model, calculates the prediction error and trend of market price and load demand through the prediction model, adjusts the reward function of the reinforcement learning algorithm according to the error trend and error magnitude, outputs a trading strategy according to the reward function of the reinforcement learning algorithm, and optimizes the output trading strategy. The strategy execution and feedback module executes the optimized trading strategy generated by the reinforcement learning module in the actual electricity market, interacts with other market participants, realizes electricity trading in the virtual power plant, collects real-time market feedback information during the trading execution process, including but not limited to transaction price, transaction volume, and market price fluctuations, and feeds this information back to the reinforcement learning module and the market environment prediction module to optimize the market environment prediction module and the reinforcement learning module. The evaluation and optimization module: Based on a preset evaluation index system, it comprehensively evaluates the performance of the virtual power plant's trading strategy. The evaluation indexes include, but are not limited to, economic benefit indicators, market risk indicators, and operational stability indicators. Based on the evaluation results, it further optimizes and adjusts the parameters of the reinforcement learning model, the parameters of the market environment prediction model, and the operation strategy of the virtual power plant. The platform's interaction and visualization module provides a convenient and user-friendly interface for operation and management personnel, supports multi-terminal access, and uses line charts, bar charts, and GIS visualization methods to display the virtual power plant's operating status, transaction status, and evaluation results. It also allows manual intervention in operating parameters and supports data export and sharing.

2. The power system virtual power plant construction and operation platform according to claim 1, characterized in that, The formula for constructing the price prediction model in the market environment prediction module is as follows: ,in, yes Price forecast at any given time is the actual price at time t, and a, b, c, and d are model parameters. This is the weighting coefficient, and T is the period of price fluctuation. It is a phase parameter.

3. The power system virtual power plant construction and operation platform according to claim 1, characterized in that, The formula for constructing the load demand forecasting model in the market environment forecasting module is as follows: ,in, yes Forecasted load demand at any given time. Here, is the actual load at time t, and e, f, g, h, and k are model parameters. It is the weighting coefficient.

4. The power system virtual power plant construction and operation platform according to claim 1, characterized in that, The training steps for the price prediction model in the market environment prediction module are as follows: (1) Extract historical price data sequences from the preprocessed dataset The price data was divided into training, validation, and test sets in a 7:2:1 ratio. (2) Create the price prediction model framework using the formula: and initialize the model parameters; (3) For each time step t in the training set, input the past price data into the price prediction model to obtain the predicted price. ; (4) The mean squared error (MSE) is used as the loss function for the price prediction model, and the formula is: Where N is the number of training samples. It is the time index of the nth training sample; (5) Calculate the gradient of the loss function with respect to the model parameters using the backpropagation algorithm, and update the parameters using stochastic gradient descent based on the calculated gradient. The formula is: ,in, It's the learning rate. It is the gradient of the loss function with respect to the old parameters; (6) After each training cycle, evaluate the performance of the price prediction model on the validation set, calculate the loss on the validation set, and stop training if the loss on the validation set does not decrease significantly over multiple consecutive cycles. (7) Use the test set to evaluate the final price prediction model, calculate the loss and other evaluation metrics on the test set, and measure the model’s performance on unseen data.

5. The power system virtual power plant construction and operation platform according to claim 1, characterized in that, The training steps for the load demand forecasting model are as follows: (1) Extract historical load demand data sequences from the preprocessed dataset. The price data was divided into training, validation, and test sets in a 7:2:1 ratio. (2) Create the load demand forecasting model architecture using the formula: And randomly initialize the model parameters; (3) For each time step t in the training set, input the input data into the load demand prediction model to obtain the predicted load demand. ; (4) The mean squared error (MSE) is used as the loss function for the load demand forecasting model, and the formula is: Where N is the number of training samples. It is the time index of the nth training sample; (5) For a single sample Calculate the loss function with respect to the parameters gradient Based on the calculated gradient, the model parameters are updated using stochastic gradient descent, as shown in the formula: ,in For parameters, The learning rate; (6) After each training cycle, evaluate the performance of the load demand prediction model on the validation set, calculate the loss evaluation index on the validation set, and stop training if the loss on the validation set does not decrease significantly over multiple consecutive cycles. (7) Use the test set to evaluate the final load demand forecasting model, calculate the loss and other evaluation metrics on the test set, and judge the performance of the model on unseen data.

6. The power system virtual power plant construction and operation platform according to claim 1, characterized in that, The construction of the trading strategy decision model in the reinforcement learning module uses Deep Q-Network (DQN) as the basic dynamic reinforcement learning algorithm to build the trading strategy decision model for the virtual power plant. The input layer of the model receives key state information of the current electricity market, including but not limited to the current market price. ,past Average market price over a period of time ( Current load demand Available power of each power generation unit within the virtual power plant ( ), Current power of the energy storage system and the current trading session The hidden layer consists of multiple fully connected layers, using ReLU as the activation function to extract and learn complex features and latent patterns from the state information. The number of neurons in the output layer corresponds to the action space dimension of the virtual power plant, and the output value of each neuron represents the expected action to be taken in the current state. Value, action space includes but is not limited to different pricing strategies ( Power allocation scheme ( ) and the charging and discharging operation of energy storage systems The Xavier method is used to initialize the model's weight parameters.

7. The power system virtual power plant construction and operation platform according to claim 1, characterized in that, The reinforcement learning module calculates the prediction errors and trends of market prices and load demand using a prediction model at each decision step. The forecast values ​​for electricity market prices and load demand are obtained from the market environment forecasting module. Simultaneously, the corresponding actual values ​​are obtained from the data acquisition and preprocessing module. Calculate price forecast error and load forecasting error Calculation of price forecast error: Calculation of load forecasting error: Calculate the error magnitude index The formula is: Calculate the rate of change of error The formula is: , Used to measure the trend of error change; a positive value indicates that the error is increasing, and a negative value indicates that the error is decreasing.

8. A virtual power plant construction and operation platform for a power system according to claim 1, characterized in that, In the reinforcement learning module, the reward function is adjusted according to the error magnitude, based on the error magnitude index. Set three error ranges: low error range ( , Mean error range ( ) and high error range ( ),in and As a threshold, in the low error range, the reward function The main focus is on improving the revenue and market share of virtual power plants, as shown in the formula: ,in , and It is the reward coefficient, and , , , It is the profit of the virtual power plant at the current decision-making step. This represents the current market share; within the mean error range, the reward weight for profit growth is reduced, while the reward for strategy stability and flexibility is increased, as shown in the formula: ,in , , and For the corresponding reward coefficient, and , It is based on the similarity value between the current strategy and the strategies of the previous few decision steps. This value represents the degree of difference between the current strategy and historically used strategies; in the high error range, the focus is on rewarding the risk avoidance and recovery capabilities of the virtual power plant, as shown in the formula: ,in , and It is the reward coefficient, and , It is measured by the percentage reduction in unsold electricity volume and the degree of reduction in price fluctuation risk. It is a value calculated based on the speed at which the virtual power plant recovers from a high-error state to the normal error range.

9. A virtual power plant construction and operation platform for a power system according to claim 1, characterized in that, The reinforcement learning module adjusts the reward function based on the error change trend: Let... For the preset threshold, when When this happens, an additional reward will be given, and the reward formula is as follows: ,in For the reward coefficient; when When, maintain the current reward function setting; when At times, imposing certain penalties can increase the incentive for exploring new strategies. The calculation formula is: ,in The penalty coefficient is used as the reward formula: ,in To explore reward coefficient The degree of difference between the new strategy and historically used strategies.

10. A virtual power plant construction and operation platform for a power system according to claim 1, characterized in that, The reinforcement learning module optimizes the output trading strategy at each decision step t, based on the current state. ,use Greedy strategies use probability Select Action Explore new strategy spaces, using probability The action with the highest Q-value predicted by the model is selected using the following formula: ,in It is a random number uniformly distributed in the range [0, 1]. These are the parameters of the DQN model, which determine the selected action. Observe market feedback to determine the next stage. and corresponding rewards , experience tuple The experience tuples are stored in the experience replay buffer, and a batch of experience tuples are randomly sampled from the experience replay buffer periodically. The parameters used to update the DQN model, where, , For batch size, the mean squared error loss function is used to minimize the difference between the target Q-value and the predicted Q-value. The calculation formula is: ,in It is a discount factor. These are the parameters of the target network. The parameters of the online learning network are updated using the backpropagation algorithm to minimize the loss function.