- Original research
- Open access
- Published:

# Integrated risk measurement and control for stochastic energy trading of a wind storage system in electricity markets

*Protection and Control of Modern Power Systems*
**volumeÂ 8**, ArticleÂ number:Â 60 (2023)

## Abstract

To facilitate wind energy use and avoid low returns, or even losses in extreme cases, this paper proposes an integrated risk measurement and control approach to jointly manage multiple statistical properties of the expected profit distribution for a wind storage system. First, a risk-averse stochastic decision-making framework and multi-type risk measurements, including the conditional value at Risk (CVaR), value at risk (VaR) and shortfall probability (SP), are described in detail. To satisfy the various needs of multi-type risk-averse decision makers, integrated risk measurement and control approaches are then proposed by jointly considering the expected, boundary and probability values of the extreme results. These are managed using CVaR, VaR and SP, respectively. Finally, the effectiveness of the proposed risk control strategy is verified by conducting case studies with realistic market data, and the results of different risk control strategies are analyzed in depth. The impacts of the risk parameters of the decision maker, the energy capacity of the battery storage and the price difference between the day-ahead and real-time markets on the expected profits and risks are investigated in detail.

## 1 Introduction

An efficient electricity market can help to ensure stable operation of the power system, sustainable development of the power industry, and the optimal allocation of large-scale energy resources [1]. However, in the context of large-scale integration of intermittent renewable energy, such as wind power and photovoltaics, the price volatility of the electricity market is also increasing, which brings huge risks to various types of power trading entities [2].

In the process of integrating wind energy into the power grid, system operators and wind power producers face a series of challenges and risks associated with high penetration levels of intermittent energy resources, where advanced risk measurement and control methods are becoming more and more crucial [3]. Various energy storage types, such as those using battery, compressed air, and pumped storage, have the capability of stabilizing wind power fluctuation, peak load shifting, and improving power system reliability. Thus the joint participation of wind energy resources and energy storage in the electricity market has become an efficient strategy, and has received more and more attention in recent years [4, 5].

In current research, wind energy resources and various energy storages are coordinated to optimize the expected operation or planning results considering different types of market mechanisms, such as energy markets, reserve markets, bilateral transactions, gas markets, etc. In [6], renewable resources and energy storage systems are coordinated to improve the overall market revenue and reduce the deviation penalty caused by renewable power outputs in real-time balancing energy markets. In [7], a bi-objective optimization model is established to generate offering strategies for a wind-thermal-storage system in energy and reserve markets, where both the expected profits and carbon emissions are minimized. Reference [8] proposes an optimal decision-making model for wind power and pumped storage to participate in the electricity spot market and bilateral transactions. In [9], considering both the electricity and the natural gas markets, a trading model of wind power providers and power-to-gas equipment, gas units and gas storage devices is proposed. The Shapley value method is used to distribute the profits under a cooperative joint venture mode. In [10], the wind storage system can optimize the operating schedule of the BESS and maximize the expected profit by developing optimal price thresholds for the electricity trading decision at each instant of time. Reference [11] shows that the wind storage system can optimize dispatch strategy, increase the operating profit and determine the optimal capacity of energy storage through a â€˜receding horizonâ€™ approach. Reference [12] studies the risk-oriented multi-regional economic dispatch problem in depth, while also considering the application of compressed air energy storage with a large-scale access of wind power. In [13], the energy storage and transmission lines are jointly optimized in an electricity market environment, so as to manage the intermittent output of wind power and maximize expected profits.

To further improve the profits of wind storage systems, cooperative operation strategies of multiple energy storages have also been developed to improve the overall benefits. Reference [14] considers that multiple wind farms can improve market revenue and reduce the real-time market deviation penalty by coordinated operation with shared energy storage. [15] suggests that multiple wind storage systems can optimize their electricity trading strategies and increase overall expected profits by solving the two-stage stochastic problem at the upper level and the electricity market clearing problem at the lower level. Additionally, deep reinforcement learning approaches have also been employed by wind storage systems in recent years. In [16], the wind storage system implements self-dispatch to ensure robustness and improve operating profitability through deep reinforcement learning. Reference [17] adopts this type of learning to optimize the expected system operation results of the wind power producers, where the dual uncertainties of wind generation and electricity price are reduced.

To handle the uncertainties in the electricity market effectively, stochastic optimization and conditional value at risk (CVaR) have been widely adopted by wind storage systems, where only one risk measurement is usually considered to control the risks. Based on the CVaR and stochastic optimization method, reference [18] uses three-stage stochastic optimization to help wind power and a commercial air compression energy storage system participate in day-ahead, intra-day and real-time electricity markets, where CVaR is adopted for risk management. In [19], the time series and cross-correlation of random parameters are fully considered to establish a multi-objective stochastic model of a micro-energy network, with the minimum life cycle cost and carbon emissions as the optimization objectives. In [20], new energy and energy storage power plants are modeled as a price taker to participate in electricity markets, and CVaR and stochastic optimization methods are used to generate the optimal bidding strategy. In [21], a two-stage stochastic programming is used to optimize the bidding strategy of a joint wind-photovoltaic-storage system in the day-ahead market, while in [22] it shows that a risk-averse wind storage system can reduce the rick-in-cost and improve the expected operational cost by considering a scenario-based stochastic approach, downside risk constraints and a price-responsive demand response program. In [23], stochastic optimization and linear decision rules are employed by the wind storage systems in electricity markets to generate day-ahead and real-time strategies, and CVaR is incorporated into the model to manage the risks.

