1 Introduction

In electrical engineering, the load flow analysis is a mathematical investigation of electric power flow into a connected network [1]. A load flow analysis normally utilizes streamlined documentation, for example, a single line diagram and p.u. network, and importance on numerous characteristics of power parameters, like voltages, angles, real power and reactive power [2]. Load flow study is foremost in forecasting forthcoming growth of electric systems and moreover in selecting the pleasant procedure of present programs [3]. The voltage magnitude and its angle of each node as well as the computation of the total losses are done by the load flow [4].

Marketable electric systems are most commonly excessively critical to consider hand result of the load flow [5]. To present research laboratory scale, physical representations of electrical networks in detail had been constructed in the past years. However, PC programs accomplish associated computations like stability studies, short-circuit fault analysis, economic dispatch and unit commitment [6]. Primarily, a few applications use linear programming to discover the optimal load flow and the circumstances that supply the lowermost cost per kilowatt hour are also conveyed [7].

A load flow gain knowledge is notably a large for the approaches with numerous load centers, equivalent to a refinery complex. The load flow is an analysis of the procedure’s capability to correctly deliver the load connected [8]. The aggregate losses of the system, and furthermore line losses of the individual, are also tabularized. Tap positions of the transformer are selected to guarantee the precise voltage at principal locations equivalent to motor control centers. For the examination of the distribution system, a significant tool is the distribution load flow and it is utilized in the operation and the planning phases [9, 10].

Distribution network with the structure of radial and broad ranging reactance and resistance values are essentially unwell conditioned, and traditional power flow approaches like Newton–Raphson, Fast Decoupled and Gauss–Seidel strategies are incompetent in solving such systems [11]. Distribution losses are as excessive as 20–30% of whole power production. As a result, in the case of distributed systems, the venture is more stated. Due to higher value of R in distribution networks, distribution systems are the general cause behind these tremendous power losses. The distribution systems are also functioning at much decreased voltages [12, 13]. Appropriate location and operating tactics are the responsibilities in the DG application for loss reduction. Optimal location relies upon the type of DG as well. For this reason, a try is made in this method to strengthen easy analytical expressions for area, which will also be with ease computed [14, 15].

In both the radial and mesh distribution networks, the optimal DGs are set up at appropriate positions to curb the losses of power along with the improvement of the voltage profile within the distribution network. It is expected that within the distribution network maximum of total power generation is corrupted as losses. The currents that flow via the network are reason for a part of these losses. Via the DGs installation, the losses that occurred with reactive currents are condensed, which is also valuable for control of power flow, i.e., the curtailment of power loss and enhancement of stability of the system. As a result, it is essential to discover the ultimate position and rating of DG for curtailment of losses and to maintain voltage. The paper is organized to be geared up as follows. Previous works regarding the load flow solution and DG placement in the distribution networks are studied in Sect. 2. Section 3 shows the suggested procedure. The computational outcomes and comparative study are offered in Sect. 4. At last, Sect. 5 presents the conclusions.

2 Associated work

The latest research work involving the load flow solution of the distribution system is recorded underneath:

A brand new load model had been suggested by Marti et al. [16] that characterized the voltage-dependent load model. A curve-fitting method was utilized to derive it, which cut up the load as a mixture of current source and impedance. On the imaginary part of the voltages at nodes with this illustration and a few numerical estimates, as a linear power flow (LPF) resolution, it was feasible to develop the load flow concern, which once not required repetitions. The estimate was once proven in systems as much as 3000 nodes with quality results. The LPF system used to be peculiarly main for computerized smart distribution systems for optimization purposes. In that method, the load was to be formed at first as a summation of an impedance and a current source and there was a need to approximate in the imaginary part of the nodal voltage.

To analyze the effect of alteration with the distribution system on power system threat evaluation, Jia et al. [17] had presented any hierarchical solution. To simulate the actual irregular output regarding DGs, the discrete possibility style was currently employed. Like a standard constraint, available supply capacity (ASC) was utilized to make sure the actual safety level of the distribution system that required large consistency. The repetitive computation involving transmission network and distribution network was also embraced to originate risk indices together with taking into consideration detail constructions with the distribution network. Additionally, in system risk computation, the influence regarding a few factors, for example, DGs’ locations, capacities, component outage probabilities and also dispersions, was talking about. The power flow constraints were not taken into account in that method.

Carpinelli et al. [18] had suggested any probabilistic technique to review the actual steady-state operating circumstances associated with photovoltaic (PV) and wind (WD) generation plants along with an active electrical distribution system program. That technique took into reason the real questions through renewable generation regarding force production and power load requirements and mixes multi-linearized power flow equations and Monte Carlo simulation methods. Mathematical implementations were obtainable and reviewed with regards at 17 bus distribution systems seen as a WD and PV systems hooked up with diverse bus bars. The outcomes achieved with all the suggested criteria were better in contrast to the outcomes achieved employing a Monte Carlo simulation criteria. They did not implement their methods for medium-size and large-size distribution networks.

Das [19] proposed a method to place single DG in RDNs. She had used the loss sensitivity factor and Firefly algorithm to get the location of DG placement and its optimal size, respectively. She had used 33-node and 69-node RDNs. The reduction in loss obtained by the proposed method was not appreciable compared to the other methods available in the literature. The multi-DG placement was not suggested.

