Abstract

As the proportion of renewable energy increases in power systems, the need for peak shaving is increasing. The optimal operation of the battery energy storage system (BESS) can provide a resilient and low-carbon peak-shaving approach for the system. Therefore, a two-stage optimization model for grid-side BESS is proposed. First, the carbon emission model of thermal power units considering BESS is proposed to describe the ability of the BESS in reducing the carbon emissions. Second, in order to deal with the uncertainty of the photovoltaics and wind forecast errors, a certain capacity of BESS is reserved. The model in the first stage takes the lowest carbon emission of the system as the goal, and the model in the second stage determines the BESS reserve capacity with the objective of minimizing the risk cost of the system. The simulation results show that the carbon emission model of thermal power units with BESS can measure the contribution of energy storage to emission reduction. By setting the reserve capacity of energy storage, the peak-shaving resilience of the system is improved, and the risk of photovoltaics and wind forecast error is reduced.

1. Introduction

As the installed capacity of wind power continues to increase, flexible adjustment resources are required to maintain safe and stable operation and power balance in the power system [1]. The requirements of peak shaving continue to increase due to the randomness and volatility of wind and solar power [2]. Coal-fired power plants are the most popular resource for the peak-shaving service. However, thermal power unit flexibility transformation for peak-shaving services is very expensive [3]. Besides, participating in peak shaving through the operation of thermal power units will increase its coal consumption, operation and maintenance costs, and carbon emissions, which is inconsistent with a national goal of peak carbon emissions by 2030 and carbon neutrality by 2060 in China [3]. The corresponding speed of peak shaving by hydropower units is fast, but there is not enough hydropower for peak shaving in many areas due to the limitations of water resources and geography [4]. The peak-shaving capacity of hydropower is also limited by season, inflow, reservoir regulation capacity, etc. Therefore, in order to achieve low-carbon and flexible peak shaving, new devices and operation strategy are required.

The growth of renewable energy and the need for peak shaving have led to an exponential growth of grid support and storage installations around the globe. Consequently, by 2040 (accounting for 9 GW/17 GWh deployed as of 2018), the market will rise to 1095 GW/2,850 GWh, making a more than 120 times increase, based on a recent study published by Bloomberg New Energy Finance (BNEF) [5]. The fast and convenient control, simple requirements for geographical conditions, and high energy efficiency of energy storage devices can meet the need for a balance between supply and demand [6, 7]. Most existing studies on energy storage analyze the economy of operation. For example, Hou et al. [8] developed a coupling operation model to optimize different energy storage devices for wind output power fluctuation smoothing, power imbalances mitigating, and peak load shaving with the maximum net earnings of the whole system. Authors in [9] proposed a resilient and peak-shaving trade-off scheme for battery energy storage systems to reduce operational costs. Authors in [10] developed a complex control algorithm in order to optimize the use of energy storage devices for peak load shaving in five different load demand profiles. Although reducing the operational costs of battery energy storage is of great importance, sometimes the revenue of energy storage should give way to the interests of renewable energy or power users, such as the centralized battery energy storage system (BESS) on the grid side [5].

BESS can be used for stationary applications at every level of the network such as generation, transmission, and distribution as well as local industrial and commercial customers [5]. At present, many countries and regions have successively built grid-side BESS. In the United States, Australia, and the Republic of Korea, grid-side BESS is mainly used to participate in the frequency modulation market and peak saving [11, 12]. There are also many grid-side BESS projects in China. For example, the grid-side distributed BESS project in Henan Province provides instruction tracking and output fluctuations smoothening services for the local power grid [13]. Zhicheng energy storage station, the first grid-side lead-carbon BESS in China, is mainly used in two typical application scenarios, namely, peak shaving and frequency regulation [14]. The Langli BESS in Hunan province [15] adopts the operation mode of “twice charging and twice discharging” in one day to meet the peak-shaving demand of load peak at noon and in the evening in that the load peak-valley difference is relatively large.

