1 Introduction

The electric power industries have witnessed many reforms in recent years. The rise of smart grid is a boon not only to society as a whole but to all who are involved in the electric power industry, its customers, and its stakeholders [1]. The existing distribution systems are moving towards smart distribution systems to achieve larger socio-economic and other non-tangible benefits. Distributed generations (DGs) are now becoming essential components for realizing the concept of smart distribution systems on account of economic viability and strict environmental laws. Optimal DG placement can improve network performance in terms of better node voltage profiles, reduce flows and system losses and improve power quality and reliability of supply, but inappropriate DG placement may increase system losses and network capital and operating costs [2]. Due to unbundling rules, distribution network operators (DNOs) cannot invest in generation facilities and are meant to provide DG owners with cost-effective connection means, irrespective of the technology or geographical location [3]. Therefore, future distribution networks with the high DG penetration to be planned and operated in order to improve their efficiency [4]. The optimal allocation of DG units requires the determination of their optimal sizing and sites to achieve desired objectives while satisfying several constraints. Thus, DG optimal allocation is a nonlinear complex combinatorial constraint optimization problem and is one of the most important and challenging task towards realizing smart grid objectives.

Recently, some researchers have shown fruitful impact of optimal DG allocation on the performance of distribution systems using meta-heuristic techniques by considering a variety of technical or techno-economic objectives. Ref. [5] employed harmony search algorithm with differential operator to install multiple DG units with an objective of minimizing active power loss and improving voltage profile. In Ref. [6], the problem is solved for congestion management considering economic and financial issues. Two different methods, based upon locational marginal price and congestion rent, are proposed in order to mitigate transmission congestion and to increase security in restructured power systems. Ref. [7] presented a quasi-oppositional teaching learning based optimization methodology to simultaneously optimize power loss, voltage stability index and voltage deviation of radial distribution network. Ref. [8] proposed a combined imperialist competitive algorithm (ICA)-genetic algorithm (GA) method in which first, ICA is used to find the allocations of DGs and then GA operators are employed to refine these solutions. Ref. [9] proposed a multi-objective index-based approach for optimally determining the size and location of multi-DG units in distribution systems using particle swarm optimization (PSO) with different load models. A novel approach based on cuckoo search is applied for optimal DG allocation to improve voltage profile and reduce power loss of the distribution network in [10]. In most of the reported articles DGs have been treated as essentially the source of active power generations. However, from a purely operational perspective, DG plants could also be encouraged to provide reactive power support if that is of concern for the DNO or the regional transmission network [3]. Ref. [11] employed artificial bee colony algorithm to solve optimal DG allocation problem where DGs are capable to generate both active and reactive power. They have shown a substantial improvement in voltage profile and power loss reduction. Very recently, heuristic curve fitting technique [12], PSO [13] and analytical approach [14, 15] are also reported to investigate this problem with different types of DG units. It has been concluded in [14] that among different DG types, the DG capable of delivering both real and reactive power reduces losses more than that of DG capable of delivering real power only.

Distribution network reconfiguration (DNR) is one of the effective operational strategies to achieve high performance of distribution systems. Distribution networks are reconfigured frequently with changing operating conditions. Smart grid requires integrated solutions that reflect coexistence of strategies to achieve higher energy efficiency and good quality power supply. Some researchers [1620] have employed DNR in conjunction with the optimal allocation of DGs and acknowledged that this strategy is more useful. But this approach is not realistic since the solution obtained can demand an alteration in both network topology and sites of DGs. In practice, the network topology can be altered, but not the locations of DGs with variations in load demand. Ref. [21] employed different combinatorial strategies of DGs allocation and DNR. But, according to their strategy, DNR should be carried out before DG addition. In fact, the problem of planning horizon should be dealt before optimizing any operational strategies, otherwise it may leads to erroneous results. Moreover, they have not taken into consideration the node voltage deviations and thermal limits of distribution feeders in the problem formulation, although both DNR and DGs can play crucial role to decide the voltage profiles and line flows of distribution systems.

