1 Introduction

Since the introduction of intermittent renewable energy resources in the electricity markets, the role of energy storage is becoming increasing important for the reliable operation of electricity grid. Energy storage system (ESS) companies may enter the electricity market and act as a buffer between wholesale market and consumers. ESS can be widely used in power system applications ranging from providing high power to high energy output [1]. ESS can shift the energy from the off-peak time to the peak time to achieve peak shaving, as well as providing spinning reserve and consumption energy to achieve the frequency control.

There are many kinds of ESS, such as pumped storage plants, compressed air energy storage system and superconducting magnetic energy storage system. Recent developments in battery technology have resulted in Battery based ESS (BESS) as one of the mature and flexible ESS, which can achieve both peak shaving and frequency support. Frequency control and peak shaving are the two focal applications discussed in this paper.

As the day-ahead spot market prices are available in advance, it provides another opportunity for BESS companies to enter the electricity markets and provide ancillary service support in a cost effective way. Australia’s National Electricity Market (NEM) is currently known as Australia Energy Market Operator (AEMO) and is responsible for the planning and operation of national electricity grid. The Queensland State electricity market is one part of AEMO and is used as a good annotation for the application of BESS for peak shaving where as whole of the Australia’s NEM is considered for frequency support.

With the increasing demands of electricity energy and penetration of intermittent renewable source such as solar and wind, the usefulness of BESS in the modern electricity market cannot be overlooked [2]. Battery Energy Storage Companies (BESC), as additional electricity market participant, can get financial benefit by offering support for ancillary services.

This paper is laid out as follows: Section 2 gives a brief introduction of the Australian electricity market; and the BESS is introduced in Section 3. Furthermore, the operating schedule of BESC including numerical simulations for peak shaving and spinning reserve is explained in Sections 4 and 5 respectively. This is followed by conclusions in final section of the paper.

2 Australia’s national electricity market

With the deregulation trend of the electricity market in modern power system, the electricity prices are set based on the bids received by suppliers (generators) and whole sale retailers or consumers (load). The whole sale electricity prices varies every half hour and is based on the new market clearing price set by AEMO [3]. The Australia’s NEM [4] (Fig. 1) was established in December of the year 1998 including all the states of Australia except Tasmania which entered the NEM in the year 2005. AEMO is responsible for power system and electricity market of the whole Australia’s NEM. In addition, at present, more than 90% of Australia’s electricity production still relies on the burning of fossil fuels, coal, gas and oil, but the capacity of renewable energy resources is increasing every year.

Fig. 1
figure 1

The structure of the Australia’s NEM

2.1 Peak shaving in the energy market

Under the national electricity rules, the wholesale trading in electricity is conducted as a spot market [4]. Therefore, a variety of forecasting processes are used to decide the demand level by AEMO. Demands are submitted every 5 min, and then AMEO decides every dispatch price according to the suppliers’ bids. In brief, the dispatch price presents the cost to supply the last megawatt of electricity of the demand, and the averaged every six dispatch prices are defined as one spot market price for that half hour. In NEM, half-hour is considered as one trading interval and is different from most European and American countries. Moreover, the maximum and minimum of the market spot prices are set as $12,500 and −$1,000 respectively to limit the variation. The spot market prices spikes happen due to unexpected generation or transmission outages.

Load shifting is one way to delay few non essential loads to the off-peak time and reduce the spot market prices spikes. The application of BESS for peak shaving can achieved the load shifting function without shifting loads.

2.2 Frequency regulation in ancillary service market

Ancillary services are provided to control the key technical characteristics of power system such as frequency and voltage, through ancillary services market. In Australian ancillary services market (Fig. 1), there are three major categories: Frequency control ancillary services (FCAS), Network control ancillary services (NCAS), System restart ancillary services (SRAS) [5]. The bids of the ancillary services market are similar to the energy market, therefore, the costs of the ancillary services, depending on the quantity and the period, vary significantly. The participation in the ancillary service market is not limited to power plants only, but is also extended to load serving entities or retailers. ESS can also provide ancillary services for example frequency control. Frequency control [6] is the only service discussed in this paper, as BESS companies supply spinning reserve for the power system. The aim of frequency control is to maintain the balance between demand and generation as shown in Fig. 2.

