Continuous intra-day electricity market transaction modeling method and computer program product
By introducing disturbance factors and state-conservative Markov decision-making models into the continuous intra-day power market, the strategy is optimized to cope with renewable energy prediction errors, which solves the problem of prediction errors affecting the optimal strategy in the existing technology and achieves more stable returns. and higher market performance.
Patent Information
- Application Number
- CN202411242619.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-05
- Publication Date
- 2024-10-11
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing technologies are difficult to effectively deal with renewable energy forecast errors in continuous intraday power markets, affecting the formulation and implementation of optimal strategies.
The state conservative Markov decision-making model is adopted, an intelligent agent is constructed by introducing disturbance factors, and the actor network and critic network are used for strategy optimization to ensure that the expected cumulative reward is maximized under the condition of system state disturbance.
It significantly reduces the impact of renewable energy forecast errors on expected cumulative rewards, can maintain higher returns even when forecast errors are large, and reduces return volatility and market risk.
Smart Images

Figure CN118761799A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of power market transactions, and in particular to a method for modeling power market transactions within consecutive days and a computer program product. Background Art
[0002] In recent years, the integration of renewable energy sources has been increasing, affecting the development of the electricity market. This trend has triggered a large number of studies on the impact of renewable energy on modern short-term electricity markets, especially on the role of integrating renewable energy sources (RES). Currently, the electricity market faces the challenge of RES unpredictability, and it is crucial for traders to develop trading strategies based on newer and more accurate RES forecasts to reduce the risks caused by renewable energy uncertainty. In the continuous intraday (CID) electricity market, traders are able to predict renewable energy sources in a short period of time and choose trading strategies based on more accurate forecasts.
[0003] In the intraday electricity market, the existing modeling methods mainly model the trading problem and solve the optimal strategy through dynamic programming and deep reinforcement learning-based methods. These methods have been widely used in energy trading and CID trading markets.
[0004] However, in the CID market, since the forecast error of renewable energy always exists and increases with the forecast time horizon, there is a large difference between the forecast of the actual RES value and the actual value, which may affect the search for the optimal strategy. Summary of the invention
[0005] The purpose of this application is to provide a method for modeling transactions in a continuous intraday power market and a computer program product to solve the technical problem that the existing modeling methods in the prior art are difficult to deal with the prediction errors in the continuous intraday power market, thereby affecting the acquisition of the optimal strategy. The many technical effects that can be produced by the preferred technical solution among the many technical solutions provided in this application are described in detail below.
[0006] To achieve the above objectives, this application provides the following technical solutions: The first aspect of the present application provides a method for modeling continuous intraday electricity market transactions, comprising: According to the market status including the electricity market on consecutive days , Energy storage provider status , Renewable Energy Status System status And the disturbance factor , construct a state-conservative Markov decision model, where the disturbance factor Determined based on forecast errors of renewable energy; Based on the state-conservative Markov decision model, an intelligent agent is constructed through a state-conservative strategy optimization framework, wherein the intelligent agent includes an actor network and critic network ; Train the agent and update the critic network Network parameters and the actor network Network parameters , until the expected cumulative reward Converge when the fluctuation is less than a preset percentage to obtain the expected cumulative reward of the Markov decision model that makes the state conservative The optimal strategy when .
[0007] In some embodiments, the method further comprises: based on the system status Construct a state set with the disturbance threshold as the center , the state set It is expressed by the following formula: , in, represents the state set, represents the state space, is the disturbance factor, and the ∞ norm is used to measure the true system state and the system status The distance between the real system state Includes actual power output from renewable energy sources.
[0008] In some embodiments, the system goal of the state conservative Markov decision model is to Find the optimal strategy To maximize the expected cumulative reward .
[0009] In some embodiments, the expected cumulative reward Conservative Rewards by State and discount factor Get the state where the conservative reward Obtained by the following formula: , in, Based on the actual system status The action chosen at time step t.
[0010] In some embodiments, before training the agent, the method includes: using the agent to perform sampling to obtain a four-tuple and stored in the experience replay pool, where the four-tuple in the experience replay pool As the training set for training the agent.
[0011] In some embodiments, the training of the agent includes: Sample batches of size N of quads from the experience replay pool ; The status Input to the actor network Target actor network , the target actor network Output corresponding actions according to the strategy , where the action A Gaussian noise is added ; The action And the corresponding four-tuple Input to the critic network and calculate the critic network The loss function The loss value and the actor network The loss function The loss value.
[0012] In some embodiments, the critic network Based on the corresponding status and actions Calculate the state conservative Q value function The estimated value of the critic network Target critic network Used to output the target Q value ; the calculation of the critic network The loss function The loss value includes: converting the state conservative Q value function The estimated value of is compared with the target Q value to calculate the critic network The loss function The loss value.
[0013] In some embodiments, the target Q value Calculated by the following formula: , in, is the conservative value function of the target state, is the discount factor.
[0014] In some embodiments, the target state conservative value function Obtained by the following formula: , in, For the target critic network, is the state set.
[0015] A second aspect of the present application provides a computer program product, which is stored on a data carrier and is designed to execute the continuous intraday electricity market transaction modeling method as described above.
[0016] Implementing one of the above-mentioned technical solutions of the present application has the following advantages or beneficial effects: when constructing a state-conservative Markov decision model, the present application introduces a disturbance factor so that the prediction error of renewable energy can be fully considered in the modeling process, that is, the model can reduce the impact of the prediction error of renewable energy on the expected cumulative reward when the system state is disturbed; at the same time, the state-conservative Markov decision model is solved using a state-conservative strategy optimization framework, which can more accurately find the optimal strategy that maximizes the expected cumulative reward. Compared with the prior art where the optimization goal of the trading problem is only to maximize the expected cumulative reward, the present application can maximize the expected cumulative reward when the prediction error of renewable energy is large, thereby being able to maintain a high return and reduce the impact when errors occur in the renewable energy forecast. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. It is obvious that the drawings described below are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings: Figure 1 is a flow chart of a method for modeling continuous intraday electricity market transactions according to an embodiment of the present application; Figure 2 is a schematic diagram of a network framework of an embodiment of the present application; Figure 3 is a schematic diagram of the prediction error of the simulation experiment of the embodiment of the present application; Figure 4 It is a structural block diagram of the processing device of an embodiment of the present application.
[0018] In the figure: 1. processing device; 10. memory; 11. processor. DETAILED DESCRIPTION
[0019] In order to make the purpose, technical solutions and advantages of the present application clearer, the various exemplary embodiments to be described below will refer to the corresponding drawings, which constitute a part of the exemplary embodiments, wherein various exemplary embodiments that may be used to implement the present application are described. Unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation methods described in the following exemplary embodiments do not represent all implementation methods consistent with the present disclosure. It should be understood that they are only examples of processes, methods, and devices that are consistent with some aspects disclosed in the present application as detailed in the attached claims, and other embodiments may also be used, or the embodiments listed herein may be modified in structure and function without departing from the scope and essence of the present application.
[0020] In the description of the present application, it should be understood that the terms "center", "longitudinal", "lateral", etc. indicate the orientation or positional relationship based on the drawings, which is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the elements referred to must have a specific orientation, be constructed and operated in a specific orientation. The terms "first", "second", etc. are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. The term "multiple" means two or more. The terms "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, an integral connection, a mechanical connection, an electrical connection, a communication connection, a direct connection, an indirect connection through an intermediate medium, and can be the internal connection of two elements or the interaction relationship between two elements. The term "and / or" includes any and all combinations of one or more related listed items. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances.
[0021] In order to illustrate the technical solution described in the present application, a specific embodiment is provided below, and only the parts related to the embodiment of the present application are shown.
[0022] like Figure 1 As shown, the present application provides a method for modeling continuous intraday electricity market transactions, comprising the following steps: S1. Based on the market status of the electricity market within consecutive days , Energy storage provider status , Renewable Energy Status And the disturbance factor , construct a state conservative Markov decision model, where the disturbance factor Including forecast errors for renewable energy.
[0023] In some embodiments, the state-conservative Markov decision model may include a state space , Action Space , state transition space , Reward Space and disturbance factor .
[0024] In some embodiments, the state space Can include multiple system states , which can be expressed as . System Status Can be referred to as status .
[0025] In some embodiments, the system status Can include market status , Energy storage provider status and Renewable Energy Sources (RES) status .
[0026] In some embodiments, the system status It can be defined by the following formula: , in, Can indicate the system status, It can represent the state of the trading market, that is, the market state; It can represent the status of the energy storage provider including its storage devices, i.e. the energy storage provider status; Can indicate renewable energy status.
[0027] In the continuous intraday (CID) electricity market, electric energy trading can be carried out through a shared order book (SOB), where the order of the SOB can be expressed by the following formula: , in, It can represent an order of SOB. Can indicate buy or sell, It can represent the transaction volume. Can indicate price.
[0028] At each time step t, information about the shared order book, renewable energy generation, and storage provider status can be collected.
[0029] In some embodiments, market information may be collected from a shared order book, and the market information may include volume information and price information. Volume information may include the transaction volume and total order volume of the market. Price information may include the purchase price and the sale price in the market.
[0030] At each time step t, the market state can be represented by market information containing multiple features , so the market status It can be expressed by the following formula: , in, It can indicate the highest purchase price in the market. It can indicate the lowest selling price in the market. It can represent the average purchase price weighted by transaction volume, It can represent the average sales price weighted by transaction volume, It can represent the total volume of all buy orders. It can represent the total volume of all sell orders. It can represent the total amount of buy orders with the highest purchase price. It can represent the total amount of sell orders with the lowest selling price.
[0031] In some embodiments, the energy storage status Can include funds for remaining energy purchases and remaining capacity of stored energy .
[0032] In some embodiments, the energy storage status It can be expressed by the following formula: , in, It can indicate the energy storage provider status. It can represent the remaining capacity of stored energy at time step t, It can represent the remaining funds for purchasing energy at time step t.
[0033] In some embodiments, the renewable energy state Can include wind energy generation and photovoltaic power generation .
[0034] In some embodiments, the renewable energy state It can be expressed by the following formula: , in, Can represent renewable energy status, It can represent the amount of wind power generation. It can represent the amount of photovoltaic power generated.
[0035] It should be noted that with the increase of renewable energy generation, the market status The price used in may, for example, include the highest purchase price in the market at time step t+1 and the volume-weighted average purchase price at time step t+1 , will tend to decrease due to more supply and lower marginal costs. Therefore, the state of renewable energy It can also be used by energy storage companies for decision making.
[0036] In some embodiments, the time step t+1 may refer to the next time step after the time step t.
[0037] In some embodiments, the action space Can include multiple actions , which can be expressed as .
[0038] In some embodiments, the action The energy storage business can submit orders to the shared order book at each time step t. The action of the energy storage business at time step t It can be expressed by the following formula: , in, Can indicate an action, when the action is "buy" =1, when the action is "sell" = -1, It can be the amount of energy that the energy storage company wants to buy or sell. Can be the price of the order.
[0039] In some embodiments, the actions of the energy storage provider may be Add action constraints.
[0040] In some embodiments, the action constraints of the energy storage provider may be defined as: in, It can be expressed as the transaction volume that the energy storage company decides to buy. It can be expressed as the remaining capacity of the energy storage company. It can be expressed as the transaction volume that the energy storage company decides to sell. is the maximum storage capacity of the energy storage provider, can be expressed as the price of an order, Represents the remaining funds for purchasing energy at time step t. The first constraint in the above formula can indicate that the purchase volume must not exceed the remaining capacity; the second constraint in the above formula can reflect that the sales volume should not exceed the energy stored by the energy storage company; the third constraint in the above formula can ensure that the purchase expenditure of the energy storage company does not exceed its available funds.
[0041] In some embodiments, the state transition space It can be referred to as the state transition function The set of all possible state transitions defined.
[0042] In some embodiments, the state transfer function Can indicate taking action Back from state Transfer to state The probability of the state transition function can be expressed as .
[0043] In some embodiments, the state transfer function The following formula can be satisfied: , in, It can represent the state transition function, It can represent the state transition space, It can represent the action space, It can represent the state space.
[0044] In some embodiments, the state transition may be expressed by the following formula: , in, It can represent the remaining capacity of the stored energy at time step t. When the action is "buy" =1, when the action is "sell" = -1, It can be the amount of energy that the energy storage company wants to buy or sell. The price of the order can be It can represent the remaining funds for purchasing energy at time step t, It can represent the remaining capacity of the stored energy at time step t+1, It can represent the remaining funds for purchasing energy at time step t+1.
[0045] In some embodiments, the reward space It can be written as: .
[0046] In some embodiments, the reward function It can refer to the energy storage business in the state Take Action The reward obtained after that can be defined by the following formula: , in, Can express and act The relevant transaction income, Can represent transaction costs.
[0047] In some embodiments, the transaction proceeds The positive reward can correspond to the sale of energy, trading income A negative reward of can correspond to the purchase of energy. It can be expressed by the following formula: , in, Can indicate trading profit, when the action is "buy" =1, when the action is "sell" = -1, It can be the amount of energy that the energy storage company wants to buy or sell, that is, the transaction volume. The price of the order can be It can indicate the highest purchase price in the market. It can represent the lowest selling price in the market.
[0048] In some embodiments, the transaction volume and transaction price may be affected by the transaction volume in the shared order book. and transaction price In some embodiments, the purchase price may not be lower than the minimum selling price. , the sales price may not exceed the maximum purchase price . Thus, it is ensured that the orders can be matched.
[0049] In some embodiments, when energy storage providers complete transactions in the intraday electricity market, a transaction cost is incurred , transaction costs This can include transaction costs, such as commissions from trading platforms, and energy losses due to storage and transmission.
[0050] In some embodiments, transaction costs It can be expressed by the following formula: , in, It can represent transaction costs, It can be expressed as the cost coefficient, It can be the amount of energy that the energy storage company wants to buy or sell, that is, the transaction volume.
[0051] In some embodiments, in each time step t, the actual power output of the renewable energy source may be different from the predicted value of the renewable energy source. That is, the system state may include the actual renewable energy output value and the predicted renewable energy output value. The actual renewable energy output value may refer to the actual output power of the renewable energy source; the predicted renewable energy output value may refer to the predicted output power of the renewable energy source. Among them, the system state including the actual renewable energy output value may be the actual system state, which may be recorded as , that is, the real system state Can include actual output power of renewable energy sources. System Status May include forecasted renewable energy output values.
[0052] Although the real system status and system status The difference in each time step may be small, but the accumulation of such errors will cause fluctuations in the profits of energy storage companies and reduce their cumulative profits, that is, disturbances will occur. In some embodiments, the disturbance factor to handle disturbances.
[0053] In some embodiments, at time step t, the real system state From the system status The start may be within the disturbance threshold.
[0054] In some embodiments, the system status Construct a state set with the disturbance threshold as the center , state set It can be expressed by the following formula: , in, Can represent a state set, It can represent the state space, Can be a disturbance factor, and the ∞ norm can be used to measure the true system state and system status The distance between.
[0055] In some embodiments, the perturbation factor It can be a non-negative parameter determined by the prediction error of renewable energy, where the prediction error can disturb the system state The state of renewable energy in .
[0056] In some embodiments, the system goal of the state-conservative Markov decision model is to Perturbation, that is, in the state set Find the optimal strategy To maximize the expected cumulative reward .
[0057] In some embodiments, the system objective may be expressed by the following formula: , in, It can refer to strategy. It can refer to the conservative expected cumulative reward, that is, it can refer to the state Expected cumulative reward of the perturbation.
[0058] In some embodiments, the expected accumulative reward It can refer to the current state Start by performing a series of actions , the expected total reward that can be obtained.
[0059] In some embodiments, the expected accumulative reward It can be obtained by the following formula: , in, It can represent the conservative reward of the state at time t, Can be a discount factor.
[0060] In some embodiments, the discount factor The value range can be (0, 1].
[0061] In some embodiments, the state conservative reward It can be obtained by the following formula: , in, Can be based on the real system status In time step Select the action.
[0062] S2. Based on the state-conservative Markov decision model, the intelligent agent is constructed through the state-conservative strategy optimization framework, where the intelligent agent includes an actor network and critic network .
[0063] In some embodiments, the agent may include a state space of a state-conservative Markov decision model , Action Space , state transition space , Reward Space and disturbance factor In some embodiments, the agent can Get Status , according to the action space Get Action , according to the state transition space Get state transfer And according to the reward space Get Rewards .
[0064] In some embodiments, Figure 2 As shown, the agent can include an actor network and critic network . Actor Network According to the current status To choose an action strategy , Actor Network The goal of can be to learn a policy that maximizes the expected reward.
[0065] In some embodiments, the critic network A neural network for evaluating the value of actions. Can receive current status and actions taken As input, it outputs a value function, which can be a state conservative Q value function and / or a target state conservative value function. The goal of can be to estimate the expected return of the state after taking a certain action.
[0066] In some embodiments, the critic network It can be used to calculate the estimated value of the state conservative Q value function, which can be referred to as Q value. The Q value can be obtained by the critic network Through the corresponding status and actions Calculated.
[0067] In some embodiments, the Q value can represent the expected reward that can be obtained after taking a specific action in a given state. The Q value can be expressed as .
[0068] S3. Train the agent and update the critic network Network parameters and actor networks Network parameters , until the expected cumulative reward Converge when the fluctuation is less than a preset percentage to obtain the optimal strategy that maximizes the expected cumulative reward of the state-conservative Markov decision model.
[0069] In some embodiments, before training the agent, the agent can be used to perform sampling to obtain a quadruple And stored in the experience replay pool. The four-tuple in the experience replay pool It can be used as a training set for intelligent agent training.
[0070] In some embodiments, an agent is used to perform sampling to obtain a quadruple And stored in the experience replay pool, it can include: At time t, the agent can obtain the state from the electricity market in consecutive days ; Actor Network Based on the observed state Sum strategy generates action strategy ; Agent based action strategy Select Action , and add a Gaussian noise As an action to interact with the environment, at time t, a transaction is made in the intraday electricity market and a reward is received from the environment. and subsequent status ; Based on the state ,action ,award and the next state Constructing a quad , the four-tuple Stored in the experience replay pool.
[0071] In some embodiments, the agent can be used to perform multiple samplings to obtain a set of four tuples. Experience replay pool.
[0072] In some embodiments, training an agent may include: Sample batches of size N of quads from the experience replay pool ; The status Input to the actor network Target network , target network Output corresponding actions according to the strategy , where the action A Gaussian noise is added ; Action And the corresponding four-tuple Input to the critic network and calculate the critic network The loss function The loss value and actor network The loss function The loss value.
[0073] In some embodiments, the action A Gaussian noise is added , can be expressed by the following formula: .
[0074] In some embodiments, the status Input to the actor network Multiple target networks , for example, there can be two, and then the action with the highest Q value is selected .
[0075] In some embodiments, the state conservative Q value function can be minimized With its target value The Bellman residual between .
[0076] In some embodiments, the state conservative Q value function can be The estimated value and target Q value Compare to calculate the critic network The loss function In some embodiments, the critic network Can be used to approximate the state conservative Q value function .
[0077] In some embodiments, for updating the critic network The loss function can satisfy the formula: , in, Can be the Q value, can be the target Q value, Can be used as an experience replay pool.
[0078] In some embodiments, the critic network Can have a corresponding target network, that is, the target critic network, denoted as . Target Critic Network Can be used to output target Q value . Target Critic Network The target Q value can be calculated by the Bellman equation .
[0079] In some embodiments, the actor network can have a corresponding target network, that is, the target actor network, denoted as .
[0080] In some embodiments, the target Q value It can be calculated by the following formula: , in, can refer to the conservative value function of the target state, Can be a discount factor.
[0081] In some embodiments, the target state conservative value function It can be obtained by the following formula: , in, Can be a target critic network.
[0082] In some embodiments, the target state conservative value function Perform gradient regularization, the target state conservative value function after gradient regularization (Gradient Based Regularization) It can be obtained by the following formula: , in, Can be the Q value, can be the disturbance factor, Can be a gradient value.
[0083] In some embodiments, the target state conservative value function after gradient regularization can be used Calculate the target Q value , as shown in the following formula: .
[0084] in, It can be the conservative value function of the target state after gradient regularization, can be the discount factor, Can be a reward.
[0085] Gradient regularization can transform the original state set The optimization problem of solving the infimum is converted into the problem of finding the 1-norm of the state gradient, which can reduce the computational complexity.
[0086] In some embodiments, the actor network The loss function It can be obtained by the following formula: , in, is the gradient regularized Q-value function.
[0087] In some embodiments, the gradient regularized Q-value function It can be obtained by the following formula: , in, Can be the Q value, can be the disturbance factor, Can be a gradient value.
[0088] In some embodiments, updating the critic network Network parameters and actor networks Network parameters , which may include: Based on critic network The loss function The loss value of the critic network is updated by gradient descent Parameters ; Based on the actor network The loss function The loss value is updated by gradient descent. Network parameters .
[0089] In some embodiments, updating the critic network Network parameters The process can be expressed by the following formula: , in, Can be a network for critics The network parameters, Can be a gradient value, Can be a network for critics The loss function is Can be a network for critics The learning rate.
[0090] In some embodiments, updating the actor network Network parameters The process can be expressed by the following formula: , in, Actor Network The network parameters, Can be a gradient value, Actor Network The loss function is Actor Network The learning rate.
[0091] In some embodiments, the target actor network may be updated through a soft update. Target network parameters Update to satisfy the following formula: , in, Can be used for target actor networks The target network parameters, Can be a parameter for soft update.
[0092] In some embodiments, the target critic network can be updated by soft updating. Target network parameters Update to satisfy the following formula: , in, Target Critic Network The target network parameters, Can be a parameter for soft update.
[0093] In some embodiments, the parameters of the soft update The value range can be 0 to 1.
[0094] In some embodiments, the preset percentage may be 0.3% to 0.7%. For example, the preset percentage may be 0.3%, 0.4%, 0.5%, 0.6% or 0.7%.
[0095] In some embodiments, the agent may also include an actor network optimizer and a critic optimizer. The actor network optimizer may optimize the actor network based on the actor network. The loss value , update the actor network by gradient descent Network parameters The critic optimizer can be based on the critic network The loss value , update the critic network by gradient descent Network parameters .
[0096] In some embodiments, multiple quads in the same batch can be used to , for the actor network Network parameters and critic network Network parameters Multiple updates and targeting of actor networks Target network parameters and target critic network Target network parameters Perform multiple soft updates.
[0097] When constructing a state-conservative Markov decision model, this application introduces a disturbance factor so that the prediction error of renewable energy can be fully considered in the modeling process, that is, the model can reduce the impact of the prediction error of renewable energy on the expected cumulative reward when the system state is disturbed; at the same time, the state-conservative Markov decision model is solved using a state-conservative strategy optimization framework, which can more accurately find the optimal strategy that maximizes the expected cumulative reward. Compared with the prior art where the optimization goal of the trading problem is only to maximize the expected cumulative reward, this application can maximize the expected cumulative reward when the prediction error of renewable energy is large, thereby maintaining a high return and reducing the impact when errors occur in renewable energy predictions.
[0098] The following are simulation experiments and results of the embodiments of the present application: Experimental data introduction: The experimental dataset is based on the 2022 Danish CID market transaction data from the EPEXSPOT website. The RES production forecast data comes from the Energidk website, which provides hourly forecasts of Danish solar and wind power production. Therefore, in the simulation experiment, since the RES production forecast is performed hourly, the transaction time interval is set to 1 hour. The training set contains 292 random days in a year, and the remaining 73 days constitute the test set. The relevant experiments are run on the server, and the environment configuration used is shown in Table 1.
[0099] Table 1 The experimental parameter settings are shown in Table 2. The algorithm neural network uses the multilayer perceptron as the basic framework. For the actor network, the input dimension is 8 and the output dimension is 3. For the critic network, the input dimension is (8, 3) and the output dimension is 1. The number of hidden layers of the neural network is 2, and the number of neurons in each layer is 256.
[0100] Table 2 Comparison method: In order to evaluate the effectiveness of the embodiments of the present application, other prior arts were used for comparison, as follows: 1) Embodiments of the present application; 2) Deep Deterministic Policy Gradient (DDPG): The DDPG method is a method based on MDP and AC. The DDPG method has an actor network and a critic network, which share the same network structure and parameters with the proposed SCPO method; 3) Twin Delayed Deep Deterministic Policy Gradient (TD3): TD3 is a method based on MDP and AC. This method has an additional critic network to improve the accuracy of value estimation.
[0101] Evaluation indicators: Several indicators are used in the experiment to evaluate the performance of these methods. One indicator is the cumulative profit within a day. Other indicators, including mean, variance, minimum, maximum, and three key quantiles (i.e., lower quantile, middle quantile, and upper quantile), are used to evaluate profit volatility. In addition, the mean provides a baseline for profitability, while the variance captures profit deviation and reflects the stability of the method. The minimum and maximum describe the range of profits. Quantiles can show the shape of the profit distribution.
[0102] Simulation experiment results and analysis: The experimental results are shown in Table 3. The embodiment of the present application has the best performance in each indicator, especially showing significant advantages in mean and variance. This means that in practical applications, the use of the embodiment of the present application can significantly reduce the volatility of income while obtaining the highest profit, thereby providing the most stable income performance. Specifically, the mean of the embodiment of the present application is 1290, which is much higher than other methods. The higher mean means that the method has the highest income in long-term operation and performs well. In contrast, the mean of DDPG is 1144 and the mean of TD3 is 1253. By comparison, it can be found that the mean of the embodiment of the present application is higher than that of DDPG and TD3. This improvement shows that the embodiment of the present application has a significant advantage in overall income. At the same time, the variance of the embodiment of the present application is 5898, which is the smallest among all methods. The smaller variance indicates that the income volatility of the method is lower and the performance is more stable. In contrast, the variance of the DDPG method is as high as 13142, while the variance of TD3 is 9352. By comparison, it can be found that the variance of the embodiment of the present application is 55% lower than that of DDPG and 37% lower than that of TD3. These data show that the embodiments of the present application also have significant advantages in terms of income stability, and can effectively reduce income fluctuations, thereby providing more stable performance. From the perspective of quantile indicators, the lower quantile (1289), middle quantile (1294), and upper quantile (1300) of the embodiments of the present application are all higher than other methods. This shows that the performance of the embodiments of the present application is relatively stable and excellent regardless of whether it is in poor, medium, or good conditions. In addition, the minimum value of the embodiments of the present application is 113, and the maximum value is 1313, both of which are the highest, indicating that its performance in extreme cases is also better than other methods.
[0103] Table 3 In addition, the experiment also tests the profitability of these three methods under different forecast errors, e.g. Figure 3 As shown, Figure 3 The SCPO in the example is an embodiment of the present application. As the prediction error increases, the embodiment of the present application can still maintain its stable profitability. When the prediction error increases from 0 to 0.2 (20%), the profit only drops from about 1300 to 1200, which is still the most profitable of the three methods, with only a 9.2% drop. Other methods, such as DDPG, dropped from 1190 to 700, a 41.2% drop, and TD3 dropped from about 1250 to 700, a 43% drop. This shows that the embodiment of the present application has strong robustness in combating RES prediction errors and can maintain profit stability under extreme circumstances.
[0104] Overall, the embodiments of the present application have outstanding performance in both mean and stability, and their quantile indicators also show strong stability and reliability, which is the best profit effect among all methods. Through the embodiments of the present application, while obtaining the highest profit, the volatility of the income can be significantly reduced, thereby providing the most stable income performance. The embodiments of the present application still maintain high robustness and stability in the face of large prediction errors and extreme situations, further proving its superiority and reliability in practical applications.
[0105] Those skilled in the art can understand that all or part of the features / steps of the above-mentioned method embodiments can be implemented by methods, data processing systems or computer programs, and these features can be implemented without hardware, entirely by software, or by a combination of hardware and software. The aforementioned computer program can be stored in one or more computer-readable storage media, and the storage medium stores the computer program. When the computer program is executed (such as by a processor), the steps of the above-mentioned continuous intraday power market transaction modeling method embodiment are executed.
[0106] The aforementioned storage media that can store program codes include: static hard disks, solid-state hard disks, random access memories (SRAM), electrically erasable programmable read-only memories (EEPROM), erasable programmable read-only memories (EPROM), programmable read-only memories (PROM), read-only memories (ROM), optical storage devices, magnetic storage devices, flash memories, magnetic disks or optical disks and / or combinations of the above devices, that is, they can be implemented by any type of volatile or non-volatile storage devices or combinations thereof.
[0107] like Figure 4As shown, the present application also provides an embodiment of a processing device 1, comprising one or more processors 11 and a memory 10; wherein the memory 10 is used to store one or more computer programs, and the one or more processors 11 are used to execute one or more computer programs stored in the memory 10, so that the processor 11 executes the features / steps of the above-mentioned embodiment of the continuous intraday electricity market transaction modeling method.
[0108] The present application also provides a computer program product, which is stored on a data carrier and is designed to execute the continuous intraday electricity market transaction modeling method as described above. Therefore, the computer program product according to the present application produces the same advantages as those described in detail with reference to the device according to the present application. The computer program product can be executed as a computer-readable instruction code in each appropriate programming language such as JAVA, C++, etc. In addition, the computer program product can be provided on a network, such as the Internet, or a network, such as an Internet user, can download the computer program product from the network, such as the Internet when needed. The computer program product can be implemented by means of a computer program, i.e., software, or by means of one or more dedicated electronic circuits, i.e., hardware, or in any mixed form, i.e., by means of software components and hardware components, or in a mixed form of software, hardware, or software and hardware.
[0109] The above is only the preferred embodiment of the present application. Those skilled in the art will appreciate that various changes or equivalent substitutions may be made to these features and embodiments without departing from the spirit and scope of the present application. In addition, under the guidance of the present application, these features and embodiments may be modified to adapt to specific circumstances and materials without departing from the spirit and scope of the present application. Therefore, the present application is not limited to the specific embodiments disclosed herein, and all embodiments falling within the scope of the claims of the present application belong to the protection scope of the present application.
Claims
1. A method for modeling continuous intraday power market transactions, characterized in that: include: According to the market status including the electricity market on consecutive days , Energy storage provider status , Renewable Energy Status System status And the disturbance factor , construct a state-conservative Markov decision model, where the disturbance factor Determined based on forecast errors of renewable energy; Based on the state-conservative Markov decision model, an intelligent agent is constructed through a state-conservative strategy optimization framework, wherein the intelligent agent includes an actor network and critic network ; Train the agent and update the critic network Network parameters and the actor network Network parameters , until the expected cumulative reward Converge when the fluctuation is less than a preset percentage to obtain the expected cumulative reward of the Markov decision model that makes the state conservative The optimal strategy when .
2. The method for modeling continuous intraday electricity market transactions according to claim 1, characterized in that: The method further comprises: based on the system status Construct a state set with the disturbance threshold as the center , the state set It is expressed by the following formula: , in, represents the state set, represents the state space, is the disturbance factor, and the ∞ norm is used to measure the true system state and the system status The distance between the real system state Includes actual power output from renewable energy sources.
3. The method for modeling continuous intraday electricity market transactions according to claim 2, characterized in that: The system goal of the state conservative Markov decision model is to Find the optimal strategy To maximize the expected cumulative reward .
4. The method for modeling continuous intraday electricity market transactions according to claim 2, characterized in that: The expected cumulative reward Conservative Rewards by State and discount factor Get the state where the conservative reward Obtained by the following formula: , in, Based on the actual system status The action chosen at time step t.
5. The method for modeling continuous intraday electricity market transactions according to claim 2, characterized in that: Before training the agent, the method includes: using the agent to perform sampling to obtain a four-tuple and stored in the experience replay pool, where the four-tuple in the experience replay pool As the training set for training the agent.
6. The method for modeling continuous intraday electricity market transactions according to claim 5, characterized in that: The training of the intelligent agent comprises: Sample batches of size N of quads from the experience replay pool ; The status Input to the actor network Target actor network , the target actor network Output corresponding actions according to the strategy , where the action A Gaussian noise is added ; The action And the corresponding four-tuple Input to the critic network and calculate the critic network The loss function The loss value and the actor network The loss function The loss value.
7. The method for modeling continuous intraday electricity market transactions according to claim 6, characterized in that: The critic network Based on the corresponding status and actions Calculate the state conservative Q value function The estimated value of the critic network Target Critic Network Used to output the target Q value ; the calculation of the critic network The loss function The loss value includes: converting the state conservative Q value function The estimated value of is compared with the target Q value to calculate the critic network The loss function The loss value.
8. The method for modeling continuous intraday electricity market transactions according to claim 7, characterized in that: The target Q value Calculated by the following formula: , in, is the conservative value function of the target state, is the discount factor.
9. The method for modeling continuous intraday electricity market transactions according to claim 8, characterized in that: The target state conservative value function Obtained by the following formula: , in, For the target critic network, is the state set.
10. A computer program product, characterized in that The computer program product is stored on a data carrier and is designed to execute the method for modeling continuous intraday electricity market transactions according to any one of claims 1-9.
Citation Information
Patent Citations
Wind power energy storage system maximum income optimization method considering power market fluctuation
CN113794199A
MADDPG-based selling double-side decision optimization and operation method and device
CN117391241A
Systems and methods for generating optimal intraday bids and operating schedules for distributed energy resources
EP4293585A1