As shown in the above research, the existing risk control strategies tend to only consider CVaR or boundaries in the optimization model, while other risk measurements that decision makers may expect to optimize, such as value at risk (VaR) and shortfall probability (SP), have not been fully investigated. In [24], the definition and computing methods of VaR are illustrated in detail. It shows that the concept of VaR can be easily understood and the computation of a boundary value is not affected by extreme high tail losses. This makes it stable and more widely used than CVaR by the financial institutions such as banks and fund companies. In [25], a mathematical model is proposed for a transmission investment game, and shortfall probability is adopted to control the transmission investment risk. Different from CVaR and VaR, SP is used to describe the probability of risk or loss. When the decision maker has an expected minimum profit or maximum loss as a benchmark value, minimizing SP can become a better choice.

Therefore, the benefits of various risk measurements are different for decision makers faced with uncertainties. However, in the existing research on wind storage systems, the integrated control of multiple risk measurements in decision making model has not been reported.

To fill the above research gaps, this paper investigates the integrated risk measurement and control of a wind storage system in depth. The main contributions of this paper are:

An integrated risk measurement is proposed for a decision maker to jointly consider multi-type tail risks of the expected results. Using the proposed risk measurement, multiple statistical properties of the expected profit distribution, including the expected, boundary and probability values of the extreme results in the worst scenarios, are characterized by using CVaR, VaR and SP, respectively.

A scenario-based risk-ware stochastic optimization model is established to realize the integrated risk control of a wind storage system with uncertainties in electricity markets. The expected profits and three types of tail risks related to the extreme results in worst scenarios can be managed flexibly by changing the integrated risk aversion parameters and sub-risk aversion parameters of the wind storage system.

The remainder of this paper is organized as follows: Section II presents the risk-ware stochastic decision framework and employed risk measurements, while Section III develops the integrated risk measurement and control approaches of the wind storage system. Section IV conducts the case studies, and Section V concludes the paper and proposes future work.

## 2 Stochastic programming and risk control

### 2.1 Decision framework under risk-aware stochastic optimization

In recent years, stochastic optimization methodology has been widely adopted for the uncertain-aware decision-making problems considering risk management. In the framework of stochastic programming, the objective function of the risk-neutral decision maker is the expected value of its objective function, where each random parameter is characterized by a set of limited scenarios, with each scenario assigned a probability weight. This scenario set can be regarded as a discrete probability distribution of random parameters. For risk-averse decision makers, the objective function needs to incorporate a risk measurement term into the objective function to measure and manage low returns or losses in extreme scenarios. Specifically, the objective function of a risk-averse decision maker in a stochastic optimization problem can be expressed as:

where \({\mathbf{x}}\) and \({{\varvec{\upzeta}}}\) are the vectors of decision variables and random parameters, respectively. \(f({\mathbf{x}},{{\varvec{\upzeta}}})\) is the distribution function of expected profit, and \(E_{{{\varvec{\upzeta}}}} \{ f({\mathbf{x}},{{\varvec{\upzeta}}})\}\) is the total expected profit of decision makers. \(R_{{{\varvec{\upzeta}}}} \{ f({\mathbf{x}},{{\varvec{\upzeta}}})\}\) is the risk measure of \(f({\mathbf{x}},{{\varvec{\upzeta}}})\), such as SP, VaR and CVaR. The weight coefficient \(\beta_{{\text{r}}}\) of \(R_{{{\varvec{\upzeta}}}} \{ f({\mathbf{x}},{{\varvec{\upzeta}}})\}\) is the risk aversion parameter. For the wind storage system, both \(E_{{{\varvec{\upzeta}}}} \{ f({\mathbf{x}},{{\varvec{\upzeta}}})\}\) and \(R_{{{\varvec{\upzeta}}}} \{ f({\mathbf{x}},{{\varvec{\upzeta}}})\}\) are positive. When \(\beta_{{\text{r}}}\) increases, the weight coefficients of expected profit and risk measurement in (1) will decrease and increase, respectively, while the risk aversion degree of decision makers will increase. This makes the optimal solution of the stochastic optimization problem more conservative.

### 2.2 Risk control methodologies based on different risk measurements

#### 2.2.1 Risk control based on SP

The value of the loss probability can be represented as \(F^{{{\text{SP}}}} ({\mathbf{x}},\eta^{{{\text{SP}}}} )\) and it is the probability that the expected profit is less than the reference profit value \(\eta^{{{\text{SP}}}}\). The formulation of calculating \(F^{{{\text{SP}}}} ({\mathbf{x}},\eta^{{{\text{SP}}}} )\) is expressed as:

where \({{\varvec{\upzeta}}} = \{ \zeta_{w} \}_{w = 1}^{\Omega }\) and \(\zeta_{w}\) is the \(w\) scenario in the scenario set \({{\varvec{\upzeta}}}\), and the total number of scenarios is \(\Omega\).

