1 Introduction

For the purpose of energy security and environmental benefits, a rapid growth has been experienced in the integration of REGs into distribution networks, mainly wind generation (WG) and photovoltaic (PV). However, due to natures of intermittent and difficult prediction, REGs pose new challenges to the reliability of distribution networks. In this regard, MGs and ADSs are introduced and perceived to be key technologies to alleviate aforementioned challenges [1,2,3,4].

As a comprehensive energy unit, MG can integrate multiple REGs and be managed autonomously. In addition, multiple MGs in ADSs can share distributed energy resources and operate them in close coordination. Therefore, multiple MGs in ADSs can improve operation features and have significant merits for ADSs [5, 6]. In this architecture, distributed ESSs (DESSs) in MGs and mass ESSs (MESSs) in ADSs perform multiple important roles, such as network upgrade deferral, frequency-voltage control, power quality and reliability improvement, and alleviating the fluctuation of REGs [7, 8]. However, the large costs of ESS lead to the cost ineffectiveness of ADSs. Therefore, ESS should be properly sized and sited according to optimal costs while satisfying the load demand.

Optimal planning of ESS has been previously studied in the literature of different fields, such as MGs [9,10,11], distribution networks [12,13,14,15,16,17,18], and large-scale power plants [19,20,21,22]. In terms of MGs, an optimal sizing method in [9] is proposed for the wind solar battery hybrid power system, considering two working modes of stand-alone and grid-connected. A sub-period optimization strategy is utilized to calculate the battery capacity. Authors in [11] use PSO to optimize the power rating and energy capacity of ESS for frequency control of a stand-alone MG.

For distribution networks, to accommodate spilled wind energy, a multi-step method based on the optimal power flow is presented in [13] for allocation of ESS to minimize the annual electricity cost. Authors in [14] explore a multi-objective allocation model of ESS in ADSs for sake of peak shaving, voltage quality improvement, and power self-regulation capacity. A weighted minimum module ideal point method is proposed to simplify the multi-objective problem. A chance constrained optimal model is proposed in [16] to determine the sizing and sitting of ESS. The model adopts minimizing investment and operation costs as the objective while meeting the constraint of wind utilization level. Research [17] proposes an optimal model to determine the location, capacity, and power rating of ESS in ADSs. The model takes roles of ESS into account based on the short-term optimal power flow. The roles are modeled as different costs and the penalty factor in the objective function. In [18], authors extend their work in [17] to take electric vehicles (EVs) into account. A point estimate method serves to tackle the uncertainties of load, REGs, and EVs.

In terms of large scale power plants, a two-steps co-optimization model is proposed to determinate the suitable sizing and control of ESS for the hybrid system of PV & ESS in [20]. Authors in [21] propose operation models of ESS to maximize REGs revenues, and sizing models of ESS to minimize costs of the hybrid system.

Regarding the above literature review, it is clear that many optimal allocation models of ESS have been proposed. However, it is worth noticing a common drawback that most of the planning models do not take full consideration for the operation of ESS. For example, some straightforward models are used to represent the operation process with one objective, or they adopt the weighting method to deal with multiple objectives. Thus, multiple crucial roles of ESS in ADSs can’t be represented adequately.

In addition, another drawback in the aforementioned literature is related to the models of REGs: probabilistic models are often adopted to reflect the intermittent nature of WG and PV, such as [12, 16, 22], which can’t give full expression to the time-variable nature of multiple REGs. Furthermore, these models are not suitable for the simulation of ESS.

These two main drawbacks lead to the distortion of ESS operating state in planning models, contrary to the principle of ADS planning [23], where operation models of active managements, such as the operation of ESS, should be integrated into planning models of ADS to get more optimal and reasonable planning solutions.

This paper focuses on the planning problem of MESS in ADSs, which contains WG, PV, and multi-MGs. In order to properly determine the sizing, siting and type of ESS, a fuzzy multi-objective bi-level optimal planning model is proposed with several primary highlights.

Firstly, to capture operation aspects which can affect planning stage, a bi-level model is adopted to achieve the collaborative optimization between planning and operation of ESS. For the purpose of giving expression to multiple roles of MESS in ADSs, a fuzzy multi-objective model is adopted, which consists of peak load shaving, restraining volatility, and improving the reserve capability of ESS.

Moreover, time-dependent data are adopted to represent time variable nature of REGs, MGs and ESSs instead of probabilistic models. To ease the computational burden, these time-series profiles are recognized and clustered into typical daily scenarios based on the fuzzy C mean (FCM) clustering algorithm and multiple scenarios technique.

Finally, to solve this bi-level mixed integer optimization problem efficiently, a multi-subgroup hierarchical chaos algorithm is introduced based on DE and PSO.

The paper is organized as follows. Section 2 provides the framework of the planning model. Section 3 presents methods to establish the power characteristic model of MG and typical daily scenarios. In Section 4, we formulate the fuzzy multi-objective bi-level model. A multi-subgroup hierarchical chaos hybrid approach is further developed in Section 5. Then, the computational results and discussions are given in Section 6. Section 7 concludes this paper with several remarks.

2 Framework of optimal planning model of ESS

