Butterfly optimizer assisted Max–Min based multi‑objective approach for optimal connection of DGs and optimal network reconfiguration of distribution networks

Currently, the electrical distribution system is experiencing challenges such as low system efficiency due to substantial real power losses, a poor voltage profile, and inadequate system loadability as a result of the tremendous increase in system load demand. Therefore, distribution system operators are searching for ways to improve system efficiency and loadability. Distributed Generation technology has attracted a lot of researchers’ interest in recent days because of its enormous technological advantages in dealing with the aforementioned issues. This work presents a Max–Min based multi-objective optimization approach for optimal connection of distributed generators (OCDG) in the presence of optimal distribution network reconfiguration (ODNR) to enhance the system loadability ( (cid:31) max ) and to reduce real power loss. Two scenarios are taken to achieve the proposed objectives. Scenario-1 deals with the enhancement of loss mitigation & system loadability. In scenario-2, to extract maximum benefits with less amount of real power injection by DGs into the system, DGs real power injection is taken as one of the objectives. Under each scenario, three cases are investigated. Case 1 and case 2 deal with single-objective optimization, whereas case 3 deals with multiobjective optimization. The butterfly Optimization (BO) technique is implemented for the optimization of proposed objectives. The proposed method is tested on 33 bus, 69 bus radial distribution test systems. To test the potential of the BO algorithm, the outcomes are contrasted with the suitable results that are accessible in the literature. From the outcomes, it was observed that real power loss of the system is reduced to (75–89)%, loadability enhanced to (94–121)% with the injection of 64% KVA by DGs into 33 & 69 bus systems.

find the best location for Type-1 DGs and Type-3 DGs (0.85 leading power factor) under three different load levels of the distribution network to reduce power loss. The best percentage of loss reduction is obtained when Type-3 DGs are placed optimally in the distribution network, according to the results. A TLBO-GWO optimization technique was used by the authors of [18] to place Type-1 DG's and Type-3 DGs with optimum power factors in the distribution network in order to reduce I2R loss and improve reliability. For Type-3 DGs operating with an optimized power factor, the appropriate placement of these DGs minimizes network power loss to the lowest possible value, as evidenced by the above-mentioned articles. Therefore, in this work, we have chosen the best possible placement of Type-3 DGs with an optimized power factor in order to meet our goals. In order to fulfil the goals of reducing real power loss, improving voltage profile, and balancing the load, an optimal distribution network reconfiguration issue is designed to determine the on/off status of tie and section switches positioned in the system by satisfying the technological restrictions. Bacterial foraging optimization techniques [19,20] are used to construct an improved selective BPSO algorithm for the optimal network reconfiguration problem to reduce I 2 R loss. In [21,22], a mathematical objective function is devised to reduce real power loss and improve the voltage profile of the network. According to [23], there is a Multi-objective Max-Min strategy for minimizing I 2 R loss, load balancing between branches and feeders, and the amount of switch operations. Type-1 DGs have been handled in [8,24] to reduce the system's I2R loss using simultaneous ODNR and appropriate connection of Type-1 DGs. With the novel UVDA optimization technique, researchers in [25] attempted to minimize the real power loss in the distribution system by connecting Type-3 DGs optimally while also addressing optimal network reconfiguration issues.
Some researchers took the OCDG and ODNR problems for enhancing the loadability of the network. Loadability ( max ) of the system is termed as the maximum increase in network load level before the system voltage instability occurs. Figure 1 depicts loading curves A & B of a system without & with the connection of DGs, respectively. From Fig. 1, it is observed that curve B has a better system loadability than curve A, due to the connection of DGs optimally in the system and reconfigured network. And also from Fig. 1, it is noticed that enhancement in system loadability also improves the network voltage profile, i.e., at each loading level, curve B has a better voltage magnitude in comparison with curve A.
Authors in [26][27][28] addressed the ODNR problem to enhance the system loadability make use of a fuzzy adaptation of the optimization algorithm, discrete ABC algorithm, enhanced HSO algorithm, respectively, and deduced that the ODNR enhances system loadability. In [29], the OCDG problem has used for the improvement of system loadabilty employing the hybrid PSO-k-matrix algorithm and drawn a conclusion that with 40% of real power injection by DGs into the system, real power loss mitigated to 65-70%, loadability improved to 15-40%. Researchers in [30], taken the OCDG and ODNR problems at a time for enhancement of system loadabilty and concluded that utmost enhancement of system loadabilty is noted in the case of DGs connected optimally in the optimal reconfigured network. From the latter two papers, it was observed that even though the system loadability is improved to utmost value but the percentage of real power loss mitigation is not up to the mark. And also, from the papers [29,30], it was observed that improving the loadability of the system also improves the voltage profile of the system. Therefore, in this work authors considered the improvement of real power loss reduction and loadability of the system only which in turn also improves the voltage profile of the system. Since loadability of the system should be improved concerning the 100% load level of the system, in this work authors had not considered the load variations of the system. To extract the maximum number of benefits with less amount of power injected by DGs into the system, in this work authors have taken DGs penetration level as one of the objectives. To improve more than one objective at a time, researchers in [7,[10][11][12]17] used either weightedfactor or Pareto-based or Max-Min based multi-objective methods. Among them, Max-Min based multi-objective method had advantages like no need to bother about weights or formation of the fronts. And also, since DGs penetration level is taken as one of the objectives, drive the authors of this work for selecting max-min multiobjective method rather than pareto-based multi-objective method.
Therefore, in this work, the multi-objective approach with the Max-Min method is used to mitigate the real power loss and maximize the system loadability ( max ) . To improve the desired objectives two scenarios are considered, i.e., without and with DGs real power injection objective function. Under each scenario three cases are considered, i.e., optimization of single objectives is considered in case-1 & case-2, multi-objective optimization is considered in case-3. And each case having two sub-cases, the optimal connection of DGs in the initial configured network and the optimal connection of DGs in the optimal reconfigured network. BO algorithm is chosen to optimize the proposed objectives. The rest of the paper is organized as follows, section-2 introduces the mathematical formulation aspects of the work done in this work, section-3 will give brief insights of the BO optimization technique and thorough implementation aspects of it, Sect. 4 will illustrate the scenarios taken in this work and the associated results.