To reduce the potential risk and improve the profit value of extreme scenarios, a smaller SP is usually expected for the decision makers. Therefore, \(R_{{{\varvec{\upzeta}}}} \{ f({\mathbf{x}},{{\varvec{\upzeta}}})\}\) of the objective function (1) of the stochastic programming model will be set to \(- F^{{{\text{SP}}}} ({\mathbf{x}},\eta^{{{\text{SP}}}} )\), and the maximization of the negative value of SP is equivalent to the minimization of the SP. The defect of using the risk measurement SP is that it cannot give the statistical information of the profit exceeding the reference value \(\eta^{{{\text{SP}}}}\), and thus, the SP cannot measure the risk associated with a fat tail. In addition, because SP is a probability value rather than a profit value, it has no units and is not a consistent risk measure.

#### 2.2.2 Risk control based on VaR

VaR is the maximum possible loss or minimum low income of decision makers in a certain period in the future at a certain confidence level. It was first proposed by the G30 group in 1993 in the report of *Practice and Rules of Derivatives*. Given the confidence level parameter \(\alpha^{{{\text{VaR}}}} \in (0,1)\), VaR can be represented as \(F^{{{\text{VaR}}}} (\alpha^{{{\text{VaR}}}} ,{\mathbf{x}})\) and calculated by:

where the value of expected profit being less than \(\eta^{VaR}\) is not greater than \(1 - \alpha^{{{\text{VaR}}}}\), and the value of VaR is the maximum value of \(\eta^{{{\text{VaR}}}}\). VaR can be regarded as an upper bound of potential loss or low return in the \((1 - \alpha^{{{\text{VaR}}}} ) \times 100\%\) worst case scenario, which is a quantile of the expected profit distribution function.

Similar to SP, VaR also cannot give the profit distribution information beyond the reference value \(\eta^{{{\text{VaR}}}}\), and it cannot measure the risk related to a fat tail, so it is not a consistent risk measure. However, VaR satisfies all other properties of consistent risk measures except homogeneous additivity. In addition, VaR is more intuitive and relatively simple to calculate, so it has become the most commonly used risk measure in the financial industry.

#### 2.2.3 Risk control based on CVaR

CVaR is a risk measurement model developed on the basis of VaR. It was proposed by RockafeUar and Uryasev in 1997 to calculate the expected return of the trading strategy when the profit is lower than a given VaR value. Given the confidence level parameter \(\alpha^{CVaR} \in (0,1)\), CVaR can be represented as \(F^{{{\text{CVaR}}}} (\alpha^{{{\text{CVaR}}}} ,{\mathbf{x}})\) and calculated by:

where \(\eta^{{{\text{CVaR}}}}\) is an auxiliary variable for calculating CVaR, and is similar to its role in (3) and is the \((1 - \alpha^{{{\text{CVaR}}}} )\) quantile of the expected profit distribution. If the probability weights of all scenarios are equal, the value of \(F^{{{\text{CVaR}}}} (\alpha^{{{\text{CVaR}}}} ,{\mathbf{x}})\) is the expected profit of the worst scenario of \((1 - \alpha^{{{\text{CVaR}}}} )\%\). The advantage of CVaR is that it is a consistent risk measure and can effectively manage tail risk beyond VaR. In addition, when CVaR is introduced into stochastic optimization problems, no additional integer variable needs to be introduced. In recent years, CVaR has been widely used in various risk-aware decision-making problems in the field of electric energy systems.

### 2.3 Risk control using integrated risk measurement

By simultaneously considering the above risk measurements provided in Sections II-B for the expected profit distribution, an integrated risk measurement \(F^{{{\text{IRM}}}} {(}{\mathbf{x}},\eta^{{{\text{SP}}}} ,\alpha^{{{\text{VaR}}}} {,}\alpha^{{{\text{CVaR}}}} {)}\) can be obtained, expressed as:

where the three risk parameters \(\eta^{{{\text{SP}}}}\), \(\alpha^{{{\text{VaR}}}}\) and \(\alpha^{{{\text{CVaR}}}}\) are determined by the decision maker to control the tail risks of the expected profit distribution according to its specific risk preference. As shown in Fig.Â 1, CVaR, VaR and SP can be used to manage the expected, boundary and probability values of the extreme profits in the worst scenarios, and the objective function can be adjusted by revising the risk parameters of different risk measurements.

## 3 Proposed integrated risk measurement and control methodologies for a wind storage system

### 3.1 Market framework and random parameter characterization

The basic framework of a typical two-settlement electricity market is depicted in Fig.Â 2, and is mainly composed of the day-ahead market and the real-time market. On the day before the power system operating day, the wind storage system generates a day-ahead trading strategy before the submission closure time of the day-ahead market, and the cleared energy is settled at the day-ahead electricity price. On the power system operating day, the power system must guarantee the real-time power balance through the real-time market, and the deviations caused by the day-ahead submissions of the wind storage system will be settled by the real-time electricity price considering deviation penalty costs.