Fig. 2
figure 2

The schedule of frequency control

In Australia, frequency control is separated into two parts which are regulation part and contingency part. The former part solves the minor deviations of frequency, while later part solves the major contingent events, for example, the loss of large generator. According AEMO standards, the frequency deviation must be brought back to its normal operating band within five minutes under any contingent event. Contingency may be incident involving loss of a transmission line, generator or load. Table 1 gives eight FCAS requirements in Australia’s electricity market [5], which are similar to the primary frequency control, secondary control and tertiary control. Moreover, Control Performance Standards (CPS) which is set by NERC [7] is also another standard to evaluate the performance of system frequency.

Table 1 FCAS requirements in 8 situations

3 Battery energy storage systems (BESS)

The structure of BESS including a power conversion system connecting the battery pack to 3-phase AC system can be summarized in Fig. 3 [8].

Fig. 3
figure 3

The structure of BESS

Although there are many different types of BESS systems available in the market, there are 3 types of BESS namely lead-acid, nickel-cadmium and vanadium redox flow that are prominent for large scale deployment and hence are considered in this paper. The former two batteries are cell batteries. Lead-acid BESS is considered as the most mature battery technology, whereas vanadium redox flow BESS is the most mature flow batteries as of today. The three BESS types are introduced briefly as follows.

Lead-acid BESS Lead-acid battery is the most popular battery when compared with any other traditional batteries. The fundamental parts of the lead-acid battery include battery cells and a dilute solution of sulfuric acid in water electrolyte [9]. The lead-acid BESS have already used in practice in many countries. Indeed the greatest strengths of this BESS are high degree of maturity and low capital cost. However, the drawback of lead-acid battery is its limited lifespan.

Nickel-cadmium BESS Nickel-cadmium (NiCd) battery is another kind of mature battery technology. It has good cycle life performance and high efficiency [10]. There are several places where NiCd battery is being used in grid application in the USA. Even the European plane maker has acknowledge the safety feature of NiCd Battery systems and have announced to replace the former Li-ion battery with NiCd battery in all Air bus A380.

Vanadium redox flow BESS The basic structure of the redox flow battery contains two separate tanks [11] filled with solution. The detailed working principle is beyond the scope of this paper and only advantages of the vanadium-redox flow battery are listed. Firstly, the capacity of the battery can be large or small, depending on the application. Secondly, the response time of the battery is faster. Vanadium-redox flow battery is safer to use with no environmental concerns. Compared with the former two battery types, VRF batteries can provide higher power output in the shorter period of time [12].

4 Application of BESS for peak shaving

Mainly BESS used for end-user peak shaving is located not far from the energy consumers, such as heavy industrials or large business places. The optimization model used for identifying the capacity and utilization of BESS for peak shaving purpose is described below:

4.1 The optimization model for peak shaving using BESS

In general, the models of electricity energy charged and discharged in different BESS are in the similar way [13] and can be expresses as using (1) and (2). When BESS is being charged at the hour t,

$$ W_{t + 1} = W_{t} + \eta_{\text{c}} P_{t}^{ + } \times \left( {1\, {\text{h}}} \right) $$
(1)

and when BESS is being discharged at the hour t,

$$ W_{t + 1} = W_{t} + \eta_{\text{d}} P_{t}^{ - } \times \left( {1 \,{\text{h}}} \right) $$
(2)

where \( W_{t} ,\;W_{t + 1} \), are the electricity stored in BESS at hour t and t+1; P t is the output power of BESS at time t, which is positive in (1) and is negative in (2); and ηc and ηd are charging efficiency and discharging efficiency of BESS respectively. Generally, discharging efficiency is higher than charging efficiency.

The operation model of BESS can be represented by (1) and (2), whereas the economic model including cost and payback period can be calculated using (3)–(7). The capital cost and operation and maintenance cost (O&M) of BESS are calculated as in (3) and (4) respectively.