The planning of ESS in ADSs should consider not only minimizing of costs, but also significant roles of ESS. To demonstrate multiple roles of ESS, two statuses of ADSs should be considered: 1) the normal status with roles of peak load shaving and restraining volatility, 2) the failure status with the responsibility for system support. Moreover, the time-variable nature of load and REGs is another essential factor that needs to be considered.

Based on the discussion above, the framework of the optimal planning model of ESS is described in Fig. 1, where F upper and f lower are objectives of the upper level and the lower level, respectively; C cap,d, C FOM,d, C VOM,d are the diurnal capital cost, the diurnal fixed operating and maintenance (O&M) cost and the diurnal variable O&M cost of ESS, respectively; C load,d and C loss,d are diurnal costs of load demand and network losses, respectively; B def,d denotes the benefits got by deferral upgrade; f 1, f 2, and f 3 represent the three objectives of the lower level.

Fig. 1
figure 1

Framework of bi-level optimal planning model of ESS

The left side of Fig.1 describes the procedure to establish these scenarios: after annual forecasting data of REGs and load are processed by FCM, the typical daily scenarios are developed by multiple scenarios technique. These typical daily scenarios preserve the chronological sequence of power outputs of REGs and power consumptions of load, which allows representing eventual chronological aspects related to ESS scheduling [23].

The right side provides the fuzzy multi-objective bi-level planning model. Each level of bi-level model has its objectives and decision spaces affected by variables controlled at another level. Meanwhile, the execution of decisions is sequential, from higher level to lower level [24]. These features enable bi-level model to be suitable for the planning of ADS. For the planning aspect, minimizing the total costs of the ADS and ESS serves as the objective of the upper level. For the operation aspect, a fuzzy multi-objective model is introduced to obtain ESS scheduling in the lower level, which will be fed back to the upper level to calculate operation costs by power flow calculation at hourly time-steps for every daily scenario.

The most prominent roles of ESS to ADSs are elected to be optimal objectives: 1) peak load shaving and valley load filling aiming at deferral of system investment, 2) restraining the volatility with the purpose of alleviating the fluctuation of load and REGs, and 3) improving the reserve capability of ESS seeking to take some degree of responsibility for system support.

3 Establishment of typical daily scenarios

3.1 Power characteristic model of MG

The power characteristic of MG is bundled with the allocation of MG, as well as the operation strategy [5]. In this work, the wind solar battery hybrid MGs are adopted, and maximizing the utilization of REGs is adopted to be the strategy of DESS in MGs. Meanwhile, the electricity price is also an important factor to be considered.

1) When the output of REGs is more than the local load demand, the DESS should be charged. At this moment, if this surplus power is larger than the charging demand of DESS, DESS is charged by REGs alone. If this surplus power is smaller than the charging demand of DESS, and the electricity price of the external system is lower than the contract price of REGs, DESS is charged by both REGs and the external system. If this surplus power is smaller than the charging demand of DESS, and the electricity price of the external system is higher than the contract price of REGs, DESS is charged by REGs alone, or charged by both REGs and the external system until the SOC of DESS reaches a pre-set value (λ) in case of need.

2) When the output of REGs cannot meet the local load demand of MG, and the DESS together with REGs has no enough energy to meet the local load demand, the DESS starts to be charged with the external system until the SOC of DESS reaches a pre-set value (λ).

3) When the output of REGs cannot meet the local load demand of MG, and the DESS together with REGs has enough energy to meet the local load demand, the DESS starts to discharge and has the priority to meet load demand before the external system.

The power model of DESS is formulated as follows:

$$P_{{\rm DES}} (t) = P_{{{\rm C}}}^{{\rm max}}\quad 0 \le P_{{{\rm C}}}^{{\rm max}} \le \Delta P(t)$$
(1)
$$P_{\text{DES}} \left( t \right) = P_{\text{C}}^{\hbox{max} } \quad \left( {0 \le \Delta P\left( t \right) < P_{\text{C}}^{\hbox{max} } } \right)\;\& \;\left( {EP_{\text{G}} \left( t \right) \le EP_{\text{R}} } \right)$$
(2)
$$\begin{aligned} & P_{\text{DES}} \left( t \right) = \hbox{min} \left\{ {P_{\text{DES}}^{\text{R}} ,\frac{{\left( {E_{{{\text{DES}},\lambda }} - E_{\text{DES}} \left( {t - 1} \right)} \right)\eta_{\text{C}} }}{\Delta t}} \right\} \\ & \quad \left( {0 \le \Delta P\left( t \right) < P_{\text{C}}^{\hbox{max} } } \right)\;\& \;\left( {EP_{\text{G}} \left( t \right) > EP_{\text{R}} } \right)\;\& \;\left( {SOC_{\text{DES}} \left( {t - 1} \right) < \lambda } \right) \\ \end{aligned}$$
(3)
$$\begin{aligned} & P_{\text{DES}} \left( t \right) = \Delta P\left( t \right) \\ & \quad \left( {0 \le \Delta P\left( t \right) < P_{\text{C}}^{\hbox{max} } } \right)\;\& \;\left( {EP_{\text{G}} \left( t \right) > EP_{\text{R}} } \right)\;\& \;\left( {SOC_{\text{DES}} \left( {t - 1} \right) \ge \lambda } \right) \\ \end{aligned}$$
(4)
$$\begin{aligned} & P_{\text{DES}} \left( t \right) = \hbox{min} \left\{ {P_{\text{DES}}^{\text{R}} ,\frac{{\left( {E_{{{\text{DES,}}\lambda }} - E_{\text{DES}} \left( {t - 1} \right)} \right)\eta_{\text{C}} }}{\Delta t}} \right\} \\ & \left( {\Delta P\left( t \right) < 0} \right)\;{\& }\;\left( {P_{\text{REG}}^{\text{MG}} \left( t \right){ + }P_{\text{D}}^{\hbox{max} } \left( t \right) < P_{\text{load}}^{\text{MG}} \left( t \right)} \right) \\ & \quad {\& }\,\left( {SOC_{\text{DES}} \left( {t - 1} \right) < \lambda } \right) \\ \end{aligned}$$
(5)