The load demand of the system is a major source of uncertainty in power system planning [22], and is originated owing to the diversity of load demand among different class of customers. In practical situations, loads are mixtures of different load types, depending on the nature of the area being supplied, therefore, a load class mix of residential, industrial, and commercial loads is to be investigated too, in which every bus of the system has a different type of load connected to it [9]. Usually, distribution system planners provide dedicated feeders to its different class of customers, each of whom has its own characteristic load pattern which varies hourly and seasonally. A more realistic modeling should be devised by considering the daily and seasonal variations in the aggregate load patterns of different class of customers. Therefore, the modeling of annual load profile should be made more realistic by considering customer-wise dedicated feeders and their characteristic load patterns while dealing with resource allocation problems of distribution systems.

Bat Algorithm (BA) is a new bio-inspired optimization technique proposed in [23]. The algorithm is inspired by the social behavior of bats and the phenomenon of echolocation to sense distance. BA mimics the variations of pulse emission rates and loudness of bats when searching for prey and has shown a typical quick start. It is simple, robust, easy to implement and also significantly faster than other optimization techniques. It has been successfully applied to solve diverse engineering optimization problems such as power system stabilizer [24], uninhabited combat air vehicle (UCAV) path planning [25], economic dispatch [26], load frequency control [27], planning the sports training [28], fuel arrangement optimization of reactor core [29], feature selection [30], etc. The algorithm obtained good results when dealing with lower-dimensional optimization problems, but may become problematic for higher-dimensional problems because it tends to converge very fast initially [31]. The standard BA is usually quick at the exploitation of the solution though its exploration ability is relatively poor [25].

In the light of the above discussion, an improved BA (IBA) algorithm is proposed for optimal allocation of DGs in distribution systems to maximize annual energy loss reduction and to improve node voltage profiles. A realistic methodology has been adopted to formulate the problem considering dedicated feeders to various classes of customers and also considering the daily and seasonal variations in their characteristic load patterns. The distribution network is reconfigured for each operating state after placing optimal DGs which are capable to inject both active and reactive power. Some modifications are suggested in IBA to enhance the convergence, accuracy and efficiency of the standard BA. The proposed method is investigated on the benchmark IEEE 33-bus test distribution system and the application results obtained are very promising.

2 Load patterns of customers

Several earlier works reported have employed three-stepped load profile of distribution system for its piecewise linearization. However, power demand of a distribution network is stochastic in nature and is primarily depends upon the category of customers. Each class of customers has its characteristic load pattern which varies hourly and seasonally. Distribution system planners usually provide dedicated feeders for each class of customers. In this paper, distribution feeders are assumed to be divided into residential, industrial and commercial categories. Therefore, the diversity available among different customers is taken into account while determining aggregate annual load profile of the distribution system.

For each category, the aggregate daily load pattern of the customer is usually approximated by piecewise linearization into three or four levels. However, they may have different load durations. Therefore, the system load profile for a given season may have several load levels as shown in Fig. 1. The figure shows that there are total nine load levels for an individual season called spring-fall season. Similarly, the load pattern for other seasons, e.g. summer and winter seasons can be determined by considering seasonal variations in the demand of each category of customers. The aggregate annual load profile of the system can be obtained by the summation of load patterns being generated for all seasons of the year. For the illustration, the annual load profile will be composed of 27 load levels while considering three seasons.

Fig. 1
figure 1

Aggregate daily load patterns of customers and the system

3 Problem formulation

The problem is formulated by considering dedicated feeders being assigned to various customers and by considering hourly and seasonal variations in the load patterns of each class of customers to determine the annual load profile of the system. However, whatever the particular driver is for a DNO, e.g., to allow the connection of more DG capacity, to reduce energy losses, or to increase network reliability, these DG planning tools must take into account essential network constraints such as voltage and thermal limits [3]. The objective function O is therefore designed to minimize annual energy loss reduction while enhancing node voltage and feeder current profiles using penalty function approach as below.

$$O = B\left( {E_{\text{loss}}^{\text{base}} - E_{\text{loss}}^{\text{DG}} } \right)$$
(1)

where \(E_{\text{loss}}^{\text{base}}\) and \(E_{\text{loss}}^{\text{DG}}\) are the annual energy losses without and with DG placement and can be determined using following equation assuming piecewise linearized load profile of the system.