To discover the exact position and proper size of DG unit, Mohamed and Kowsalya [20] had presented a novel technique with network power loss minimization, operational costs and making improvements to voltage stability as an objective. To define the optimal locations of DG unit’s installation, loss sensitivity factor was utilized. To search out the optimal size of DG, “Bacterial Foraging Optimization Algorithm (BFOA)” was used. BFOA was a swarm intelligence method, for aging policies of the Escherichia coli microorganism, which modeled the individual and workforce as a distributed optimization procedure. The proposed technique was once confirmed on 33-node and 69-node RDNs at specific load levels with numerous load models, and the efficacy and efficiency of the method was validated. They did not execute their method on any large RDNs. They were silent about the placement of DG in MDNs.

Murty and Kumar [21] had provided an evaluation of new “power loss sensitivity,” “power stability index” (PSI), and VSI approaches to achieve the appropriate location and then found the size of the capacitor. The chief impact of the paper was that the optimal placement of DGs was established. They tested their method on 12-node, 69-node, 85-node and modified 15-node RDNs. They had used approximate VSI index to get the most sensitive node of the network. They were confined to place only single DG unit and silent for placement of multi-DG units. They had not considered any MDN to implement their method.

Hung and Mithulananthan [22] had examined the difficulty of multiple distributed generators (DG units) placement for obtaining loss reduction in RDNs. In that paper, an improved analytical (IA) approach was disclosed. On three distribution experiment techniques, IA procedure was once tested and authenticated with various sizes and difficulty. Results showed that IA procedure was once powerful as when put next with LSF and ELF solutions. They had used exhaustive load flow technique, and the loss for base case of 69-node RDN was lower compared to that obtained by the other load flow techniques. In some cases, the results obtained by ELF are not superior to those by IA or LSF. There was no implementation of their method to any large RDN and any type of MDN.

Kaur et al. [23] presented an MINLP method to place the appropriate size of DGs in the proper locations so that the system loss will be decreased and voltage profile will be enhanced. They tested their methods on 33-node and 69-node RDNs and also compared with ELF-, IA- and PSO-based methods. They provided the test results for small and medium RDNs. They were silent regarding the implementation of their method to any large RDNs and any type of MDN. They had not provided the comparison of CPU time with the other existing methods used by them for comparison.

Viral and Khatod [24] presented a novel technique to obtain the optimal positions of DGs and also their sizes. They had used the analytical approach. They at first identified the nodes for placement of DGs and then determined the size of DGs after minimizing the loss saving equations. They tested their methods on 15-node and 33-node RDNs. They did not execute the proposed method on medium- and large-type RDNs and any type of MDN.

Kansal et al. [25] presented a hybrid technique to place multiple DGs optimally in RDNs. They also placed different types of DGs in RDNs. They had used 33-node and 69-node RDNs to validate the proposed method, and they also compared their proposed method with the PSO and IA methods. The results in some cases obtained by PSO are superior to those obtained by the proposed method. They did not carry out their method on any large-size RDN and any type of MDN.

Saha and Mukherjee [26] proposed a novel method to place DG in RDNs using “chaos embedded SOS algorithm.” They placed the DGs in 33-node, 69-node and 118-node RDNs. They compared their method with other available method including “SOS studied.” The CPU time provided by them for different methods was not in the same platform, and hence proper comparison of speed of the proposed method with the other reported method was not feasible. They were silent regarding DG placement in MDNs.

Das et al. [27] used “symbiotic organism search algorithm” to place DGs in RDNs. They used LSF to find the sensitive nodes of the networks to place DGs, and SOS algorithm had been used to find the size. They compared their method with other available methods. They placed the DGs in 33-node and 69-node RDNs. In 69-node network, the Cuckoo search method has faster convergence compared to proposed SOS method as provided by the authors. They were also silent regarding the implementation of their method to any large-size RDN and any type of MDN.

However, all above-mentioned classical methods suffer from the disadvantage of finding the optimal solution for the nonlinear optimization problem. Placement of DG in the distribution system is highly nonlinear optimization problem. Conventional optimization techniques are not suitable for solving such type of problems. Moreover, there is no criterion to decide whether a local solution is also a global solution. Large computational time is another drawback of most of these techniques. And also, it may be found that most of these population-based optimization techniques have been successfully used to determine the size, placement and loss minimization problem of DG in RDNs. However, many of them suffer from local optimality and require large computational time for the simulation. These motivate the present authors to introduce new, simple, efficient and fast population-based optimization technique to solve optimal DG placement problem of the distribution networks.

3 Upgraded load flow solution for RDN and MDN using hybrid fuzzy-PSO approach

As the network is the ultimate connection between a large power system and customers, the investigation of distribution network is a major subject of exercise. In the present work, a load flow solution as well as the stability analysis of radial and the mesh distribution networks will be boosted based on hybrid fuzzy-PSO algorithm. The proposed work comprises three phases; these are fuzzification, knowledge-based decision logic and defuzzification. In fuzzification, the power parameter like total power loads (active and reactive) shall be estimated and finally changes to fuzzy sets or linguistic terms. The knowledge base comprises data concerning the domains of the fuzzy sets, and variables related to the linguistic phrases and rule base within the type of semantic control principles are kept in the knowledge base. Decision logic defines expertise concerning the parameters with the aid of the input values that are measured and knowledge base. The knowledge-based decision logic is employed via making use of PSO algorithm, that is a global optimization technique, so that it will furnish the easier selection based on the input value and base knowledge.