The research on centralized grid-side BESS is mainly about the economy of planning and operation. Authors in [16] developed a bi-level optimal locating and sizing model for a grid-side BESS, and the direct revenue of this system is from the arbitrage of the peak-valley electricity price and auxiliary service compensation. Authors in [6] proposed a probabilistic approach for sizing large-scale battery storage with the aim of mitigating the net load uncertainty and quantified the required BESS capacity for operating the wind plant without incurring excessive battery installation costs. A two-stage scheduling optimization model and solution algorithm for BESS with wind power considering uncertainty and demand response were proposed in [17]. For two-stage stochastic optimization models, the optimal sizing and location of BESS considering wind power integration were determined in [18]. Wind forecast errors will affect the operation of energy storage [19]. The existing research has not paid attention to the optimal operation of grid-side BESS, considering both the resilience issue of wind power and system carbon emissions in peak-shaving function [9, 20].

The measurement of the carbon emission reduction contribution of a certain device is conducive to the operation of the carbon market and carbon trading. In order to describe the carbon emission reduction contribution of grid-side BESS, the carbon emission measurement of the system needs a more accurate description first.

Therefore, in this paper, grid-side BESS is regarded as an independent centralized storage system, and its charge and discharge power are described and included in the carbon emission measurement of thermal power units. The value of system carbon emission intensity reduced by energy storage is related to the carbon emission intensity of thermal power units. Moreover, if a certain reserve capacity is set during the operation of energy storage, the system operation risk caused by the uncertain resilience issue of wind power and photovoltaics can be reduced, and the resilience of the system can be increased. When the economy of energy storage is reduced, the reserve capacity of the energy storage system will be increased, and the operation economy of the whole power system can be improved.

2. Carbon Emission Model of Thermal Power Units with BESS

China’s coal-based energy structure determines that coal accounts for more than half of the primary energy. Therefore, this paper sets thermal power units as coal-fired thermal power units to simplify the description of the carbon emissions of thermal power units. According to the law of energy conservation, in an ideal situation, 122.8 g of standard coal is consumed to produce 1 kWh of electric energy. However, in fact, the coal consumption is far greater than 122.8 g/(kWh), and there are additional carbon emissions. In order to quantify the contribution of BESS to emission reduction in the system, it is first necessary to accurately describe the carbon emissions of thermal power units.

The carbon emission intensity or rate of coal-fired thermal power units is the amount of carbon dioxide emissions generated by 1 kWh of electricity supply for a unit and is negatively related to the power load. The higher the power load, the lower the carbon emission intensity [21]. Through linear fitting, the linear function relationship between the output of thermal power units and the carbon emission intensity is as follows [21]:where is the carbon emission intensity of the unit at hourly time interval , are linear coefficients, is the output of the unit at time interval , and is the installed capacity of the unit .

Then, the carbon emissions of the thermal power unit can be calculated according to the following formula:where is the time between two consecutive time steps, in this paper, .

There is power loss from energy storage in the process of charging and discharging, which will cause additional carbon emissions. Therefore, when the renewable energy and thermal power units can meet the load demand, the carbon emissions of the system are the lowest because the energy storage is not required to participate in peak shaving and there are no additional carbon emissions.

However, due to the forecast error of the power load and wind power and the limitation of the ramping power of thermal power units, it is necessary for BESS to meet the power balance needs and reduce the operation of thermal power units.

The BESS can also increase the output of low-coal consumption units and reduce the output of high-coal consumption units through reasonable charging and discharging. For example, low-coal consumption units can generate more electricity to provide energy storage, and when load increases, energy storage is first used instead of increasing the power of high coal consumption units.

Through storing excess wind power and discharging to reduce the output of thermal power units when wind power is insufficient, the BESS can reduce the carbon emissions of the system. The carbon emission model of thermal power units with BESS can be obtained as follows:where is time intervals in one day, is the number of thermal power units, is called the carbon emission intensity of BESS which is defined as carbon emission reduced by 1 kWh of charging or discharging, is related to the carbon emission intensity of thermal power units, is the number of BESS, and and are charge and discharge power of the energy storage system at time interval .