$$E_{\text{loss}} = \sum\limits_{s = 1}^{{N_{s} }} {D_{s} \sum\limits_{j = 1 \, }^{L} {H_{j,s} \left( {\sum\limits_{r = 1}^{{N_{r} }} {P_{\text{loss}}^{r} } + \sum\limits_{i = 1}^{{N_{i} }} {P_{\text{loss}}^{i} { + }\sum\limits_{c = 1}^{{N_{c} }} {P_{\text{loss}}^{c} } } } \right)} }$$
(2)

where \(P_{\text{loss}}^{r} ,P_{\text{loss}}^{i} ,P_{\text{loss}}^{c}\) are the power losses in r th residential, i th industrial and c th commercial feeder, respectively at j th load level of the s th season. H j,s and D s are the load duration for j th level of s th season and number of days in a season, respectively. N s denotes the number of seasons in a year and N r , N i , N c are the set of nodes lies along residential, industrial and commercial feeders, respectively. The penalty function PF is defined as:

$$B = \sqrt {V_{pf} \times \, I_{pf} }$$
(3)

where voltage and current penalty functions are given by

$$V_{pf} = \frac{1}{{1 + \left( {{\text{Max}}\left( {\Delta V_{r,j,s} ,{\mkern 1mu} \, \Delta V_{i,j,s} ,{\mkern 1mu} \, \Delta V_{c,j,s} } \right)} \right)}}\;\;\;{\kern 1pt} \forall i \in N, \, \forall j \in L$$
(4)
$$I_{pf} = \, \frac{1}{{1 + \left( {{\text{Max}}\left( {\Delta I_{r,j,s} , \, \Delta I_{i,j,s} , \, \Delta I_{c,j,s} } \right)} \right)}}\;\;\;{\kern 1pt} \;\;\;{\kern 1pt} \forall i \in N, \, \forall j \in L$$
(5)

where ∆V r,j,s , ∆V i,j,s,V c,j,s are the maximum node voltage deviations of r th residential node, i th industrial node and c th commercial node at j th load level of the s th season. Similarly, ∆I i,j,s , ∆I i,j,s , ∆I c,j,s are the maximum branch current deviations of r th residential node, i th industrial node and c th commercial node at j th load level of the s th season. N and L denote the set of system nodes and load levels. Node voltage deviation and feeder current deviations at r th residential feeder for j th load level of the s th season are defined as:

$$\Delta V_{r,j,s} = \left\{ {\begin{array}{*{20}l} {1 - \left| {V_{r,j,s} } \right|} & {V_{\text{min S}} < V_{r,j,s} < V_{ \hbox{min} } } & {} \\ 0 & {V_{\hbox{min} } \le V_{r,j,s} \le V_{ \hbox{max} } } & {} \\ {10^{10} } & {\text{else}} & {} \\ \end{array} } \right.$$
(6)
$$\Delta I_{r,j,s} = \left\{ {\begin{array}{*{20}l} {I_{{\hbox{max}\, {\text{S}}}}^{r} - I_{r,j,s} } & {I_{\hbox{max} }^{r} < I_{r,j,s} \le I_{{\hbox{max}\, {\text{S}}}}^{r} } & {} \\ 0 & {I_{r,j,s} \le I_{\hbox{max} }^{r} } & {} \\ {10^{10} } & {\text{else}} & {} \\ \end{array} } \right.$$
(7)

where minimum and maximum bounds for node voltages and feeder currents are denoted by the subscript min and max, respectively. V minS denotes specified node voltage suggested for better capacity allocation with the due consideration for network reconfiguration and I maxS is thermal limit of feeders after considering maximum tolerance, usually taken as 10 % above the rated value. Similarly, ∆V i,j,s,V c,j,s , ∆I i,j,s and ∆I c,j,s can also be defined. The different constraints used to solve O are defined as below.

3.1 Power flow equations

The sum of the power purchased from utility grid and the total power generated by the different sources in the distribution system must be balanced by the local load demand and the power loss in the lines. For a radial network, a set of recursive equations are used to model the power flow in the network as shown by (8)–(12).

$$P_{n + 1} = P_{n} - R_{n} \frac{{P_{n}^{2} + Q_{n}^{2} }}{{V_{n}^{2} }} - p_{n + 1} \quad \, \forall n \in N$$
(8)
$$Q_{n + 1} = Q_{n} - X_{n} \frac{{P_{n}^{2} + Q_{n}^{2} }}{{V_{n}^{2} }} - q_{n + 1} \quad \, \forall n \in N$$
(9)
$$V_{n + 1}^{2} = V_{n}^{2} - 2\left( {R_{n} P_{n} + X_{n} Q_{n} } \right) + \left( {R_{n}^{2} + X_{n}^{2} } \right)\frac{{P_{n}^{2} + Q_{n}^{2} }}{{V_{n}^{2} }}\quad \, \forall n \in N$$
(10)
$$p_{n + 1} = p_{n + 1}^{L} - p_{n + 1}^{\text{DG}} \quad \;\;\forall n \in N$$
(11)
$$q_{n + 1} = q_{n + 1}^{L} - q_{n + 1}^{\text{DG}} \quad \;\;\forall n \in N$$
(12)

The active and reactive nodal power flows are expressed by the upper case notations P and Q, R and X denotes resistance and reactance of the feeder whereas the active and reactive power injections are denoted by the lower case notations p and q, respectively. V denotes the voltage of the bus of the distribution system.

3.2 Node compensation limit

The total complex power injected by DG at each node must be within their permissible range as defined by (13).

$$S_{\text{DG,min}} \le S_{{{\text{DG,}}n}} \le S_{\text{DG,max}} \quad \, \forall n \in N$$
(13)

3.3 System compensation limit

The sum of total complex power injected by DGs at all candidate nodes should be less than nominal complex power demand S D of the distribution system. For Loc number of candidate locations of DGs the system compensation limit is defined as

$$\sum\limits_{n = 1}^{\text{Loc}} {S_{{{\text{DG,}}n}} } \le S_{\text{D}} \quad \quad \forall n \in N$$
(14)

Equation (15) prohibits repetition of candidate sites for DGs. Discrete dispatches of DGs are modeled as (16) for ΔS unit size of DG.

$$N_{{{\text{DG,}}a}} \ne N_{{{\text{DG,}}b}} \quad \quad a,b \in N$$
(15)
$$S_{\text{DG}} \le k_{d} \Delta S\quad \quad \, k_{d} = 0,1,2, \ldots ,ndg$$
(16)

where ndg denotes DG penetration limit for each system node. First optimizing (1), the solution obtained provides the optimal sizes and sites of DGs, while considering the annual load profile. Next, (1) is optimized again, but for each load level separately, to determine the optimal power dispatches of these installed DGs. However, the sites for DGs are kept freeze and their sizing is restricted to that provided by the obtained solution. The additional constraint defined for optimal dispatches of DGs is given below:

$$S_{\text{DG}} = k_{\text{md}} \Delta S\quad \quad k_{\text{md}} = 0,1,2, \ldots ,S_{\text{DG}} /\Delta S$$
(17)

The distribution networks are reconfigured frequently to optimize energy efficiency and to maintain power quality. Therefore, the distribution network is reconfigured at each load level after placing respective dispatches of DGs. The reconfiguration problem is formulated to minimize feeder power losses while satisfying various network operational constraints. The mathematical formulation for the network reconfiguration problem to minimize power losses is considered as:

$${\text{Min }}P_{{{\text{loss,}}j}} = \sum\limits_{n = 1}^{E} {R_{n} \frac{{P_{n,j}^{2} + Q_{n,j}^{2} }}{{\left| {V_{n,j} } \right|^{2} }}} \quad \quad \forall n \in N,\,\,\forall j \in L$$
(18)

subject to the following constraints.

3.4 Radial topology constraint

The reconfigured network topology must be radial, i.e. with no closed path. Therefore, for the r th radial topology,

$$\varPhi_{j} (r)\, = \,0\quad \quad \forall j\, \in \,L$$
(19)

3.5 Node voltage constraint

A hard voltage constraint is employed during the network reconfiguration as it is one of the important network operation strategies. All node voltages of the system must be maintained within the following limits during the optimization process.

$$V_{ \hbox{min} } \le V_{n,j} \le V_{ \hbox{max} } \quad \quad \forall n \in N,\,\,\forall j \in L$$
(20)

The radial constraint imposes the biggest hurdle while solving the problem of network reconfiguration. In the present work, the codification proposed in [32] is used to solve the problem. This is a rule-based codification to check and correct infeasible radial topologies. According to this codification, three following rules are formed which are based on graph theory to identify and correct infeasible individuals whenever appeared in the computational process.

  1. 1)

    Each candidate switch must belong to its corresponding loop vector.

  2. 2)

    Only one candidate switch can be selected from one common branch vector.

  3. 3)

    All the common branch vectors of a prohibited group vector cannot participate simultaneously to form an individual. The definitions of loop vector, common branch vector and prohibited group vector may be referred from [32].

