1 Introduction

In recent years, the penetration of DGs in distribution networks has increased dramatically. A distributed generation unit can be defined as an electrical source which is integrated in electrical distribution networks [1] where their benefits are highly depended on the installation position and sizing of DGs [2,3,4,5]. The proper installation of DGs in a distributed system can effectively support the system performance improvement such as the voltage profile, reliability, stability and power quality [6]. However, if placing and sizing of DGs are not determined appropriately, some negative problems could affect on the distribution networks such as voltage flicker, voltage sags as well as raising fault currents, increasing the harmonic distortion and power loss [7, 8]. Therefore, determining the suitable place and size of DGs in the distribution system is an important role in planning and operating the distribution networks [9]. In this research trend, there have been many publications focusing on the objectives of reducing power loss and improving voltage by optimization methods. For example, GA [10] was applied to determine the position and capacity of DGs in distribution networks where the proposed approach has searched the optimal solution for installing a single DG in the 33-bus and 69-bus IEEE distribution networks. The report results have discussed the operation performances of the distribution systems before and after installing a single DG in terms of voltage fluctuation improvement and power loss reduction where the performance of the system with the suitably installed DG has been better than that of the system without any DG. Besides, to investigate in more general cases, in [11] the authors used the same method and objective function as proposed in [10] for a higher number of DGs in the distribution networks. The obtained results show that there are definitely relationships between the number of installed DGs and the improvements in network’s operation. According to [11], the benefit of installing two DGs is better than that of installing one DG and three DGs is better than two DGs. However, the proposed GA method cannot guarantee optimum and the quality of optimal solutions also significantly deteriorates by the problem’s size. To improve the convergence of DG’s optimization problem, a famous method called PSO was also considered in [12, 13] where the proposed approach is applied to find the most suitable position and capacity of DGs for satisfying the bi-objective function of power loss and voltage deviation. In these studies, the installation location of a single DG is investigated throughout various places of the distribution network with a range of power capacities, so that it could achieve as small active power loss and voltage fluctuation as possible. Although PSO is a good method; however, it also has a disadvantage as possibly trapped into a local optimum point. To avoid the disadvantages and take advantages of both GA and PSO, a hybrid method named GA/PSO has also been created in [14]. It includes two implementing stages at each iteration where GA was applied in the first stage for determining the best siting of DGs and the second stage was based on PSO to find the best rated power for DGs and then both the position and the rated power have been evaluated to determine the best solution among the current solution set. Thus, the proposed method is more complicated than GA and PSO as well as takes more processing time. Simulations with three methods: GA/PSO, GA and PSO in two distribution networks have been implemented to evaluate the improvement aspects, such as the voltage profile, voltage stability index and reducing losses when installing three DGs. The compared results show that the hybrid GA/PSO method can find more promising solutions than GA and PSO alone.

Besides the popular methods, such as GA and PSO, another positive method called SA has been created to solve the optimal place and size of DGs [8, 15]. These studies have demonstrated that power loss reduction and voltage profile depend closely on the allocation, sizes and number of DGs in distribution networks. From obtained results, the applied method has stated that SA is one of the best techniques in the field of optimization. Similarly, the authors in [16, 17] applied ABC and the authors in [18] used a method named BB-BC for the main purpose of reducing energy loss and improving voltage profile through finding the optimal DGs in a distribution system. The work in [17] analyzed the related impact indices with different load models such as constant, industrial, residential, commercial and mixed loads. The results showed that the optimal position of DGs was almost unchanged and the power capacity of DGs seems to be not significant differences for various load models. In the other hand, the load schedule in 24 hours has been studied in [18] to find the optimal solution corresponding to three load models: residential, commercial and industrial loads. Results from the proposed method are also compared with other published results. Both ABC and BB-BC are considered strong methods in solving optimal problems. However, there is one drawback that the algorithms need the high number of implementing steps in evaluating the fitness function of solutions. As a result, their processing time is quite slow. In the same research area, another modern optimization technique based on the combination of neural network learning ability and PSO [19] was also proposed to minimize the power loss and improve the voltage profile. The proposed method has overcome the difficulty in training process to determine the potential location of DGs in the distribution network. Similarly, a method called BSOA [20] have been suggested for optimal location and sizing of DGs. The authors have made a positive contribution in conducting research with various DG types, such as pure active power, pure reactive power and active/reactive combined power. The results showed that the optimal solution has depended not only on the location and capacity but also on the type of DGs. Besides, in [21] a new approach used HSA for minimizing power loss and enhancing voltage profile by suitably selecting DGs and system reconfiguration. This study has investigated the optimal selection of DGs corresponding to various load levels such as light load (0.6 pu), normal load (1.0 pu) and heavy load (1.6 pu) where the expected solution is to find one the same optimal location plan for all three load levels but different capacity values of DGs at each load level. That paper has also indicated that the combination of optimal DG installation and system reconstruction could make better benefits for the distribution networks. Moreover, to satisfy many problem aspects BFOA [22] have been proposed for solving the optimization issues that have more than two objective functions. In that study, the multi-objective function includes power loss reduction, voltage stability enhancement and operating cost minimization. This research has shown that determining the suitable position and sizing of DGs could significantly contribute to reduce the operation cost. Thus, the optimal selection of DGs in the distribution networks can entirely obtain both economic and technical benefits.

Generally, most previous researches have exclusively applied methods that were already available to solve the optimization problem and thus, the obtained optimal solutions would be not highly effective. Consequently, new enhancements of existing methods could be a positive trend to improve the performance of original meta-heuristic algorithms. Considering many aspects in operation of distribution networks is also a key task for the problems of optimal location and sizing of DGs. Thus, this paper proposed a new method called enhanced coyote optimization Algorithm (ECOA) to solve a multi-objective problem. In operation distribution systems, energy losses depended on the specific characteristics of the structural network as well as power sources, and thus, energy loss minimization is a challenge and vital issue. Therefore, in this study, energy loss reduction is considered to be a part of the multi-objective function. In the other hand, voltage stability is significantly affected by the position and size of installed DGs [23, 24] and voltage index is an important factor to evaluate the stability of the distribution system [25]. Thus, the voltage stability index can be a useful factor in the multi-objective function of our research. Moreover, in the economical view, the installation plan of DGs in the distribution system should be considered as an affecting factor on the operating cost of DGs [2]. In this research, the operating cost is considered as a part of the multi-objective function and it is divided into two components, the cost of active power supplied by substations (from the power system) and the cost for active power supplied by all DGs. In summary, the purpose of this paper’s problem is to determine the optimal location and size of DGs, so that it minimizes the multi-objective function including power loss reduction, voltage deviation index enhancement and operational cost minimization under consideration of all constraints of the distribution networks and DGs.

Enhanced coyote optimization algorithm (ECOA) is a meta-heuristic algorithm which is developed from the original coyote optimization (COA) which is inspired by the natural behaviors of coyotes published in 2018 [26]. The social condition and its quality are the two main factors making up this optimization algorithm. With each coyote, its social condition represents an optimal solution; meanwhile, the quality of its social condition represents the fitness of the solution. The coyote community is divided into NG small coyote groups (or packs) with NC coyotes in each group. The working mechanism of COA method is implemented by two techniques for producing new solutions, two techniques for comparing and keeping higher quality solutions, and one technique for exchanging solutions between different groups. In the first technique producing new solutions, each group of coyotes produces NC solutions, and thus, total (NC × NG) new solutions are created in this step. In contrast, the second technique producing new solutions only produces a sole solution for each group and NG new solutions for the whole community of coyotes. Clearly, the first one stronglier affects on the effectiveness of COA because the quality of solutions at each iteration is mainly influenced by the first one rather than the second. However, the first generation is performed around the central solution, which does not have much potential to create good solutions. Thus, this point would reduce the quality of solutions of the next generation and cause the low performance at the first new solution generation. In addition, the second new solution generation has some disadvantages in proposing a global solution and it could limit the ability to search out better new solutions at different areas. In order to overcome that problem, we propose two modifications to improve the efficiency of COA approach where the first one is to replace the central solution by the best current solution and the second focuses on enhancing the performance of the second new solution generation. The proposed modifications would increase the opportunity to explore better solutions and improve the quality of solutions at each iteration.