In other cases, the DESS discharges.

$$P_{\text{DES}} \left( t \right) = \hbox{min} \left\{ {\left| {\Delta P\left( t \right)} \right|,P_{\text{D}}^{\hbox{max} } } \right\}$$
(6)

where

$$P_{\text{C}}^{\hbox{max} } = \hbox{min} \left\{ {P_{\text{DES}}^{\text{R}} ,\frac{{\left( {E_{\text{DES}}^{\hbox{max} } - E_{\text{DES}} \left( {t - 1} \right)} \right)}}{{\Delta t \times \eta_{\text{C}} }}} \right\}$$
(7)
$$P_{\text{D}}^{\hbox{max} } = \hbox{min} \left\{ {P_{\text{DES}}^{\text{R}} ,\frac{{\left( {E_{\text{DES}} \left( {t - 1} \right) - E_{\text{DES}}^{\hbox{min} } } \right)\eta_{\text{D}} }}{\Delta t}} \right\}$$
(8)
$$E_{\text{DES}}^{\hbox{max} } = E_{\text{DES}}^{\text{R}} SOC_{\text{DES}}^{\hbox{max} }$$
(9)
$$E_{\text{DES}}^{\hbox{min} } = E_{\text{DES}}^{\text{R}} SOC_{\text{DES}}^{\hbox{min} }$$
(10)
$$E_{\text{DES}} \left( t \right) = \left\{ {\begin{array}{*{20}l} {E_{\text{DES}} \left( {t - 1} \right) + P_{\text{DES}} \left( t \right)\Delta t\eta_{\text{C}} } \hfill & {P_{\text{DES}} \left( t \right) > 0} \hfill \\ {E_{\text{DES}} \left( {t - 1} \right) + \frac{{P_{\text{DES}} \left( t \right)\Delta t}}{{\eta_{\text{D}} }} \, } \hfill & {P_{\text{DES}} \left( t \right) \le 0} \hfill \\ \end{array} } \right.$$
(11)

t = 1,2, …, 24; Δt is the duration of the commitment interval, in hours (1 hour); P DES(t), E DES(t) and SOC DES(t) are charging/discharging power, energy stored in the battery bank, and state of charge (SOC) of DESS at time-t, respectively; η C and η D are efficiencies of charging and discharging, respectively; ΔP(t) is the difference between REGs output and load demand in MG; \(P_{\text{DES}}^{\text{R}}\) and \(E_{\text{DES}}^{\text{R}}\) are the power rating and the energy capacity of DESS, respectively; \(SOC_{\text{DES}}^{\hbox{max} }\) and \(SOC_{\text{DES}}^{\hbox{min} }\) denote the permissible range of SOC; \(E_{\text{DES}}^{\hbox{max} }\) and \(E_{\text{DES}}^{\hbox{min} }\) denote the permissible range of energy stored of DESS; \(P_{\text{C}}^{\hbox{max} }\) and \(P_{\text{D}}^{\hbox{max} }\) are the maximums of charging/discharging power under constraints of SOC, respectively; E DES,λ is the energy stored of DESS when SOC=λ; EP G(t) and EP R are the electricity prices of the external system and contract price of REGs, respectively.

Due to simple constructions of MGs, the power losses in MGs are ignored. Thus, the power characteristic model of MG can be expressed as an electrical unit by (12).

$$P_{\text{MG}} \left( t \right) = P_{\text{load}}^{\text{MG}} \left( t \right) + P_{\text{DES}} \left( t \right) - P_{\text{REG}}^{\text{MG}} \left( t \right)$$
(12)

where \(P_{\text{REG}}^{\text{MG}} \left( t \right)\) and \(P_{\text{load}}^{\text{MG}} \left( t \right)\) are the REGs output and the local load demand in MG at time-t, respectively.

3.2 Establishment of typical daily scenarios

Firstly, these annual time-dependent data are segmented into 365 daily intervals. Then, these 365 daily patterns of REGs power output, and load demand are clustered into typical daily profiles with corresponding probabilities by FCM, respectively. It means that the daily variation trends of these 365 daily patterns serve as the features of clusters.

Then, these typical daily scenarios are established by the multiple scenarios technique based on these clustered data. Finally, these representative typical daily scenarios are divided into elementary intervals (1 hour) and the power flow calculation are repeated sequentially for each of them to calculate operation costs.

The cluster number can be determined by the clustering validity index I M [25]. A larger value of I M implies well-separated clusters and a better solution.

By this means, typical daily scenarios can be extracted from these annual prediction data and assumed sufficiently representative of the behaviors of REGs and load demand. Thus, the operation process can be simulated more precisely and take the time-variable nature of REGs and load demand into consideration, while easing the burden of planning computation.

4 Problem formulation

4.1 Upper level model: planning considerations

The control vector of the upper level consists of the power rating (\(P_{\text{ESS}}^{\text{R}}\)), the energy capacity (\(E_{\text{ESS}}^{\text{R}}\)) and the location (L ESS) of ESS. The model is described as follows.

4.1.1 Objective function of upper level

$$\begin{aligned} & \hbox{min} F_{\text{upper}} = \hbox{min} C_{\text{total}} \left( {P_{\text{ESS}}^{\text{R}} ,E_{\text{ESS}}^{\text{R}} ,L_{\text{ESS}} } \right) \\ & \quad = \left( {C_{\text{cap,d}} + C_{\text{FOM,d}} + C_{\text{VOM,d}} + C_{\text{load,d}} + C_{\text{loss,d}} - B_{\text{def,d}} } \right) \\ \end{aligned}$$
(13)

Implications and calculation methods of these items are illustrated below.

1) Diurnal capital cost of ESS