Network real power loss
Real power loss (P loss ) have to be minimized for the enhancement of distribution system efficiency.
where, J and R are branch current and branch resistance vectors of size nbr (number of branches). Backward/forward sweep-based load flow [31] is used to obtain P loss .

Loadability of the system
System loadability ( max ) have to be maximized with a view for future load enhancement on the system.
To obtain the max of the system, authors had used the method developed in [32].

DGs penetration level
Placing of Distributed Generators in the distribution network changes the distribution system characteristics [33,34] as bi-directional power flows, changing the passive distribution system network to active distribution network, change in fault current levels, etc. Therefore, to maintain the quality of the network, some of the authors in the literature limited the DG's real power injection into the distribution system. Authors in [9,29,35] limited the DGs real power penetration into the distribution system to 40% and 50%, respectively, and Authors in [36] taken DGs penetration level as one of the objectives and limited the DGs real power penetration into the system without violating stability margins. And also, from the literature, it was observed that at lower DGs penetration levels, a significant increase in DGs penetration level results in significant improvement in technical parameters. But at higher DGs penetration levels, a significant increase in DGs penetration level results in an insignificant improvement in benefits of the system. Therefore, in this paper, instead of limiting DGs real power injection to a fixed percentage say 40% or 50%, authors considered DGs penetration level as one of the objectives in scenario-2 along with the objectives considered in scenario-1, and a detailed analysis is presented in result section between scenario-1 and scenario-2 outcomes.
The mathematical modeling of the DGs real power injection into the system is taken as one of the objectives.
where P DG,k is the real power delivered by the kth DG unit, P T ,DG is the total real power delivered by the DGs units. (1)