To verify the effectiveness of ECOA, we have applied the proposed approach for the optimal determination of DG’s location and size for the radial distribution networks. In this kind of network, branches are radiated from the substation. Hence, power flow in this network is characterized as one direction. This network has simpler topology and lower initial investment cost than other networks such as parallel feeder distribution, ring main distribution and interconnected distribution networks. However, the biggest drawback of this network is the low reliability in the power supply. In other words, if a branch in this network fails, the supply to the concerned customer will be affected due to no alternative sources providing electricity to the distributors. In addition, the power supply for the whole network is from the substation at the upstream, the voltages of the last feeders will have large voltage drop and power losses in the transmission line. Thus, the study to integrate DGs on this network is necessary. This study considered the networks of 33-bus, 69-bus and 85-bus IEEE radial distribution networks and also retried three other heuristic algorithms consisting of COA [26], SSA [27] and SFO [28] for the comparison purpose. In addition, to ensure the general evaluation, the results of the proposed method are also compared with those of similar methods as GA [14], PSO [14], GA/PSO [14], SA [15], BFOA [22], BSOA [20] and HSA [21] with the same target. In general, previous solutions have a common drawback that is easy to fall into the local search areas. Specifically, like GA algorithm, crossover and mutation process in the functions are randomly generated [10]. This has a negative impact on the performance and the convergence speed of that algorithm [14]. Not only GA, but another common algorithm, PSO, also has the same problem. With small search spaces, PSO’s solutions easily fall into the local convergence zone [12, 14]. Therefore, PSO is commonly used to optimize problems with a small search area. According to the development of mathematics, in order to improve the efficiency in solving complex optimization problems, many other algorithms have been developed such as SA, SSA, BFOA and BSOA. However, different algorithms have different disadvantages. While SA requires a large amount of computation time [15], BSOA, BFOA and SSA have slow convergence and often stuck in local optimal areas [20, 22, 27]. That has spurred research to develop a comprehensive method for solving all the optimal problems, and COA was born. COA is inspired by coyote behaviors, and it has been shown to outperform compared methods such as GA, PSO, SA, SSA, BSOA and BFOA in terms of computing process as well as performance [26]. However, the performance of COA is not high for all cases of optimal problems. In other words, COA only performs well in certain optimal issues. To overcome this, ECOA has improved the new solution generation process by replacing the central solution with the best current solution at the first phase. This has greatly improved the performance of this algorithm. Besides, because the calculation process to select the central solution has been eliminated, this can reduce computation time for each loop. This shows that the calculation speed of ECOA is better than COA. In addition, at the second phase of generating solution in COA, a random selection in upper and lower limits is not an optimal choice for optimal problems. Therefore, ECOA has used two conditions of comparison for choosing to produce a new solution. This has reduced the number of calculation steps and calculation time due to the random selection step elimination. The result of this improvement has contributed to enhance the performance of the algorithm and avoid being trapped in the local search areas. Not only that, COA is known as a method with few control parameters. Thus, ECOA will inherit that advantage of COA. After performing simulations on some systems with different scales, the obtained results have proved that the ECOA is an effective approach for the optimal determination of DG’s location and size for distribution networks. After solving three networks with 33, 69 and 85 buses, ECOA has found the best fitness values of 0.2581, 0.2260 and 0.3398, respectively. These values are lower than those from other compared methods, whose fitness is from 0.2583 to 0.3419 for the network with 33 buses, from 0.2264 to 0.2837 for the network with 69 buses and from 0.3406 to 0.3449 for the network with 85 buses. Accordingly, the level of improvement of the proposed method over these compared ones is from 0.0774 to 31.7491% for the network with 33 buses, from 0.1723 to 20.2143% for the network with 69 buses and from 0.2348 to 1.4787% for the network with 85 buses. This has shown that the performance of ECOA is more outstanding in solving the considered optimization problem. To make an objective comparison, 50 trial runs are performed for the implemented methods in three networks. The results have proved that ECOA had more times finding the best solution as compared to others with the second lowest population number, except BSOA of the 33-bus network. Besides, the number of fitness function evaluations that ECOA and COA have used is 1250, 1500 and 2000, while the highest values of the remain methods were 5000, 5000 and 2400 for 33 buses, 69 buses and 85 buses networks, respectively. This numbers have indicated that memory saving and data storage during the calculation process of both ECOA and COA are better than others due to the lower number of solutions proposed for evaluation. Although ECOA and COA have had relatively good data processing speed compared to implemented methods, due to the improvement in eliminating the random solution generation phase, ECOA has better data processing speed than COA. Therefore, we can conclude the main contributions of this study as follows:

  1. 1.

    Find high-quality solutions for the considered problem: Approximately all solutions of the proposed method have better quality than those of other compared methods. The best fitness of the proposed method is more effective.

  2. 2.

    Reduce complexity, computation steps and simulation time: The proposed ECOA method can overcome the disadvantages of original COA such as slow convergence to high-quality solutions, using many computation steps, depending on randomization highly and taking high computation time. Moreover, ECOA uses smaller number of fitness evaluations than other compared meta-heuristics methods.

  3. 3.

    Indicate the importance of integrating DGs in the power distribution networks: The obtained results of this study show that properly installing the DGs can mitigate the power losses, improve the voltage stability and minimize the operational cost while satisfying all considered constraints of the network’s structure as well as DGs.

The remaining parts of this paper include 5 sections as follows: the objective functions and the constraints are shown in Sect. 2, called the problem formulation. The analysis and improvement of ECOA as well as SSA, SFO and COA are presented in detail in Sect. 3, the implemented algorithms. Application process of the proposed method in solving optimal problems when integrating DG in the system is described in Sect. 4, called enhanced coyote optimization algorithm for DGs. In Sect. 5, three systems with 33 buses, 69 buses and 85 buses are used to evaluate the effectiveness of all implemented methods and the obtained results are analyzed in this section, called simulation results and discussion. Finally, Sect. 6 summarizes and concludes the whole work in the paper, called conclusions.

2 Problem formulation

For the optimization problem of the distribution networks integrated DGs, the economic benefits and technical satisfaction depend on the position and sizing of DGs [29]. In this paper, the considered problem is built as a multi-objective function. Thus, numerical method is proposed for minimizing the value of this function in various tasks. The computation for an equilibrium between economic and technical benefits in an exchange model is reformulated as a minimization problem, and this problem is presented by the objective functions and constraints. The proposed solution with the smallest value of function would be the best solution for achieving this equilibrium. The following items present the multi-objective function as well as the constraints of the distribution system applied for the proposed method to optimize the contribution of DGs.

2.1 Objective function

In this study, the multi-objective function, which needs to be minimized, includes TAPL, VDI and TOC. Each component of the multi-objective function can be shown in detail as follows.

2.1.1 TAPL objective function

Reducing total active power losses is considered as an important objective in operation to improve the reliability, the power quality and the operational cost of distribution systems. This aim is established by solving the numerical formula as follows [30]:

$$ {\text{Minimize}}\quad F_{A} = \frac{{{\text{TAPL}}_{\text{Dg}}^{{}} }}{\text{TAPL}} = \frac{{\sum\nolimits_{b = 1}^{{N_{\text{Br}} }} {I_{{{\text{Dg}},b}}^{{2^{{}} }} } R_{b} }}{{\sum\nolimits_{b = 1}^{{N_{Br} }} {I_{b}^{{2^{{}} }} } R_{b} }} $$
(1)

Here, IDg,b and Ib are the current of the bth branch for the case with and without DGs; Rb is the resistance of the bth branch. This formula indicates a comparison between total power losses when connecting DGs to the distribution system and that of the original system (no connecting any DGs). Therefore, the variation of FA will be less than 1 if the installation of DGs is effective.

2.1.2 VDI objective

One of the factors that evaluates the power quality of the distribution system is the voltage stability. This is represented by VDI and the objective function is presented as the mathematical equation below [31].

$$ {\text{Minimize}}\quad F_{B} = \hbox{max} \left[ {\left( {\left| {V_{\text{ref}} - V_{j} } \right|/V_{ref} } \right);\,j = 1,\, \ldots ,\,N_{\text{Bu}} } \right] $$
(2)

where the Vref value is assigned to 1.0 pu. The smaller the FB value is, the better the voltage stability of the systems.

2.1.3 TOC objective function

When connecting DGs to a specific distribution network, its operational cost can be divided into two components: the first one is the cost of energy taken from the main grid through the substation, and the second is the energy cost of DGs. Therefore, to reduce TOC, both of such components should be decreased as much as possible. The mathematical equation for total cost of operation is defined as follows [22]:

$$ {\text{TOC}} = (\alpha \times {\text{TAPL}}_{\text{Dg}} ) + \left( {\beta \times \sum\limits_{k = 1}^{{N_{\text{Dg}} }} {{\text{AP}}_{{{\text{Dg}},k}} } } \right) $$
(3)

where \( \alpha \) and \( \beta \) are the cost coefficients of power supplied from substation and DGs ($/kW), respectively. In this paper, the total operational cost is related to the two main components including the cost of energy from the substation and the energy generated by the single DG. The cost coefficients for two their components in Eq. (3) are respectively \( \alpha \) and \( \beta \) that their values are selected as 4.0 $/kW and 5.0 $/kW [22].

To minimize the total operating cost, a mathematical equation for this objective function is shown by:

$$ {\text{Minimize}}\quad F_{C} = \frac{\text{TCO}}{{\beta \times \sum\nolimits_{l = 1}^{{N_{\text{Lo}} }} {{\text{AP}}_{{{\text{Lo}},l}} } }} $$
(4)

Finally, the multi-objective function is presented in a mathematical form below:

$$ {\text{Minimize}}\quad F_{OF} = (\omega_{A} \times F_{A} ) + (\omega_{B} \times F_{B} ) + (\omega_{C} \times F_{C} ) $$
(5)

where \( \omega_{A} \), \( \omega_{B} \) and \( \omega_{C} \) are the objective weights satisfying the condition of \( \omega_{A} + \omega_{B} + \omega_{C} = 1 \) and can be chosen within the range of [0, 1] [32].

2.2 Constraints

2.2.1 Active power balance constraint

Before installing DGs in distribution systems, the demand of all loads is responded by the power supplied at slack bus. However, the power of grid supplying to slack bus becomes smaller after installing DGs. In addition, power losses caused by the resistance of conductors are also supplied by grid or DGs. So, the constraint is the balance between consumption side and supply side. Here, the consumption side is the sum of active power of all loads and active power losses in all branches and the supply side is the sum of active power generated at slack bus and active power of all DGs. The constraint can be shown by [18]:

$$ \sum\limits_{l = 1}^{{N_{\text{Lo}} }} {{\text{AP}}_{{{\text{Lo}},l}} } + {\text{TAPL}}_{\text{Dg}} - \sum\limits_{k = 1}^{{N_{\text{Dg}} }} {{\text{AP}}_{{{\text{Dg}},k}} } - {\text{AP}}_{\text{Gr}} = 0 $$
(6)

2.2.2 Bus voltage limits

When DGs are connected to the power distribution system, the voltage value at each bus will be changed dramatically. Thus, all bus voltages are considered at the fundamental frequency and should be kept within the limit as follows [33, 34]:

$$ V_{j}^{\hbox{min} } \le V_{j} \le V_{j}^{\hbox{max} } ,\quad j \, = \, 1, \, \ldots , \, N_{Bu} $$
(7)

For keeping the best voltage stability, the lower bound and the upper bound of bus voltage in low and medium voltage–power distribution networks are selected to be 0.95 pu and 1.05 pu, respectively.

2.2.3 Branch current limits

The penetration of DGs can change the power flow, and thus it could make increasing the current in some branches. Therefore, the branch currents must be limited as the inequality equation below [35]:

$$ |I_{b} | \le I_{b}^{\hbox{max} } $$
(8)

2.2.4 DG’s capacity and placement limits

The penetration level of each DG in the distribution system should be considered within a certain limit. Besides, the total capacity of DGs must not exceed the load demand of the distribution system. The DGs’ capacity is described by the inequalities [36]:

$$ {\text{AP}}_{\text{Dg}}^{\hbox{min} } \le {\text{AP}}_{{{\text{Dg}},k}} \le {\text{AP}}_{\text{Dg}}^{\hbox{max} } $$
(9)
$$ 0.1 \times \sum\limits_{l = 1}^{{N_{\text{Lo}} }} {{\text{AP}}_{{{\text{Lo}},l}} } \le \sum\limits_{k = 1}^{{N_{\text{Dg}} }} {{\text{AP}}_{{{\text{Dg}},k}} } \le 0.8 \times \sum\limits_{l = 1}^{{N_{\text{Lo}} }} {{\text{AP}}_{{{\text{Lo}},l}} } $$
(10)

In radial distribution network, Bus 1 is always slack bus. Therefore, the location of DGs cannot be Bus 1 and follows the inequality below [35]:

$$ 2 \le {\text{Pos}}_{{{\text{Dg}},k}} \le N_{\text{Bu}} $$
(11)

3 The implemented algorithms

3.1 Salp swarm algorithm

Salp swarm algorithm (SSA) was published in 2017 [27], and it was developed based on navigating and foraging behavior of salp chain in deep oceans. In SSA, the population of salp chain is divided into two groups: leader and followers. The location of salp chain is predefined in the n-dimensional search space where n is the variable number of the problem and initial population of salp chain is randomly generated in the search space of variables. Leader in front of the chain has the task of determining food source that has good quality for followers to follow each other. In other words, each salp is evaluated based on the food source quality as the swarm’s target and the best position of the food source is assigned to the position of the leader. The updated equation for the leader position is shown as follows:

$$ S_{i}^{1} = \left\{ \begin{aligned} F_{i} + r_{1} \times (({\text{ub}}_{i} - {\text{lb}}_{i} ) \times r_{2} + {\text{lb}}_{i} ),\quad r_{3} \ge 0 \hfill \\ F_{i} - r_{1} \times (({\text{ub}}_{i} - {\text{lb}}_{i} ) \times r_{2} + {\text{lb}}_{i} ),\quad \,\,r_{3} < 0 \hfill \\ \end{aligned} \right. $$
(12)

Here, r1 is the coefficient providing a balance between exploration and extraction capabilities. Its value equals \( 2e^{{ - \left( {\frac{{4{\text{It}}}}{{{\text{It}}^{\text{Max}} }}} \right)^{2} }} \).

The position of followers should follow the leader’s instructions and updated equation for their positions as follows:

$$ S_{i}^{k} = \frac{1}{2} \times \left( {S_{i}^{k} - S_{i}^{k - 1} } \right),\quad i \ge 2 $$
(13)

In the process of finding the best food source (the best solution), the position of the leader and the followers in salp chain is checked and maintained by using boundary conditions.

3.2 Sunflower optimization algorithm

Sunflower optimization algorithm (SFO) is inspired from the motion of sunflowers toward the sun to catch the radiation. This behavior of sunflowers aims to determine the best location for receiving radiation, and this cycle is repeated every morning. Sunflower near the sun tends to be calmer in this area because of the great heat received from the sun. Conversely, sunflowers that receive less heat due to being far from the sun tend to move to the position closest to the sun [28]. Each sunflower (individual) adjusts position toward the sun (the best location) as follows:

$$ \vec{s}_{i} = \frac{{X^{*} - X_{i} }}{{||X^{*} - X_{i} ||}},\quad i = 1,2,3, \ldots ,p $$
(14)

Realistically, each sunflower ith tends to do pollination with another flower. This creates a new sunflower with an updated position. For the flowers far from the sun, they aspire to take more steps for moving closer to the sun and vice versa. The movement is different for each individual because it depends on the distance from each individual’s current position to the sun. This phenomenon creates an improvement in finding the optimal position in the sunflower population.

The movement and the position update for each individual toward the best individual are presented as Eqs. (15) and (16), respectively:

$$ d_{i} = \lambda \times P_{i} (||X_{i} + X_{i - 1} ||) \, \times ||X_{i} + X_{i - 1} ||, $$
(15)
$$ \vec{X}_{i + 1} = \vec{X}_{i} + d_{i} \times \vec{s}_{i} $$
(16)

where \( \lambda \) is considered as an inertial displacement of the population and \( P_{i} (||X_{i} + X_{i - 1} ||) \) is defined as the pollination probability of the ith individual.

To ensure that all individuals are not out of the search space, the forward steps are checked and imposed on a restriction accordingly.

3.3 Original coyote optimization algorithm

In COA, the number of packs (Np) and the number of coyotes in each pack (Nc) are two components of the coyote population. The population size of the coyote community is Np x Nc, and the initial population is carried out by the following mathematical equation:

$$ S_{q,p} = S^{\hbox{min} } + r.(S^{\hbox{max} } - S^{\hbox{min} } );\quad q = 1, \ldots ,N_{c} \quad \& \quad p = 1, \ldots ,N_{p} $$
(17)

where Smin and Smax are lower bound and upper bound of control variable set and determined by:

$$ S^{\hbox{min} } = [CV_{k}^{\hbox{min} } ];k = 1, \ldots ,N_{cv}^{{}} $$
(18)
$$ S^{\hbox{max} } = [CV_{k}^{\hbox{max} } ];k = 1, \ldots ,N_{cv}^{{}} $$
(19)

After initialized by Eq. (17) with the bound of the control variables, the quality of each solution will be evaluated based on the fitness function (FFq,p) and the best solution will be determined by the lowest fitness value.

In COA method, the central solutions (Scent,p) are determined for each pack and it is an important part to produce newly generated solutions. The value of the central solution is depended on the number of coyotes. There are two coefficients to determine the specific cases which are set as (Nc + 1)/2 and Nc/2 for the odd and even numbers of coyotes, respectively. After selecting the suitable central solution, the new generated solutions are established by the mathematical equation below:

$$ S_{q,p}^{\text{new}} = S_{q,p}^{{}} + r.(S_{{{\text{best}},p}} - S_{rd1,p} ) + r \cdot (S_{{{\text{cent}},p}} - S_{rd2,p} );\,q = 1,\, \ldots ,\,Nc\quad \& \quad p = 1,\, \ldots ,\,Np $$
(20)

Once a new solution is created, the control variables \( {\text{CV}}_{k,q,p}^{\text{new}} \) of that such solution must be checked and modified by its predetermined limitations as follows:

$$ {\text{CV}}_{k,q,p}^{\text{new}} = \left\{ {\begin{array}{*{20}l} {{\text{CV}}_{k}^{\hbox{min} } } \hfill & {\quad {\text{if}}\,CV_{k,q,p}^{\text{new}} < CV_{k}^{\hbox{min} } } \hfill \\ {{\text{CV}}_{k}^{\hbox{max} } } \hfill & {\quad {\text{if}}\,CV_{k,q,p}^{new} > CV_{k}^{\hbox{max} } ; k = 1, \ldots ,N_{cv} , q = 1, \ldots ,N_{c} ;\quad p = 1, \ldots ,N_{p} } \hfill \\ {{\text{CV}}_{k,q,p}^{\text{new}} } \hfill & {\quad {\text{else}}} \hfill \\ \end{array} } \right. $$
(21)

Then, the quality of each new solution is also evaluated according to its objective function. The good-quality solutions will be retained, and the poor ones will be discarded like the principle of all algorithms based on the natural selection. This assessment will be subject to the mathematical rules below:

$$ S_{q,p}^{{}} = \left\{ {\begin{array}{*{20}l} {S_{q,p}^{\text{new}} } \hfill & {\quad {\text{if}}\,{\text{FF}}_{q,p}^{\text{new}} < FF_{q,p}^{{}} } \hfill \\ {S_{q,p}^{{}} } \hfill & {\quad {\text{else}}} \hfill \\ \end{array} } \right. $$
(22)
$$ {\text{FF}}_{q,p}^{{}} = \left\{ {\begin{array}{*{20}l} {FF_{q,p}^{\text{new}} } \hfill & {\quad {\text{if}}\,{\text{FF}}_{q,p}^{\text{new}} < FF_{q,p}^{{}} } \hfill \\ {FF_{q,p}^{{}} } \hfill & {\quad {\text{else}}} \hfill \\ \end{array} } \right. $$
(23)

In the second generation, each pack will generate one new solution named \( S_{p}^{\text{new}} \) and the new solution is a set of control variables \( {\text{CV}}_{k,p}^{\text{new}} \), which is formed based on the following randomizations:

$$ {\text{CV}}_{k,p}^{\text{new}} = \left\{ {\begin{array}{*{20}l} {{\text{CV}}_{k,r1,p}^{{}} } \hfill & {\quad {\text{if}}\, r < P_{1} } \hfill \\ {{\text{CV}}_{k,r2,p}^{{}} } \hfill & {\quad {\text{if}}\, r < P_{1} + P_{2} } \hfill \\ {{\text{CV}}_{k,rd}^{{}} } \hfill & {\quad {\text{otherwise}}} \hfill \\ \end{array} } \right. $$
(24)

Here, CVk,r1,p and CVk,r2,p are the control variables randomly chosen from the first solution and the second solution in the pth pack; CVk,rd is the kth control variable which is randomly generated in the range of \( \left[ {{\text{CV}}_{k}^{\hbox{min} } ,{\text{CV}}_{k}^{\hbox{max} } } \right] \); and P1 and P2 are the scatter and association probabilities, respectively, and described by:

$$ P_{1} = \frac{1}{{N_{\text{cv}} }} $$
(25)
$$ P_{2} = \frac{{1 - P_{1} }}{2} $$
(26)

Then, the quality of the new solution is compared to that of the worst solution in the current pack. If the quality of the new solution is better, the worst solution will be replaced by that such new one.

Before terminating the current iteration and moving to the next iteration, to escape from the possible local optimum traps, COA allows two randomly selected solutions in two random packs swapped each other if the following condition is satisfied:

$$ r < 0.005 \times N_{c}^{2} $$
(27)

This swapping ability highly depends on the number of coyotes in each pack. The greater number of coyotes is, the higher swapping probability obtains.

The implementation process of COA algorithm for a typical optimization problem can be described as Fig. 1.

Fig. 1
figure 1

The implementation process of COA for solving a typical optimization problem

3.4 Enhanced coyote optimization algorithm

As mentioned above, COA creates two new solution generations in each iteration. The first generation implements using Eq. (20) and the second applies Eq. (24) for producing the new solutions. Thus, the quality of the solutions updated through iterations is closely related to the effectiveness of the two formulas (20) and (24). In other words, if the efficiency of the updated equations is not good enough, the quality of the solutions is hardly improved and vice versa. The newly updated solutions can become more effective if the most appropriate step size can be found [37, 38]. Therefore, to improve the performance of the optimization method, we focus on the improvement of determining the updated step size and the quality of new generated solutions. In this paper, we propose some adjustments as explained in the below parts.

3.4.1 The modification in the first phase

Due to natural behavior of coyotes, in the COA algorithm, it selects a central solution for updating the new solutions in each pack. As explaining in [26], a central tendency or a central social condition of all coyotes can lead to creating higher quality new solutions. In the other words, based on this central solution, each coyote could produce a new solution better than the current solution in the searching area. However, in various optimization problems, the central solution seems not to be a positive selection. Similarly, in this study, we found that the use of central variables to produce new solutions in Eq. (20) is really ineffective. In terms of natural and mathematical phenomena, the trend of finding better solutions is not clearly related to the central social condition. In some cases of the Benchmark optimization functions [26], there are central variables of “zero value” making this method effective. However, it should be noted that in the cases, the “zero value” solution (or central solution) is a useful item because it lies between the lower and the upper bound of variables. However, this does not fit to all optimization problems because in general good solutions do not locate around the central solution. Therefore, we propose the idea of replacing the central solution by the best current solution and Eq. (20) can be modified by the model as:

$$ S_{q,p}^{\text{new}} = S_{q,p}^{{}} + r.(S_{{{\text{best}},p}} - S_{rd1,p} ) + r.(S_{{g\_{\text{best}}}} - S_{rd2,p} ) $$
(28)

Because the best current solution is the most dominant quality solution of a group, thus creating a new solution using the best current solution obviously is a positive and effective way better than using the central solution. This modification could lead the search approaching the optimal solutions with higher quality, and it is suitable for almost optimization problems compared to the original COA method.

3.4.2 The modification in the second phase

The second proposed modification aims to improve the performance for the second-generation technique as shown in Eq. (24) where the changing taking from a random solution and then also taking from a random in the pack is inefficient according to mathematical logic. Moreover, the two conditional comparisons in Eq. (24), (r < P1) and (r < P1 + P2), will lead to more computational burden and time consuming as well. Besides, Eq. (24) uses random variables that locate within the upper and lower limits. This is not a suitable and reliable choice for optimization problems. Thus, in the second modification, we have proposed a new formula to produce a new solution in each pack as follows:

$$ S_{p}^{\text{new}} = S_{{{\text{best}},rd1}}^{{}} + r \cdot (S_{{{\text{best}},rd2}} - S_{{{\text{best}},rd3}} ) + r \cdot (S_{{g\_{\text{best}}}} - S_{{{\text{best}},rd4}} ) $$
(29)

Using this modification, it can reduce the number of computation steps and time thanks to avoiding the randomization-based conditions. Moreover, the quality of the optimal solution of ECOA could be better than that of the original COA method.

The implementation process of the proposed ECOA method is shown in Fig. 2.

Fig. 2
figure 2

The whole search process of ECOA for a typical optimization problem

3.5 Comparing the general characteristics of the implemented methods

Based on the analysis from the updated equations of generating new solutions and the general characteristics of the implemented methods, the main features of these algorithms are summarized in Table 1.

Table 1 Comparing the general characteristics of the methods

In the paper, the four methods are implemented for determining position and capacity of DG units for reducing total power loss and total operating cost, and improving voltage profile. In order to replicate the application of the study, readers can follow the main documents below:

  1. 1.

    Forward/backward sweep technique (FBST) [39] is applied to run power flow for getting voltage of nodes and current of lines, and the main code of FBST is taken from [40].

  2. 2.

    The conventional SSA is described in [27], and the main code of SSA can be found from the link https://ch.mathworks.com/matlabcentral/fileexchange/63745-ssa-salp-swarm-algorithm?s_tid=srchtitle.

  3. 3.

    The conventional SFO is presented in [28], and the main code of SFO can be found from the link https://ch.mathworks.com/matlabcentral/fileexchange/69076-sunflower-optimization-sfo-algorithm.

  4. 4.

    The conventional COA is presented in [26], and the main code of COA can be found from the link https://ch.mathworks.com/matlabcentral/fileexchange/68373-coa.

4 Applying ECOA method to solve the optimal location and sizing of DGs

4.1 Population initialization of optimal DG problem

As mentioned, ECOA is developed on the basic of the COA [26]. Therefore, ECOA also includes two main components, Np and Nc in each package. The production of initial solutions of ECOA will follow the model as follows:

$$ S_{q,p}^{{}} = S_{{}}^{\hbox{min} } + r \cdot (S_{{}}^{\hbox{max} } - S_{{}}^{\hbox{min} } );\quad q = 1, \ldots ,N_{c} \quad \& \quad p = 1, \ldots ,N_{p} $$
(30)

In the equation above, Smin and Smax are the lower bound and upper bound of all control variables in each solution and can be described as follows:

$$ S_{{}}^{\hbox{min} } = [Pos_{k}^{\hbox{min} } ,AP_{k}^{\hbox{min} } ];\quad k = 1,\, \ldots ,\,N_{Dg} $$
(31)
$$ S_{{}}^{\hbox{max} } = [Pos_{k}^{\hbox{max} } ,AP_{k}^{\hbox{max} } ];\quad k = 1, \ldots ,N_{Dg} $$
(32)

In this study, the proposed method has been applied on systems with 33 buses, 69 buses and 85 buses where the minimum position of the kth DG is Bus 2; meanwhile, the maximum position of the kth DG is Bus NDg depending on the considered system. In addition, the limits of capacity for each DG will be predetermined by the designer and \( ({\text{AP}}_{k}^{\hbox{min} } ) \) as well as \( ({\text{AP}}_{k}^{\hbox{max} } ) \) must be within the constraints for the specific system.

After determining control variables for each solution, these variables are assigned to input data of power flow program for running and obtaining other remaining variables such as Ib,q,p and Vj,q,p. In order to satisfy all technical requirements and ensure that the proposed solution is appropriate for distribution system, the evaluation and penalty for each solution are always concerned. Thus, before calculating the fitness function to evaluate the quality of each solution, the penalties for voltage profile and branch current are checked and proceeded by using Eqs. (33) and (34):

$$ \Delta V_{j,q,p} = \left\{ {\begin{array}{*{20}l} {V_{j,q,p} - V_{j}^{\hbox{max} } } \hfill & {\quad {\text{if}}\,V_{j,q,p} > V_{j}^{\hbox{max} } } \hfill \\ {V_{j}^{\hbox{min} } - V_{j,q,p} } \hfill & {\quad {\text{if}}\,V_{j,q,p} < V_{j}^{\hbox{min} } } \hfill \\ 0 \hfill & {\quad {\text{else}}} \hfill \\ \end{array} } \right. $$
(33)
$$ \Delta I_{b,q,p} = \left\{ {\begin{array}{*{20}l} {I_{b,q,p} - I_{b}^{\hbox{max} } } \hfill & {\quad {\text{if}}\,I_{b,q,p} > I_{b}^{\hbox{max} } } \hfill \\ 0 \hfill & {\quad {\text{else}}} \hfill \\ \end{array} } \right. $$
(34)

As a result, the fitness function of the qth solution in the pth pack is computed as follows:

$$ {\text{FF}}_{q,p} = F_{{{\text{OF}}q,p}} + \varepsilon_{i} \sum\limits_{b = 1}^{{N_{\text{br}} }} {\Delta I_{b,q,p}^{2} } + \varepsilon_{v} \sum\limits_{j = 1}^{{N_{\text{bu}} }} {\Delta V_{j,q,p}^{2} } $$
(35)

After evaluating the quality of all solutions, the solution with the lowest quality in each pack is the best local solution (Sbest,p) and the solution with lowest quality in all packs is the best global solution (Sg_best).

In this paper, we solve a multi-objective problem with three single objectives including total active power loss (TAPL), voltage deviation index (VDI) and total operation cost (TOC). The three single objectives are, respectively, shown in Eqs. (1), (2) and (4). In addition to the objectives, the problem also considers two constraint sets including basic constraints regarding distribution network systems and advanced constraints regarding photovoltaic systems, which are placed in the systems. The basic constraint set is considered to be active power balance shown in Eq. (6), voltage limits shown in Eq. (7) and current limits shown in Eq. (8), whereas the advanced constraint set is comprised of power generation limits of photovoltaic systems shown in formulas (9)–(10) and location limits shown in Eq. (11). An optimal solution of the problem that is stored and reported in numerical results must be checked all constraints after each run based on the fitness function shown in Eq. (35). If the solution can reach FFq,p = FOFq,p, it is a valid solution and it is stored for reporting the performance. The result of FFq,p = FOFq,p means all constraints are exactly satisfied and the run can be called convergence, but the quality of the valid solution cannot be assured to be high. The power balance constraint (6) is always satisfied thanks to the flexibility of power source, which is represented as APGr. Power source can generate a high power (i.e., APGr can be high) if all DGs produce a low power (i.e., \( \sum\nolimits_{k = 1}^{{N_{\text{Dg}} }} {{\text{AP}}_{{{\text{Dg}},k}} } \) is low) and vice versa. Bus voltage and branch current are the two factors obtained by running FBST [39]. For all study cases in the paper, the maximum error of the two factors is set to 10−4 when running FBST. So, if the two factors can satisfy constraints (7) and (8), the accuracy of solution is always warranted. The two factors are included in fitness function, and they are penalized if violated. As a result, all the basic constraints are controlled and solved accurately. Other advanced constraints in formulas (9)–(11) are solved more easily because active power generation and location of DGs are decision variables. The location and active power generation of each DG are, respectively, verified and fixed. Clearly, constraints regarding DGs are always warranted to be accurate. Consequently, optimal solutions are valid with very high accuracy.

4.2 Processes of newly updated solutions

During this process, ECOA has two stages of generating new solutions. For the first stage, Eq. (28) is applied for generating the new solutions (Nc) in each pack (Np). All current solutions are replaced by new solutions. However, it is very different from the second phase where in each pack only one solution is chosen for the update by using Eq. (29). Thus, the new solutions in the first and second phases are \( S_{q,p}^{\text{new}} \) and \( S_{p}^{\text{new}} \), respectively.

4.3 Correction for the violated new solutions

After each solution is updated, the violation treatment for the new solutions is implemented. If any control variable exceeds its allowable limits, a conversion method is used. This method applies the upper and lower bound as constraints to all control variables as the model below:

$$ {\text{Pos}}_{{{\text{Dg}},k}} = \left\{ {\begin{array}{*{20}l} {{\text{Pos}}_{\text{Dg}}^{\hbox{max} } } \hfill & {\quad {\text{if}}\,{\text{Pos}}_{{{\text{Dg}},k}} > {\text{Pos}}_{\text{Dg}}^{\hbox{max} } } \hfill \\ {{\text{Pos}}_{{{\text{Dg}},k}}^{{}} } \hfill & {\quad {\text{if}}\,{\text{Pos}}_{\text{Dg}}^{\hbox{min} } \le {\text{Pos}}_{{{\text{Dg}},k}} \le {\text{Pos}}_{\text{Dg}}^{\hbox{max} } } \hfill \\ {{\text{Pos}}_{\text{Dg}}^{\hbox{min} } } \hfill & {\quad {\text{if}}\,{\text{Pos}}_{{{\text{Dg}},k}} < {\text{Pos}}_{\text{Dg}}^{\hbox{min} } } \hfill \\ \end{array} } \right. $$
(36)
$$ {\text{AP}}_{{{\text{Dg}},k}} = \left\{ {\begin{array}{*{20}l} {{\text{AP}}_{\text{Dg}}^{\hbox{max} } } \hfill & {\quad {\text{if}}\,{\text{AP}}_{{{\text{Dg}},k}} > {\text{AP}}_{\text{Dg}}^{\hbox{max} } } \hfill \\ {{\text{AP}}_{{{\text{Dg}},k}}^{{}} } \hfill & {\quad {\text{if}}\,{\text{AP}}_{\text{Dg}}^{\hbox{min} } \le {\text{AP}}_{{{\text{Dg}},k}} \le {\text{AP}}_{\text{Dg}}^{\hbox{max} } } \hfill \\ {{\text{AP}}_{\text{Dg}}^{\hbox{min} } } \hfill & {\quad {\text{if}}\,{\text{AP}}_{{{\text{Dg}},k}} < {\text{AP}}_{\text{Dg}}^{\hbox{min} } } \hfill \\ \end{array} } \right. $$
(37)

4.4 The termination condition of the iterative algorithm

The computing process of determining the position and capacity of DGs will be stopped when the iteration limit condition is met. The maximum number of iteration (ItMax) is predetermined, and the searching of optimal solution will finish when its iteration counter (It) equals the maximum number of iterations.

4.5 The whole search process of ECOA for optimizing the installation of DGs

The implementation process of the proposed ECOA method for finding optimal location and sizing of DGs is shown in Fig. 3.

Fig. 3
figure 3

The ECOA method’s flowchart for solving the optimal location and sizing of DGs

5 Simulation results and discussion

In this study, proposed method (ECOA) together with SSA, SFO and COA has been examined to determine the optimal location and sizing of DGs of three test systems, IEEE 33-bus, IEEE 69-bus and IEEE 85-bus radial distribution networks. At each investigated method, the simulation results have been collected through 50 runs (running times) by using MATLAB on a personal computer with processor- 2.0 GHz and RAM- 8.0 GB. In this section, the parameters of the applied methods used in the simulation process can be briefly described as follows:

  1. (1)

    To implement SSA method, c1 is a function of \( 2e^{{ - \left( {\frac{4It}{{It^{Max} }}} \right)^{2} }} \); c2 and c3 are generated numbers randomly in the interval of [0, 1] [27].

  2. (2)

    For setting parameter of SFO method, the day (d) and the sun (s) are selected to be 100 and 1, respectively, while the pollination (p) is chosen from 0.6 to 1 with a step of 0.2 [28].

  3. (3)

    To run COA and ECOA methods, the number of coyotes in each pack (NC) and the number of packs (NP) should be pre-surveyed to select parameters appropriately. This is considered as a main disadvantage of these methods. In this study, the number of packs is investigated from 4 to 6 and it is combined with the number of coyotes in each pack from 4 to 6. The results have shown that the suitable parameters for position and capacity of DGs in the considered cases are 5 for both NP and NC. Thus, the population equals 25.

  4. (4)

    In order to ensure a fair comparison as well as a complete convergence between the proposed method and the other methods, the maximum number of iterations for all networks has been investigated and chosen the appropriate values. In this study, for the 33-bus system, the proposed method (ECOA) is compared to others with the published iteration number from 30 to 60 for GA, PSO, GA/PSO, SA, BFOA and 150 iterations for BSOA. Besides, the proposed method has been compared with 3 implemented methods such as SSA, SFO and COA. The number of iterations for implemented methods is pre-investigated with different iteration number from 40 to 70 with the step of 10 iterations. Similarly, in the 69-bus system, the number of iterations for methods in previous studies such as GA, PSO, GA/PSO, SA, BFOA, HSA has been varied from 30 to 60. For the remaining methods such as SSA, SFO, COA and ECOA, the number of iterations is pre-surveyed from 50 to 80 and the step is 10 iterations. For 85-bus system, the survey results are selected from 60 to 100 with the step of 10 iterations for SSA, SFO, COA and ECOA. The results of the iteration selection survey have shown that the best results of implemented methods do not change when the number of iterations is greater than 50, 60 and 80 for 33-bus, 69-bus and 85-bus systems, respectively. In short, for the above implemented methods as SSA, SFO, COA and ECOA, the control parameters including population size (Nps) and maximum number iteration (ItMax) for three distribution networks are chosen as follows:

    • + ItMax equals 50, 60 and 80 for 33, 69 and 85-bus IEEE radial distribution power network, respectively.

    • + Nps equals 30 for SSA and SFO methods in three the distribution networks.

Moreover, the multi-objective function as indicated in Eq. (5) needs three weighted coefficients \( \omega_{A} \),\( \omega_{B} \) and \( \omega_{C} \) associated with the total power loss, the voltage stability and the total operational cost, respectively. Those weight values reflect the importance of each component contributing on the optimization result of the multi-objective function. In order to determine the most appropriate values of three weighted coefficients:\( \omega_{A} \),\( \omega_{B} \) and \( \omega_{C} \), we have tried many different settings for the coefficients where \( \omega_{A} \) should be greater than \( \omega_{B} \) and \( \omega_{C} \) should be the smallest [41]. In this paper, to discover the most suitable values of the weight factors, we have installed a single DG in IEEE 33-bus radial distribution network and executed the optimization problem for DG’s location and size through many attempts by using ECOA. As a result, different settings of the weight factors and corresponding values of the objective function FOF (also equal fitness function) are shown in Table 2.

Table 2 The impact of different settings of the weight factors in obtained objective functions

As shown in Table 2, the smallest objective function (FOF) of 0.3576 can be obtained by using \( \omega_{A} \), \( \omega_{B} \) and \( \omega_{C} \) of 0.50, 0.40 and 0.10, respectively. This result is similar to the setting of the three weight factors referred in [41] where three values of 0.5, 0.4 and 0.1 were also found to make the best setting. Consequently, we have adopted the selection for all study cases in the paper.

5.1 Case 1: IEEE 33-bus radial distribution power network

In this section, three DGs are considered to be connected in IEEE 33-bus radial distribution network shown in Fig. 4 [42]. The position of each DG can be placed at one of 32 buses from Bus 2 to Bus 33 excluding Bus 1, which is in charge of the slack bus. For finding a promising solution, the sum of rated power of three DGs is limited from 10% to 80% of the total load demand, which is 3715.0 kW. In addition, the size of each DG is also constrained by the limit not higher 2000 kW.

Fig. 4
figure 4

The IEEE 33-bus distribution system

Table 3 presents the best simulation results of the investigated methods as well as the referenced results from other existing methods for the same test system. As shown in Table 3, the total power loss and the smallest bus voltage without installing DGs are 211.0 kW and 0.9038 pu, respectively, while installing three DGs according to the solution determined by the proposed ECOA method reduces the total power losses dramatically to 74.6 kW and improves the smallest voltage significantly up to 0.9666 pu. This comparison shows that total power loss and voltage profile are actually improved if DGs can be properly connected in the distribution system.

Table 3 The comparison of results obtained by the proposed ECOA and other methods

As comparing the performance of the proposed method and other methods, it is hard to reach better solutions with better values for all three single objectives. In fact, this is a popular issue in solving multi-objective optimization problem including many different objectives. Thus, it should bring up appropriate comparison criteria for evaluating the performance. In the considered problem, the three criteria of the comparison should be pointed out as follows:

  1. 1.

    Fitness function: the fitness function is an evaluation function of obtained solutions. Basically, the fitness function is the sum of the multi-objective function and penalty terms. In case penalty terms are equal to zero, the fitness function and the multi-objective function are the same. Thus, a solution with the lower fitness value is definitely a better solution although three individual objective functions cannot be simultaneously smaller than those of other solutions.

  2. 2.

    Control parameters: the setting of control parameters, such as the population size and the maximum number of iterations, significantly influences the quality of optimal solutions. Therefore, those settings should be used as a comparison criterion and, for comparison purpose, we need merging two parameters, population and iterations, into the number of fitness function evaluations (Nffe).

  3. 3.

    Simulation time: simulation time is also an important comparison criterion to prove potential search speed of methods. This criterion is applied to confirm one more time about the search speed of the proposed method. Basically, one method is run by setting lower value to Nffe, the simulation time of the method will be shorter.

Based on the three comparison criteria, we can compare the performance of ECOA and other similar methods to verify the effectiveness of the proposed approach. According to the fitness function value (value of the multi-objective function), ECOA can make the best optimal result as compared to all other methods where ECOA’s best solution gets 0.2581 but other compared results are higher, from 0.2583 to 0.3783. It means that the proposed method can find the better solution with lower fitness values from 0.0002 to 0.1201. According to the convergence speed based on the number of fitness function evaluations, the proposed method is one of the fastest methods with Nffe = 1250 compared to other methods with Nffe from 1500 to 5000. The shortest simulation time of the proposed ECOA method can confirm its faster search speed than COA, SFO and SSA. Other methods in previous studies have not shown the simulation time for comparison. However, the comparison of Nffe also indicated the speed superiority of the proposed method over these methods. Consequently, it can conclude that the proposed ECOA method is superior to other methods in terms of higher quality solution and faster search implementation. Furthermore, to show the improvement level of the proposed method over other investigated ones, we visualize the performance of SFO, SSA, COA and ECOA in Fig. 5 showing the fitness functions of 50 trial runs and Fig. 6 presenting convergence curves for the best and worst runs of 50 trial runs. Clearly, the solution of ECOA at the 25th iteration can be shown a better quality than that of three other methods in the best trial run and the remaining solutions seem to fall into the local search area.

Fig. 5
figure 5

The fitness function of 50 trial runs

Fig. 6
figure 6

The convergence curves for the best run and the worst run of 50 iterations

However, depending on the application purpose, each single objective of the multi-objective function can be analyzed individually for evaluating the contribution of the DGs installation in the distribution network. For example, we can consider the aspects about less total power losses, better maximum voltage deviation and less total operation cost, and then convert the values into the improvement level in percent by applying Eqs. (33) and (34). Therefore, Table 4 presents more details about the individual single objectives of ECOA and their improvements as compared to other methods’ results. In three individual objectives of ECOA, it can get the better power loss and total operation cost, but it suffers from worse voltage improvement as compared to GA [14], PSO [14], GA/PSO [14] and SA [15]. The proposed method can find less power loss than other methods from 6.83 kW to 31.1 kW as compared to SA [15] and GA [14]. Likewise, the corresponding values are the improvement level from 8.32% to 29.2568%. The operation cost of ECOA is also less than by from $297.50 to $3026.30 corresponding to the improvement level from 2.3487% to 19.6572%. But the proposed method cannot reach better maximum voltage deviation than the four methods and the improvement level is in negative range from − 1.5088% to − 0.1550%. As compared to COA, SSA, BFOA [22] and BSOA [20], the proposed ECOA approach can effectively reduce the total power loss from 1.4 kW to 14.7 kW and efficiently improve voltage from 0.0011 pu to 0.0107 pu, but the total operation cost of ECOA is higher than that of these mentioned methods. Accordingly, the improvement level of total power losses is from 1.8421 to 16.3515% and the voltage improvement level is from 0.1170 to 1.1199%. The comparison with SFO is the best observation for the ECOA’s performance since three individual objectives of ECOA are better than those of SFO where the reduction in total power loss, the improvement of voltage level and the saving of operational cost are 1.30 kW, 0.0055 pu and $77.50, respectively. Similarly, the improvement level in percent of obtained results can be shown: the improvement level of power losses, the improvement level of voltage, and the improvement level of operational cost are 1.7128%, 0.5723%, and 0.6114%, respectively. As a result, the proposed method is actually more effective than the comparative methods and it can be seen as a strong method to solve the optimal location and capacity of DGs in the distribution system.

Table 4 Analysis of contribution of different methods to the 33-bus IEEE transmission power network thanks to the installation of DGs
$$ {\text{Saving}}\,{\text{of}}\,{\text{components}} = {\text{The}}\,{\text{value}}\,{\text{of}}\,{\text{a}}\,{\text{compared}}\,{\text{method}} - {\text{The}}\,{\text{value}}\,{\text{of}}\,{\text{ECOA}} $$
(38)
$$ {\text{Improvement}}\,{\text{level}}\, ( {\text{\%}}) = \frac{{{\text{The}}\,{\text{value}}\,{\text{of}}\,{\text{a}}\,{\text{compared}}\,{\text{method}} - {\text{The}}\,{\text{value}}\,{\text{of}}\,{\text{ECOA}}}}{{{\text{The}}\,{\text{value}}\,{\text{of}}\,{\text{ECOA}}}} \times 1 0 0 $$
(39)

5.2 Case 2: IEEE 69-bus radial distribution network

In this case, three DGs are also considered for the integration to IEEE 69-bus radial distribution power network as Fig. 7 with the goal of determining location and sizing of DGs accordingly [6]. Similar to IEEE 33-bus system, the position of each DG will vary from Bus 2 to Bus 69 and the capacity will not exceed 2000 kW for each DG. Besides, the total capacity of three DGs will be constrained in the range from 10% to 80% of the total load, 3802.0 kW.

Fig. 7
figure 7

The IEEE 69-bus distribution system

In Table 5, the collected results from the ECOA proposed method and other methods are compared together. Similar to the simulations of IEEE 33-bus distribution network, the total power loss can be reduced significantly when properly connecting DGs in IEEE 69-bus distribution network. Before DGs are connected, the total power loss is 224.5 kW. However, after connecting DGs according to the ECOA’s solution, the power loss significantly decreases to 71.8 kW. In addition, the voltage profile also is improved positively where the lowest bus voltage without any DGs is 0.9092 pu, but it is significantly improved up to 0.9784 pu after properly integrating DGs in this system. This strongly demonstrates that the suitable installation of DGs in distribution networks not only minimizes total power loss but also improves the voltage stability.

Table 5 The comparison of results obtained by the proposed ECOA and other methods

Similar to the previous case, the simulations and the result analysis focus on comparing the fitness function and control parameters from various meta-heuristic methods to evaluate their effectiveness. As shown in Table 5, the fitness function found by ECOA is the lowest value with 0.2260, while other compared methods are in a range from 0.2264 to 0.2837. In addition, the number of fitness function evaluations of ECOA is only Nffe = 1500, which is lower than that of the other methods varying from 1800 to 5000 excluding COA with Nffe = 1500. Therefore, the optimal solution search speed and process data storage memory of the proposed method are actually better than other compared methods. In fact, the simulation time of the proposed method is the shortest among four implemented methods, whereas the time of other methods in previous studies has not been reported. Furthermore, to show the improvement level of the proposed method over other investigated ones, we visualize the performance of SFO, SSA, COA and ECOA in Fig. 8 showing the fitness functions of 50 trial runs and Fig. 9 presenting convergence curves for the best and worst runs of 50 trial runs. The convergence curve of ECOA performed quite well when the best solution is found in the 42nd iteration in the best trial run, while other solutions are stuck in the local optimization with low performance.

Fig. 8
figure 8

The fitness function of 50 trial runs

Fig. 9
figure 9

The convergence curves for the best run and the worst run in 60 iterations

However, to comprehensively evaluate the effectiveness of compared methods, the analysis of single objective functions is essential as presented in Table 6 where those values are calculated by applying Eqs. (33) and (34). As we can see in Table 6, the proposed method is more effective than GA [14], PSO [14], GA/PSO [14], SA [15] and BFOA [22] in reducing total power loss and saving operation cost. Specifically, it saves from 2.63 to 16.30 kW corresponding to improvement level from 3.4959 to 18.3352%. Besides, it can save from $115.90 to $4717.50 for the operation cost corresponding to the improvement level from 1.0790 to 30.7469%. However, in this particular case, the ECOA’s ability in improving the voltage level is not as good as other compared methods where the lowest bus voltage is dropped from − 0.0154 pu to − 0.0112 pu corresponding to the voltage improvement level in percentages from − 1.5499 to − 0.2956%. By the comparison between ECOA and other methods, we can see that the proposed method is more effective for two of three individual objective functions. For example, the performance of ECOA is better than that of HSA, SSA, SFO and COA, by two individual objectives of reducing losses and improving voltage. In more details, its total power loss is lower than others from 0.70 kW to 14.17 kW corresponding from 0.9655 to 16.3305%. In addition, the lowest bus voltage of ECOA is greater than that of the compared methods from 0.0008 pu to 0.0112 pu which are converted to percentages of the improvement level from 0.0798 to 1.1582%. However, in terms of operation cost, ECOA is not a positive approach compared to other methods and the improvement values are negative varying from − 271.50 dollars to − 1414.20 dollars corresponding to the percentage from − 15.3529 to − 2.5535%.

Table 6 Analysis of contribution of different methods to the 69-bus IEEE transmission power network thanks to the installation of DGs

5.3 Case 3: IEEE 85-bus radial distribution network

In this case, multi-objective function and single objective function are considered as two types of objective functions for an objective evaluation between the proposed method and other methods. For multiple objective functions, there are three DGs considered for installation in the system. For single objective function, the total power loss reduction is considered and only single DG is integrated into the system.

5.3.1 Multi-objective function

For the IEEE 85-bus radial distribution network as Fig. 10 [43], the multi-objective function is similar to the two considered systems above. Similarly, the total capacity of all DGs must not exceed 80% and not be less than 10% of the total loads, 2570.3 kW. In addition, the capacity of each DG is changed from 0 kW to 2000 kW and the search position is in the range from bus 2 to bus 85.

Fig. 10
figure 10

The IEEE 85-bus distribution system

The proposed method (ECOA) is compared with implemented methods with three criteria in the multi-objective function as shown in Table 7. Clearly, the total power loss is drastically reduced from 316.1 to 152.5 kW after connecting suitable DGs to the distribution system. In addition, the lowest bus voltage is also significantly improved from 0.8713 pu to 0.9513 pu through this appropriate integration. Similar to the two considered systems above, for this system, DGs also have a positive impact and can bring many benefits when they are integrated into the system appropriately.

Table 7 The comparison of results obtained by the proposed ECOA and other methods

The best fitness result of ECOA is 0.3398 and lower than the compared methods from 0.008 to 0.051. This index shows the effectiveness of methods in solving the same optimization problem. In addition, the number of fitness function evaluation (Nffe) of ECOA and COA is 2000, while SSA and SFO have the same value of 2400. The simulation time of ECOA is also the fastest among four methods. This proves that the proposed method can help to minimize the data processing process and enhance the search speed better than other methods.

In addition, the best fitness value of the proposed method and the compared methods in the 50 trial runs is shown in Fig. 11. Furthermore, Fig. 12 presents the convergence curves of the best and worst trial runs of implemented methods. The convergence characteristics of ECOA are quite good, and the best solution is found by ECOA at the 43rd iteration. Clearly, these figures show that ECOA finds better optimal solutions with more stability than other remaining methods.

Fig. 11
figure 11

The fitness function of 50 trial runs

Fig. 12
figure 12

The convergence curves for the best run and the worst run in 80 iterations

However, for objective evaluation, the components in the multi-objective function are also necessary for consideration. Like Table 8, the proposed method (ECOA) is compared with SSA and SFO in the three values of the total power loss, voltage profile improvement and total operation cost. ECOA demonstrates its effectiveness when the solution outperforms the others. Specifically, ECOA can save from 0.4 kW to 1.1 kW corresponding to improvement level from 0.2616 to 0.7161%. For voltage profile improvement, it has improved for the weakest bus voltage from 0.0012 pu to 0.0013 pu, corresponding to 0.13–0.14% in the voltage improvement level. In addition, ECOA can save money from $44.00 to $352.50 corresponding to the improvement level from 0.4306 to 3.3486%. Along with the above two methods, ECOA is also compared with COA. In this case, ECOA helps to save total operation cost up to $89.10, which corresponds to 0.8681% in the improvement level. Besides, it has also improved the voltage profile better than the COA with further enhancing the lowest bus voltage to 0.0013 pu and 0.14% of the improvement level.

Table 8 Analysis of contribution of different methods to the 85-bus IEEE transmission power network thanks to the installation of DGs

Finally, according to the evaluation criteria, such as the fitness function, control parameters and simulation time, we can conclude that the proposed ECOA method is actually effective for solving optimization problems where its performance is superior to that of all other compared methods. Optimal solutions obtained by the proposed method and other ones are reported in Tables 10, 11 and 12 for the IEEE 33-bus network, IEEE 69-bus network and IEEE 85-bus network, respectively.

5.3.2 Single objective function

In this case, the proposed method is compared to other methods such as whale optimization algorithm (WOA) [44], combined power loss index-whale optimization algorithm (PLI-WOA) [45] and COA in a single objective function of minimizing total power loss on branches. The capacity of each DG is changed from 0 kW to 3000 kW, and the search position is within the limit of from bus 2 to bus 85. As comparing the ECOA to other published methods, the voltage constraints are extended from 0.9 pu to 1.1 pu and the surveyed iteration number is equal to the compared methods. As shown in Table 9, the ECOA method has reduced the total power loss significantly from 316.1 kW to 175.5 kW. Furthermore, voltage profile is also drastically improved where the weakest bus voltage is increased from 0.8713 pu to 0.9282 pu. Clearly, the best solution proposed by ECOA and COA is the same and better than WOA and PLI-WOA. However, over 50 trial runs ECOA can find 44 the best solutions, but it is only 26 the best solutions for COA. This proves that ECOA is more stable than the COA and it has better performance than other methods.

Table 9 The comparison of results obtained of single DG by the proposed ECOA and other methods

5.4 Discussion on the improvement and contribution of ECOA

The proposed enhanced coyote optimization algorithm (ECOA) is developed by performing some modifications on conventional coyote optimization algorithm (COA). COA executes two times for solution update per iteration by using Eqs. (20) and (24). The whole population is newly updated in the first time corresponding to the generation of Nps new solutions, while only one solution is produced for each solution pack in the second time corresponding to the generation of Np new solutions. Thus, the effectiveness of COA is mainly based on Eqs. (20) and (24) where Eq. (20) has more significant impact than Eq. (24). However, the main disadvantages are found in the two formulas and the solutions of overcoming the disadvantages are to form the real efficiency of the proposed ECOA method. Equation (28) is proposed to reach high efficiency for the first update; meanwhile, Eq. (29) is proposed to replace the less effectiveness of the second update of COA. The two proposed formulas have changed search spaces of COA into other search spaces.

In the first update, COA selects a central solution for updating the new solutions in each pack. As explaining in [26], a central tendency or a central social condition of all coyotes can lead to creating higher quality new solutions. In other words, based on this central solution, each coyote could produce a new solution better than the current solution in the searching area. However, in various optimization problems, the central solution seems not to be a positive selection. Similarly, in this study, we found that the use of central variables to produce new solutions in Eq. (20) is really ineffective. In terms of natural and mathematical phenomena, the trend of finding better solutions is not clearly related to the central social condition. In some cases of the Benchmark optimization functions [26], there are central variables of “zero value” making this method effective. However, it should be noted that in the cases, the “zero value” solution (or central solution) is a useful item because it lies between the lower and the upper bound of variables. However, this does not fit to all optimization problems because in general good solutions do not locate around the central solution.

In the second update, the three random conditions in Eq. (24) show the huge impact of randomization on the newly produced solutions. There are three ways to produce new control parameters in which CVk,r1,p and CVk,r2,p in the first and the second ways are the control variables randomly chosen from the first solution and the second solution in the pth pack, whereas CVk,rd in the third way is the kth control variable which is randomly generated in the range of \( \left[ {CV_{k}^{\hbox{min} } ,\,CV_{k}^{\hbox{max} } } \right] \). Clearly, the combination of the three randomizations cannot lead to an effective solution with high quality excluding the diversification of generated control variables. So, the randomization technique should be abandoned and replaced with a more promising technique by using Eq. (29).

In summary, the modifications on the first and the second update techniques of COA can eliminate the following existing main drawbacks

  1. 1.

    Not to produce tendency solution in the first update. The process of finding the tendency solution is complicated and time consuming. So, the elimination of the solution can shorten the computation steps and reduce simulation time.

  2. 2.

    Eliminate the randomization combination and avoid the huge impact of the randomization. The randomization technique is time consuming and ineffective. So, the replacement of the second update can support ECOA to find more promising solutions and reduce computation steps and simulation time.

The two existing main drawbacks of COA are also the two main contributions of the proposed ECOA that can be seen clearly by observing the results shown in tables and figures. The best fitness function of 50 trial runs for three study networks with 33, 69 and 85 nodes indicated ECOA is always more effective than COA and approximately all 50 runs of ECOA can reach better fitness function. The improvement of ECOA over COA is, respectively, 0.0774%, 0.1723% and 0.2348% for the 33-, 69- and 85-bus distribution networks. Clearly, the improvement is more significant for larger-scale system. In particular, for the largest system with 85 nodes and single objective function, ECOA can find the best solution 46 times for 50 runs, whereas COA only finds the best solution 26 times. In addition, average simulation time for each run is also reported in Tables 3, 5 and 7 for COA, the proposed ECOA and other implemented methods including SSA and SFO. The simulation time of other methods in previous studies has not been reported for comparison. The simulation time of COA and the proposed ECOA is respectively 1.328 and 1.284 seconds for the 33-bus system, 3.646 and 3.579 seconds for the 69-bus system, and 7.442 and 7.347 for the 85-bus system. The time comparison can show the faster search of ECOA. Although the time reduction is not significant, the proposed method can reach less fitness function than COA for approximately all study cases.

Finally, through statistically analyzing the experiment results in three standard power systems, i.e., IEEE 33-, 69- and 85-bus radial distribution networks, we can withdraw some general comments about the performance of the proposed ECOA approach and the paper’s contributions as follows:

  1. 1.

    Clarity: analyzing the experiment results we can conclude that properly integrating DGs in the power distribution networks really improves the network’s operation in all considerable aspects, such as reduction in the power losses, improvement of the voltage stability and minimization of the operational cost. The proposed ECOA method can be effectively solved the optimal location and size of DGs in the power distribution networks where the general multi-objective function is the combination of three individual objectives.

  2. 2.

    Originality: COA inspired from the natural behaviors of coyotes is a new meta-heuristic algorithm which has just been published in 2018. Thus, this paper is the first research applying COA and the proposed ECOA methods for the multi-objective optimization problem of solving the optimal location and size of DGs in the power distribution networks.

  3. 3.

    Superiority: compared to other recently similar methods, the proposed ECOA method is superior in terms of higher quality solution, faster search implementation and shorter simulation time. According to the general multi-objective function (fitness function value) consisting of three individual objectives, ECOA can find the best optimal result. Similarly, according to the convergence speed based on the number of fitness function evaluations and simulation time, ECOA is the fastest methods.

  4. 4.

    Novelty: the proposed ECOA method is developed with two essential modifying ideas to overcome the disadvantages of the original COA which are slow convergent to low-quality solutions. The first one is replacing the central solution by the best current solution that is the most dominant quality solution of a group. Thus, creating a new solution using the best current solution obviously is a positive and effective way better than using the central solution. The second idea is proposing a new solution generation technique that can reduce the number of computation steps and process time thanks to avoiding the randomization-based conditions.

6 Conclusion

In this paper, a multi-objective problem with three single functions including power loss reduction, voltage deviation index and total operation cost has been solved by the application of SSA, SFO, COA and the proposed ECOA. Location and capacity of DGs in the 33-bus, 69-bus and 85-bus radial distribution systems have been found for determining the multi-objective function and implementing comparison. The comparison criteria have been applied to evaluate the proposed method including the fitness function, control parameters and simulation time. The proposed ECOA method was superior to COA, SSA and SFO in terms of using smaller control parameters, taking shorter simulation time but finding much better fitness function. As compared to COA, SSA and SFO, the improvement of the best solution from the proposed method was, respectively, 0.0774%, 0.4244% and 2.1978% for the 33-bus system, 0.1723%, 0.7858%, and 1.2194% for the 69-bus system, and 0.2348%, 0.4395% and 1.4787% for the 85-bus system. The comparisons with other previous methods have indicated the significant improvement of the proposed method. The improvement was up to 31.7491%, 20.2143% and 22.7213% for the three employed test systems, respectively. Furthermore, the proposed method has been much faster than these previous methods because it has been run with smaller number of fitness function evaluations than these previous methods. As a result, the proposed method could be used as a powerful method for the multi-objective problem. In the future, ECOA will be tried for larger and more complex networks with many devices already connected on the grid such as capacitor banks, voltage regulators, switches and filters. For more details, ECOA will be considered to apply for solving optimization problems in the co-simulation between MATLAB and OpenDSS software in complex multi-phase unbalanced networks under variable load conditions. Obviously, ECOA promises to be an effective algorithm with high stability and reliability in solving various optimization problems.