The capital cost of ESS can be represented as a function of two main parts. One is related to the power conversion system cost, and another is related to all the costs to build energy storage banks or reservoirs, shown as (14).

$$C_{{\rm cap,d}} = \frac{1}{365}\left( {C_{{\rm PCS}} \times P_{{\rm ESS}}^{{\rm R}} + C_{{{{\rm B}\& {\rm R}}}} \times E_{{\rm ESS}}^{{\rm R}} } \right)CRF$$
(14)

where C PCS and C B&R are the annualized per unit cost of power conversion system and the annualized per unit cost of energy storage section, respectively. Capital recovery factor (CRF) is the ratio used to calculate the present value of equal annual cash flows, shown as (15), and subjected to the interest rate r during the life time T ESS.

$$CRF = \frac{{r\left( {1 + r} \right)^{{T_{\text{ESS}} }} }}{{\left( {1 + r} \right)^{{T_{\text{ESS}} }} - 1}}$$
(15)

2) Diurnal operating and maintenance costs of ESS

Diurnal O&M costs include two main parts: the fixed O&M cost (C FOM.d) and the variable O&M cost (C VOM.d) [26], expressed as(16) and (17), respectively.

$$C_{\text{FOM,d}} = \frac{1}{365}C_{\text{FOM,a}} P_{\text{ESS}}^{\text{R}}$$
(16)
$$C_{\text{VOM,d}} = nC_{\text{VOM}} P_{\text{ESS}}^{\text{R}}$$
(17)

where C FOM.a is the annualized per unit cost of fixed O&M; C VOM is the hourly per unit cost of variable O&M; n is the diurnal operating hour of ESS.

3) Diurnal operating costs of regional ADS

The diurnal operating costs of regional ADS (C ope,d), including the costs of load demand (C load,d) and network losses (C loss,d), can indicate the economic efficiency of planning schemes. Moreover, time-of-use (TOU) electricity prices are taken into account.

$$C_{\text{load,d}} = \sum\limits_{{t \in t_{\text{p}} }} {C_{\text{p}} P_{\text{NL}} \left( t \right)} + \sum\limits_{{t \in t_{\text{f}} }} {C_{\text{f}} P_{\text{NL}} \left( t \right)} + \sum\limits_{{t \in t_{\text{v}} }} {C_{\text{v}} P_{\text{NL}} \left( t \right)}$$
(18)
$$C_{\text{loss,d}} = \sum\limits_{{t \in t_{\text{p}} }} {C_{\text{p}} P_{\text{loss}} \left( t \right)} + \sum\limits_{{t \in t_{\text{f}} }} {C_{\text{f}} P_{\text{loss}} \left( t \right)} + \sum\limits_{{t \in t_{\text{v}} }} {C_{\text{v}} P_{\text{loss}} \left( t \right)}$$
(19)

where C P, C f and C v are TOU prices during peak hours (t P), flat hours (t f) and valley hours (t v), respectively; P NL(t) is the net load demand at time-t, which can be expressed as (20); P loss(t) is the active power loss at time-t, which can be calculated by the power flow calculation.

$$P_{\text{NL}} \left( t \right) = P_{\text{load}} \left( t \right) + P_{\text{MG}} \left( t \right) + P_{\text{ESS}} \left( t \right) - P_{\text{REG}} \left( t \right)$$
(20)

where P load(t) is the load demand of ADS at time-t; P REG(t) is the power output of REGs at time-t; P MG(t) and P ESS(t) are the power output/consumption of MG and ESS at time-t, respectively.

4) Diurnal benefits of upgrade deferral

The integration of ESS enables us to release the capacity of ADSs and defer the upgrade of system, the benefits of which (B def,d) can be presented in (21).

$$B_{\text{def,d}} = \frac{1}{365}C_{\text{DE,a}} \left( {P_{\text{NL}}^{\hbox{max} } - P_{{{\text{NL}}^{\prime } }}^{\hbox{max} } } \right)CRF$$
(21)