4 Bat algorithm

Bats are fascinating animals. They have advanced capability of echolocation [23]. In BA, the velocity and position of each bat are updated with iterations as in PSO. However, an intensive local search is also combined which is very similar to simulated annealing. It is governed by the loudness and pulse emission rate assigned to each bat and are allowed to vary with iterations. The different phases used in standard BA can be summarized as below.

4.1 Random fly

Each bat is defined by its position x i (t), velocity v i (t), frequency f i , loudness A i (t) and the pulse emission rate r i (t) at the time step t in a d-dimensional problem search space

$$f_{i} = f_{ \hbox{min} } + \, \left( {f_{ \hbox{max} }\, {-}\,f_{ \hbox{min} } } \right) \times \beta$$
(21)
$$v_{i} \left( t \right) = \, v_{i} \left( {t{-} 1} \right) + \left( {x_{i} \left( t \right){-}x^{*}} \right) \times \, f_{i}$$
(22)
$$x_{i} \left( t \right) = \, x_{i} \left( {t{-} 1} \right) + \, v_{i} \left( t \right)$$
(23)

where β is a random number in the range [0, 1].

4.2 Local random walk

For the local search part, once a solution is selected among the current best solutions x*, a new solution for each bat is generated locally using random walk as defined below:

$$x_{{{\text{new}},i}} = x_{{{\text{old}},i}} + \,\varepsilon < A\left( t \right) > {\text{ rand }} > r_{i} \left( t \right)$$
(24)

where ɛ is a scaling factor in the range [–1, 1] and rand is a random number in the range [0, 1]. <A(t)> is the average loudness of all bats. The loudness and the pulse emission rate of each bat are updated with iteration using following relations.

$$A_{i} \left( {t + 1} \right) \, = \alpha A_{i} \left( t \right)$$
(25)
$$r_{i} \left( {t + 1} \right) \, = r_{i} \left( 0 \right)\left[ { 1{-}{\text{e}}^{ - \gamma t} } \right]$$
(26)

where α and γ are constant, each of them is usually taken as 0.9 [23].

5 Proposed IBA

BA has very good exploitation potential, but the exploration potential is inadequate. Therefore, it has legacy of lack in diversity which eventually leads to local trappings and thus the convergence degrades. Therefore IBA is proposed as an optimizing tool after suggesting several modifications in the standard BA algorithm, viz. revised loudness and pulse emission rate, improved local random walk and diversity to improve performance of the standard BA.

5.1 Revised loudness and pulse emission rates

The loudness and pulse emission rates essentially provide a mechanism for automatic control and auto zooming into the region with promising solutions [33]. The gradual switching of exploration to exploitation is governed by the relative values assigned to loudness and the pulse emission rate. In BA, both are allowed to vary too quickly, which may lead to stagnation after some initial stage [33]. Therefore, the loudness and pulse emission rates are revised as below.

$$A_{i} \left( t \right) \, = \alpha^{t} A_{i}$$
(27)
$$r_{i} \left( t \right) \, = { 1}{-}A_{i} \left( t \right)$$
(28)

where α \(= (1/2A_{i} )_{{}}^{{1/\left( {k*itr_{\text{max}} } \right)}}\), and k is the desired fraction of maximum iteration count itr max at which loudness and pulse emission rate equalizes. In this way, these two parameters become self-adjustable.

5.2 Improved local random walk

In standard BA, the term ɛ<A(t)> remains ineffective for most of the bats, especially during later portion of the computational process while considering ɛ ∈ [–1,1] and the initial loudness A∈[0,1]. As a consequence, the local random walk also becomes ineffective while solving an optimization problem with discrete decision variables. This adversely affects the exploitation potential of the algorithm. Therefore, an improved local random walk of the best bat is proposed as described below.

