Introduction

Interconnection of generating, transmitting and distribution systems usually called as electric power system. Usually distribution systems are radial in nature and power flow is unidirectional. Due to ever growing demand modern distribution networks are facing several problems. With the installation of different distributed power sources like distributed generations, capacitor banks etc, several techniques have been proposed in the literature for the placement of DGs. Most of the losses about 70% losses are occurring at distribution level which includes primary and secondary distribution system, while 30% losses occurred in transmission level. Therefore, distribution systems are main concern nowadays. The losses targeted at distribution level are about 7.5%.

By installing DG units at appropriate positions, the losses can be minimized. Photovoltaic (PV) energy, wind turbines, and other distributed generation plants are typically situated in remote areas, requiring the operation systems that are fully integrated into transmission and distribution network. The aim of the DG is to integrate all generation plants to reduce the loss, cost and greenhouse gas emission. The main reason for using DG units in power system is technical and economic benefits that have been presented as follows. Some of the major advantages are (Reddy et al. 2016, 2017c)

  • Reduced system losses

  • Voltage profile improvement

  • Frequency improvement

  • Reduced emissions of pollutants

  • Increased overall energy efficiency

  • Enhanced system reliability and security

  • Improved power quality

  • Relieved Transmission & Distribution congestion

Some of the major economic benefits

  • Deferred investments for upgrades of facilities

  • Reduced fuel costs due to increased overall efficiency

  • Reduced reserve requirements and the associated costs

  • Increased security for critical loads.

Different types of distributed generations and their definitions have been discussed in Ackermann et al. (2001). An analytical approach was proposed by Acharya et al. (2006) and Hung et al. (2010) with out taking voltage constraint. The uncertainties in operation including varying load, network configuration and voltage control devices have been considered in Su (2010). Sensitivity-based simultaneous optimal placement of capacitors and DG was proposed in Naik et al. (2013). In this paper analytical approach is used for sizing.

Abu-Mouti and El-Hawary (2010) proposed ABC to find the optimal allocation and sizing of distributed generation. Distributed generation uncertainties (Zangiabadi et al. 2011) have been taken in account for the placement of DG.

Alonso et al. (2012), Rahim et al. (2012), Doagou-Mojarrad et al. (2013) and Hosseini et al. (2013) proposed evolutionary algorithms for the placement of distributed generation. Nekooei et al. (2013) proposed Harmony Search algorithm with multi-objective placement of DGs.

A novel combined hybrid method GA/PSO is presented in Moradi and Abedini (2011) for DG placement. With unappropriated DG placement, can increase the system losses with lower voltage profile. The proper size of DG gives the positive benefits in the distribution systems. Voltage profile improvement, loss reduction, distribution capacity increase and reliability improvements are some of the benefits of system with DG placement (Rahim et al. 2013; Ameli et al. 2014).

Embedded Meta Evolutionary-Firefly Algorithm (EMEFA) was proposed in Rahim et al. (2013) for DG allocation. Here how losses are varied with population size are considered. Simultaneous placement of DGs and capacitors with reconfiguration was proposed by Esmaeilian and Fadaeinedjad (2015) and Golshannavaz (2014). Dynamic load conditions have been taken in Gampa and Das (2015). Big bang big crunch method was implemented for the placement of DG in Hegazy et al. (2014). Murty and Kumar (2014) uses mesh distribution system analysis for the placement of distributed generation with time varying load model. Probabilistic approach with DG penetration was discussed in Kolenc et al. (2015). The backtracking search optimization algorithm (BSOA) was used in DS planning with multi-type DGs in El-Fergany (2015), BSOA was proposed for DG placement with various load models.

Reddy et al. (2017a) and Reddy et al. (2017b) proposed whale optimization and Ant Lion optimization algorithm for sizing of DGs. In most of the studies economic analysis has not been taken.

A novel nature-inspired algorithm called Dragonfly algorithm is used to find the optimal DG size in this paper. The optimal size of DGs at different power factors are determined by DA algorithm to reduce the power losses in the distribution system as much as possible and enhancing the voltage profile of the system. The economic analysis of DG placement is also considered in this paper.

Problem formulation

Objective function