where C DE,a is the annualized per unit capital cost of distribution equipment; \(P_{\text{NL}}^{\hbox{max} }\)and \(P_{{{\text{NL}}^{\prime } }}^{\hbox{max} }\)are maximum of net load without ESS and with ESS, respectively.

It should be noticed that C VOM.d, C load,d, C loss,d, and B def,d depend on the operation of ESS and the regional ADS in different daily scenarios. Therefore, the objective function of the upper level should be adapted by (22).

$$\begin{aligned} & { \hbox{min} }F_{\text{upper}} = \hbox{min} C_{\text{total}} \left( {P_{\text{ESS}}^{\text{R}} ,E_{\text{ESS}}^{\text{R}} ,L_{\text{ESS}} } \right) \\ & \quad = C_{\text{cap,d}} + C_{\text{FOM,d}} + \sum\limits_{s = 1}^{S} {\eta_{s} \left( {C_{{{\text{VOM,}}s}} + C_{{{\text{load,}}s}} + C_{{{\text{loss,}}s}} - B_{{{\text{def,}}s}} } \right)} \\ \end{aligned}$$
(22)

where \(\eta_{s}\)is the probability of scenario s; C VOM.s is the diurnal variable O&M cost of ESS in scenario s; C load,s , C loss,s and B def,s are costs of the diurnal load demand, network losses and benefits in scenario s, respectively.

4.1.2 Constraints of upper level

Main constraints of the upper level are given from (23) to (27).

1) Active/reactive power balance equation

$$S_{\text{load}} \left( t \right) + S_{\text{loss}} \left( t \right) + S_{\text{MG}} \left( t \right) + S_{\text{ESS}} \left( t \right) = S_{\text{Grid}} \left( t \right) + S_{\text{REG}} \left( t \right)$$
(23)

where S load(t), S ESS(t), S REG(t), S MG(t) and S Grid(t) are the electric load, charge/discharge load of ESS, REG output, MG output/consumption and power exchange of main grid at time-t, respectively; S loss(t) is the network power losses.

2) Power flow equations

$$P_{i} \left( t \right) = U_{i} \left( t \right)\sum\limits_{j = 1}^{{N_{\text{bus}} }} {U_{j} \left( t \right)\left( {G_{ij} \cos \theta_{ij} \left( t \right) + B_{ij} \sin \theta_{ij} \left( t \right)} \right)}$$
(24)
$$Q_{i} \left( t \right){ = }U_{i} \left( t \right)\sum\limits_{j = 1}^{{N_{\text{bus}} }} {U_{j} \left( t \right)\left( {G_{ij} \sin \theta_{ij} \left( t \right) - B_{ij} \cos \theta_{ij} \left( t \right)} \right)}$$
(25)

where P i (t) and Q i (t) are the active and the reactive power of bus i, respectively; U i (t) is the voltage magnitude of bus i; G ij and B ij are the transfer conductance and the susceptance between bus i and bus j, respectively; θ ij (t) is the voltage angle difference between bus i and bus j.

3) Security constraints

Security constraints include the constraints of the bus voltage magnitudes and transmission line loadings.

$$U_{i,\hbox{min} } \le U_{i} \left( t \right) \le U_{i,\hbox{max} }$$
(26)
$$S_{l} \left( t \right) \le S_{l,\hbox{max} }$$
(27)

where U i,min and U i,max denote the permissible range of voltage magnitude for bus i; S l,max is the maximum of power flow for line l.

4.2 Lower level model: operation considerations

The control vector of the lower level is constituted by charging/discharging power of ESS at time-t in every typical scenario. The model is described as follows.

4.2.1 Objective function of lower level

The fuzzy multi-objective model serves as the objective function of the lower level, considering peak load shaving, restraining volatility, and improving the reserve capability of ESS, as given by (28) to (31).

1) Peak load shaving

Minimizing the variance of net load is adopted to represent the objective of peak load shaving, as given by (28).

$$\hbox{min} f_{1} = \hbox{min} \frac{1}{24}\sum\limits_{t = 1}^{24} {\left( {P_{\text{NL}} \left( t \right) - P_{{{\text{NL}} . {\text{average}}}} } \right)^{2} }$$
(28)

where P NL.average is the average of net load demand of ADS during the typical scenario.

2) Restraining volatility

Based on the ability to inject and absorb power quickly, ESS can be used to alleviate the negative impacts brought by fluctuations of REGs and load, given by (29).

$$\hbox{min} f_{2} = \hbox{min} \sum\limits_{t = 2}^{24} {\left( {P_{\text{NL}} \left( t \right) - P_{\text{NL}} \left( {t - 1} \right)} \right)^{2} }$$
(29)

3) Improving reserve capability of ESS

When ADS malfunctions, ESS can provide some degree of power supply to the essential load, and participate in the service restoration. The reserve capability of ESS is introduced and defined as the maximum power which ESS can supply to ADS, subjected to operation constraints at time-t, expressed as (30).

$$P_{\text{ava}} \left( t \right){ = }\hbox{min} \left\{ {P_{\text{ESS}}^{\text{R}} ,\frac{{\left( {E_{\text{ESS}} \left( {t - 1} \right) - E_{\text{ESS}}^{ \hbox{min} } } \right)\eta_{\text{D}} }}{\Delta t}} \right\}$$
(30)

