1 Introduction

The reliability of power delivered to customers has become more and more important in recent years. It is viewed as one of indexes for power quality of distribution network especially considering its impact on customer satisfaction. Utilities have many choices for improving the reliability of distribution network such as network reconfiguration, installation of energy storage systems and application of distributed generation resource (i.e., renewable and nonrenewable), utilization of plug-in electric vehicles (PEVs) by smart charging/discharging and implementation of demand response (DR) programs. The two latter choices have much potential for improving the reliability indexes of the distribution system.

Despite the superiority of electric vehicles to traditional ones in several indexes such as high efficiency, less air pollution and less noise creation, the network will be placed in front of peak load enhancement by increasing the penetration percentage of PEVs. Coordination of PEVs and optimal charging/discharging of such vehicles as well as supplying daily required energy of PEVs for daily trip can handle the challenge of peak load and even provide power for improving the reliability of network especially in smart grids, which requires higher reliability [1]. Battery utilization of PEVs for improving reliability prevents system operators to construct new power plants in a long term, which is effective in economic aspects.

On the other hand, DR has positive effect on reliability of distribution system. According to the definition given in [2], DR is the ability of consumers for improving paradigm of energy consumption to attain suitable prices and reliability improvement of the network. Vast advantages will be achieved for customers, utilities and also environment by implementing DR programs. Undeniable impacts of DR on the cost and reliability of power system tend to increase the adaptation of such program by utilities among their activities in recent years. Due to the sensitivity of demand to price, a slight decline in demand has great effect on the electricity price [3].

Different modellings for DR are accomplished in different studies using various approaches and objectives [4, 5]. Utilizing PEVs in DR program is investigated in some studies with aims such as voltage control [6] and power balance [7]. Impact analysis of DR is accomplished in some studies for network characteristics such as load and voltage [8] and loss and electricity price [9]. Reliability improvement of power network with DR is done in recent studies [10,11,12]. Implementing DR in a real case study to prove the significant impact of such program in improving the reliability and retaining stability of network compared with conventional methods is accomplished in [10]. An optimization approach based on the reliability of generation units’ failure is presented in [11], which is modeled based on the forced outage rate by investigating its effect on the indexes value of lost load and expected load not served. An approach for evaluating the role of price-based DR on the supply adequacy of smart distribution system is presented in [12] by introducing a method to increase the willingness of customers to participate in DR. Unlike the existing methods, the varying availability in the capability of customer for DR is considered in this paper.

Utilizing PEVs in different fields is investigated in literature. Several review studies are in the area of PEVs concentrating on smart charging procedures [13], technical challenges [14], impact of different PEV types and charging strategies on distribution network [15], computational scheduling methods for integrating this vehicles with grid [16] and recent trends in optimization techniques for hybrid vehicles and charging infrastructures [17]. Impact of PEVs on the system is investigated in some studies aiming to loss minimization [18], load variance smoothening [19] and stability [20, 21]. Reliability studies of distribution system in consequence of adding PEVs are presented in [22,23,24]. In [22], a new model is presented for direct optimization of reliability indexes by optimizing the charging/discharging of PEVs in power network and investigating a new techno-economic assessment. Reliability evaluation of distribution system in presence of PEVs is proposed in [23] considering two topologies (centralized and dispersed) for load points to reduce the energy not served in grid-connected mode and support the grid in islanding mode with the aim of maximizing energy exchange among load points by sectionalizing the failure parts of the grid. In [24], the impact of PEVs charging stations on reliability of distribution system for smoothening the system load is investigated, introducing expected energy not charged.