Based on the above market framework, the random parameters faced by the wind storage system in electricity markets include wind power production, day-ahead and real-time electricity prices. In this paper, the scenarios of random parameters are generated using the Seasonal Autoregressive Integrated Moving Average (SARIMA) model. Taking the random parameter day-ahead electricity price \(\lambda_{t,w}^{{{\text{DA}}}}\) as an example, its mathematical formula based on the SARIMA model is expressed as:

where \(S\) is the seasonal order, \(\phi_{1} ,{\kern 1pt} {\kern 1pt} \phi_{2} ,{\kern 1pt} {\kern 1pt} \cdots ,{\kern 1pt} {\kern 1pt} \phi_{G}\) denote \(G\) autoregressive parameters, \(\theta_{1} ,{\kern 1pt} {\kern 1pt} \theta_{2} ,{\kern 1pt} {\kern 1pt} \cdots ,{\kern 1pt} {\kern 1pt} \theta_{H}\) denote \(H\) moving average parameters, \(\Phi_{1} ,{\kern 1pt} {\kern 1pt} \Phi_{2} ,{\kern 1pt} {\kern 1pt} \cdots ,{\kern 1pt} {\kern 1pt} \Phi_{P}\) denote \(P\) seasonal autoregressive parameters, and \(\Theta_{1} ,{\kern 1pt} {\kern 1pt} \Theta_{2} ,{\kern 1pt} {\kern 1pt} \cdots ,{\kern 1pt} {\kern 1pt} \Theta_{Q}\) denote \(Q\) seasonal moving average parameters. \(\varepsilon_{t,w}^{{{\text{DA}}}}\) denotes the error term of scenario \(w\), which follows the independent normal probability distribution for the SARIMA model. \(B\) is the backward shift operator, and its function can be defined by:

where \(d\) is the difference order of the SARIMA model.

### 3.2 Trading strategy based on integrated risk measurement and control

#### 3.2.1 Objective function

The objective function of the wind storage system is the weighted sum of the total expected profit and all the risk measurements. The weight coefficients \(\beta^{{{SP}}}\), \(\beta^{{{VaR}}}\), and \(\beta^{{{CVaR}}}\) are defined as the sub-risk aversion degree of SP, VaR and CVaR, respectively. The value range of these risk averse degree parameters is [0,1] and they need to satisfy the following equation, as:

Based on (8) and the framework of stochastic optimization, the objective function of the proposed risk control problem can be established as:

where \(\Xi\) is the set of all the decision variables of the proposed risk-aware stochastic optimization problem. \(pr_{w}\) and \(\pi_{w}^{WS}\) are the probability and expected profit of the scenario w, respectively, and \(\pi^{{{\text{SC}}}}\) is the scale parameter of SP. \(\theta^{{{\text{SP}}}}\), \(\pi^{{{\text{VaR}}}}\) and \(\pi^{{{\text{CVaR}}}}\) are the SP, VaR and CVaR of the wind storage system, respectively, while the sub-risk aversion degree parameters of the wind storage system are \(\beta^{{{\text{SP}}}}\), \(\beta^{{{\text{VaR}}}}\) and \(\beta^{{{\text{CVaR}}}}\).

The expected profit \(\pi_{w}^{{{\text{WS}}}}\) for the stochastic energy trading of the wind storage system in the electricity market is calculated as:

where \(\lambda_{t,w}^{{{\text{DA}}}}\) and \(\lambda_{t,w}^{{{\text{RT}}}}\) are the day-ahead and real-time electricity prices in the electricity market in the period \(t\) of scenario \(w\), respectively. \(P_{t}^{{{\text{DA}}}}\) and \(P_{t}^{{{\text{RT}}}}\) are the energy sold by the wind storage system in the day-ahead and real-time markets, respectively, where negative values mean the wind storage system is buying energy from the markets. \(P_{t,w}^{{\text{BS,ch}}}\) and \(P_{t,w}^{{\text{BS,dis}}}\) are the respective charging and discharging energy of the battery storage in the period \(t\) of scenario \(w\), while \(P_{t,w}^{{\text{RT + }}}\) and \(P_{t,w}^{{\text{RT - }}}\) are the positive and negative power deviations in RT markets, respectively. \(F^{{\text{DEV + }}}\) and \(F^{{\text{DEV - }}}\) are the respective positive and negative deviation penalty costs for real-time power of the wind storage system, while \(F^{{\text{BS,ch}}}\) and \(F^{{\text{BS,dis}}}\) are the charging and discharging operation costs of the battery storage, respectively.

#### 3.2.2 Constraints of the risk measurements

In the stochastic optimization problem, the constraints used to calculate SP include:

where \(\eta^{SP}\) represents the reference profit of the shortfall probability, \(z_{w}^{{{\text{SP}}}}\) is the binary auxiliary variable, which is 1 when \(\pi_{w}^{{{\text{WS}}}} \le \eta^{{{\text{SP}}}}\) and is 0 otherwise, while \(M\) is a sufficiently large constant.

The constraints used for calculating the VaR include:

where \(\alpha^{{{\text{VaR}}}}\) is the confidence level parameter of the VaR, \(z_{w}^{{{\text{VaR}}}}\) is the binary auxiliary variable used to calculate it, and equals 1 when \(\pi_{w}^{{{\text{WS}}}} \le \pi^{{{\text{VaR}}}}\) and 0 otherwise.