where E ESS(t) is the energy stored in the battery bank of ESS at time-t; \(E_{\text{ESS}}^{ \hbox{min} }\) is the minimum of energy stored in the battery bank of ESS.

Maximizing the reserve capability of ESS serves as the third objective of the lower level, shown by (31).

$$\hbox{min} f_{ 3} = \hbox{min} \left( {{1 \mathord{\left/ {\vphantom {1 {\sum\limits_{t = 1}^{24} {P_{\text{ava}} \left( t \right)} }}} \right. \kern-0pt} {\sum\limits_{t = 1}^{24} {P_{\text{ava}} \left( t \right)} }}} \right)$$
(31)

Aiming to get more reasonable optimization result, the fuzzy satisfaction-maximizing is selected to deal with the multi-objective problem [27].

4.2.2 Constraints of lower level

The constraints of the lower level are mainly operation constraints of ESS, including equality and inequality constraints, as given by (32) to (37).

1) Equality constraints of ESS periodical behavior

$$E_{ESS} \left( t \right) = \left\{ {\begin{array}{*{20}l} {E_{\text{ESS}} \left( {t - 1} \right) + P_{\text{ESS}} \left( t \right)\Delta t\eta_{\text{C}} } \hfill & {P_{\text{ESS}} \left( t \right) > 0} \hfill \\ {E_{\text{ESS}} (t - 1) + \frac{{P_{\text{ESS}} (t)\Delta t}}{{\eta_{\text{D}} }}} \hfill & {P_{\text{ESS}} \left( t \right) \le 0} \hfill \\ \end{array} } \right.$$
(32)

2) Equality constraint of state transition

$$\sum\limits_{t = 1}^{24} {\left( {P_{\text{ESS}} \left( t \right)\Delta t\eta_{\text{C}} + \frac{{P_{\text{ESS}} \left( t \right)\Delta t}}{{\eta_{\text{D}} }}} \right)} = 0$$
(33)

3) Inequality constraint of SOC

$$SOC_{\text{ESS}}^{\hbox{min} } \le SOC_{\text{ESS}} \left( t \right) \le SOC_{\text{ESS}}^{\hbox{max} }$$
(34)

4) Inequality constraint of peak power

$$- P_{\text{ESS}}^{\text{R}} \le P_{\text{ESS}} \left( t \right) \le P_{\text{ESS}}^{\text{R}}$$
(35)

5) Inequality constraints of power during t P and t v

$$P_{\text{ESS}} \left( t \right) \le 0\quad t \in t_{\text{p}}$$
(36)
$$P_{\text{ESS}} \left( t \right) \ge 0\quad t \in t_{\text{v}}$$
(37)

where SOC ESS(t) is SOC of ESS at time-t; \(SOC_{\text{ESS}}^{\hbox{min} }\) and \(SOC_{\text{ESS}}^{\hbox{max} }\) denote the permissible range of SOC.

5 Hybrid solution strategy for bi-level models

From the mathematical perspective, the proposed model is a problem of bi-level nonlinear commitment optimization with mixed-integers. To address this problem, a multi-subgroup hierarchical chaos hybrid algorithm (MHCDEPSO) is introduced based on DE and PSO on basis of [28].

5.1 MHCDEPSO

DE and PSO are effective intelligent algorithms to solve nonlinear multi-extrema optimization problems. However, PSO is easily trapped into the local optimal solution, and DE has the drawback of slow convergence speed. To tackle these problems, we combine them and introduce several improvement measures given as follows.

1) Multi-subgroup hierarchical structure

Every whole iteration consists of the base layer and the elite layer. Meanwhile, the population of every iteration in the base layer is divided into multi-subgroups, and each subgroup carries out DE operator respectively. To improve the information interaction among these subgroups, elite individuals of every subgroup are brought into the elite layer to form the elite population for PSO operator.

2) Tent chaos mapping

The tent mapping has better features of ergodicity and randomness, so the tent chaos mapping is applied to generate the initial population instead of random initialization method. Meanwhile, the chaos mutation operator is introduced to escape from the premature taking variance of fitness (σ 2) as the criterion [29].

3) Adaptive coefficients of DE and PSO

To optimize the local search ability and the global search ability based on the number of iterations, an adaptive weight coefficient (ω) in PSO and an adaptive crossover probability (CR) in DE are used instead of the constants, as given by (38) and (39).

$$\omega \left( k \right) = \omega_{\hbox{max} } - \left( {\omega_{\hbox{max} } - \omega_{\hbox{min} } } \right)\left( {\frac{k}{{k_{\hbox{max} } }}} \right)^{2}$$
(38)
$$CR\left( k \right) = CR_{\hbox{min} } + \left( {CR_{\hbox{max} } - CR_{\hbox{min} } } \right)e^{{ - 30\left( {1 - \frac{k}{{k_{\hbox{max} } }}} \right)^{h} }}$$
(39)

where k is the number of iterations, and k max is upper bound of k; ω max and ω min denote the permissible range of ω; CR max and CR min denote the permissible range of CR; h is an integer coefficient greater than 1.

Hence, with the increase of k, ω(k) in PSO decreases and CR(k) in DE increases, which will improve global searching ability in the beginning stages and local search ability in the end, respectively [30].