The mission of defuzzification is to produce a crisp control price out of the expertise concerning the manipulate parameter of the decision logic with the aid of utilizing a suitable transformation. The fuzzy-PSO will provide a greater resolution of the power flow problem, which is suitable for each radial and mesh distribution approach. Then, on the basis of load flow solution multi-DGs are positioned to fulfill the requirement, and by using the DGs in a more effective method, the stability of the distribution system will probably be analyzed. To find the ultimate DG location, loss sensitivity analysis (LSA) is used, and for sizing DG, hybrid artificial bee colony and Cuckoo search (ABC–CS) algorithm is used here. The proposed process will be demonstrated in 33-node and 69-node RDNs as well as in 85-node and 119-node MDNs.

The proposed methodology begins with the evaluation of load flow and stability study of RDNs and MDNs given as input to the proposed approach for evaluation. This evaluation standard helps the fuzzy logic present within the proposed approach in making decision regarding the DG placement within the bus system. Figure 1 shows the proposed framework.

Fig. 1
figure 1

Proposed framework

3.1 Stability analysis

In voltage stability study, the main aim is to suggest an exact VSI expression so that the exact values of VSI for each node will be obtained. The node, which will have the minimum value of VSI, will be the most sensitive node (MSN) of the network. The VSI is expressed from a two-bus system, and design equations are given below.

$$ \bar{V}_{m1} = \bar{V}_{m2} + \bar{I}_{k} \bar{Z}_{k} $$
(1)
$$ \left| {V_{m1} } \right| \angle \delta_{m1} = \left| {V_{m2} } \right| \angle \delta_{m2} + \left[ {I_{{{\text{real}}_{k} }} + jI_{{{\text{imag}}_{k} }} } \right]\,\,\left[ {R_{k} + jX_{k} } \right] $$
(2)

where Ik is the flow of current through the branch k.

  • \( \left| {V_{m1} } \right| \) and \( \left| {V_{m2} } \right| \) are the voltage magnitudes of nodes m1 and m2.

  • \( \delta_{m1} \) and \( \delta_{m2} \) are the respective angles of Vm1 and Vm2.

  • \( Z_{k} = R_{k} + jX_{k} \), where Rk and Xk are the resistance and reactance of the branch k between bus m1 and bus m2.

$$ \left| {V_{m2} } \right|\cos \delta_{m2} + j\left| {V_{m2} } \right|\sin \delta_{m2} = \left| {V_{m1} } \right|\cos \delta_{m1} + j\left| {V_{m1} } \right|\sin \delta_{m1} - \left[ {I_{{real_{k} }} R_{k} - I_{{imag_{k} }} X_{k} } \right] - j\left[ {I_{{real_{k} }} X_{k} + I_{{imag_{k} }} R_{k} } \right] $$
(3)

From (3), we have

$$ \left| {V_{m2} } \right|\cos \delta_{m2} = \left| {V_{m1} } \right|\cos \delta_{m1} - A $$
(4)
$$ \left| {V_{m2} } \right|\sin \delta_{m2} = \left| {V_{m1} } \right|\sin \delta_{m1} - B $$
(5)

where \( A = I_{{{\text{real}}_{k} }} R_{k} - I_{{{\text{imag}}_{k} }} X_{k} \), \( B = I_{{{\text{real}}_{k} }} X_{k} + I_{{imag_{k} }} R_{k} . \)

Then, we have

$$ \tan \delta_{m2} = \frac{{\left| {V_{m1} } \right|\sin \delta_{m1} - B}}{{\left| {V_{m1} } \right|\cos \delta_{m1} - A}} $$
(6)

From (4) and (5), we have

$$ \left| {V_{m1} } \right|^{2} - 2\left[ {A\cos \delta_{m1} + B\sin \delta_{m1} } \right]\left| {V_{m1} } \right| + \left( {A^{2} + B^{2} } \right) = \left| {V_{m2} } \right|^{2} $$

Since |Vm2| is always greater than 0, the following condition must be met.

$$ \left| {V_{m1} } \right|^{2} \,- \,2\left[ {A\cos \delta_{m1} + B\sin \delta_{m1} } \right]\left| {V_{m1} } \right| + \left( {A^{2} + B^{2} } \right) \ge 0 $$

Let

$$ L_{m2} = \left| {V_{m1} } \right|^{2}\,-\,2\left[ {A\cos \delta_{m1} + B\sin \delta_{m1} } \right]\left| {V_{m1} } \right| + \left( {A^{2} + B^{2} } \right) \ge 0 $$
(7)

The computed \( \delta_{m2} \) of branch k will be used as \( \delta_{m1} \) for the next branch, i.e., k + 1. \( I_{{real_{k} }} \) is the real part of the current \( I_{k} \) through branch k, and \( I_{{{\text{imag}}_{k} }} \) is the imaginary part of the current \( I_{k} \) through branch k. The value of \( \delta_{m1} = 0.0 \) when k = 1. The proposed voltage stability index is to be compared with the voltage stability indices available in [28, 29].

3.2 Radial and mesh distribution network load flow analysis

Here, both radial and mesh systems are evaluated for the analysis of load flow. The total I2R loss (PTOTAL) in a network having a NB amount of branches is expressed by

$$ P_{\text{TOTAL}} = \sum\limits_{k = 1}^{\text{NB}} {I_{k}^{2} R_{k} } $$
(8)