The charging and discharging power changes the output of the thermal power units, resulting in changes in the carbon emission intensity of the thermal power units, thus changing the carbon emission of the system.

2.1. Upper Limit of

Since there is power loss in the process of charging and discharging, the carbon emissions reduced by the BESS in formula (3) shall be less than the carbon emission of thermal power units. Therefore, the carbon emission intensity of BESS in formula (3) shall be less than the carbon emission intensity of thermal power units. And it can be ensured that wind power and photovoltaics instead of thermal power are used for energy storage charging. If the charging power is from thermal power units, the first term and the second term in formula (3) will increase at the same time, and the coefficient of the first term is greater than the second term, resulting in the increase of .

2.2. Lower Limit of

The carbon emission of the system will not increase during the charging and discharging of energy storage. The value of should be greater than 0.

3. Risk-Cost Function with BESS

3.1. Risk-Cost Function of Wind Forecast Error with Reserve Capacity of BESS

Due to the randomness and fluctuation of wind power and photovoltaics, the operation of thermal power units and BESS is needed to maintain the balance between power generation and power consumption. In this paper, the wind forecast error is mainly considered. The reserve capacity of flexible adjustment resources determines the allowable wind forecast error range. When the wind power exceeds the maximum allowable range, it will bring operational risks to the system and cause economic losses.

The probability density function of the wind or photovoltaics forecast error of wind farm can be modeled as a Gaussian distribution [22, 23]. As shown in Figure 1, and , respectively, represent the upper and lower limits of the wind forecast error at time interval . The upper and lower adjustable capacity of thermal power units and BESS can be determined as and . When the wind forecast error at time is less than , the adjustable resources are insufficient and part of the load needs to be cut off. When the wind forecast error at time interval is higher than , measures such as wind abandonment shall be taken. Therefore, the probability-weighted average of the shaded part in Figure 1 can be used to represent the risk of load shedding and wind abandonment caused by wind forecast error at time interval .

Then, the risk-cost of wind abandonment and load shedding can be expressed as follows:where is the number of wind farms, and are the maximum and minimum power of wind farm , and are penalty coefficients of wind abandonment and load shedding, and is the power of wind farm at time interval .

Adding BESS to the system increases the system’s adjustable capacity and can reduce the risk of wind abandonment and load shedding [24, 25]. The state of charge (SOC) of the BESS is maintained within an expected range to cope with the possible wind forecast error [26]. The risk cost function with reserve capacity of BESS is as follows:where and are charging and discharging reserve capacity of BESS at time interval .

3.2. Operation Cost of Thermal Power Units

The power imbalance caused by the wind forecast error often requires the power of thermal power units to adjust, which will produce a certain fuel cost and operation cost, that is, the operation cost of thermal power units.where , , , and are the maximum ramp up limit, the maximum ramp down limit, the ramp up power, and the ramp down power of the thermal power unit at time interval . is the fuel cost function of thermal power unit , , , and are fuel cost coefficients of thermal power unit , is the ramping cost coefficient of thermal power unit .

4. Two-Stage Optimization Model of Grid-Side BESS with Maximum Reserve Capacity and Minimum Carbon Emission

4.1. Objective Function
4.1.1. Objective Function in the First Stage

where , , and are weight coefficients and , , and are the load peak-valley ratio, BESS operation cost function, and carbon emission function of thermal power units.

The equivalent load of the system is the sum of load power and BESS charging and discharging power.where is number of nodes and is the load power on node at time .

Then, the load peak-valley ratio of the equivalent load is as follows:

The operation cost of BESS is as follows:where is the operation cost coefficient of BESS .

4.1.2. Objective Function in the Second Stage

The capacity of adjustable resources of the system is optimized in the second stage. The reserve capacity of BESS and the ramping power of thermal power units are adjusted to minimize risk cost function with BESS, including the risk cost of wind power and operation cost of thermal power units.