5.2 Hybrid strategy based on MHCDEPSO and CPSO

MHCDEPSO serves as the basic frame of the hybrid strategy to determine the allocation of ESS in the upper level. Chaos PSO serves as the algorithm embedded in the basic frame to obtain ESS scheduling in the lower level.

The flow charts are shown in Fig. 2 and Fig. 3. The * means the steps where chaos PSO embeds.

Fig. 2
figure 2

Flow chart of the upper level based on MHCDEPSO

Fig. 3
figure 3

Flow chart of the lower level based on CPSO

6 Computational results and discussion

6.1 Parameters of test system

To verify the effectiveness of the planning model and the hybrid solving strategy, simulation studies are carried out based on the modified IEEE-33 bus distribution network, as shown in Fig. 4. The total load demands of the ADS are 3.715 MW for active power and 2.300 Mvar for reactive power, and the reference voltage is 12.6 kV.

Fig. 4
figure 4

Modified IEEE-33 bus benchmark distribution network

In order to utilize the power of REGs locally, PV and WG are allocated in Bus 7 and Bus 24, and three types of MGs, such as the residential area, the business service area, and the industrial area, are allocated in Bus 18, Bus 13 and Bus 22, respectively. Table 1 provides data of MGs [5]. Other parameters refer to the Appendix A.

Table 1 Data of MGs

Figure 5 shows the annual profiles of solar irradiance, and wind speed obtained by HOMER, and the load curve extracted from IEEE-RTS79 in [31].

Fig. 5
figure 5

Annual data of wind speed, solar irradiance and load demand

Three types of ESS are selected to be candidates, including lead-acid battery (LAB), sodium-sulfur battery (NaS) and li-ion (LIB). Parameters of them are provided in Table 2 [26]. The permissible ranges of power rating and energy capacity of ESS are 500–1000 kW, and 500–3000 kWh, respectively. Buses 1–32 are candidate sites.

Table 2 Technical and economic parameters of ESSs

6.2 Results of typical daily scenarios

1) Power output characteristics of MGs

Based on Section 3.1, power characteristics of MGs are calculated. Curves of active power are shown in Fig. 6.

Fig. 6
figure 6

Curves of 24h outputs of MGs in typical daily scenarios

These curves indicate different variation trends based on load demands and allocations of different MGs. These zero points of these curves mean self-sufficiency situations based on the dynamic power regulating by the effect of DESSs in MGs.

2) Establishment results of typical daily scenarios

Based on Section 3.2, considering weather conditions, the annual prediction data of WG, PV and load demand are calculated by models of PV and WT in [32] and [33], and clustered into four types by FCM, shown as Fig. 7.

Fig. 7
figure 7

Clustering centers of annual power output of PV, WT and load

Then, based on the clustering centers and corresponding probabilities, the typical daily scenarios consisting of REGs and load are established by the multiple scenarios technique, and these most likely 10 scenarios are selected, as shown in Table 3.

Table 3 Scenarios and corresponding probabilities

6.3 Case study

1) Case 1

In Case 1, minimizing the total costs is selected to be the objective of the upper level from (22). Based on the three types of ESS, different planning results are provided in Table 4.

Table 4 Optimal schemes and costs of ESS in Case 1

As Table 4 shows, power ratings and energy capacities of ESS tend to lower bounds, no matter which type the ESS is. This is because that the diurnal capital cost and the O&M costs of ESS are much greater than extra benefits obtained by the arbitrage alone. In other words, the diurnal capital cost and the O&M costs of ESS play a decisive role in the planning process.

Based on these planning schemes in Case 1, power curves of net load in Scenario 5 with the largest probability of occurrence are shown in Fig. 8. Due to the small power ratings and energy capacities, these three ESSs have small effects on peak load shaving and valley load filling, which is also indicated by the benefits of upgrade deferral shown in Table 4.

Fig. 8
figure 8

Power curves of net load of Case 1 in Scenario 5

2) Case 2

In Case 2, minimizing the diurnal operating costs of regional ADS from (18) and (19). Three different planning results are shown in Table 5.

Table 5 Optimal schemes and costs of ESS in Case 2

In Case 2, due to taking no account of costs of ESS, optimal results tend to the upper bounds of power rating and energy capacity to obtain more extra benefits by the arbitrage. Power curves of net load in Scenario 5 are shown in Fig. 9.

Fig. 9
figure 9

Power curves of net load of Case 2 in Scenario 5

From Fig. 9, it can be seen that ESSs keep charging during valley hours and discharging during peak hours. And these ESSs have recommendable effects on peak load shaving and valley load filling.

Nevertheless, it can be noted that the diurnal costs of ESS rise dramatically. Taking LIB as an example, compared to the ADS without ESS, the total costs of ADS with LIB experience a drastic increase from 45.91 × 103 to 53.18 × 103. However, the extra benefits obtained by the arbitrage (0.78 × 103) are much smaller than the costs of LIB (8.10 × 103). Consequently, benefits obtained by the arbitrage alone are not big enough to achieve profitability under the current technical and economic conditions.

Meanwhile, the ADS with LIB spends more than twice as much cost on the installation, O&M of ESS as the ADS with NaS does. It suggests that the NaS has more economic efficiency than other two types of ESS.