The constraints used for calculating the CVaR include:

where \(\alpha^{{{\text{CVaR}}}}\) is the confidence level parameter, while \(g_{w}\) and \(\zeta\) are the auxiliary variables used to calculate the CVaR. The detailed derivation and proof process of this calculation method are shown in detail in [26].

#### 3.2.3 Constraints of energy balance and energy trading

The energy balance constraint of the wind storage system participating in the electricity market is expressed as:

where \(P_{t,w}^{{{\text{RES}}}}\) is the wind power production in the period \(t\) of scenario \(w\). The total energy sold by the wind storage system in the day-ahead and real-time markets is equal to the sum of wind power production, and battery discharging energy minus charging energy.

The trading volume of the wind storage system in the day-ahead market is constrained by the installed capacity of the energy storage and wind farm. This capacity can be expressed as (21). Specifically, the maximum day-ahead purchasing energy of the wind- storage system should not be higher than the maximum power capacity of the energy storage device, and the maximum day-ahead selling power shall not be higher than the sum of the installed capacity of the wind power plant and the power capacity of the energy storage device, i.e.:

The positive and negative deviations of the wind storage system in the real-time electricity market are calculated by:

#### 3.2.4 Constraints of battery storage

The operating cost of battery storage is related to the charging and discharging power, expressed as:

The energy levels of battery storage in different periods are calculated by:

where \(E_{t,w}^{{{\text{BS}}}}\) is the real-time energy level of the battery in the period \(t\) of scenario \(w\), and \(E_{{}}^{{\text{BS,0}}}\) is the initial energy level of battery storage. \(\eta^{{\text{BS,ch}}}\) and \(\eta^{{\text{BS,dis}}}\) are the charging and discharging efficiencies of the battery storage, respectively.

The energy level and chargeâ€“discharge power constraints of the battery are given as:

where \(z_{t,w}^{{\text{BS,ch}}}\) is a binary variable representing the charging state, which is 1 when the battery is charged and 0 otherwise, while \(z_{t,w}^{{\text{BS,dis}}}\) is a binary variable representing the discharging state, which is 1 when the battery is discharged and 0 otherwise. \(E^{{\text{BS,max}}}\) and \(E^{{\text{BS,min}}}\) are the highest and lowest energy levels of the battery, respectively. \(P^{{\text{BS,max}}}\) determines the maximum charging and discharging power of the battery.

### 3.3 Energy trading strategies based on different risk control methodologies

By simplifying the proposed stochastic optimization model based on integrated risk control methodology, the stochastic optimization models of a risk-neutral energy trading strategy and three other risk-averse trading strategies can be obtained.

When \(\beta^{{{\text{SP}}}} = \beta^{{{\text{VaR}}}} = \beta^{{{\text{CVaR}}}} = {0}\), only the total expected profit is considered in the objective function of the stochastic optimization model. This strategy can be called risk neutral strategy, and its optimization model includes (9)â€“(10), and (20)-(31).

When \(\beta^{{{\text{SP}}}} > 0\), \(\beta^{{{\text{VaR}}}} = 0\), and \(\beta^{{{\text{CVaR}}}} = 0\), the total expected profit and risk measurement SP will be considered in the objective function of the stochastic optimization model. This strategy can be called SP risk control strategy, and its optimization model includes (8)â€“(13), and (20)â€“(31).

When \(\beta^{{{\text{SP}}}} = 0\), \(\beta^{{{\text{VaR}}}} > 0\), and \(\beta^{{{\text{CVaR}}}} = 0\), the objective function of the stochastic optimization model will consider the total expected profit and the risk measurement VaR. This strategy can be called VaR risk control strategy, and its corresponding optimization models include (9)â€“(10), (14)â€“(16), and (20)â€“(31).

When \(\beta^{{{\text{SP}}}} = 0\), \(\beta^{{{\text{VaR}}}} = 0\), and \(\beta^{{{\text{CVaR}}}} > 0\), the total expected profit and risk measurement CVaR will be considered in the objective function of the stochastic optimization model. This strategy can be called the CVaR risk control strategy, and its corresponding optimization model includes (8)-(10), and (17)-(31).

When \(\beta^{{{\text{SP}}}} > 0\), \(\beta^{{{\text{VaR}}}} > 0\), and \(\beta^{{{\text{CVaR}}}} > 0\), the total expected profit and three different risk measures of SP, VaR, and CVaR will be considered in the objective function of the stochastic optimization model, and this strategy is the integrated risk control strategy proposed in this paper, and its corresponding optimization model includes (9)â€“(31). These have been explained in Section III-B in detail.

## 4 Case studies

### 4.1 Simulation set-up

To verify the effectiveness of the proposed integrated risk measurement and control methodologies, a wind power plant with an installed capacity of 16 MW, and a battery storage device with 6 MWh energy capacity and 3 MW power capacity are analyzed. The historical wind power data are obtained from the website of the National Renewable Energy Laboratory [27], and the charging and discharging operational costs of the battery storage is 0.015 $/MWh. The historical day-ahead and real-time electricity price data are obtained from IMO, which is the trading hub node of the Pennsylvania-Jersey-Maryland electricity market in the United States [28]. The penalty cost of real-time power deviation is 1 $/MWh. The number of scenarios for each random parameter is 50, and the probability weight of each scenario is 0.02. All the optimization models in this paper are solved by YALMIP toolbox and commercial solver Gurobi 6.52 in the environment of MATLAB 2019b [29].