4.2. Constraints
4.2.1. Constraints in the First Stage
(a)Power balance constraint is as follows:(b)Wind power constraint is as follows:(c)Thermal power constraint is as follows:where and are minimum and maximum power of thermal unit .(d)Ramping constraint of thermal power units is as follows:(e)Start-stop constraints of thermal power units are as follows:where represents the startup and shutdown status of the thermal unit at time , represents shutdown and represents startup, and and are the maximum continuous start and maximum continuous stop time of thermal unit .(f)BESS charge and discharge power constraints are as follows:where and are maximum charge and discharge power of BESS .(g)State of charge constraints are as follows:where is state of charge of BESS at time interval , and are upper and lower limits of state of charge, is the self-discharge rate, and and are the charge and discharge efficiency.
4.2.2. Constraints in the Second Stage

After satisfying the constraints in the first stage, the variables to be solved in the second stage shall meet the following constraints:(a)Adjustable power constraints of thermal power: The maximum adjustable power of the thermal power unit at time interval shall not exceed its maximum ramping power, and thermal power shall not exceed its maximum and minimum power limits.(b)BESS reserve capacity constraint is as follows:(c)SOC constraint with BESS reserve capacity is as follows:

In order to ensure that the BESS can provide backup to cope with the risk of wind forecast error time , the SOC constraint including the BESS reserve capacity is proposed as follows:

4.3. Solution of the Two-Stage Optimization Model

The solution process of the two-stage optimization model is to first give initial values to the variables in the first stage and then to optimize the model in the second stage. The obtained results in the second stage are returned to the model of the first stage, and the two models iterate alternately to finally obtain the result. The immune genetic algorithm [27] is used to solve the first stage problem, and the CPLEX solver in MATLAB is used to solve the second stage problem.

In this paper, the reserve capacity of BESS is optimized with the objective of minimizing the risk cost of wind power and the operation cost of thermal power units after the thermal power output and BESS charging and discharging power are determined. Therefore, this paper uses a two-stage optimization model to describe the BESS optimization problem. The convergence condition is as follows:where and are charging and discharging reserve capacity of BESS at iteration , respectively, and is a positive number small enough. The algorithm flowchart is shown in Figure 2.

5. Results and Discussion

5.1. Simulation Setup

IEEE30 node 6-machine systems are used to verify the model built in this paper. The system includes six coal-fired thermal power units with the same capacity of 100 MW, a wind farm with a capacity of 200 MW, and an energy storage system with the capacity of 200 MW. The maximum and minimum output power of the wind farm is 200 MW and 0, respectively. Parameters of thermal power units and BESS are given in Tables 1 and 2, and predicted data of load and wind power are given in Figure 3. According to the carbon emission intensity curves of actual coal-fired units under different load rates, the linear function between thermal power and carbon emission intensity is obtained through linear regression.

Other parameters are as follows: wind power risk cost coefficients are . Start-stop coefficients of thermal power are . BESS charge and discharge efficiency , , initial , and . Carbon emission credit price is 10$/t.

5.2. Optimization Results Analysis
5.2.1. Comparison of Different Algorithms

The multiobjective algorithm for the two-stage model proposed in this paper is the immune genetic algorithm (IGA) [27]. In order to show the superiority of IGA in solving the model, the calculation results of IGA and of the traditional genetic algorithm (GA) were compared under the same setting of relevant parameters.

The simulation results of IGA, GA, and particle swarm optimization (PSO) are compared. The crossover probability of GA is 0.9, and the mutation probability is 0.1. The self-learning factor and social learning factor of the PSO are 2, with an initial inertia weight value of 0.9 and a maximum inertia weight value of 0.4. The other parameters of the algorithm remain unchanged, and the simulation results are shown in Table 3. The convergence curves of the algorithm are shown in Figure 4.

It can be seen from the simulation results that in solving accuracy, the IGA can effectively overcome population precocity, enabling the algorithm to jump out of the local optimal solution and find a better solution. However, the IGA has limited ability to explore new spaces and is prone to convergence to the local optimal solution. Moreover, the algorithm belongs to the random algorithm, resulting in poor reliability and instability in obtaining the optimal solution. Therefore, the selection of algorithm parameters needs to refer to examples from existing references.