Max-Min method
In [23], the authors addressed the multi-objective Max-Min method for optimal network reconfiguration problem to select the comprised solutions between the objectives. The Max-Min method contains a Membership function for each objective function and has a value in the range [0-1]. The membership function for the minimization of the kth objective function is given as follows.
where F k ,F max k , and F min k are the kth objective function value, maximum and minimum values of the kth objective function, respectively. For maximization of the kth objective function, reciprocal of kth objective function value, minimum and maximum values of the k th objective function have to take to get F k , F min k , and F max k , respectively. The value of F min k is taken from the outcome of that single-objective optimization, the value of F max k is taken from the base load flow results. Since the F max k is subtracted from the F k in the numerator of the Membership value ( MF k ) of an objective function, the objective function with the highest MF k value is well improved and the objective function with the lowest MF k value is less improved in terms of minimizing the objective function. Then a fuzzy decision for a comprised solution is defined as the choice of maximizing the lowest MF k value. In other words, the multiobjective function is transformed into a single objective by maximizing the minimum value among all membership values as follows: The above maximization problem is converted into a minimization problem is as follows

Constraints
The following constraints need to satisfy for the optimal network reconfiguration and connection of DGs to the distribution system. a. The voltage magnitude of the buses in the system should be within the permissible limits.
where nb is the total number of buses are there in test system. In this paper, we have taken.
|V min |= 0.95 p.u. and |V max |= 1.05 p.u. b. The magnitude of current in each branch should be less than the maximum current rating of the respective branch. where nbr is the total number of branches. c. Power injected by each DG ( P DG,k ) must be less than the maximum power limit of DGs.
where ndg is the number of DGs connected to the system. In this paper, the maximum real power injection by DGs ( P max DG,k ) limited to the total real power demand supplied by the DGs. d. Power factor of DGs must be between the minimum ( pf min k ) and unity power factor limits.
In this paper, the minimum power factor of the DG unit is limited to 0.8. e. Total real power ( P T ,DG ) and reactive power injected ( Q T ,DG ) by DGs must be less than the distribution system real ( P load ) and reactive power ( Q load ) demand.
f. Power balance constraints.
where P sub , Q sub are the real and reactive power demands at the substation. g. The ODNR problem requires checking the radiality status of the network. In this work spanning tree technique is used for checking the status of network radiality [37].

DG Placement performance indices
The following performance indices are considered to evaluate the impact of optimal DGs connection and optimal network configuration on the distribution system.
a. Percentage Real power loss reduction where P b loss is the base case real power loss of the system, P (DG+NR) loss is the real power loss of the system after placement of DGs and network reconfiguration.

b. Percentage Maximum Loadability improvement
Where b max is the base case maximum loadability of the system, is the maximum loadability of the system after placement of DGs and network reconfiguration.

Butterfly optimization algorithm
In the literature, various researchers have taken several optimization algorithms for the OCDG and ODNR problems. According to the "No Free lunch theorem, " no optimization algorithm gives exceptional results for all optimization problems. An optimization algorithm may give admirable results for some set of optimization problems and may give inferior results for another set of optimization problems. Performance-wise, all optimization algorithms are indistinguishable while solving a whole set of optimization problems. However, while choosing an optimization problem author of this paper have taken care of few things like since finding loadability of the distribution system is a very tedious process, authors try to avoid optimization algorithms with a two-stage evolutionary process like in cuckoo search algorithm, TLBO algorithm, etc., and algorithm should be easy in implementation. Since the Butterfly optimization (BO) algorithm is a new one and advantages like the ease in implementation have driven the authors to use this algorithm [38][39][40].
Sankalp A and S Singh developed the butterfly optimization (BO) method, a population-based meta-heuristic optimization strategy [41]. By drawing inspiration from butterfly mating and food seeking habits, the algorithm was created. They will rely on their sense of smell to find food and a partner for mating. In the process of searching for food, butterflies will release aromas with some force, and the potential of the scents/aromas is relative to the quantity of food source in the butterfly's neighborhood. It will emit a scent that will be picked up by others. If the other butterflies in the cluster are able to detect the aroma, they will move toward it. From one location to the next, butterflies will travel about in search of a good food source in this manner.
It is assumed that all butterflies are searching agents in the BO algorithm. Each agent will be assigned a specific location and a distinct fragrance. The scent of the agents is linked to the performance of the objective functions. In Eq. 18, the aroma's mathematical representation is provided.
where f, I, c & a are the magnitude of the aroma, stimulus intensity, sensor modality and power exponent. In the algorithm, I is taken as the fitness of the respective searching agent.
All agents will move to the new positions as per mathematical formulated Eqs. 19 & 20. where in the above vectors, L indicates DGs locations, S indicates DGs sizes and pf indicates DGs power factors. 4. Generate initial solutions using Eq. 23 as follows A set of initial solutions generated using Eq. 23 is depicted in the matrix as follows (19) . And then calculate objective function value or fitness value for each solution set in the matrix X using Eq. 26.
As a whole, the whole fitness calculation method for all the agents is depicted in Eq. 27 Find the solution with minimum objective function value (of ) value and declare the corresponding solution set from matrix X as the global best solution.
6. Set iteration count = 0. 7. Update the aroma/fragrance of butterflies using Eq. 18. 8. Update the solutions of each agent using Eq. 19 & Eq. 20. 9. Calculate the objective function value or fitness value of each updated agent using the sequential process followed in Step 5. 10. Perform greedy selection between updated solutions and old solutions. 11. Update global best solution. 12. If the iteration count is less than the maximum number of iterations repeat steps 6-11 else print out the results such as global best solution, objective function values.