### 4.2 Compare risk-neutral and risk-averse strategies

This part first compares the risk neutral strategy with the integrated risk control strategy, with the risk parameters \(\beta^{{{\text{SP}}}} = \beta^{{{\text{VaR}}}} = \beta^{{{\text{CVaR}}}} = 0.2\). The expected values of wind power generation, day-ahead and real-time electricity prices on one day are shown in Fig.Â 3. It can be seen that the fluctuations of real-time electricity price are more obvious than those of wind power production and day-ahead electricity price.

The trading results of the risk neutral strategy and the integrated risk control strategy in the day-ahead market and the real-time market are shown in Fig.Â 4, and the energy level of the battery storage device is shown in Fig.Â 5. The results show that the wind storage system is more inclined to sell energy to the trading floors during the periods with high electricity prices. The expected day-ahead prices during 11:00â€“14:00 are significantly higher than the real-time prices, and thus the wind storage system chooses to sell energy in the day-ahead market and buy them back in the real-time market for both strategies. The energy storage device tends to discharge when the electricity price is high. For instance, since the electricity price is high at 15:00â€“17:00, the energy storage device chooses to discharge quickly to earn income, resulting in a rapid decline in its energy level.

As shown in Figs. 3, 4, 5, it is also found that the impact of risk management on the trading strategy of the wind storage system is closely related to the difference between day-ahead and real-time electricity prices. For instance, that difference during 11:00â€“14:00 is large, and the trading strategy of the wind storage system is relatively stable, and almost unaffected by the risk control methodologies. By contrast, when the difference between the day-ahead and the real-time electricity prices during 4:00â€“6:00 is close to 0 the uncertainties faced by the wind storage system are severe, resulting in significantly different trading results between its risk-neutral strategy and integrated risk control strategy.

To further investigate the effectiveness and compare the characteristics of different risk control strategies, Table 1 compares and analyzes the results of five different risk control strategies described in Section III-C. \(\beta^{{{\text{SP}}}}\) of SP risk control strategy, \(\beta^{{{\text{VaR}}}}\) of VaR risk control strategy, and \(\beta^{{{\text{CVaR}}}}\) of CVaR risk control strategy are all set to 0.6. From the statistical results of the expected profits, it can be seen that these four risk control strategies can effectively help the wind storage system to avoid the tail risks of extreme scenarios. The minimum profits obtained by using the CVaR, VaR, SP and integrated risk strategies are respectively 74.96%, 74.78%, 71.20% and 75.67% higher than that obtained by solving the risk-neutral strategy. In contrast, the total expected profits obtained by using the CVaR, VaR, SP and integrated risk strategies are respectively only 1.6%, 1.53%, 1.37% and 1.58% lower than that obtained by solving the risk-neutral strategy.

The integrated risk control strategy proposed here can simultaneously reduce the SP by 33.33%, and increase VaR and CVaR by 57.63% and 35.13%, respectively. Thus the proposed integrated risk control method can effectively manage multi-type statistical properties of the expected profit distribution simultaneously. This increases the flexibility of the risk-aware energy trading process. Additionally, the SP, VaR and CVaR obtained from the respective SP, VaR and CVaR risk control strategies are optimal. Thus, the different types of risk control strategies can well meet the risk management needs of multiple decision makers who may prefer different risk measurement indicators.

### 4.3 Sensitivity analysis of risk parameter

The value of integrated risk parameter \(\beta_{{\text{r}}}\) is gradually increased from 0 to 0.6, and the values of each sub-risk coefficient are equal to \(\beta_{{\text{r}}} /3\). The risk measurement results and the expected profits of the relevant risk measures are shown in Figs. 6 and 7, respectively. These results show that as the risk coefficient increases, CVaR and VaR are also increased, while SP is decreased, and the total expected profit is gradually decreased.

When the integrated risk coefficient increases from 0 to 0.4, the expected profit and risk measures change more obviously, e.g., VaR and CVaR increase by 33.43% and 55.9%, respectively, while SP and the total expected profit decrease by 33.3% and 1.5%, respectively. When the integrated risk coefficient increases from 0.4 to 0.6, its impacts on the expected profit and risk measurements are not significant, e.g., VaR and CVaR are only increased by 0.42% and 0.35%, respectively, and the total expected profit is decreased by 0.08%, while the SP does not change. As a result, if the decision maker is concerned about CVaR and VaR, choosing an integrated risk parameter lower than 0.3 is a good choice, since it can decrease CVaR and VaR significantly without noticeably decreasing the expected profit. However, if the decision maker needs to decrease SP, setting the integrated risk parameter to be 0.3 or 0.4 is better.

### 4.4 Sensitivity analysis of battery capacity