First of all, M c , number copies of the best bat are generated and each of them is mutated over the randomly selected M n dimensions in the range [–M, M]. The choice of M c , is decided by the usual tradeoff between accuracy and CPU time of the algorithm. The higher the value of M c , the better will be the exploration, but at the cost of more CPU time. Usually, M c (>4) provides satisfactory results. Higher value of M n (>0.6) causes much higher diversity and may diverge solutions. With M > 2, it will cause unnecessarily larger search space for the local random walk. The best bat is replaced if a better bat is available after this improved local random walk.

5.3 Diversity

BA has inheritance in lack of diversity. This may causes poor exploration as the bats are exploring extensively the region in the near vicinity of the current best bat. The mutation operator is capable to identify unexplored areas of the search space. Since BA has very strong exploitation potential, a very high mutation rate is desired to makes it effective. Therefore, the algorithm is reinitialized using single-point random mutation. The Fitness of all mutated bats is evaluated and the current best bat is updated if the better one is found.

5.4 Structure of individuals

The for the proposed method is shown in Fig. 2 which is composed of candidate nodes N DG and sizing S DG for the candidate DGs. The candidate nodes and DG sizing are selected randomly within their respective predefined bounds as described by (13)–(15). When determining optimal power dispatches of the installed DGs, for each load level, the algorithm again runs with the same structure of individuals. However, the DGs locations are now freeze to those values that obtained by the optimal solution. Also the limit of sizing is restricted to the installed capacities that provided by the optimal solution.

Fig. 2
figure 2

Structure of Individuals

5.5 Elitism and termination criterion

Elitism is used to preserve the best bat during the evolutionary process. The termination criterion may be selected by defining maximum iteration count or accuracy of solutions, etc. However, in the proposed method, when either the maximum iteration count is exhausted or all candidate solutions acquire the same fitness, the iterative computation stops.

The Pseudo code of the proposed IBA is presented as below:

  • Objective function O

  • Initialize the bat population x i , v i and f i,d; i = 1, 2, …, N b , d = 1, 2, …, D

  • Initialize pulse rate r i and loudness A i

  • While (t < itr max )

  • Generate new solutions by adjusting frequency, and updating velocities and locations/solutions

  • if (rand > r i )

  • Select the current best solution

  • Generate a local solution (F 1 ) around the current best solution

  • else if

  • Make M c copies of the current best solution

  • Apply improved local random walk

  • Select best solution (F 2 ) among M c solutions after single-point random mutation

  • Select best solution F out of F 1 and F 2

  • end if

  • Generate a new solution by flying randomly

  • if (rand < A i and O < F)) then

  • Accept the new solutions

  • Increase r i and reduce A i

  • end if

  • Rank the bats and find the current best x *

  • t = t +1;

  • Apply diversity and preserve elite solution

  • end while

  • Post-processing the results and visualization.

6 Simulation results and discussion

The proposed method is applied to IEEE 33-bus test distribution system [34]. The initial data of this test system can be referred from Table 1. The hourly and seasonal variations in the load factors considered for different varieties of customers are presented in Table 2. In the table, L, H j , R, I, and C denote load level, load duration in hours, load factor for residential, industrial and commercial customer in p.u., respectively. The table shows load factors and corresponding load durations for the aggregate daily load patterns of the given season-wise customers. The load levels 1-9, 10-18 and 19-27 are used for spring/fall, winter and summer seasons, respectively. Table 3 shows design parameters selected for this problem.

Table 1 Initial data of IEEE 33-bus system
Table 2 Load factors and load duration for different seasons
Table 3 Design parameters for optimally placing DGs

The best solution is obtained after 100 trial runs of proposed IBA method. The optimal sites of DGs to be installed in the distribution network are 13, 24 and 30, whose corresponding optimal sizes are 565kVA, 1049kVA and 958kVA, respectively. After placing optimal DGs, their optimal active and reactive power dispatches are determined at each load level separately as shown in Table 4. The distribution network is reconfigured at each load level after optimally placing DGs. The optimal network configurations are also shown in the table. After providing this integrated solution, feeder power losses and minimum node voltage are determined for each load level as shown in Figs. 3 and 4, respectively.

Table 4 Optimal dispatches of DGs and optimal configuration at different load levels (pf 0.85)
Fig. 3
figure 3

Feeder power losses at different load levels

Fig. 4
figure 4

Minimum node voltage at different load levels