$$ C_{\text{capital}} = C_{\text{p}} P_{ \hbox{max} } + C_{\text{W}} W_{ \hbox{max} } $$
(3)
$$ C_{{{\text{O}}\& {\text{M}}}} = \left( {C_{\text{Mf}} P_{ \hbox{max} } + C_{\text{Wv}} W_{ \hbox{max} } } \right) $$
(4)

where \( P_{ \hbox{max} } \) is the power output of BESS; Wmax is the energy capacity of BESS. The units of Cp and \( C_{\text{W}} \) are $/kW and $/kWh respectively, and the units of \( C_{\text{Mf}} \) and \( C_{\text{Wv}} \) are $/kW/year and $/kWh/year. Moreover, the payback period can be calculated as in (5).

$$ \mathop \sum \limits_{N = 1}^{\text{PP}} \frac{{R_{\text{annual}} }}{{(1 + r)^{N} }} \ge C_{\text{capital}} + C_{{{\text{O}}\& {\text{M}}}} $$
(5)

where PP is the abbreviation of the payback period; \( R_{\text{annual }} \) is the annual revenue of BESS, and r is the discount rate. The discount rate is assumed to keep constant in the payback period. As the right side of (5) is the sum of the geometric progression, it can be used to calculate the payback period as shown in (6) below.

$$ N \le \frac{{\log \left[ {1 - \frac{{\left( {C_{\text{capital}} + C_{{{\text{O}}\& {\text{M}}}} } \right)(1 - Q)}}{{QR_{\text{annual}} }}} \right]}}{\log Q} $$
(6)
$$ Q = \frac{1}{1 + r} $$
(7)

The O&M cost is far less than the capital cost of BESS and hence is ignored in this study.

The profit for BESC is expressed as (8), and can be considered as the objective function of BESS formulation model.

$$ {\text{Max}}\left( C \right) = {\text{Max}}\left( {\mathop \sum \limits_{1}^{48} P_{t} \times S_{{{\text{P}}t}} } \right) $$
(8)

where C is the cost which can be saved by the application of BESS; \( P_{t} \) is the charging/discharging power at time interval t; and \( S_{{{\text{P}}t}} \) is the spot market prices at interval t.

There are also few limitations/constraints of BESS and can be summarized as follows in (9) and (10).

$$ - P_{ \hbox{max} } \le P_{t} \le P_{ \hbox{max} } $$
(9)
$$ 0 \le W_{t} \le W_{ \hbox{max} } $$
(10)

\( P_{ \hbox{max} } \) is the maximal output of BESS and \( W_{ \hbox{max} } \) is the maximal capacity of BESS and are same as in (3) and (4).

Maximizing the value of the objective function as in (8) is entirely up to the BESS user and therefore can be considered as an optimization problem. The objective function in (8) varies due to variability of \( P_{t} \) i.e. when the sign of \( P_{t} \) changes, the efficiency coefficients also changes. Moreover, \( W_{1} \) can be assumed to be zero at the beginning, but \( W_{48} \) cannot be guaranteed to be zero after one day, which means \( W_{1 } \) of the next day may not be zero. There have been plenty of approaches proposed in the past to solve this problem including dynamic programming, nonlinear programming, multipass iteration particle swarm optimization approach and Quasi-Newton updating method [14]. In this paper, linear programming is used by modifying the matrix of the parameters \( P_{t} \) and \( W_{t} \). The Matlab Optimization Toolbox is used for simulation studies presented in this paper. Furthermore, it is important to highlight the key assumptions made in this study and are summarized below:

  1. 1)

    Firstly, 48 intervals of spot market prices are available in one day advance, so 24 h is considered as one optimization cycle. In other words, the power stored in BESS in a day should be almost utilized in the same day and very little or no power should be available after 24 h.

  2. 2)

    Secondly, the energy stored in BESS is zero at the beginning of the simulation.

  3. 3)

    The efficiencies of different battery types are similar and can be assumed same for this higher level studies. The discharging and charging efficiencies keep constant as 0.95 and 0.65 separately.

  4. 4)

    Finally, compared with the total demand, the capacity of BESS is small. Therefore the spot market prices are assumed to remain unchanged due to BESS operation.

4.2 Simulations and results