Here, Ik is the current through branch k and Rk is the resistance of branch k. The current in each branch is bought from the load flow analysis. There are two components in branch current, active and reactive elements. PTOTAL expressed in (8) is rewritten below in terms of Ireal and Iimag. Pka and Pkr are due to real and reactive components of I.

$$ P_{\text{TOTAL}} \, = \,P_{ka} \, + \,P_{kr} $$
(9)
$$ P_{\text{TOTAL}} = \sum\limits_{k = 1}^{\text{NB}} {I_{{{\text{real}}_{k} }}^{2} } R_{k} \, + \,\sum\limits_{k = 1}^{\text{NB}} {I_{{{\text{imag}}_{k} }}^{2} } R_{k} \, $$
(10)

From (10), the power loss in real and reactive components of current of any RDN or MDN is formulated.

3.3 Fuzzy- and PSO-based load flow analysis

Fuzzy logic is utilized to update \( \delta \) and V in fuzzy-based load flow analysis

$$ \left[ {\begin{array}{*{20}c} {\Delta P} \\ {\Delta Q} \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} H & N \\ M & L \\ \end{array} } \right]\,\,\left[ {\begin{array}{*{20}c} {\Delta \delta } \\ {\Delta V} \\ \end{array} } \right] $$
(11)

3.3.1 Algorithm involved in fuzzy logic

The expression in (11) specified above is stated as for projected fuzzy index given by

$$ \Delta F = \left[ J \right]\,.\,\Delta X $$
(12)

It implies that at every node of the network the alteration of state vector ∆X ∝ ∆F. On the prior equation, the designed load flow is developed. However, the repetitive state vector updating of the process might be carried out by

$$ \Delta X = {\text{fuzzy}}\left( {\Delta F} \right) $$
(13)

In this procedure, the parameters like \( \left( {\Delta F_{p} \,\,{\text{and}}\,\,\Delta F_{q} \,} \right) \) active and reactive power are computed and presented to the respective fuzzy logic controller (FLC) as shown in Fig. 2. The procedure performs the state vector \( \Delta X \) specifically alteration of \( \Delta \delta \) for the \( P - \delta \) cycle and \( \Delta V \) for the \( q - V \) cycle. Figure 2 shows the steps of load flow based on fuzzy logic.

Fig. 2
figure 2

Load flow based on fuzzy logic

3.3.2 Controller structure

The core construction of the FLC contains three principle elements

  • Fuzzification interface

  • Knowledge base decision logic.

  • Defuzzification.

3.3.3 Fuzzification interface

The FLC includes the subsequent functions through iteration.

  • Compute the p.u. power parameters at each system node.

  • The variables are chosen as hard input signals. The extreme power parameter \( \left( {\Delta F_{{p_{\hbox{max} } }} ({\text{or}}) \, \Delta F_{{q_{\hbox{max} } }} } \right) \) regulates the scope of rule plotting that handovers the input into an equivalent universe of dissertation at each iteration.

Then, into equivalent fuzzy signals the input signals are got fuzzified \( \left( {\Delta F_{\text{pfuz}} {\text{ or }}\Delta F_{\text{qfuz}} } \right) \) with seven linguistic variables. These are “small negative (SN), large negative (LN), zero (ZR), medium negative (MN), medium positive (MP), small positive (SP) and large positive (LP).”

3.3.4 Fuzzification

Then, in triangular membership function it is characterized as shown in Fig. 3, which outlines these functions.

Fig. 3
figure 3

Triangular membership function

Each three points are designed as

$$ LN\,:\,\left[ { - \infty ,\, - \Delta F_{\hbox{max} ,} - \,{\raise0.7ex\hbox{${\Delta F_{\hbox{max} } }$} \!\mathord{\left/ {\vphantom {{\Delta F_{\hbox{max} } } 3}}\right.\kern-0pt} \!\lower0.7ex\hbox{$3$}}} \right],MN\,:\,\left[ { - \Delta F_{\hbox{max} ,} - \,{\raise0.7ex\hbox{${\Delta F_{\hbox{max} } }$} \!\mathord{\left/ {\vphantom {{\Delta F_{\hbox{max} } } 2}}\right.\kern-0pt} \!\lower0.7ex\hbox{$2$}}\,.0} \right],SN\,:\,\left[ {{\raise0.7ex\hbox{${ - \Delta F_{\hbox{max} } }$} \!\mathord{\left/ {\vphantom {{ - \Delta F_{\hbox{max} } } 3}}\right.\kern-0pt} \!\lower0.7ex\hbox{$3$}}, - \,{\raise0.7ex\hbox{${\Delta F_{\hbox{max} } }$} \!\mathord{\left/ {\vphantom {{\Delta F_{\hbox{max} } } 6}}\right.\kern-0pt} \!\lower0.7ex\hbox{$6$}},\,0} \right],ZR\,:\,\left[ {{\raise0.7ex\hbox{${ - \Delta F_{\hbox{max} } }$} \!\mathord{\left/ {\vphantom {{ - \Delta F_{\hbox{max} } } {12}}}\right.\kern-0pt} \!\lower0.7ex\hbox{${12}$}},\,0 - \,{\raise0.7ex\hbox{${\Delta F_{\hbox{max} `} }$} \!\mathord{\left/ {\vphantom {{\Delta F_{\hbox{max} `} } {12}}}\right.\kern-0pt} \!\lower0.7ex\hbox{${12}$}}} \right],SP:\left[ {0,\,{\raise0.7ex\hbox{${ - \Delta F_{\hbox{max} } }$} \!\mathord{\left/ {\vphantom {{ - \Delta F_{\hbox{max} } } 6}}\right.\kern-0pt} \!\lower0.7ex\hbox{$6$}},\,0,\,{\raise0.7ex\hbox{${\Delta F_{\hbox{max} } }$} \!\mathord{\left/ {\vphantom {{\Delta F_{\hbox{max} } } 3}}\right.\kern-0pt} \!\lower0.7ex\hbox{$3$}}} \right],MP:\left[ {0,\,{\raise0.7ex\hbox{${\Delta F_{\hbox{max} } }$} \!\mathord{\left/ {\vphantom {{\Delta F_{\hbox{max} } } 2}}\right.\kern-0pt} \!\lower0.7ex\hbox{$2$}},\,\,\Delta F_{\hbox{max} } } \right],LP:\left[ {{\raise0.7ex\hbox{${\Delta F_{\hbox{max} } }$} \!\mathord{\left/ {\vphantom {{\Delta F_{\hbox{max} } } 3}}\right.\kern-0pt} \!\lower0.7ex\hbox{$3$}},\,\,\Delta F_{\hbox{max} } ,\,\infty } \right] $$