In distribution system more losses are there due to low voltage compared to transmission system. Copper losses predominant in distribution system, this can be calculated as follows

$$\begin{aligned} {P_{loss}} = \sum \limits _i^n {I_i^2{R_i}} \end{aligned}$$
(1)

where \(I_i\) is current, \(R_i\) is resistance and n is number of buses. Objective taken in this paper is real power loss minimization.

Constraints

The constraints are

  • Voltage constraints

    $$\begin{aligned} 0.95 \le V_{i} \le 1.05 \end{aligned}$$
    (2)
  • Power balance constraints

    $$\begin{aligned} {P} + \sum \limits _{k = 1}^{{N}} {{P_{DG}} = {P_d} + {P_{loss}}} \end{aligned}$$
    (3)
  • Upper and lower limits of DG

    $$\begin{aligned} 60 \le {P_{DG}} \le 3500 \end{aligned}$$
    (4)

where the limits are in kW, kVAr and kVA for Type I, II and III DG, respectively.

Loss sensitivity factors method

Optimal locations for DG placement are identified based on the losses at the nodes and their sensitivity after compensation using the loss sensitivity factors method. Real and reactive power losses are calculated at all the buses and then the locations corresponding to the bus which has the highest loss is selected as the best location for DG placement. The buses with high losses give maximum loss reduction when DG are placed in the distribution system. Loss sensitivity is referred to as the change in losses corresponding to the compensation provided by placing the DGs. Loss sensitivity factors (LSF) determine the best locations for DG placement. These factors reduce the search space by finding the few best locations which saves the cost of the DGs in optimizing the losses in the system as a whole. Consider a line with impedance (R + jX) between buses i and j and a load in the distribution system as shown in Fig. 1.

Fig. 1
figure 1

A distribution line with connected load

Real power loss in the kth line considered in Fig. 1 is given by \([I_k^2]\times [R_k]\) and can also be expressed as follows

$$\begin{aligned} \begin{aligned} PL(j)=\frac{(P^2(j)+Q^2(j))\times R_k}{V(j)^2} \end{aligned} \end{aligned}$$
(5)

Similarly reactive power loss in the kth line is given by \([I_k^2] \times [X_k]\) and can also be expressed as follows

$$\begin{aligned} \begin{aligned} QL(j)=\frac{(P^2(j)+Q^2(j))\times X_k}{V(j)^2} \end{aligned} \end{aligned}$$
(6)

where \(I_k\) is the current flowing through \(k_{th}\) line; \(R_k\) and \(X_k\) are the resistance and reactance of the kth line; V[j] is the voltage at the bus j; P[j] = Net Active power supplied beyond the bus j; Q[j] = Net Reactive power supplied beyond the bus j.

After finding the real and reactive power losses for all the buses, the loss sensitivity factors can be calculated using the following equations.

$$\begin{aligned} \frac{\partial {PL}}{\partial {Q}}&= \frac{(2\times Q(j))\times R_k}{V(j)^2} \end{aligned}$$
(7)
$$\begin{aligned} \frac{\partial {QL}}{\partial {Q}}&= \frac{(2\times Q(j))\times X_k}{V(j)^2} \end{aligned}$$
(8)

Identification of optimal locations using loss sensitivity factors

The loss sensitivity factors for all the buses from load flows are calculated using Eq. (7) and the buses are stored in a vector according to their positions such that these factors are arranged in the decreasing order. Voltage magnitudes are normalized by assuming the minimum voltage value as 0.95 at these buses using the following equation

$$\begin{aligned} \begin{aligned} Vnorm[i]= \frac{\mid V(i)\mid }{0.95} \end{aligned} \end{aligned}$$
(9)

where V[i] is the base voltage at the ith bus. The optimal locations for DG placement are determined based on the normalized voltage magnitudes and the loss sensitivity factors calculated as described above, the former decides the requirement of compensation and the latter gives the order of priority. The buses with \(Vnorm \le 1.01\) are selected as the best suitable locations for the placement of DGs in order to reduce the real power losses and improve the voltage profile simultaneously so that the power delivering capacity is enhanced. The value 1.01 is selected as the maximum value of the normalized voltage at the buses where compensation is required.

Algorithm