The four different daily cases of the year 2012 in the state of Queensland are chosen to show the optimal peak shaving strategy. The economic analysis is performed to evaluate the feasibility of different BESS types.

4.2.1 Optimal peak shaving strategy

Optimal peak shaving strategy remains unchanged for different types of BESS technology. The spot market prices of four days picked from the summer, winder, typical weekday and weekends in a year in Australia and the corresponding operation of BESS is shown here in Figs. 411.

Fig. 4
figure 4

The spot market price in a summer weekday

Summer weekday A typical summer weekday has one distinct spot market energy price spike at around 16:30 h as shown in Fig. 4. Moreover, the electricity prices are lower in the morning time from 3:00 h to 6:00 h. The BESS is charged in the early morning and discharged in the late afternoon, corresponding to the spot market prices as shown in Fig. 5. The energy stored in BESS is nearly zero at the end of the cycle making sure that the energy stored in 24 h is consumed with in a day.

Fig. 5
figure 5

The charging/discharging and power stored energy of BESS in the summer weekday (the blue line is the output power and the red line is stored energy)

Winter weekday There are two spot market energy price spikes in the winter weekday as shown in Fig. 6. Therefore, BESS is discharged during the time 8:00am and 17:30pm–18:30pm, shown as Fig. 7. In addition, the variation of spot market prices in winter is larger than in summer in weekdays. The peak BESS capacity utilized in summer is about 3.4 MWh (red line in Fig. 5) which is larger than 1.6 MWh (red line in Fig. 7) in winter.

Fig. 6
figure 6

The spot market price in a winter weekday

Fig. 7
figure 7

The charging/discharging and power stored energy of BESS in the winter weekday (the blue line is the output power and the red line is stored energy)

Typical weekdays and weekends The situations of the weekday (Fig. 8 and blue line of Fig. 9) and weekend (Fig. 10 and blue line of Fig. 11) are shown in these four figures. It is obvious that the spot market prices are higher in weekdays than in weekends, and the maximum capacities of BESS used in weekday and weekend are about 4 MWh (red line in Fig. 9) and 1.1 MWh (red line in Fig. 11) separately. According to the trends of the spot market prices, the results are reasonable, because BESS is charged when the spot market prices are low, while it is discharged when the prices are high.

Fig. 8
figure 8

The spot market price of a typical weekday

Fig. 9
figure 9

The charging/discharging and power stored energy of BESS in one weekday (the blue line is the output power and the red line is stored energy)

Fig. 10
figure 10

The spot market price of a typical weekend

Fig. 11
figure 11

The charging/discharging and power stored energy of BESS in one weekend (the blue line is the output power and the red line is stored energy)

From the four cases above, the optimal peak shaving strategy of BESS can be adopted for the real electricity market. BESC could earn profit by entering the energy market.

4.2.2 Economic analysis

The cost saved by BESS for the month of January of 2012 is shown in Fig. 12 based on the spot market price for that month. The discharging and charging efficiencies are assumed as 0.95 and 0.65 respectively. It is observed that savings are high on few days due to spikes in the spot market prices. In other words, the more fluctuant the market prices are, the more cost can be saved by BESS.

Fig. 12
figure 12

The cost saved by BESS for the month of January

Furthermore, the economic analysis of three types of BESS is performed. BESC would like to do this analysis to weigh in pros and cons of various BESS types and may prefer one or other types as appropriate. The values of parameters of capital costs, charging / discharging efficiencies are shown in Table 2. The profits of every month by using three kinds of BESS are shown separately in Table 3. Table 4 illustrates the annual revenue, the capital cost and the payback period of different BESS types. The capital cost of lead-acid type BESS is the lowest and generates highest revenue. Therefore, the payback period of lead-acid type BESS is the shortest. On the contrary, the lifespan of the Lead-acid is almost half compared to any other batteries types. The problem is that the lifespan of the lead-acid battery may shorter than the payback period. The revenue of the NiCd is also high, the payback period is 17 years. However, the lifespan of NiCd battery is much longer.

Table 2 Parameters for different kind of batteries
Table 3 The revenue of different types of BESS
Table 4 The annual revenue, capital cost and payback period of BESS