The energy capacity of the battery storage is gradually increased from 4 to 10 MWh, and the expected profit results and the risk measurements are shown in Figs. 8 and 9, respectively. The results indicate that as the energy capacity of the energy storage device increases, CVaR and VaR and total expected profit are all significantly increased, while SP is decreased. Additionally, the growth trend of CVaR and the total expected profit are relatively stable, while the variations of SP and VaR have a certain randomness. For example, when the energy capacity of battery storage is increased from 5 to 6 MWh, SP and VaR are decreased and increased by 25% and 0.42%, respectively. In comparison, when the energy capacity of battery storage is increased from 6 to 7 MWh, SP is not changed while VaR is increased by 2.1%.

## 5 Conclusion

This paper has proposed integrated risk measurement and control methodologies for the stochastic energy trading strategy of a wind storage system, where three types of risk measurements, i.e., SP, VaR and CVaR, are incorporated into the stochastic optimization model. The proposed strategy fully considers the uncertainties of day-ahead electricity price, real-time electricity price and wind power production, and can satisfy various risk preferences of decision makers. By conducting the simulation analysis based on realistic data, the following conclusions can be obtained:

The proposed integrated risk control strategy can simultaneously optimize the three risk measurements, including SP, VaR and CVaR, which can flexibly and effectively control the statistical properties of the expected profit distribution and reduce multi-type tail risks faced by decision makers.

The impacts of risk control on a wind storage system are closely related to the difference between the expected day-ahead and real-time electricity prices. If the expected price difference is small, the uncertainties and risks of the expected profit of the wind storage system will be severe. Consequently, stochastic electricity trading strategy is more likely to be affected by the risk preference of the decision maker.

The values of risk aversion parameters are closely related to the risk preference of the decision maker. Larger risk aversion parameters can improve the capability of managing the tail risks of expected profit distribution for the wind storage system, while at the same time reducing the total expected profit.

Increasing the energy capacity of battery storage increases the arbitrage capability of a wind storage system during different periods in two-settlement electricity markets. This can improve the total expected profit and risk management performance simultaneously.

In future research, the value of other flexible resources, such as electric vehicles [30], gas fired units [31], etc., will be further investigated for the wind energy system with an integrated risk control strategy. Additionally, other market mechanisms, such as long-term power trading and ancillary service markets [32], may also affect multi-type risk measurements and profits, and can be considered by the wind storage system in electricity markets.

## Availability of data and materials

Data will be made available on reasonable request.

## References

He, Q., Lin, Z., Chen, H., et al. (2022). Bi-level optimization based two-stage market clearing model considering guaranteed accommodation of renewable energy generation.

*Protection and Control of Modern Power Systems,**7*(1), 1â€“13.Conejo, A. J., CarriÃ³n, M., & Morales, J. M. (2010).

*Decision making under uncertainty in electricity markets*. Springer.Husin, H., & Zaki, M. (2021). A critical review of the integration of renewable energy sources with various technologies.

*Protection and Control of Modern Power Systems,**6*(1), 1â€“18.Yang, B., Liu, B., Zhou, H., et al. (2022). A critical survey of technologies of large offshore wind farm integration: Summary, advances, and perspectives.

*Protection and Control of Modern Power Systems,**7*(1), 1â€“32.Zhang, Z., Zhang, Y., Huang, Q., et al. (2018). Market-oriented optimal dispatching strategy for a wind farm with a multiple stage hybrid energy storage system.

*CSEE Journal of power and energy systems,**4*(4), 417â€“424.Moradi, J., Shahinzadeh, H., Khandan, A., et al. (2017). A profitability investigation into the collaborative operation of wind and underwater compressed air energy storage units in the spot market.

*Energy,**141*, 1779â€“1794.Khaloie, H., Abdollahi, A., Shafie-Khah, M., et al. (2020). Coordinated wind-thermal-energy storage offering strategy in energy and spinning reserve markets using a multi-stage model.

*Applied Energy,**259*, 114168.De la Nieta, A. A. S., Contreras, J., & Catalao, J. P. S. (2016). Optimal single wind hydro-pump storage bidding in day-ahead markets including bilateral contracts.

*IEEE Transactions on Sustainable Energy,**7*(3), 1284â€“1294.Xian, W., Fengying, L., & Shaohu, Z. (2022). Equilibrium analysis of coupled electricity and gas markets considering joint operation of wind power with energy conversion and storage equipment.

*Power System Protection and Control,**50*(09), 64â€“74.Khalid, M., Aguilera, R. P., Savkin, A. V., et al. (2018). A market-oriented wind power dispatch strategy using adaptive price thresholds and battery energy storage.

*Wind Energy,**21*(4), 242â€“254.Khalid, M., Aguilera, R. P., Savkin, A. V., et al. (2018). On maximizing profit of wind-battery supported power station based on wind power and energy price forecasting.

*Applied Energy,**211*, 764â€“773.Azizivahed, A., Razavi, S. E., Arefi, A., et al. (2019). Risk-oriented multi-area economic dispatch solution with high penetration of wind power generation and compressed air energy storage system.

*IEEE Transactions on Sustainable Energy,**11*(3), 1569â€“1578.Bhattacharjee, S., Sioshansi, R., & Zareipour, H. (2020). Benefits of strategically sizing wind-integrated energy storage and transmission.