In the previous studies, the impact of both DR and PEVs have not been investigated simultaneously as two large-scale factors for reliability improvement. To fill such gap, the performance of radial distribution system is improved in this paper by using PEVs and DR considering constraints of PEV batteries, daily energy consumption of such vehicles and charger size. Also, the penetration percentage of PEVs is improved, and PEVs and DR are prioritized in distribution networks. Additionally, network characteristics including load profile, load peak, voltage profile and loss are investigated in the aspect of reliability improvement. DR program is a real-time-pricing (RTP) program considering different participation percentage, which is studied in order to compare the obtained results. Also, both DR and optimized DR (ODR) are compared in reliability viewpoint. The well-known indexes of loss of load expectation (LOLE) and expected energy not served (EENS) are adopted for reliability studies. The particle swarm optimization (PSO) algorithm is adopted for optimizing objective functions of mentioned reliability indexes due to the nonlinearity of problem and the numerous advantages of this technique over mathematical methods. Moreover, a new direct formulation for calculating the capacity outage probability table (COPT) is proposed for the first time. Additionally, an approach for connecting PEVs to the buses of radial network is presented. The simulation results are provided and investigated in order to evaluate the performance of the proposed model by adopting IEEE 33-bus radial distribution networks.

The remainder of this study is organized as follows: the formulation of the proposed scheme is presented in Section 2. Section 3 contains the case studies and simulation results of the proposed model. Reliability improvement prioritization of the mentioned reliability indexes is provided in Section 4. Finally, the paper is concluded in Section 5.

2 Problem formulation

2.1 DR modelling

One of reliability improvement methods in distribution system is implementing DR by utilities, which was firstly proposed in [25]. In addition, the development of such concept and modeling of DR is accomplished in [3]. The sensitivity of the demand to price is called elasticity (E) that represents the changing in demand for a unit of changing in the price of electricity as formulated in (1). Moreover, (2) defines the mutual-elasticity for ith hour to jth hour [26].

$$E = \frac{{\rho_{0} }}{{d_{0} }}\frac{\partial d}{\partial \rho }$$
(1)
$$E_{h,j} = \frac{{\rho_{j}^{0} }}{{L_{h}^{0} }}\frac{{\partial L_{h} }}{{\partial \rho_{j} }}$$
(2)

where \(\rho_{j}^{0}\) and \(\rho_{j}\) show the electricity price before and after implementing DR at jth hour, respectively, and L 0 h , Lh are system load at hth hour before and after implementing DR.

Demands can be categorized according to elasticity. The first type of category (self-elasticity) shows the loads which can only be on or off and unable to move from one hour to other hours such as illumination loads that have negative elasticity. On the other hand, the second type (cross-elasticity) represents the loads that can be displaced from peak hours to flat or valley hours which have positive value [27].

The elasticity is as (3), where elements of the main diagonal are represented for self-elasticity while other elements of this parameter show the cross-elasticity [28].

$$\varvec{E} = \left[ {\begin{array}{*{20}c} {E_{1,1} } & {E_{1,2} } & \ldots & {E_{1,j} } & \ldots & {E_{1,24} } \\ {E_{2,1} } & {E_{2,2} } & \ldots & {E_{2,j} } & \ldots & {E_{2,24} } \\ \vdots & \vdots & & \vdots & & \vdots \\ {E_{h,1} } & {E_{h,2} } & \ldots & {E_{h,j} } & \ldots & {E_{h,24} } \\ \vdots & \vdots & & \vdots & & \vdots \\ {E_{24,1} } & {E_{24,2} } & \ldots & {E_{24,j} } & \ldots & {E_{24,24} } \\ \end{array} } \right]$$
(3)

Different models are designed for DR including linear models [29] and nonlinear models [30]. It is obvious that nonlinear models can model the load better than linear models. In [30], numerous nonlinear models such as power, exponential and logarithmic models are presented and show that the power model has a lower risk compare to other nonlinear models (i.e., exponential and logarithmic) for implementing. Accordingly, this model is adopted in this paper.

The adopted DR model in this research is according to (4). Considering participation percentage PP of consumers, the previous equation will be revised as (5). So, in this situation, only a fraction of load participates in DR program, for which the participation percentage is in range of [0 100].