It can be observed from these figures that the power losses are substantially reduced and the minimum node voltage is significantly enhanced using optimal DG allocation. The performance of the distribution system is further enhanced by network reconfiguration. It happens at all load levels.

The annual energy loss, percentage annual energy loss reduction and the minimum node voltage among all the 27 load levels considered is presented in Table 5. It can be observed from the table that annual energy loss reduction is about 85 % using DG allocation which is further enhanced to about 89 % by network reconfiguration. Thus proposed integrated solution provides substantial reduction in annual energy losses occurred in distribution feeders. Also a better node voltage profile with a minimum node voltage of 0.9542 p.u. is obtained during the peak load hours. This shows that all node voltages maintained above the permissible limit during any load condition throughout the year.

Table 5 Comparison of network performance

A set of convergence characteristics for the best and mean fitness obtained after subsequently applying each modification in BA is shown in Fig. 5. In the figure, B1 represents the standard BA with revised loudness and pulse emission rates, B2 is B1 with improved local random walk and IBA, i.e. B2 with diversity. It can be observed from the figure that there is an improvement in the convergence of BA with each subsequent modification. As a result, there is a consistent improvement in the convergence of IBA. In IBA, the proposed loudness and pulse emission rates are made self-adaptive for all bats. This possibly enhances the exploration potential of BA to certain extent. As a result, IBA finds the promising region which keeps more patience than BA. The application of improved local random walk is quite intense and it enables IBA to avoid many local trappings. The proposed diversity searches new solution points in the search space by re-initializing the algorithm. It plays a crucial role to cope against the extreme exploitation potential of BA. The diversity provides marked improvement in the convergence as can be seen from the figure where it shows a chain to avoid very fine local trappings.

Fig. 5
figure 5

Comparison of best fitness for BA and its proposed variants

Similar conclusions may be drawn from Fig. 6 which shows the comparison for mean convergence. It is noteworthy that the proposed diversity causes the mean fitness of the population to fluctuate and also tends to maintain it at a poor value during the evolutionary process though it enhances convergence for the best fitness. It happens as the population is re-initialized at the end of each iteration.

Fig. 6
figure 6

Comparison of mean fitness for BA and its proposed variants

In order to further investigate the effectiveness of each modification in the proposed IBA, the statistical quality indices such as standard deviation (SD), coefficient of variation (COV), error from the best (EFB) and CPU time have been determined for the sampled solutions obtained by 100 independent trials of BA variants. The comparison results are presented in Table 6. The smaller the value of these indices, the better the solution quality will be. The table shows a continuous improvement in the solution quality when all proposed modifications are sequentially applied in the standard BA. The table also presents the solution quality obtained while GA, PSO and cat swarm optimization (CSO) are also applied to this system with same population size and maximum iteration count as that of BA. It can be observed from the table that proposed IBA is more efficient and accurate than other related techniques. However, IBA is found to be more computationally demanding. It is obvious due to re-initialization of the population in order to maintain sufficient diversity which was essential to cope against the inherent tendency of BA to quickly approach in the promising region and then the algorithm trapped in local optima owing to extreme exploitation potential. Thus IBA generates better quality solutions, but at the cost of more CPU time.

Table 6 Comparison of solution quality

7 Conclusions

This paper addresses a more realistic methodology for optimal allocation of DGs in radial distribution systems to maximize annual energy loss reduction while maintaining better node voltage profiles. A more realistic scenario of distribution network is considered by assuming dedicated feeders to its different class of customers and their specific load profiles that varies hourly and seasonally. The distribution network is reconfigured after placing optimal DGs. The application results in a standard test distribution system shows that a significant improvement in the desired objectives is achieved using proposed integrated approach for DG allocation and network reconfiguration. It is noteworthy that using the proposed approach, the peak load demand and its duration becomes more realistic on account of the diversity of load among various classes of customers. This reflects in the solution with positive sense. Nevertheless, more DG capacity installation or less improvement in node voltage profile, or both may be expected. The problem is solved by proposing an improved bat algorithm (IBA). The effectiveness of each suggested modifications in IBA has been thoroughly investigated. It has been observed that each modification is actively contributing towards improving the convergence, accuracy and efficiency of the algorithm. The proposed IBA can serve as a promising tool to solve hard combinatorial engineering optimization problems. The present approach can be extended for asset management in microgrids with DGs having intermittent power generations.