5.2.2. Comparison of Optimization Results

In this paper, three cases are set for comparative analysis. Under the same system settings, the optimization results are shown in Table 4. Case 1 is the model in this paper; Case 2: the BESS does not participate in the optimization of reserve capacity in the second stage; and Case 3 is that the BESS participates in the optimization of reserve capacity, but the carbon emission measurement in the first stage does not include the power of the BESS.

It can be seen from Table 4 that the system carbon emissions of cases 1 and case 2 are slightly lower than those of case 3. The difference between the carbon emissions of case 1 and case 3 is the contribution of the BESS charging and discharging power to the system’s carbon emissions. The power of BESS is added to the carbon emission measurement model in case 1 to describe the real carbon emissions of the system. Different from case 3, the model proposed in this paper takes into account the contribution of the BESS, so that the BESS power needs to be as large as possible, thus reducing the reserve capacity and increasing the risk cost of wind power and load shedding risk cost. However, the large power of BESS can reduce the operation of thermal power units, that is, reducing the operation risk and cost of thermal power units. Therefore, case 1 still has the lowest total cost.

In Table 4, the carbon emission of case 2 is lower than that of case 1. Due to the uncertainty of wind power, the BESS reserve capacity may lead to the BESS not fully utilized, resulting in reserved redundancy. In case 2, because there is no BESS reserve capacity, the power of BESS is the largest, the BESS operation cost is the highest, the peak-valley difference rate is the smallest, and the risk of load shedding and wind abandonment and operation cost of thermal power units are the largest.

Figure 5 shows the SOC curves for three cases. The optimization results of the BESS reserve capacity in case 1 and case 3 are shown in Figures 6 and 7. In cases 1 and 3, the BESS system needs to reserve a certain capacity, which leads to its conservative operation. At 1:00–7:00, the SOC of case 1 is smaller than that of case 2. This is because the wind power output is large, and case 1 reserves a certain amount of upper capacity, thus reducing the charging power in this period. During 12:00–20:00, the wind power output is small and the load power is large, so a certain lower capacity is reserved for BESS, which reduces the discharge power during this period. Case 3 is more extreme than case 2, with sufficient reserve capacity in all periods. This is because case 3 does not calculate the carbon emission benefits brought by BESS, so that BESS is almost used as a backup device.

The power of thermal units and BESS in 3 cases is shown in Figure 8. Case 1 is similar to case 2. In case 2, since the BESS does not participate in the backup, the charging and discharging power of the BESS is larger at all times. In case 3, since the carbon emission benefits brought by the BESS are not calculated, the BESS is almost used as a backup, and the output of thermal power units needs to be adjusted to maintain power balance, resulting in the highest operation cost of thermal power units and the largest system carbon emissions. However, in case 3, since BESS is used as backup equipment, the risk cost of wind power is the lowest.

5.2.3. Comparison of Carbon Emission Models

In this paper, the carbon emission intensity of thermal power units is negatively related to the load, that is, the higher the load, the lower the carbon emission intensity, as shown in Figure 9. It can be seen from Table 5 that the model with a fixed carbon emission intensity overestimates the carbon emissions of thermal power units.

In this carbon emission model, when the value of in the model increases from to , the BESS charging and discharging power will be slightly increased, and the power of thermal units will be slightly reduced, which will reduce the total carbon emissions of the system. When , the model will have no solution. The case 3 in this paper is when .

Figures 10 and 11 show the power of the BESS and thermal units when under different values of , and the BESS is in the discharge state at this time interval. With the increase of the value of , the BESS discharge power increases linearly, and the power of the thermal units decreases linearly, so the increase of the BESS discharge power is equal to the decrease of the power of the thermal units. This is because the larger the value of is, the greater the carbon emission intensity of the BESS is. In order to minimize the objective function , when the load is a fixed value, the BESS discharge power will increase and the power of thermal units will be reduced accordingly.