The economic analysis here is just an indicative comparison as the cost of different BESS are decreasing dramatically over the last few years and is expected to decrease further due to technological advancement and economy of scale.

5 Application of BESS for spinning reserve

5.1 The model of spinning reserve with BESS

Power produced should be instantly consumed in the power system to maintain the nominal system frequency. Any contingency such as loss of generation or sudden increase in the load would disturb the steady state and frequency will deviate from the nominal value. Spinning reserve has been traditionally deployed in the power system to maintain the balance error between generation and load demand.

The ancillary services market does provide a mechanism to support the spinning reserve in the power systems through various bids. The nominal frequency of the system in Australia is 50 Hz. It is accepted that frequency is around 50 Hz, and the allowable range of errors is defined as non-critical window, which means that no additional action is required if the frequency deviation is within the noncritical window. For example, if the noncritical window is from −0.02 to +0.02 Hz, BESS is discharged when the frequency values are below 49.98 Hz, while BESS is charged when the frequency values are above the 50.02 Hz, according to the signals from the controller/operator.

The main aim of the operation schedule of BESS is to determine the minimum possible capacity required for the ancillary service market. In the model of spinning reserve with BESS, the recharging power and the size of non-critical window are two influencing factors of the BESS capacity. Figure 13 shows the measured frequency values of the mainland of Australia from AEMO, including one generation event at the time 15:26 h [15]. The power-frequency characteristic [16] of the frequency controller follows the principles shown in Fig. 14. The relationship between the power of BESS and the frequency deviation is linear outside the non-critical window. The output power of BESS is kept at zero or a constant number during the non-critical window.

Fig.13
figure 13

One example of frequency curve of Australian mainland

Fig. 14
figure 14

Power-frequency characteristics of BESS [16]

The complete operating schedule of BESS to provide the spinning reserve for frequency regulation is shown as follows.

For BESS company:

  1. 1)

    Decide \( f_{\text{lower}} \) under the rule of local ISO company and the optimization model;

  2. 2)

    BESS is discharged when

    $$ - f_{\text{lower}} < f < - f_{{{\text{non}} - {\text{critical}}}} $$
    $$ P_{\text{Discharging}} = \alpha \, \Delta \,f $$
  3. 3)

    BESS is charged when

    $$ f_{{{\text{non}}{\text{-critical}}}} < f < f_{\text{upper}} $$
    $$ P_{\text{Charging}} = \beta \cdot \Delta \,f $$
  4. 4)

    BESS is recharged when

    $$ \left| {\Delta \, f} \right| < f_{{{\text{non}}{\text{-critical}}}} $$
    $$ P_{\text{Recharging}} = \gamma \% \cdot f_{\text{rated}} $$

    where \( f_{\text{upper}} \) is the max number of frequency band decided by ISO company; \( f_{\text{lower}} \) is less than \( f_{\text{upper}} \) decided by BESS company; \( f_{\text{non-critical}} \) is the parameter of non-critical window, which is decided by ISO company, and is assumed as 0.02Hz; charging and discharging rate coefficients, i.e. α and β are assumed as the same value as 2.5; \( f_{\text{rated}} \) is the rated value.

For ISO company:

  1. 1)

    Decide the maximum value of non-critical window;

  2. 2)

    Decide the ancillary services prices according to the spinning reserve and capacity of BESS.

5.2 Simulations and results

As the data released by AEMO, the system frequency lies within 49.85 to 50.15 Hz for 99.96% of the time. The standard deviation of past 13 months of mainland region of Australia is shown in Fig. 15 [15]. In 2012, 99% of the frequency values of mainland region are located within 49.92 to 50.06 Hz. And greater than 99.99% frequency values are within 49.75 to 50.15 Hz.

Fig.15
figure 15

Daily standard deviation of mainland frequency

Therefore, the non-critical window can start from 0.02 Hz, and the upper frequency band can be fixed as 0.15 Hz. Furthermore, the rated power value of BESS is chosen as 2 MW, which is only a small part of total spinning reserve. Consequently, the influence of frequency when BESS is recharged during the non-critical window is neglected.