In a similar fashion the outputs signified in membership function, outlines of those functions are uncovered in Fig. 3. As a result, all three features of the triangular membership function \( \Delta X_{\text{fuz}} \) are considered as shown above.

3.3.5 Knowledge-based decision logic using PSO

In this proposed methodology, a PSO method is established to seek out the finest answer of the multi-objective issue of inserting DG units. PSO is among the optimization technique and matches to evolutionary calculation methods. The technique is found via a model of basic social representations. The aspects of the approach are as trails:

  1. 1.

    On the basis of researches on swarms comparable to bird flocking and fish schooling, the procedure is created.

  2. 2.

    Here, the computation time is tiny that entails few recollections. In line with the research outcomes for flocking, birds are searching foodstuff by way of flocking.

An optimization method on the basis of above concept is labeled as trails: Specifically, definite objective function is enhanced bird flocking. Every agent to this point recognizes its finest value (pbest) and its XY function. In addition, every agent knows the finest value at this point among pbests in the group (gbest). For individual agent attempts are made to alter its location utilizing the subsequent data:

  • existing locations (x,y),

  • existing velocities (vx,vy),

  • Distance among the existing spot, pbest and gbest.

This alteration is characterized by the velocity concept. Each agent velocity is altered by the subsequent expression [30].

$$ v_{i}^{m + 1} \, = \,wv_{i}^{m} \, + \,c_{1} \,a\,\, \times \,\left( {b_{i} \, - \,s_{i}^{m} } \right)\, + \,c_{2} \,a\,\, \times \,\left( {d\, - \,s_{i}^{m} } \right) $$
(14)

In (14), \( v_{i}^{m} \) is the agent velocity i at iteration m, the weighting factors are c1 and c2, the weighting function is w, \( s_{i}^{k} \) is the existing location of agent i at iteration m, “a” is the random number, which is between 0 and 1, d is the \( {\text{gbest}} \), which is the best of the group and bi is the \( {\text{pbest}}_{i} \), which is the best of agent i. The above expression in (14) is used to get a certain velocity. This velocity steadily becomes close to “b” and “d.” The present point is altered by (15).

$$ s_{i}^{m + 1} \, = \,s_{i}^{m} \, + \,v_{i}^{m + 1} $$
(15)

3.3.6 Defuzzification

Extreme corrective act \( \Delta Y_{\hbox{max} } \) of state parameters outlines the scope of map scale at every iteration, which handovers the produced signal into the equivalent universe of dissertation. The maximum alteration of values is computed by,

$$ \frac{{\Delta F_{\hbox{max} 1} }}{{\Delta Y_{\hbox{max} } }}\, = \,\frac{{dF_{1} }}{{dY_{1} }} $$
(16)
$$ \Delta Y_{\hbox{max} } \, = \,\left[ {\frac{{{\text{d}}F_{1} }}{{{\text{d}}Y_{1} }}} \right]^{ - 1} \,\Delta F_{\hbox{max} 1} $$
(17)

With maximum power mismatch of the system, F1 is the power equilibrium equation at node and Y1 is the magnitude at node 1 or voltage angle. Lastly for each and every node of the system, the defuzzifier changes output signals \( \Delta Y_{fuz} \) into crisp values \( \Delta Y_{{}} \). The state vector is restructured, and the centroid-of-area defuzzification approach is modified,

$$ Y^{i + 1} \, = \,Y^{i} \, + \,\Delta Y $$
(18)

where “i” indicates the number of iterations.

3.4 Location of DG by loss sensitivity analysis

Loss sensitivity analysis [31] is employed to get the position of DG in the distribution networks, which can predict the nodes that have a larger reduction of losses. Hence, these sensitive nodes are the nodes for DG placement that reduces the search space for the upcoming optimization action. A line connecting buses k − 1 and k with impedance \( R_{k} + jX_{k} \) connected to a load \( P_{{Lk,{\text{eff}}}} + jQ_{{Lk,e{\text{ff}}}} \). If \( P_{{Lk,{\text{Eff}}}} \) is the net supply of active power beyond the bus k, the sensitivity factor [31] is calculated using (19).