The algorithm to find the optimal locations for DG placement using LSF is explained in detail in the following steps

Step 1 :

Read line and load data of the system and solve the feeder line flow for the system using the branch current load flow method.

Step 2 :

Calculate the real and reactive power losses using Eqs. (5) and (6).

Step 3 :

Find the loss sensitivity factors using Eq. (7).

Step 4 :

Store the buses with loss sensitivity factors arranged in decreasing order in a vector according to their positions.

Step 5 :

Normalize the magnitudes of the voltages for all the buses using Eq. (9).

Step 6 :

Select the buses with normalized voltage magnitudes less than 1.01 as the best suitable locations for DG placement.

LSF method is applied to 15-bus, 33-bus and 69-bus IEEE systems and the locations are given in the tables below (Tables 1, 2, 3).

15-bus system

Table 1 Loss sensitivity factors for 15-bus system

From above table first best location for DG placement is 6.

33-bus system

Table 2 Loss sensitivity factors for 33-bus system

From above table first best location for DG placement is 6.

69-bus system

Table 3 Loss sensitivity factors for 69-bus system

From above table first best location for DG placement is 61.

The Dragonfly algorithm (DA)

The DA algorithm was proposed by Mirjalili (2015). It has been developed based on swarm intelligence and the peculiar behavior of dragonflies in nature. This algorithm mainly focused on the dragonflies how they look for food or away from enemies.

The static behavior of dragonflies, i.e, looking for food can be treated as exploitation phase and evade from enemies can be treated as exploration phase. The static swarm dragonflies consist of small group of dragonflies which are hunting the preys in small space. The direction and velocity of this dragonflies are small and abrupt changes will be there in the direction. Dynamic swarm with constant direction and more number of different dragonflies moves to another place over a long distance.

The mathematical model of DA algorithm can be modeled with the following five behaviors of dragonflies.

Separation In the static swarm no collision is there between any dragonflies. The mathematical model \(S_i\) of the \(i^{th}\) individual is given by

$$\begin{aligned} {S_i} = - \sum \limits _{k = 1}^N {X - {X_k}} \end{aligned}$$
(10)

Here

  • Position of current dragonflies is represented by X

  • \(X_{k}\) represents position of \( k^{th} \)neighboring dragonflies

  • N is the total number of neighboring dragonflies

Alignment Individual dragonflies velocities will match with the other in same neighborhood. This can be modeled as

$$\begin{aligned} {A_i} = \frac{{\sum \nolimits _{k = 1}^N {{V_k}} }}{N} \end{aligned}$$
(11)

where \(V_k\) is the velocity of the \(k^{th}\) neighboring individuals

Cohesion All the dragonflies will move toward the centre of mass of the neighborhood. This can be modeled as

$$\begin{aligned} {C_i} = \frac{{\sum \nolimits _{k = 1}^N {{X_k}} }}{N} - X \end{aligned}$$
(12)

Food For survival all the dragonflies will move toward the food. The attraction for food can be modeled as

$$\begin{aligned} {F_i} = {X_F} - X \end{aligned}$$
(13)

where \({X_F}\) is the position of food location.

Enemy All the dragonflies will move away from an enemy. To move away from the enemy located at a position \({X_E}\) can be modeled as

$$\begin{aligned} {E_i} = {X_E} + X \end{aligned}$$
(14)

All the above five motions will influence the behavior of dragonflies in the swarm. The new position update of dragonflies can be obtained with the following step function \(\varDelta {X_{i+1}}\) which is modeled as

$$\begin{aligned} \varDelta {X_{i + 1}} = (s{S_i} + a{A_i} + c{C_i} + f{F_i} + e{E_i}) + w\varDelta {X_i} \end{aligned}$$
(15)

where separation, alignment, cohesion weights, food, enemy factors and inertia factor are represented by s, a, c, f, e and w, respectively

With the above step function the new position of \({X_{i + 1}}\) is given by

$$\begin{aligned} {X_{i + 1}} = {X_i} + \varDelta {X_{i + 1}} \end{aligned}$$
(16)

The best and worst solutions are taken from food source and enemy. If there is no neighboring solution, DA can be modeled through random walk. New position of dragonflies is updated with following equations.