*IEEE Transactions on Power Systems,**36*(2), 1141â€“1151.Yang, X., Fan, L., Li, X., et al. (2023). Day-ahead and real-time market bidding and scheduling strategy for wind power participation based on shared energy storage.

*Electric Power Systems Research,**214*, 108903.Dadashi, M., Zare, K., Seyedi, H., et al. (2022). Coordination of wind power producers with an energy storage system for the optimal participation in wholesale electricity markets[J].

*International Journal of Electrical Power and Energy Systems,**136*, 107672.Wei, X., Xiang, Y., Li, J., et al. (2022). Self-dispatch of wind storage integrated system: A deep reinforcement learning approach.

*IEEE Transactions on Sustainable Energy,**13*(3), 1861â€“1864.Yang, J. J., Yang, M., Wang, M. X., et al. (2020). A deep reinforcement learning method for managing wind farm uncertainties through energy storage system control and external reserve purchasing.

*International Journal of Electrical Power & Energy Systems,**119*, 105928.Ghavidel, S., Ghadi, M. J., Azizivahed, A., et al. (2019). Risk-constrained bidding strategy for a joint operation of wind power and CAES aggregators.

*IEEE Transactions on Sustainable Energy,**11*(1), 457â€“466.Haixiang, Z., Mingxin, M., Yizhou, Z., et al. (2022). Robust optimal scheduling model for a â€˜wind power-concentrating solar power-biomassâ€™ hybrid power plant in the electricity market.

*Power System Protection and Control,**50*(05), 1â€“11.Yunchao, S., Dan, W., Wei, H., et al. (2021). Research on multi-objective stochastic planning of a micro energy grid with multiple clean energy sources based on scenario construction technology.

*Power System Protection and Control,**49*(03), 20â€“31.Gomes, I. L. R., Pousinho, H. M. I., Melicio, R., et al. (2017). Stochastic coordination of joint wind and photovoltaic systems with energy storage in day-ahead market.

*Energy,**124*, 310â€“320.Yu, D., Wang, J., Li, D., et al. (2019). Risk-averse stochastic operation of a power system integrated with hydrogen storage system and wind generation in the presence of demand response program.

*International Journal of Hydrogen Energy,**44*(59), 31204â€“31215.Ding, H., Pinson, P., Hu, Z., et al. (2016). Optimal offering and operating strategies for wind storage systems with linear decision rules.

*IEEE Transactions on Power Systems,**31*(6), 4755â€“4764.Linsmeier, T. J., & Neil, D. P. (2000). Value at risk.

*Financial Analysts Journal,**56*(2), 47â€“67.Tohidi, Y., Mohammad, R. H., & Francois, R. (2017). Modified benders decomposition for solving transmission investment game with risk measure.

*IEEE Transactions on Power Systems,**33*(2), 1936â€“1947.Rockafellar, R. T., & Uryasev, S. (2000). Optimization of conditional value-at-risk.

*Journal of risk,**2*, 21â€“42.NREL. Wind Geospatial Data Tools [EB/OL]. [2014â€“01â€“23].https://www.nrel.gov/gis/wind-geospatial-data-tools.html

PJM. PJM data miner 2. [EB/OL]. [2014â€“01â€“23]. https://dataminer2.pjm.com/

LÃ¶fberg J. YALMIP: a toolbox for modeling and optimization in MATLAB[C]//Proceedings of 2004 IEEE International Symposium on Computer Aided Control Systems Design. Taipei, China: IEEE, 2004: 284â€“289.

Huang, Z., Baling, F., & Jin, D. (2020). Multi-objective optimization strategy for distribution network considering V2G-enabled electric vehicles in building integrated energy system.

*Protection and Control of Modern Power Systems,**5*(7), 1â€“8.Mirzaei, M. A., et al. (2020). Evaluating the impact of multi-carrier energy storage systems in optimal operation of integrated electricity, gas and district heating networks.

*Applied Thermal Engineering,**176*, 115413.Xiao, X., et al. (2020). Large-scale aggregation of prosumers toward strategic bidding in joint energy and regulation markets.

*Applied Energy,**271*, 115159.

## Acknowledgements

Not applicable.

## Funding

This paper is support by the National Key Research and Development program of China (No. 2022YFB2403500), National Natural Science Foundation of China (No. 52207104) and China Postdoctoral Science Foundation (No. 2022M711202).

## Author information

### Authors and Affiliations

### Contributions

DX and HC carried out theoretical analysis and conduct case studies to verify the proposed method, WC proposed methods for solving the optimization model, CW and ZZ offered help in theory and practice, and provide suggestions. All authors read and approved the final manuscript.

### Corresponding author

## Ethics declarations

### Competing interests

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

## Rights and permissions

**Open Access** This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.

## About this article

### Cite this article

Xiao, D., Chen, H., Cai, W. *et al.* Integrated risk measurement and control for stochastic energy trading of a wind storage system in electricity markets.
*Prot Control Mod Power Syst* **8**, 60 (2023). https://doi.org/10.1186/s41601-023-00329-3

Received:

Accepted:

Published:

DOI: https://doi.org/10.1186/s41601-023-00329-3