Results and discussion
In this section, the proposed BO technique for enhancement of the system loadability ( max ) and real power loss mitigation is applied on 33 & 69 bus distribution test systems for the scenarios and cases shown in Table 1. In turn, each case is divided into two sub-cases a) optimal connection of DGs in the initial network without application of ODNR problem b) Optimal connection of DGs in the optimal reconfigured network which is obtained from the ODNR problem. The tuned BO algorithm parameters are shown in Table 2. All the simulations are implemented in MATLAB R2017a platform and carried out in computer having Core i7 7200U 3.10 GHz, 16 GB RAM.

Bus radial distribution system
The line & load data of the system is taken from [29]. The system has 33 section switches and 5 tie switches. Normally tie switches are in open condition. The load on the system is 3.715 MW + j 2.3 MVAR. The base case real power loss is 210.98 kW, system loadability is 3.4, and the minimum voltage is 0.9038 p.u. From the results of the ODNR problem, the points observed are.

1.
In case of f 1 optimization, the real power loss is reduced to 138.5513 kW. And also, in this case, system loadability is improved to 4.87. For this case, switches given by the algorithm are 7, 9, 14, 32, and 37. 2. In case of f 2 optimization, the system loadability is enhanced to 5.23. And also, in this case, system network power loss is reduced to 139.9782 kW. For this case, switches given by the algorithm are 7, 9, 14, 28, and 32. 3. From the above observations, it is perceived that in the case of f 2 maximization, both objectives is improved. Therefore, the optimal switches determined by the algorithm for enhancement of f 2 are considered for case-3b. Table 3 shows the outcomes of the OCDG problem for scenario 1. From the outcomes tabulated in Table 3, the succeeding points are observed. In case-1a & case-1b, the real power loss is reduced to 12.7458 kW & 18.7531 kW, respectively. It is observed that the real power loss of the system is reduced to the lowest value in the case of DGs placed in the initial configured network. In Case-2a & case-2b, system loadability is improved to 5.1 & 7.23 from 3.4 & 5.23, respectively. It is noticed that system loadability is improved Table 1 Scenarios and cases considered in this paper