$$\begin{aligned} \begin{array}{l} {{\mathrm{X}}_{{\mathrm{i + 1}}}}={{\mathrm{X}}_{\mathrm{i}}}+ \mathrm{Levy(x)} \times {{\mathrm{X}}_{\mathrm{i}}}\\ {\mathrm{Levy(x)}} = 0.01 \times \frac{{{{\mathrm{r}}_{{1}}}{{\times \sigma }}}}{{{{\left| {{{\mathrm{r}}_{{2}}}} \right| }^{\frac{{{1}}}{{{\beta }}}}}}}\\ \sigma = \left( \frac{\Gamma (1 + \beta ) \times \sin \left( \frac{\Pi \beta }{2}\right) }{\Gamma \left( \frac{1 + \beta }{2}\right) \times \beta \times 2^{\left( \frac{\beta - 1}{2}\right) }}\right) ^{\frac{1}{\beta }} \end{array} \end{aligned}$$
(17)

where random numbers \(r_1\),\(r_2\) \(\varepsilon \) [0,1] , i is current iteration, d is dimension and \(\beta \) is equal to 1.5.

$$\begin{aligned} \Gamma {\mathrm{(x)}} = ({\mathrm{x}} - 1)! \end{aligned}$$

Implementation of DA

The detailed algorithm is as follows.

Step 1 :

Feeder line flow is solved by branch current load flow method.

Step 2 :

Find the best DG locations using the index vector method.

Step 3 :

Initialize the population/solutions and itmax = 100, Number of DG locations d=1,\(dg_{min}=60,dg_{max}=3500\).

Step 4 :

Generate the population of DG sizes randomly using equation

\(population = (dg_{max} - dg_{min}) \times rand() + dg_{min}\)

where \(dg_{min}\) and \(dg_{max}\) are minimum and maximum limits of DG sizes.

Step 5 :

Determine active power loss for generated population by performing load flow.

Step 6 :

Select low loss DG as current best solution.

Step 7 :

Update the position of the dragonflies using Eqs. 1113.

Step 8 :

Determine the losses for updated population by performing load flow.

Step 9 :

Replace the current best solution with the updated values if obtained losses are less than the current best solution. Otherwise go back to step 7

Step 10 :

If maximum number of iterations is reached then print the results.

Results and discussion

DA algorithm in the application of DG planning problem to obtain DG size and economic analysis is presented in this section. IEEE 15, 33 and 69 bus test systems are evaluated using MATLAB.

Economic analysis

The mathematical model is given below for cost calculations.

Cost of energy losses (CL)

The annual cost of energy loss is given by (Murthy and Kumar 2013)

$$\begin{aligned} CL= (TRPL)*(Kp+Ke*Lsf*8760) \quad \$ \end{aligned}$$
(18)

where TRPL, total real power losses; Kp, annual demand cost of power loss ($/kW); Ke, annual cost of energy loss($/kW h); Lsf, loss factor

Loss factor is expressed in terms of load factor (Lf) as below

$$\begin{aligned} Lsf=k*Lf+ (1-k)*Lf^2 \end{aligned}$$
(19)

The values taken for the coefficients in the loss factor calculation are: k = 0.2, Lf = 0.47, Kp = 57.6923 $/kW, Ke = 0.00961538 $/kWh.

Cost component of DG for real and reactive power

$$\begin{aligned} C(Pdg)=a*Pdg^2+b*Pdg+c\quad \$/MWh \end{aligned}$$
(20)

Cost coefficients are taken as:

$$\begin{aligned} {\hbox {a}}=0, {\hbox {b}}=20, {\hbox {c}}=0.25 \end{aligned}$$

Cost of reactive power supplied by DG is calculated based on maximum complex power supplied by DG as

$$\begin{aligned}&C(Qdg) = \left[ {Cost(Sg\max ) - Cost\left(\sqrt{Sg{{\max }^2} - Q{g^2}} \right)} \right] *k \end{aligned}$$
(21)
$$\begin{aligned}&Sgmax=\frac{{Pg\max }}{{\cos \phi }} \end{aligned}$$
(22)