3) Case 3

To reflect the influence of optimal operation on the planning scheme, besides the total costs as (22), the daily average level of peak load shaving, shown as (40), is added into the objective function of the upper level by means of a penalty function. The planning results are shown in Table 6.

Table 6 Optimal schemes and costs of ESS in Case 3
$$\lambda_{\text{APLS}} = \sum\limits_{s = 1}^{S} {\eta_{s} \frac{{\left( {P_{{{\text{NL,}}s}}^{\hbox{max} } - P_{{{\text{NL',}}s}}^{\hbox{max} } } \right)}}{{P_{{{\text{NL,}}s}}^{\hbox{max} } }}}$$
(40)

Compared with Case 1, power ratings and energy capacities of these ESSs all rise in different degrees. Meanwhile, due to the constraint λ APLS, there are more extra benefits obtained by upgrade deferral. What is more, there has been a drop in the costs of load demand and network losses, respectively.

From the comparisons among these three ESSs, it can be noted that LIB can reach the same daily average level of peak load shaving at least costs of power rating and energy capacity. However, in terms of economic efficiency, NaS beats LAB and LIB for the top spot again.

These power curves of net load in Case 2 shown in Fig. 10 demonstrate the commendable effects of peak load shifting and valley load filling. Meanwhile, thanks to the fuzzy satisfaction-maximizing method, the fluctuations of all these curves with the integration of ESS decrease in different degrees, as shown in Table 7.

Fig. 10
figure 10

Power curves of net load of Case 3 in Scenario 5

Table 7 Standard deviations of net load of Case 3 in Scenario 5

Reserve capabilities of these ESSs are demonstrated in Fig. 11.

Fig. 11
figure 11

Reserve capability of ESS in Scenario 5

As can be seen from the curves, ESSs can provide power supply to the essential load and be ready to participate in the system service restoration, while fulfilling other two tasks. Planning schemes and technical features contribute to the differences of the reserve ability. NaS leads in the reserve capability among these three ESSs due to the biggish energy capacity and the wide permissible range of SOC.

4) Case 4

To reflect the influence of planning scheme on the optimal operation clearly, operation conditions of NaS in these three cases are selected for analyses. The power curves, SOC curves, and reserve capabilities of NaS are demonstrated from Fig. 12 to Fig. 14, respectively.

Fig. 12
figure 12

Power of NaS in Scenario 5

It is noted that NaS in Case 2 has the largest scope of power variation because of the largest power rating and energy capacity, which means the strongest ability of power regulation. Meanwhile, we also find that the discharging power outputs in Case 1 fluctuate around 25 kW during TOU peak time 10 to 13, and hit a low of 5.99 kW at time 13, which means that the NaS has a small effect on peak load shaving during TOU peak time 10–13 in Case 1.

As shown in Fig. 13, due to the largest installed capacity, the lowest point of SOC in Case 2 is greater than those of others. It indicates that NaS in Case 2 has the greatest reserve capability even after finishes the mission of peak load shaving, which is also certified by the comparison in Fig. 14. In other words, NaS in Case 2 can take more responsibility for system support.

Fig. 13
figure 13

SOC of NaS in Scenario 5

Fig. 14
figure 14

Reserve capability of NaS in Scenario 5

What we analyze above suggests that the planning model proposed in this work can integrate the operation stage into account effectively, and the fuzzy multi-objective model in the lower level is an effectual operation strategy for ESS.

5) Case 5

Figure 15 shows convergence characteristics of searching for the minimum costs in Case 3 by MHCDEPSO, chaos DE and chaos PSO.

Fig. 15
figure 15

Convergence characteristics of MHCDEPSO, CDE, and CPSO

It is also noteworthy that the hybrid algorithm can converge to its best solution at the 17th iteration, which is the smallest number of iterations among these algorithms. Meanwhile, MHCDEPSO can converge to a better optimal solution (47.87 × 103) than chaos PSO (48.14 × 103) and chaos DE (48.30 × 103). The results verify the availability and effectiveness of the proposed hybrid algorithm.

Additionally, to investigate the robustness of the proposed algorithm, Case 3 is carried out 30 times independently. The maximum, minimum, average and standard deviation values of total costs are provided in Table 8. These results show the robustness and reliability of the proposed hybrid algorithm.

Table 8 Results based on 30 independent runs by MHCDEPSO

7 Conclusion

In this paper, we propose a fuzzy multi-objective bi-level formulation of ESS planning problem in ADSs. A multi-subgroup hierarchical chaos hybrid algorithm is developed to deal with the bi-level mixed integer optimization problem.

Based on the simulation results and discussions, several final remarks and conclusions can be drawn as follows.

1) By means of the bi-level optimization, the proposed planning model enables us to take full consideration of the operation strategy of ESS, which contributes to obtaining a more reasonable planning scheme.

2) By means of FCM and the multiple scenarios technique, annual time-dependent forecasting data of REGs and load demand can be processed into typical daily scenarios effectively. These scenarios can capture the time-variable nature of REGs and load demand, and ease the computational burden.

3) Based on the current economic and technological conditions of ESS, the costs of ESS play a decisive role in the planning process of ESS in ADSs. But, the integrating of ESSs will also bring other additional value.