Similarly, when the BESS is charging, the greater the is, the greater the BESS charging power is, and the power of thermal units will also increase accordingly. However, the increase in the power of thermal units will reduce its carbon emission intensity, so the objective function can still be optimal. By increasing the value of , the carbon emission intensity of the BESS can be increased, making the BESS operation strategy more radical.

6. Conclusion

This paper includes the negative correlation between the carbon emission intensity of thermal power units and the load into the carbon emission measurement model, which improves the accuracy of carbon emission measurement of thermal power units. The system carbon emissions reduced by BESS are included in the carbon emission measurement, and it is proposed that the carbon emission intensity of BESS is related to the carbon emission intensity of thermal power units. Setting different values of can change the power of BESS and thermal units. The larger the , the greater the power of BESS, the lower the power of the thermal units, and the lower the carbon emissions of the system.

The risk cost of wind power is described by the distribution of wind forecast error, and the risk cost function of wind power with BESS reserve capacity is proposed in this paper. When the grid-side BESS has maximum reserve capacity, the risk cost of wind power can be significantly reduced, that is, the risk of load shedding and wind abandonment, and the operation cost of thermal power units can be reduced.

In the two-stage optimization model, the objective function in the first stage model is to minimize carbon emissions and load peak-valley difference by the operation of BESS, and the objective function in the second stage model is to minimize the system operation cost with the maximum reserve capacity of BESS. The first stage decision variables and the second stage decision variables restrict each other, providing an operation strategy of low carbon and flexible peak shaving for BESS.

Nomenclature

:Carbon emission intensity of thermal power units
:Carbon emission intensity of BESS
:Linear coefficients of carbon emission intensity
:Penalty coefficient of wind abandonment
:Penalty coefficient of load shedding
, , :Fuel cost coefficients of thermal power units
:Ramping cost coefficient of thermal power units
, , :Weight coefficients of objective functions
:Operation cost coefficient of BESS
:A positive number small enough
:Self-discharge rate
:Charge efficiency
:Discharge efficiency
:Charging reserve capacity of BESS
:Discharging reserve capacity of BESS
:Power of thermal power units
:Charge power of BESS
:Discharge power of BESS
:Power of wind farm
:Load power on node
:Ramp up power of thermal power units
:Ramp down power of thermal power units
:Charging reserve capacity of BESS
:Discharging reserve capacity of BESS
:Probability density function of the wind forecast error
:Wind forecast error of wind farm
:State of charge of BESS
:Startup and shutdown status of thermal power units
:Load peak-valley ratio
:Number of thermal power units
:Number of BESS
:Number of wind farms
:Number of nodes
:Installed capacity of the thermal power units
:BESS operation cost function
:Carbon emission function of thermal power units
:Fuel cost function of thermal power units
:Maximum power of wind farm
:Minimum power of wind farm
:Maximum charge power of BESS
:Maximum discharge power of BESS
:Upper limits of the wind forecast error
:Lower limits of the wind forecast error
:Maximum ramp up limit of thermal power units
:Maximum ramp down limit of thermal power units
:Maximum power of thermal power units
:Minimum power of thermal power units
:Upper limits of state of charge
:Lower limits of state of charge
:Maximum continuous start time of thermal power units
:Maximum continuous stop time of thermal power units
:Time between two consecutive time steps, in this paper, hour
:Number of time intervals in one day, .

Data Availability

The data used to support the findings of this study are included within the article.

Conflicts of Interest

The authors declare that there are no conflicts of interest.

Acknowledgments

This work was supported in part by the National Natural Science Foundation of China under Grants 52077009, 71931003, and 72061147004, in part by the Natural Science Foundation of Hunan Province under Grant 2022JJ40478, and in part by the Science and Technology Innovation Program of Hunan Province under Grants 2020GK1014, 2021WK2002, 2022WZ1004, 2022RC4025, and 2023 JJ40046.