$$ \frac{{\partial P_{{{\text{Loss}},k}} }}{{\partial P_{{Lk,{\text{eff}}}} }} = \frac{{2P_{{Lk,{\text{Eff}}}} R_{k} }}{{V_{k}^{2} }} $$
(19)

By using (19), loss sensitivity factors are calculated by load flow and these values are organized in descending order for any distribution network. By using this sensitivity factor, the nodes to be considered for DG installation are noted. The objective functions and the location of DG are utilized in the optimization, which is explained below.

3.5 ABC algorithm

On “artificial bee colony (ABC)” [32], a three-set the artificial bees are labeled: engaged bees, onlookers and scouts. Engaged bee manipulates a food source. With the onlooker bees, the employed bees share information, which might be ready in the hive and observing the events of the employed bees. With probability proportional to the first rate of food origin, the onlooker bees then pick a food source. Then, the bad ones in the best food origins appeal to more bees. Randomly in the neighborhood of the hive, scout bees hunt for brand new food origins. When a food’s origin is caught by a scout or onlooker bee, it turns into engaged. The whole of the engaged bees associated with it is giving way to give up the place, when a food supply has been completely subjugated and could emerge as scouts once more. Hence, the job of “exploiting” is conducted by the engaged and viewer bees, whereas scout bees conduct the job of “exploration.” The operations in scout bee are carried out by means of using a Cuckoo search algorithm (CS), which facilitate the work of the scout bee segment extra effective. In the proposed algorithm, the nectar quantity of a food origin corresponds to the competence of the related result and a food supply agrees to a possible resemble to the optimization difficulties. Inside ABC, the opposite half are viewers and the first half of the colony comprise engaging bees. The digit of employed bees and the quantity of food origins (SN) are same in the view that it is presumed that there will be only one engaged bee for every food origin. For this cause, the number of results can also be identical to the number of onlooker bees into consideration. With a group of randomly produced food sources, the ABC algorithm initiates. The fundamental steps of ABC are given below.

  • Initialization of sources of food.

  • Individual employed bee begins to operate with a source of food.

  • Individual onlooker bees elects a source of food, affording of the nectar data united by the employer.

  • Define scout bees, which find sources of food in an arbitrary way.

Check whether the termination situation is happening. Else, go to the second step.

The complete explanation for every phase is specified below.

Initialization This is starting phase of the ABC algorithm. The SN primary solutions are arbitrarily produced D-dimensional real vectors.

$$ {\text{FS}}_{i} = ({\text{FS}}_{i,1} ,{\text{FS}}_{i,2} , \ldots S_{i,D} \} $$
(20)

\( {\text{FS}}_{i} \) signify the ith source, that is attained by

$$ {\text{FS}}_{i,d} = {\text{FS}}_{d}^{\hbox{min} } + r \times ({\text{FS}}_{d}^{\hbox{max} } - {\text{FS}}_{d}^{\hbox{min} } ) $$
(21)

In (21) \( r \) is an arbitrary constant value in the scope \( \left[ {0,1} \right] \), and \( {\text{FS}}_{d}^{\hbox{min} } \) and \( {\text{FS}}_{d}^{\hbox{max} } \) are lower and upper bounds for dimension \( d \) correspondingly where \( d = 1 \ldots D \).

Employed bee phase In this segment, with a solution every employed bee is connected. For discovering a novel solution, she applies an arbitrary alteration on the solution, which implements the function of hunt in the neighborhood. Using a different expression, the fresh solution is \( v_{i} \) produced from \( {\text{FS}}_{i} \).

$$ S_{id} = {\text{FS}}_{id} + r^{\prime} \times ({\text{FS}}_{i,d} - {\text{FS}}_{k,d} ) $$
(22)

where \( d \) is arbitrarily designated in {1… D}, k is arbitrarily designated in {1… SN} such that,\( k \ne 1 \), and \( r^{\prime} \) is a constant arbitrary number in the scope [−1, 1]. As soon as si is attained, it is assessed and likened. If the fitness of si is healthier than xi, the bee disremembers the old solution and memorizes the novel one. Else, keeps functioning on xi.

Onlooker bee phase In this section, when all their local searches have been finished by employed bees, from their food source they share with onlookers about the data of nectar, then in a probabilistic method to each of whom will then decide on a food origin. The probability \( {\text{Pb}}_{i} \) through which an onlooker bee selects food origin xi will be obtained by:

$$ {\text{Pb}}_{i} = \frac{{f_{i} }}{{\sum\nolimits_{i = 1}^{\text{SN}} {f_{i} } }} $$
(23)

where \( f_{i} \) gives fitness value of xi. Surely, onlooker bees are inclined to pick the sources from the food with bigger nectar quantity. When the onlooker has designated a food supply xi, the behavior of a local search on xi is done on the basis of (23). With previous circumstance, if the altered resolution has a healthier fitness, the fresh solution will substitute xi.

Scout bee phase Within the scout bee of ABC, if the first-class of a solution is not enhanced after a fixed digit of the trials, the food source is thought to be unrestricted, and the scout equivalent engaged bee is converted. Arbitrarily, a food’s origin is generated by the scout by means of utilizing (23). To enhance up the optimum performance of a Scout bee section, Cuckoo optimization is utilized here.

3.6 Framework for optimal DG rating by Cuckoo search optimization technique