$$L_{h} = L_{h}^{0} \left[ {\prod\limits_{j = 1}^{24} {\left( {\frac{{\rho_{j} }}{{\rho_{j}^{0} }}} \right)^{{E_{h,j} }} } } \right]$$
(4)
$$L_{h} = \frac{P_{P}}{100}L_{h}^{0} \left[ {\prod\limits_{j = 1}^{24} {\left( {\frac{{\rho_{j} }}{{\rho_{j}^{0} }}} \right)^{{E_{h,j} }} } } \right] + \left( {1 - \frac{P_{P}}{100}} \right)L_{h}^{0}$$
(5)

It is assumed that the price is allowed to be changed 20% more in peak hours Ph and 20% less in valley hours Vh than the original price as follows:

$$\rho_{h} = \left\{ \begin{aligned} 0.8\rho_{h}^{0} \, \;\; \, \rho_{h}^{0} \in V_{h} \hfill \\ 1.2\rho_{h}^{0} \, \;\;\rho_{h}^{0} \in P_{h} \hfill \\ \end{aligned} \right.$$
(6)

In the case of applying ODR instead of normal DR, the following constraint is considered:

$$\sum\limits_{h = 1}^{H} {\rho_{h} } = \sum\limits_{h = 1}^{H} {\rho_{h}^{0} }$$
(7)

2.2 Smart charging/discharging of PEVs

As mentioned earlier, reliability studies of distribution system contains well-known indexes of LOLE and EENS which are important for costumers. LOLE determines the probability of total expected time, where power is not supplied to customers. On the other hand, EENS represents the total value of expected energy not supplied in the outage time. This outage time is determined in LOLE. Calculation of these two indexes in presence of PEVs will be changed to optimization problems that are formulated from the concepts of these indexes [31], which is presented in [22]. So, the objective functions for LOLE and EENS can be stated as (8) and (9), respectively. The formulations of \(t_{s,h}\) and \(w_{s,h}\) is according to (10) and (11), respectively.

$$ LOLE = { \hbox{min} } \sum\limits_{s = 1}^{S} {\left( {p_{s} \sum\limits_{h = 1}^{H} {t_{s,h} } } \right)}$$
(8)
$$ EENS = { \hbox{min} } \sum\limits_{s = 1}^{S} {\left( {p_{s} \sum\limits_{h = 1}^{H} {w_{s,h} } } \right)}$$
(9)
$$t_{s,h} = \left\{ \begin{aligned} 1 \quad\, P_{s} - [L_{h} + N(C_{h} - D_{h} )] < 0 \hfill \\ 0 \quad\, P_{s} - [L_{h} + N(C_{h} - D_{h} )] \ge 0 \hfill \\ \end{aligned} \right.$$
(10)
$$w_{s,h} = \left\{ {\begin{array}{*{20}l} {[L_{h} + N(C_{h} - D_{h} )] - P_{s} } \hfill & {P_{s} - [L_{h} + N(C_{h} - D_{h} )] < 0} \hfill \\ 0 \hfill & {P_{s} - [L_{h} + N(C_{h} - D_{h} )] \ge 0} \hfill \\ \end{array} } \right.$$
(11)

where H is the total hours, which is 24 in this paper; N is the total number of PEVs; \(C_{h}\), \(D_{h}\) are the charging and discharging mean power of one PEV at hth hour; S is the total number of state 2G;and \(p_{s}\), \(P_{s}\) are the probability and installed capacity of sth states of availability and unavailability of generation units, respectively. To determine these two parameters, firstly the COPT of generation units should be formed. To this end, all possible states for availability of generation units must be generated as shown in Table 1.

Table 1 All probable states for availability of generation units

This table forms \(I_{s,g}\), where g is the indexes for generation units and G is the total number of generation units. \(I_{s,g}\) is 1 when gth unit in sth state is available and is 0 when such unit is not available. This parameter is determined by:

$$I_{{s,{{g}}}} = \left\{ {\begin{array}{*{20}l} 0 \hfill & {0 < \bmod \left( {\frac{s}{{2^{g} }}} \right) \le \frac{{2^{g} }}{2}} \hfill \\ 1 \hfill & {\bmod \left( {\frac{s}{{2^{g} }}} \right) = 0\quad {\text{or}}\quad \bmod \left( {\frac{s}{{2^{g} }}} \right) > \frac{{2^{g} }}{2}} \hfill \\ \end{array} } \right.$$
(12)

Finally, for obtaining \(p_{s}\) and \(P_{s}\), the following equations are proposed:

$$p_{s} = \prod\limits_{g = 1}^{G} {[A_{g} I_{s,g} + (1 - A_{g} )(1 - I_{s,g} )]} \quad \forall s$$
(13)
$$P_{s} = \sum\limits_{g = 1}^{G} {P_{g}^{\hbox{max} } } I_{s,g} \quad \forall s$$
(14)

where \(P_{g}^{\hbox{max} }\) and \(A_{g}\) are installed capacity and availability of gth generation unit, respectively.

Considering the constant size of charger R in real, the time of connecting PEVs to grid for charging/discharging is as follows:

$$T_{h}^{C} = \frac{{C_{h} }}{R} \times 60$$
(15)
$$T_{h}^{D} = \frac{{D_{h} }}{R} \times 60$$
(16)

where \(T_{h}^{C}\) and \(T_{h}^{D}\) are the time of charging and discharging at hth hour, respectively. In addition, the energy of charging/discharging are as (17) and (18), which are considered as the constraints of battery:

$$E_{h}^{C} = C_{h} = \frac{{T_{h}^{C} }}{60}R$$
(17)
$$E_{h}^{D} = D_{h} = \frac{{T_{h}^{D} }}{60}R$$
(18)

This optimization problem is solved subjected to the following constraints:

$$E_{h}^{B} = E_{h - 1}^{B} + N(\eta_{C} E_{h}^{C} + \frac{{E_{h}^{D} }}{{\eta_{D} }} - \delta_{h}^{e} )$$
(19)
$$E_{h}^{B} > \delta_{h + 1}^{e}$$
(20)
$$0 < E_{h}^{B} < NC_{B}$$
(21)
$$0 < C_{h} < R$$
(22)
$$0 < D_{h} < R$$
(23)
$$\delta_{h}^{e} = \frac{{\delta_{h} }}{W}$$
(24)

where \(E_{h}^{B}\) is the energy of PEV batteries at the end of hour h; \(\eta_{C}\) and \(\eta_{D}\) are the charging/discharging efficiencies of batteries; \(\delta_{h}^{e}\) is the electricity energy consumed by one PEV in hth hour; \(\delta_{h}\) is the distance driven by one PEV in hth hour; W is the discharging conversion factor (i.e. a distance) which can be driven with 1 kWh by one PEV; and \(C_{B}\) is the capacity of each PEV’s battery.

2.3 The proposed approach for connecting PEVs to buses

In this approach, each PEV is connected to one of the buses in radial distribution system based on a probability. This probability is based on the load of buses. Assuming that \(P_{z}\) shows the load of zth bus in radial distribution system. Firstly, the cumulative load of each bus is determined by summing the loads from bus 1 to the corresponding bus using (25), where \(CL_{b}\) shows the cumulative load of bth bus from bus 1 to bus b.

$$CL_{b} = \sum\limits_{z = 1}^{b} {P_{z} } \quad b = 1,2, \ldots ,B$$
(25)

For each PEV, a random number \(u_{n}\) is generated using uniform distribution which is in range of (0 1). So \(CL_{1} < u_{n} \cdot CL_{B} < CL_{B}\) and thus support all the buses. Finally, (26) is utilized for connecting each PEV to resulted bus of it, where \(CB_{n}^{h}\) represents the connecting bus of nth PEV in hth hour.

$$CB_{n}^{h} = b\left| {\{ u_{n} \cdot CL_{B} \in (CL_{b - 1} ,CL_{b} ),b \in (2,3, \ldots ,B)} \right.\}$$
(26)

2.4 Load flow and power loss calculation

Load flow method for voltage and loss calculation in this approach is backward-forward technique, which is based-on the direct application of the Kirchhoff’s voltage law (KVL) and Kirchhoff’s circuit law (KCL) rules [32].

2.5 PSO algorithm description

The PSO algorithm is a population-based stochastic optimization technique, which has been founded based on the swarm-intelligence [33], and it is improved in [34]. Faster convergence, low memories requirement, less parameters to tune, usability in problems with large and complex search spaces, capability of solving many nonlinear hard optimization problems, no need to any gradient information about the objective or error function, and low dependency on the initial solution in order to get the global optimal solution are the advantages of PSO. Diagram of the proposed scheme for reliability improvement is presented in Fig. 1.

Fig. 1
figure 1

Diagram of the proposed framework

3 Case study

The proposed framework for optimizing the reliability indexes of distribution system utilizing PEVs and RTP DR program is presented in the previous section. For evaluating the effectiveness of the proposed model, firstly IEEE 33-bus radial distribution system [35] is adopted. Figure 2 illustrates the diagram of this system. The hourly electricity price of DR and impact of different participation percentage on load profile are shown in Fig. 3a and b. For greater percentage of customers’ participation, peak load is lowered more and load profile is more flattened. PEVs’ consumption is depicted in Fig. 4 [22]. Moreover, units are shown in Table 2. The capacity of each PEV’s battery is 25 kWh, and the charger size based on the capacity of current domestic network (4.6 kW) is considered 4 kW. Self- and cross-elasticity of customers are provided in Table 3.

Fig. 2
figure 2

IEEE 33-bus radial distribution test system

Fig. 3
figure 3

Hourly electricity prices of time of use (TOU) DR and the impact on load profile

Fig. 4
figure 4

Daily driven pattern of PEVs’ users

Table 2 Installed capacity of units and their availability
Table 3 Self- and cross-elasticity of system load

For the implementation of DR, the time interval between hour 1 and hour 7 is considered as valley hours and the time interval between hour 10 and hour 13. Moreover, hour 19 to hour 22 are selected as peak hours. The other time intervals are considered as flat hours. In this study, it is assumed that W is 6 km/kWh, i.e. the distance driven by a PEV using 1 kWh energy is 6 km. Accordingly, (24) changes to that \(\delta_{h}^{e}\) is equal to \(\delta_{h} /6\), which is used in numerical simulation as vehicle consumption.

3.1 Reliability

Results of utilizing PEVs for LOLE and EENS minimization considering TOU-DR and different participation percentage are shown in Fig. 5. For a specified number of PEVs, the reliability indexes are optimized. Both reliability indexes are improved by starting from a low number of PEVs, and will be deteriorated again for numbers greater than that optimal number. The curves of both indexes are U-shaped such that with increasing PP from 0 to 100, the indexes are improved. As mentioned, these indexes are optimized adopting PSO algorithm considering related constraints. The optimized number of PEVs for both indexes and for participation of DR are shown in Fig. 6.

Fig. 5
figure 5

LOLE and EENS optimization with DR and PEVs

Fig. 6
figure 6

Optimized number of PEVs in LOLE and EENS optimization

Variation of EENS based on LOLE optimization is presented in Fig. 7a. EENS is decreased uniformly by increasing LOLE. Also, Fig. 7b illustrates the variation of LOLE based on EENS optimization. Likewise, when optimizing LOLE, LOLE is decreased by increasing EENS. These figures show that such indexes are not sympathy with each other. By optimizing one of LOLE or EENS, the other index would be lower. The requirement of customers determines the index for optimization.

Fig. 7
figure 7

LOLE and EENS variation based on optimizing another index

3.2 Network characteristic

In this paper, characteristics of the system in presence of optimizing mentioned reliability indexes are presented and analyzed to assess the impact of reliability improvement of radial distribution system using charging/discharging of PEVs and DR on these characteristics which is important for customers and utilities as other factors of satisfaction. These characteristics contain load profile, load peak, voltage profile and energy loss.

Load profile of system based on LOLE and EENS optimization using PEVs for optimized amount of these two indexes in presence of DR with 40% participation is shown in Fig. 8. As can be seen, LOLE level the load in two level as far as possible based on the number of PEVs, the capacity, daily consumption and DR program while EENS smooth the load curve by transmit the load from peak hours to valley hours.

Fig. 8
figure 8

Load profile in LOLE and EENS optimization with 40% participation in DR

The ratio between peak of load with PEVs and DR and peak of the base load in LOLE and EENS optimization is presented in Fig. 9, which shows the better impact of EENS in the viewpoint of load peak comparing to LOLE.

Fig. 9
figure 9

Impact of LOLE and EENS optimization on load peak

Energy loss of system based on LOLE and EENS optimization in presence of DR is shown in Fig. 10. In LOLE optimization, power loss curve has local minimum and maximum. EENS has no local optimum and increases uniformly by increasing the number of PEVs.

Fig. 10
figure 10

Energy loss variation based on LOLE and EENS optimization

The range of voltage variations of system buses is shown in Fig. 11 which is based on LOLE and EENS optimization using PEVs in presence of DR with 40% participation for optimized value of these two indexes. The colors are continuous and single-piece which show the voltage profile of all 24 hours such that the black color is at the below of the other two colors, and the green color is at the below of the yellow color.

Fig. 11
figure 11

Variation of voltage profile with optimized number of PEVs in presence of 40% participation of DR in LOLE and EENS optimization

4 Reliability improvement prioritizations

In this section, the prioritization of PEVs and DR for improving the reliability of distribution system is presented. Figure 12a shows the impact of adopting PEVs and implementation of DR on optimized LOLE. For improving LOLE, the impact of adding PEV is much more than the impact of applying DR even for 100% participation. As it is obvious from these figures, the impact of both PEVs and DR on LOLE of the distribution system, approximately is equal to the impact of only adding PEVs which shows the negligible impact of DR on LOLE. Likewise, Fig. 12b presents the impact of these two factors on EENS that shows more effectiveness of DR than PEVs for improving EENS. The impact of both PEVs and DR on distribution system EENS is equal to only implementing DR. However, DR needs low participation percentage for the excess on PEVs, and the impact of both DR and PEVs is equal. Figure 13 shows the impact of DR and PEVs on improvement percentage of LOLE and EENS that prove again the excellence of adding PEVs for improving LOLE and DR for improving EENS.

Fig. 12
figure 12

Impact of PEVs and DR on LOLE and EENS

Fig. 13
figure 13

Improvement percentage of LOLE and EENS by PEVs and DR

For improving both reliability indexes, considering both PEVs and DR is a suitable selection, which improves both LOLE and EENS. The prioritization of DR and PEVs for improving reliability indexes is presented in Tables 4 and 5. As in Table 4, for improving LOLE, there are three choices of prioritizing. Table 5 shows that for improving EENS, there are four choices. As shown in the table, from 0% to 12.84% DR participation, the impact of PEVs is greater, while for 12.83%, the impact of both PEVs and DR is equal. Moreover, for participation percentage greater than 12.83%, the impact of DR is greater than PEVs. Accordingly, DR has a great impact on improving EENS while PEVs has no considerable impact on such reliability index. Also, Fig. 13 shows the impact of ODR on indexes. As shown in this figure, in the case of adopting ODR instead of normal DR, LOLE is improved and has an impact on EENS, i.e. the result of EENS optimization in ODR is exactly the same solution of DR while LOLE is decreased with no considerable percentage in improvement.

Table 4 Prioritization of PEVs and DR for improving LOLE
Table 5 Prioritization of PEVs and DR for improving EENS

5 Conclusion

In this paper, reliability indexes optimization of radial distribution system is accomplished utilizing PEVs and DR as well as prioritizing these two factors. In addition, a stochastic framework is proposed for connecting PEVs to buses and a new formulation to calculate the COPT. The effectiveness of the proposed scheme is proved by adopting the IEEE 33-bus radial distribution system. The results are analyzed in viewpoint of number of vehicles, load curve, voltage profile and loss. Due to the superiority of PSO to mathematical methods, this algorithm is employed to optimize the reliability indexes.