Scenario-1 Objectives
Power loss Minimization ( f 1 ) Loadability Maximization ( f 2 ) Optimization of (  to the utmost value in the case of DGs connected optimally in the optimal reconfigured network, i.e., in case-2b. From the outcomes of case-2a & case-2b, it is also noticed that real power loss is only reduced to 86.5804 kW and 98.8904 kW, respectively. To improve both loss reduction and system loadability, a multi-objective approach with the Max-Min method is taken in case-3. For case-3a, the minimum F max k and maximum (F min k ) objective function values taken for real power loss are 12 kW,210.98 kW and for maximum loadability are 1/5.1, 1/3.4. For case-3b, the minimum and maximum objective function values taken for real power loss are 18 kW, 139.9782 kW, for maximum loadability are 1/7.23,1/5.23. The convergence graphs for all cases of scenario-1 are shown in Fig. 2.
From the results of case-3a & 3b, the points observed are as follows.
1. In case-3a, the system loadability is enhanced to 4.78 from 3.4, and loss is reduced to 39.1317 kW from 210.98 kW shows an improvement in both the objectives unlike in case-1a & case-2a. 2. In case-3b, the system loadability is enhanced to 6.76 from 5.23 and loss is reduced to 42.7188 kW from 139.9782 kW shows an improvement in both the objectives unlike in case-1b & case-2b. 3. In scenario-1, the utmost percentage of improvement in both the objectives is observed in case-3b, i.e., in the case of DGs optimally connected in the optimal reconfigured network while optimizing f 1 and f 2 using the Max-Min method.
The minimum F min k and maximum F max k objective function values taken in scenario-2 for case-1a are 12 kW,210.98 kW, for case-1b are 1/5.1, 1/3.4, for case-2a are 18 kW, 139.9782 kW and for case-2b are 1/7.23,1/5.23 for system loadability. The minimum limit for DGs real power injection is taken as 50% of the system real power demand i.e., 3715*0.5 = 1857 kW, and the maximum real power injective power limit by DGs is taken as 100% injection level.  Table 4 shows the outcomes of the OCDG problem for scenario 2. Figure 3 depicts the comparison between the performance indices of scenario-1 & 2. From Fig. 3 it is observed that even though there is a significant difference between the % KVA injection by DGs into the distribution system in scenario-1 & scenario-2 cases, but the difference between the performance indices is very less. Therefore, it can be concluded that the optimal placement of DGs in scenario-2 gives a better improvement in objectives (% PLR & % MLI) with less amount of % KVA injection by the DGs into the system.
From Table 4, the succeeding points are noticed. In the case of f 1 and f 3 optimization, loss is reduced to 23.715 kW & 23.446 kW in case-1a & case-1b, respectively. It is noticed that the amount of loss reduction is almost the same for both cases. In the case of f 2 and f 3 optimization, system loadability is improved to 4.73 & 6.69 in case-2a & case-2b, respectively, but the loss is reduced to 55.4613 kW and 56.2606 kW only. Therefore, to improve the real power loss reduction along with loadability, optimization of f 1, f 2 , and f 3 are considered in case-3a & case-3b. The points observed from case-3a & case-3b are real power loss is reduced to 45.1702 kW, 46.3242 kW, respectively, system loadability is increased to 4.7, 6.64. From case-3a & 3b of scenario-2, it is concluded that the optimal connection of DGs in the reconfigured network shows better improvement in both the objectives, i.e., loss reduction and system loadability enhancement. The convergence graphs for all cases of scenario-2 are shown in Fig. 4. Based on the above discussions it can be concluded that among all the cases in scenario-1 & 2, the highest percentage of improvement in both the objectives is observed in case-3b of scenario-1, i.e., by the injection of 74.92% kVA into the system, real power loss is reduced to 79.75%, system lodability is increased by 98.92%. An almost equal percentage of improvement in both objectives with less amount of % kVA injection by DGs into the system is observed in case-3b of scenario-2, i.e., with 64.69% kVA injection into the system, the loss is reduced to 78.04%, system loadability is increased by 95.29%. To access the capability of the BO optimization technique to the proposed methodology, the results obtained are contrasted with the befitting methods and algorithms that are accessible in the literature and shown in Table 5. From Table 5, it is observed that in case of power loss minimization by the optimal placing of DGs in the initial configured case & optimal reconfigured case, the proposed BO algorithm reduces the real power loss to 93.95% & 91.11, respectively, whereas HTLBO-GWO, HAS-PABC, UVDA reduces real power loss to 93.51%, 92.51%, and 87.98%, respectively. In the case of loadability maximization, the BO algorithm improves it to 50% whereas HPSO improves it to 48.23% only. In scenario-2, in the case of loss minimization, the loss is reduced to 88.76% with 53.01 kW injection by DGs into the system, whereas the BSOA algorithm reduces it to 85.94% with % 50 kW real power injection by DGs into the system. In [29], with 40% kW or 47.05 kVA injection by DGs into the system, real power loss reduced to 71.75%, system loadability increased to 26.76%. But with the proposed method in this paper, with 64.69% kVA injection by DGs into the system, real power loss reduced to 78.09%, maximum loadabilty increased to 95.29% that shows an improvement in both the objectives unlike the method in [29] which shows the efficacy of the proposed method.

Bus radial distribution System
The line & load data of the system are taken from [29]. The system has 69 section switches and 5 tie switches. Normally tie switches are in open condition. The load on the system is 3.801 MW + j 2.693 MVAR. The base case real power loss is 224.9515 kW, loadability of the system is 3.21 and the minimum voltage is 0.9091 p.u.
From the results of the ODNR problem, the following points are observed. In the case of individual optimization of objective functions f 1 & f 2 , switches given by the algorithm are the same, i.e., they are 14, 58, 61, 69, and 70. For these switch combinations real power loss is mitigated to 98.55 kW, lodability enhanced to 5.23. Therefore, the abovementioned optimal switches are considered for the OCDG problem in the optimal reconfigured network case. Table 6 shows the outcomes of the OCDG problem for scenario 1. In case-1a & 1b, the power loss is reduced to 4.487 kW & 5.3082 kW. It is observed that the power loss is reduced to the lowest value in the case of DGs connected optimally in the initial configured network. In case-2a & case-2b, the system loadability is improved to 4.91 &7.71, respectively, but the real power loss is only reduced to 89.8601 kW & 93.9651 kW. In case-3a & 3b, the system loadability is improved to 4.61 & 7.07 and real power loss is reduced to 30.2921 kW & 25.313, respectively. From scenario-1 outcomes, it can be deduced that both the loadability and real power loss reduction are well improved in case-3b. The convergence graphs for all cases of scenario-1 are shown in Fig. 5. Figure 6 depicts the comparison between the performance indices of scenario-1 & 2. From Fig. 6, it is noticed that the optimal connection of DGs in scenario-2 gives a better improvement in objectives (% PLR & % MLI) with less amount of % KVA injection by the DGs into the system. Table 7 shows the outcomes of the OCDG problem for scenario 2. In case-1a & 1b, the real power loss is reduced to 9.6078 & 7.0345 kW, respectively, but the system loadability is improved to 4.09 & 6.4 only. In case-2a & 2b, the system loadability is enhanced to 4.51 & 7.04, respectively, but the power loss is reduced to 35.096 kW & 46.448 kW only. Among case-3a & case-3b, better enhancement in both objectives is observed in optimal connection of DGs in optimal network reconfigured case, i.e., real power loss is reduced to 23.8112 kW and system loadability is enhanced to 6.94. The convergence graphs for all cases of scenario-2 are shown in Fig. 7. Based on the above discussions it can be concluded that among all the cases in scenario-1 & 2, better improvement in both objectives with less % KVA injection by DGs is observed in case-3b of scenario-2, i.e., real power loss is reduced to 89.414%, maximum loadability is increased to 116.19%.
To access the capability of the BO optimization technique to the proposed methodology, the results obtained are contrasted with the befitting methods and algorithms that are accessible in the literature and shown in Table 8. The proposed algorithm yields to produce the same result produced by the HPSO algorithm in the literature concerning loadabilty of the system as an objective function and the proposed algorithm performs well in mitigating the real power with comparison to the HTLBO-GWO algorithm.
In [29], with 40% KW or 47.06 KVA injection by DGs into the system, real power loss reduced to 87.206%, system loadability increased to 27.72%. But with the proposed method in this paper, with 63.98% KVA injection by DGs into the system, real power loss reduced to 89.414%, system loadabilty increased to 116.19% that shows an improvement in both the objectives unlike the method in [29] which shows the efficacy of the proposed method.

Conclusion
In this work, OCDG and ODNR problems on radial distribution systems have been addressed to enhance the system efficiency and too apt upcoming load growth via I 2 R loss mitigation and system loadability enhancement. To achieve the objectives, two scenarios each consisting of three cases and each case having two sub-cases are considered. The concept of a spanning tree has been taken for confirming the radiality status of the system.BO optimization technique has been taken to optimize the proposed objective functions and implemented on 33 & 69 bus test systems. In both the test systems, the highest percentage of improvement in both the objectives with less amount of % KVA injection by DGs into the system is observed in case-3b of scenario-2. From the outcomes, it has observed that loss of the system is reduced to (75-89) %, loadability enhanced to (94-121) % with the injection of 64% KVA by DGs in 33 & 69 bus systems. BO algorithm has performed well in optimizing the proposed objectives when compared with the other algorithms in the literature.