The Cuckoo search is an algorithm [33] by utilizing some species of a bird family known as Cuckoo that is stimulated on the basis of their exact lifestyles variety and violent replica process. They lay their eggs in the nests and the hatching probability of their eggs are raised after putting off the prevailing eggs. Then again, one of vital host birds is capable of contesting this parasites conduct of Cuckoos and building their nests in new places or tossing out the exposed alien eggs.

The three idealized rules for Cuckoo search are

  1. 1.

    At a time each Cuckoo lays a single egg and dumps the egg at arbitrarily chosen nest.

  2. 2.

    A fraction of nests comprising the best eggs that are carried out for the succeeding generation.

  3. 3.

    The quantity of host nests that can be accessible is constant, and the egg placed via a Cuckoo is published via the host bird with a probability pa ϵ [0, 1]. If this occurs, the host bird can discard the eggs or abandon the nest, and fresh nest shall be developed elsewhere. The fraction pa of “n” nest is substituted by way of fresh nest.

In Cuckoo search optimization, let the distributed generations be DGi. The value of host nest is defined as DGi (i = 1, 2… N). The host nest represents different DG sizes. The objective function corresponds to DGi, and the population of DGs is derived as DGi. The population generation of DGs is factored from L’evy Flight. The L’evy Flight process executes the Cuckoo until the DG population reaches maximum generation. After populating the maximum DGs, the Cuckoo checks all the DGs to evaluate its quality and fitness Fi. The selected DGs are capable for network management, and the remaining DGs are discarded. The fitness function is sharp as the voltage profile-to-power loss ratio. The fitness function is inversely proportional to the power loss. The fitness function Fi can be computed as.

$$ F_{i} = \hbox{max} \left[ {\frac{{V_{P} }}{{P_{L} }}} \right] $$
(24)

where \( V_{P} \) is the voltage profile and PL is the power loss. The L’evy Flight can be computed using the following equation

$$ {\text{DG}}_{t + 1} = {\text{DG}}_{t} + xE_{t} $$
(25)

where \( {\text{DG}}_{t} \) represents the size of DG chosen for optimization, x represents how far-off the DG positions in the grid, Et represents the L’evy distribution. The L’evy distribution is valued at stages 1 < l≤ 3, where “l” represents L’evy distribution. After the fitness computation, a DG is randomly decided and related to the fitness function. If the randomly chosen DG value is sophisticated, the chosen DG is kept as the answer else it is exchanged with the new DG value. For picking out the superlative place for DG, a fraction Pa is computed. By that fraction, the paramount DG is positioned in the grid. The most suitable DG placement is established based on the voltage profiles and path loss. Utilizing (26) available in [34], the power loss will also be computed.

$$ P_{L} = \sum\limits_{K = 1}^{N} {\sum\limits_{l = 1}^{N} {\left[ {\alpha_{kl} (P_{k} P_{l} + Q_{k} Q_{l} ) + \beta_{kl} (Q_{k} P_{l} - P_{k} Q_{l} )} \right]} } $$
(26)

where \( \alpha_{kl } = \frac{{r_{kl} }}{{V_{k } V_{l} }} \cos (\delta_{k} - \delta_{l} \));\( \beta_{kl } = \frac{{r_{kl} }}{{V_{k } V_{l} }} \sin (\delta_{k} - \delta_{l} \)) are the complex voltages at bus i and j.

  • \( r_{kl} \) + jxkl = Zklij-th element of [Zbus] impedance matrix.

  • \( P_{k} and \)\( Q_{k} \)—net real and reactive power injection in bus k

  • \( P_{l} \,\,{\text{and}}\,\,Q_{l} \)—net real and reactive power injection in bus l

  • \( V_{k} \;\; {\text{and}} \,\,\delta_{k} \)—voltage magnitude and angle at bus k

  • \( V_{l} \,\,{\text{and}}\,\,\delta_{l} \)—voltage magnitude and angle at bus l

  • N—number of buses

The voltage profile \( V_{p} \) can be defined as in (27)

$$ V_{p} = \mathop \sum \limits_{i = 1}^{n} V_{i} L_{i} W_{fi} $$
(27)

where Vi represents the voltage magnitude of the bus i, load at bus i is represented by Li, and the weighting factor of load bus is \( W_{fi} \). The weighting factor of load bus is.

$$ \mathop \sum \limits_{i = 1}^{n} W_{fi} = 1 $$
(28)

On the basis of voltage profile and power loss, the DG is sized optimally so that the grid network is managed efficiently. The pseudocode of Cuckoo search for optimal sizing of DG is shown below.

figure a

The above proposed work by utilizing ABC–CS presents a new deterministic methodology, which determines the optimal size for DG placement. This technique is easy to be applied.

Different types of DG have been introduced in [14]. The cost parameters have been presented in [21].

4 Simulation results and discussions

The proposed technique of the optimal size multi-DG placement using ABC–CS is applied in the Matlab platform. The technique is verified in the typical 33-node and 69-node RDNs, 85-node and 119-node MDNs.

4.1 33-node RDN

Initially, it is applied to 33-node RDN having 12.66 kV and 100 MVA as base values. In Fig. 4, the single line illustration of the system is shown. In [35], the system data are available having net reactive and real power loads of 2.3 MVAr and 3.7 MW, respectively.

Fig. 4
figure 4

33-node RDN