Pgmax = 1.1*pg, the power factor, has been taken 1 at unity power factor and 0.9(lag) at lagging power factor to carry out the analysis. \({\hbox {k}}=0.05-0.1\). In this paper, the value of factor k is taken as 0.1.

IEEE 15-bus system

The single-line diagram of IEEE 15-bus distribution system (Baran and Wu 1989) is shown in Fig. 2.

Fig. 2
figure 2

Single-line diagram of 15-bus system

Table 4 shows the real,reactive power losses and minimum voltages after the placement of different types of DGs. The optimal location for 15 bus test system is 6. The minimum voltage is more in case of type III DG operating at 0.9 pf. The losses are also lower with DG type III operating at 0.9 pf when compared to DG operating at upf in Table 4. This is due to both real and reactive powers are supplied by the DG at lagging pf. Reactive power is not supplied by type III DG when operating at Unity pf. Hence, losses are higher when compared to DG operating at 0.9 pf lagging.

Cost of energy losses, cost of PDG and cost of QDG are also shown in Table 4. From table the cost of energy losses is reduced from 4970.3 $ to 2685.3 $ when DG is operating at 0.9pf lag and it reduced to 3684.1 $ when operating at unity pf. Cost of energy losses are less when DG is operating at 0.9pf.

Table 4 Results for 15 bus system

Results for 33 bus

The single-line diagram of IEEE 33-bus distribution system (Baran and Wu 1989) is shown in Fig. 3.

Fig. 3
figure 3

Single-line diagram of 33-bus system

Without installation of DG, real and reactive power losses are 211 kW and 143 kVAr, respectively. With installation of DG at unity pf, real, reactive power losses are 111.0338 kW and 81.6859 kVAr, respectively. With DG at 0.9 pf lag, real, reactive power losses are 70.8652 kW and 56.7703 kVAr, respectively.

The losses obtained are lower when lagging power factor DG is used when compared to unity power factor DG. This is due to reactive power available in lagging power factor DG.

Cost of energy losses, cost of PDG and cost of QDG are also shown in Tables 5 and 6. From table the cost of energy losses is reduced from 16,982.57 $ to 5700.1 $ when DG is operating at 0.9pf lag and it reduced to 8930.65 $ when operating at unity pf. Cost of energy losses are less when DG is operating at 0.9pf.

Table 5 Results for 33 bus system with DG at upf
Table 6 Results for 33 bus system with DG at 0.9 pf

Results for 69 bus

The IEEE 69-bus distribution system with 12.66-kV base voltage (Baran and Wu 1989) is shown in Fig. 4.

Fig. 4
figure 4

Single-line diagram of 69-bus system

Without DG real, reactive power losses are 225 kW and 102.1091 kVAr, respectively. With the installation of DG at unity pf, the real and reactive power losses are 83.2261 kW and 40.5754 kVAr, respectively. With DG at 0.9 pf lag real, reactive power losses are 27.9636 kW and 16.4979 kVAr.

The losses obtained are lower when lagging power factor DG is used when compared to unity power factor DG. This is due to reactive power available in lagging power factor DG.

Cost of energy losses, cost of PDG and cost of QDG are also shown in Tables 5 and 6. From table the cost of energy losses is reduced from 18,101.7 $ to 2249.2 $ when DG is operating at 0.9pf lag and it reduced to 6694 $ when operating at unity pf. Cost of energy losses are less when DG is operating at 0.9pf.

The results obtained are given in Tables 7, 8. Better results are obtained while considering reactive power of DG when comparison with unity pf.

Table 7 Results for 69 bus system with DG at upf
Table 8 Results for 69 bus system with DG at 0.9 pf

Conclusions

A novel nature-inspired algorithm called Dragonfly algorithm is used to determine the optimal DG units size in this paper.It has been developed based on the peculiar behavior of dragonflies how they look for food or away from enemies. Reduction in system real power losses with low cost are chosen as objectives in this paper. This proposed optimization technique has been applied on typical IEEE 15, 33 and 69 bus radial distribution systems with different two types of DGs and compared with other algorithms. Better results have been achieved with combination of loss sensitivity factor method and DA algorithm when compared with other algorithms. Best results are obtained from type III DG operating at 0.9 pf.