Based on the former two assumptions, 120 random frequency values are assumed in Fig. 16. The y-axis is the frequency deviations. According to the real situations, except a fewer points are located in non-critical window, more points values are less than 0. Therefore, the power of recharging rate is used to make up the difference capacity between charging periods and discharging periods. The power of recharging rate is about 1% of rated power values.

Fig. 16
figure 16

The frequency deviations for 120 s

  1. 1)

    BESS operating schedule for frequency support

As motioned before, two influencing factors, i.e. the size of non-critical window and the recharging rate (γ) will be discussed here separately.

BESS start from partly charged situation which is set as zero, and the non-critical window is kept fixed as 0.02 Hz. The required capacities are shown in Fig. 17. The y-axis represents the required capacity of BESS in MWh.

Fig. 17
figure 17

The required capacity of BESS in different recharging rate

In Fig. 17, the different colours of each line show the required capacity for different recharging rate (γ). In detail, as the recharging power increases, the required capacity of BESS decreases at the beginning, but the required capacity increases after a particular point. In order to find the optimal required capacity of BESS, Fig. 18 is obtained by increasing recharging rate (γ) step by step. 1% of rated value is the best recharging power in this situation.

Fig.18
figure 18

The capacities of BESS in different recharging rate

The non-critical window which is another influencing factor varies from 0.002 to 0.15 Hz, and the corresponding capacity of BESS keeps decreasing from 20 to 0 MWh as shown in Fig. 19. The x-axis shows the increasing values of non-critical windows in Hz, and the y-axis represents the capacity of BESS in MWh. In conclusion, the smaller the non-critical window, the larger the BESS capacity required for frequency support.

Fig. 19
figure 19

The capacities of BESS in different non-critical windows

At last, In Fig. 20, hundreds of pairs of non-critical window (x-axis) and recharging rates (y-axis γ%) are plotted to find the optimal capacity of BESS. For a specific frequency band of say 0.04 Hz and recharging rate (γ%) as 0.5, the BESS capacity is determined to be 8.4 MWh.

Fig. 20
figure 20

3D graph for capacity, recharging power and frequency band

  1. 2)

    Proposed operation of BESS for frequency support

The possible practical schedule enables the interaction between ISO Company and BESCs through ancillary services market. For each day, ISO Company can decide the non-critical frequency window as per the predicted performance of the power system for that day. This depends on the amount of renewables committed depending on the weather forecast of that day. At the same time, BESC decides their non-critical frequency window and recharging rate (γ%) according to their capacity. The larger the capacity of BESS, the smaller the non-critical window they can offer.

Briefly, to encourage BESC to installing capacities of batteries in relatively large quantities, ISO could provide some economic stimulation as following.

$$ P_{\text{b}} = P_{\text{c}} + k(f_{\text{upper}} - f_{\text{non - critical}} ) $$

where \( P_{\text{b}} \) is the price ISO buy energy from BESC; \( P_{\text{c}} \) is the price ISO buy energy from conventional generations.

In this case, the more obligations BESC undertake more profit they can get. Furthermore, BESC can install a larger system with the same pay-back period.

6 Conclusions

Recent development in batteries technologies are driving the cost of BESS down. Availability of day ahead spot market prices in energy market and the provision of ancillary services market, BESC can be established to join the electricity market and get profit.

This paper provides two simple optimal operating strategies for BESS in both energy market and ancillary services market. Those two strategies can be achieved in the electricity markets. The economic benefit is another major consideration for BESS companies entering in the electricity market. Historic spot market prices and frequency deviations from Australia Energy Market Operator (AEMO) are used for the profit maximization of BESC. Optimum capacity of ESS required for meeting spinning reserve requirements and to achieve desired peak shaving is investigated in Australia’s national electricity market (NEM).

Compared with the conventional generation which is used as spinning reserve, BESS is more expensive. However, environmental concerns such as CO2 emissions and associate government policies such as carbon tax have resulted in unprecedented growth of renewable energy sources. The intermittent nature of renewables such as wind and solar introduces power system operational challenges and hence requires additional spinning reserves to maintain adequate performance. BESS have flexible capacities and can be used to enhance and assist renewable energy penetration in the modern electricity grid.

The control system of BESS and the location of BESS would be the part of future research.