Table 1 shows the detailed outcomes of excluding DG unit (base case) and including DG unit(s) (single DG unit, double DG units and triple DG units) in terms of real power loss, minimum voltage (p.u.), location and size of each DG unit, most sensitive node and its VSI value, price of energy loss and price of DG for 33-node RDN for light load (50%), medium load (75%) and normal load (100%).

Table 1 Results of 33-node RDN

The voltage shape of 33-node RDN excluding and including placement of DG unit(s) (one DG, two DGs and three DGs) is shown in Fig. 5 for normal load (100%).

Fig. 5
figure 5

Voltage profile of 33-node RDN

The plot of VSI vs node of 33-node RDN before and after placement of DG unit(s) (single DG unit, double DG units and triple DG units) is shown in Fig. 6 for normal load (100%) using proposed method and methods available in [28, 29].

Fig. 6
figure 6

VSI of 33-node RDN

4.2 69-node RDN

Now it is applied to 69-node RDN having 12.66 kV and 100 MVA as base values as shown in Fig. 7. The system data are available in [35] having net reactive and real power loads of 2.69 MVAr and 3.80 MW, respectively.

Fig. 7
figure 7

69-node RDN

Table 2 shows the results of excluding DG unit (base case) and including DG unit(s) (single DG unit, double DG units and triple DG units) in terms of active power loss, minimum voltage (p.u.), location and size of each DG unit, most sensitive node and its VSI value, price of energy loss and price of DG for 69-node RDN for three different loads light (50%), medium (75%) and normal (100%).

Table 2 Results of 69-node RDN

The voltage profile of 69-node RDN before and after placement of DG unit(s) (single DG unit, double DG units and triple DG units) is shown in Fig. 8 for normal load (100%).

Fig. 8
figure 8

Voltage profile of 69-node RDN

The plot of VSI vs node of 69-node RDN before and after DG placement (single DG unit, double DG units and triple DG units) is shown in Fig. 9 for normal load (100%) using proposed method and methods available in [28, 29].

Fig. 9
figure 9

VSI of 69-node RDN

4.3 85-node MDN

In [36], the total system data are given for 85-node MDN as shown in Fig. 10, which consists of 85 nodes and 10 meshes. The base MVA is 100, and base kV is 11. The total load of the system is 2.57 + j2.62 MVA.

Fig. 10
figure 10

85-node MDN

Table 3 shows the results for cases, i.e., excluding DG and including three DG units in terms of active power loss, minimum voltage (p.u.), location and size of each DG, most sensitive node and its VSI value, price of energy loss and price of DG for 85-node MDN for normal load (100%).

Table 3 Results of 85-node MDN

The voltage profile of 85 node MDN before and after placement 3 DG units is shown in Fig. 11 for normal load (100%).

Fig. 11
figure 11

Voltage profile of 85-node MDN

The plot of proposed VSI vs node of 85-node MDN before and after placement of three DG units is shown in Fig. 12 for normal load (100%).

Fig. 12
figure 12

VSI of 85-node MDN

4.4 119-node MDN

Similarly, the method is also tested on the 119-node MDN. This system has 15 tie switches and 118 sectionalizing switches as shown in Fig. 13. The base values are 11 kV and 100 MVA. The system data are available in [37] having net load of 22.71 + j17.01 MVA.

Fig. 13
figure 13

119-node MDN

Table 4 shows the results for cases, i.e., excluding DG and including three DG units in terms of active power loss, minimum voltage (p.u.), location and size of each DG, most sensitive node and its VSI value, price of energy loss and price of DG for 119-node MDN for normal load (100%).

Table 4 Results of 119-node MDN

Before and after placement of three DG units the voltage profile of 119 node MDN is shown in Fig. 14 for normal load (100%).

Fig. 14
figure 14

Voltage profile of 119-node MDN

Before and after placement of three DG units, the plot of proposed VSI vs node of 119-node MDN is shown in Fig. 15 for normal load (100%).

Fig. 15
figure 15

VSI of 119-node MDN

The suggested method is correlated with other existing techniques [20, 23, 25,26,27] in terms of loss reduction and minimum voltage as shown in Table 5 for normal load.

Table 5 Performance comparison for three DGs placement in 33-node and 69-node RDNs

Table 5 shows that the proposed method gives a better loss reduction as well as better improvement of minimum voltage than the other methods for 33-node and 69-node RDNs. The proposed method takes less CPU time compared to the existing methods.

5 Conclusions

The proposed methodology grants the effective analysis of voltage stability, making use of Fuzzy- PSO, and does acceptably on distribution systems for simulation purposes. The most optimal size of each DG unit is illustrated via ABC–CS. The location and size of each DG unit are the principal reason in the planning and operation of energetic RDNs. The suggested implementation grants a new deterministic way that selects the optimal positions and rating for placement of each DG unit. The proposed method proves that it can save massive quantity of power and gain significant growth in voltage stability. The proposed method has been executed on 33-node and 69-node RDNs [35] as well as on 85-node [36] and 119-node MDNs [37]. The VSI value of MSN obtained by the suggested method has also been correlated with that obtained by [28, 29] using the suggested load flow. After placement of DG unit(s), the VSI values have been improved due to the reduction of losses. After placement of three DG units in 33-node as well as 69-node RDNs, the losses obtained for both 33-node and 69-node RDNs have been compared to those obtained by the methods [20, 23, 25,26,27]. This suggests that loss reduction by the suggested procedure is appreciable in contrast to these methods and voltage profile and simulation time are also better than in these methods.