Introduction

In 2022, the global energy landscape underwent a significant shift, with the carbon intensity of global power generation historically dropping to 436 gCO2/kWh. Solar power generation increased by a substantial 24%, and wind power by 17%, making a crucial contribution to the clean and renewable energy sector1. The new distribution grid seamlessly integrates clean energy with the power system. Simultaneously, the application of intelligent management technology further improves the efficiency and controllability of the energy system. Together, these transformations shape a clean and sustainable energy future. The restructuring of the distribution grid, as a key component of this paradigm shift, aims to redesign and optimize the distribution system to better accommodate the large-scale integration of clean energy2.

When small power generation and storage devices (such as photovoltaic cells, wind generators, and energy storage cells.) are connected to the grid system as distributed generation (DG), they can cause voltage fluctuations, frequency distortion, and changes in power flow3. In this case, it is imperative to reconfigure the power grid by formulating the goal function and adjusting the state of the grid-connected switch and the segment switch4. Chandramohan et al.5 proposed the minimization of operating costs and the maximization of operational reliability as objective functions. Operating costs include the price of both active and reactive power, while operational reliability is achieved by minimizing total system outage costs. Additionally, Gözel et al.6 determined the optimal scale and location of DG by minimizing total power loss. Gupta et al.7 transformed various power quality and reliability objectives such as feeder power losses, system’s nodal voltage deviations, system’s average interruption frequency index, system’s average interruption unavailability index, and unserved energy into a single objective function, which was then genetic algorithm is used to solve this single objective problem. Besides, several commonly used objective functions include minimum investment cost8,9, minimum voltage stability index10, minimum load balancing index11, among others.

However, the aforementioned studies primarily focus on the static reconfiguration problem at individual time points, unable to address the dynamic changes during the operation of the power system. Dynamic reconfiguration involves real-time monitoring and adjustments to the system state to adapt to the evolving operational conditions of the power system. This encompasses dynamic adjustments to load, power sources, and network topology to meet the real-time demands and fluctuations of the power system. Therefore, many researchers define distribution grid reconfiguration as a dynamic issue requiring real-time monitoring, system feedback, and efficient decision algorithms to ensure the smooth operation of the power system in a dynamic environment12. Considering the inherent uncertainty associated with distributed photovoltaic (PV) systems, a recent study by Xu et al.13 introduced a novel multi-objective and robust optimization strategy aimed at maximizing the utilization of renewable energy resources. Besides, Pan and Wang et al.14,15 considered the restriction of load demand curve on network changing action, the reconstruction cycle is divided according to load monotonicity and amplitude variation. Li et al.16 constructed an ADN integrated optimization model considering photovoltaic, wind power, dynamic load and real-time electricity price. The MOSSA-based approach formulates an excellent optimization scheme with the highest power quality and the best energy and economic benefits.

Metaheuristic algorithms, due to their versatility and flexibility, have been widely applied in the field of power systems. For example, Senapati et al.17 proposed a novel intelligent control system based on the TS fuzzy algorithm to address power quality issues in power systems, such as voltage sags, voltage harmonics, nonlinear loads, and load imbalance, thereby improving the overall performance of the power system. Senapati et al.18 introduced a priority-based load shedding algorithm aimed at enhancing the stability of hybrid DC microgrids, maintaining power balance among various energy sources and storage devices during independent or prolonged islanding operation modes. Senapati et al.19 proposed a hybrid maximum power point tracking (MPPT) technique that combines an improved invasive weed optimization (MIWO) algorithm with the traditional perturb and observe (P&O) algorithm, enhancing the searching performance of PV systems under partial shading conditions (PSCs) and rapid climatic changes. Finally, they also proposed a hybrid firefly algorithm-particle swarm optimization (FA-PSO) approach, which combines the global search capability of the firefly algorithm with the rapid convergence of particle swarm optimization. This method can more effectively optimize the parameters of Takagi-Sugeno fuzzy inference systems (TSFIS) and adaptive neuro-fuzzy inference systems (ANFIS), thereby improving the voltage regulation performance and adaptability of DC microgrids20.

Due to their ability to handle complex, high-dimensional, and nonlinear optimization problems, metaheuristic algorithms have recently been applied to the dynamic reconfiguration of distribution networks. For instance, an improved binary particle swarm optimization algorithm has been proposed to solve the low-power reconstruction model by effectively generating and updating particles to break loop constraints21. Additionally, a new hybrid optimization algorithm that combines chaotic particle swarm optimization and chicken swarm optimization has been proposed to overcome the limitations of traditional optimization algorithms in the reconfiguration of distribution networks22.

In recent years, more meta-heuristic algorithms have been developed successively, such as Harmonious Search algorithm (HS)23, Grasshopper Optimization algorithm (GOA)24, Gray Wolf Optimization algorithm (GWO)25, Moth Flame Optimization algorithm (MFO)26, Whale Optimization algorithm (WOA)27, Dragonfly algorithm (DA)28 and Dung Beetle algorithm (DBO)29. Among them, DBO has a strong advantage in dealing with complex dynamic reconfiguration problems in distribution network. First of all, there are four different types of dung beetle individuals in DBO, each with different optimization methods, which gives the DBO a powerful global search ability, enabling it to effectively explore the solution space and quickly converge to the optimal reconstruction scheme. In addition, DBO is very suitable to deal with the nonlinear constraints that often occur in the distribution network reconstruction task, which ensures the accuracy of the reconstruction scheme. Its adaptive characteristics enable it to adapt to different load conditions in real time, thus maintaining the reliability of the system. These characteristics make DBO a powerful tool to realize efficient and reliable dynamic reconfiguration of distribution network. Although DBO has advantages such as global search capability and adaptability to dynamic conditions, there are also some challenges. Distribution network may also lead to multiple local optimal solutions under different reconfiguration schemes, which will hinder the ability of the algorithm to find the global optimal solution and limit its reliability in large-scale distribution networks.

Improvement methods for metaheuristic algorithms vary, leading to differences in the performance of the improved algorithms. To maximize the optimization ability and convergence of the algorithms while meeting the algorithm constraints, this study employs the Chebyshev chaotic mapping to enhance the population initialization stage of the DBO algorithm, enabling the individuals to be uniformly distributed randomly in the search space. Subsequently, the population is divided into four different types of beetles in a 6:6:7:11 ratio, and the Levy flight strategy is introduced into the population update mode to find the optimal position within the population and record the initial optimal values. In the subsequent phases of the procedure, the DE technique is introduced to choose, alter, and combine the initial optimal values, averting the algorithm from getting trapped in local minima. The resulting algorithm, named LDEDBO, is then applied to the dynamic reconstruction of the IEEE-33 and IEEE-69 node bus, obtaining the optimal switch com-bination solution with minimized network losses and minimal node voltage deviations.

The main findings of this paper are summarized as follows:

  • A novel algorithm, LDEDBO, is introduced in this study.

  • The proposed LDEDBO algorithm is applied to the optimal reconstruction of distribution network, and the feasibility of LDEDBO in the reconstruction of distribution network is verified by real-time load data.

  • The proposed LDEDBO algorithm is applied to the dynamic reconfiguration of distribution network. Compared with PSO, GA and DBO algorithms, LDEDBO significantly increases the voltage of each node and reduces the active power loss of the system.

The organization of the remaining part of this document is outlined below: In “Issue definition”, the mathematical framework for distribution network reconstruction is introduced; In “Methodology”, an improved LDEDBO is presented. “Experimental design and results analysis” presents and scrutinizes the dynamic reconfiguration outcomes of the LDEDBO and the control group algorithm that have been validated. “Conclusion” gives a comprehensive conclusion.

Issue definition

Objective function

Active power dissipation

To enhance the economic efficiency of grid operation, the focus of this study is on pinpointing the most effective combination of network switches to minimize the active power dissipation within the grid6,30. The formal representation of active power dissipation is as follows:

$$\hbox{min} {f_1}={P_{loss}}=\sum\limits_{{t=1}}^{T} {\sum\limits_{{i=1}}^{N} {{k_{i,t}}{R_{i,t}}\frac{{P_{{i,t}}^{2}+Q_{{i,t}}^{2}}}{{V_{{i,t}}^{2}}}} }.$$
(1)

where, \({P_{loss}}\) is the cumulative active power dissipation of the whole network. T indicates a 24-h period. N indicates the overall count of system branches. The variable \({k_{i,t}}\) denotes the operating state of the switch on branch i at time t. Specifically, when \({k_{i,t}}=1\), it indicates that the switch is in the closed position, while \({k_{i,t}}=0\) denotes the switch being open. \({\text{~}}{R_{i,t}}\) signifies the resistance along the i branch at time t. Additionally, \({P_{i,t}}\) and \({Q_{i.t}}\) are the active and reactive power flowing into the terminal node of branch i at time t, while \({V_{i,t}}{\text{~}}\) signifies the voltage at the terminal node during time t.

Node voltage deviation

To fortify the stability of the power distribution system operation, this paper incorporates the minimization of node voltage deviation as one of its key objectives31. The formalized expression for node voltage deviation is presented below:

$$\hbox{min} {\text{ }}{f_2}{\text{ }}={\text{ }}\hbox{min} \mathop \sum \limits_{{t=1}}^{T} \mathop \sum \limits_{{i=1}}^{M} \left| {\frac{{{V_{i,t}}-{V_{iN,t}}}}{{{V_{iN,t}}}}} \right|$$
(2)

where, M is the total number of nodes within the system, \(V{}_{{i,t}}\) is the voltage amplitude of i at time t, and \({V_{iN,t}}\) signifies the rated voltage amplitude of i at time t.

Objective function normalization

When normalizing multi-objective functions, the method of judgment matrix is utilized to calculate the weight of each objective function32, with the total objective function designated as Eq. (3):

$$f={w_1}{f_1}+{w_2}{f_2}$$
(3)

where, \({w_1}\) represents the weight of objective function \({f_1}\), \({w_2}\) represents the weight of objective function \({f_2}\). The expression equation of the judgment matrix is shown in Eqs. (4) and (5):

$$A=\left[ {\begin{array}{*{20}{c}} {{a_{11}}}&{{a_{12}}}& \cdots &{{a_{1n}}} \\ {{a_{21}}}&{{a_{22}}}& \cdots &{{a_{2n}}} \\ \vdots & \vdots & \ddots & \vdots \\ {{a_{n1}}}&{{a_{n2}}}& \cdots &{{a_{nn}}} \end{array}} \right]$$
(4)
$${a_{ij}}=\frac{1}{{{a_{ji}}}}$$
(5)

where, n is the number of objective functions. \({a_{ij}}\) is the comparison result of the importance of objective function i compared with objective function j. The specific value of \({a_{ij}}\) needs to refer to the formation criteria of the judgment matrix. In this study, objective function \({f_1}\) is obviously more important than objective function \({f_2}\), with values set as \({a_{ij}}=5\), \({a_{ji}}=\frac{1}{5}\).

Sum each column of the judgment matrix to get the sum \({S_j}\), as Eq. (6):

$${S_j}=\sum\limits_{{i=1}}^{n} {{a_{ij}}}$$
(6)

The calculation formula of weight coefficient \({\omega _j}\) is shown as Eq. (7):

$${\omega _j}=\frac{1}{n}\sum\limits_{{i=1}}^{n} {\frac{{{a_{ij}}}}{{{S_j}}}}$$
(7)

The weight coefficients of the two objective functions obtained by the weight coefficient method are as follows: \({w_1}=83.33\%\), \({w_2}=16.67\%\).

Operational constraints

To prevent impractical outcomes that compromise the principles of safe and stable network operation, the refurbishment of the grid must comply with power transmission, nodal voltage, branch power, power generation, and network configuration constraints33. Equation (8) illustrates the load flow restrictions.

$$\left\{ {\begin{array}{*{20}{c}} {{P_i}+{P_{{\text{DG}}i}}={P_{Li}}+{V_i}\mathop \sum \limits_{{j=1}}^{n} {V_j}({G_{ij}}\cos {\theta _{ij}}+{B_{ij}}\sin {\theta _{ij}})} \\ {{Q_i}+{Q_{{\text{DG}}i}}={{\text{Q}}_{Li}}+{V_i}\mathop \sum \limits_{{j=1}}^{n} {V_j}({G_{ij}}\sin {\theta _{ij}}-{B_{ij}}\cos {\theta _{ij}})} \end{array}} \right.$$
(8)

where, \({P_i}\) and \({Q_i}\) denote the active power and reactive power of node i. The power injected by DG into node i is expressed in \({P_{DGi}}\) and \({Q_{DGi}}\), and the power of the load attached to node i is expressed in \({P_{Li}}\) and \({Q_{Li}}\). Node j is connected to i. The node voltages of nodes i and j are denoted by \({V_i}\) and \({V_j}\), in that order. \({G_{ij}}\) and \({B_{ij}}\) represent the conductance and susceptance of nodes i and j, respectively. \({\theta _{ij}}\)is the angle of impedance between nodes i and j, and n is all count of nodes. Equation (9) is the constraints of node voltage:

$${V_{i,\hbox{min} }} \leqslant {V_i} \leqslant {V_{i,\hbox{max} }}$$
(9)

where, \({V_{i,\hbox{max} }}\) and \({V_{i,\hbox{min} }}\) are the limits of node voltage \({V_i}\).

Equation (10) shows the constraints of branch power:

$${S_i} \leqslant {S_{i,\hbox{max} }}$$
(10)

where, \({S_{i,\hbox{max} }}\) is the limits allowable power transmission capacity of branch i.

Equation (11) is the constraints of DG power:

$$\left\{ {\begin{array}{*{20}{c}} {{P_{DG,\hbox{min} }} \leqslant {P_{DG,i}} \leqslant {P_{DG,\hbox{max} }}} \\ {{Q_{DG,\hbox{min} }} \leqslant {Q_{DG,i}} \leqslant {Q_{DG,\hbox{max} }}} \end{array}} \right.$$
(11)

where, \({P_{DG,\hbox{max} }}\), \({P_{DG,\hbox{min} }}\), \({Q_{DG,\hbox{max} }}\) and \({Q_{DG,\hbox{min} }}\) represents the limits of the DG’s power generation, respectively.

Equation (12) is the constraint of network structure:

$$g \in G$$
(12)

where, g indicates the configuration of the power distribution system. G encompasses the entire set of network structures within the distribution system.

Methodology

DBO algorithm

The DBO algorithm is an intelligent optimization algorithm inspired by the motion process of rolling dung beetles29. The population consists of four types of individuals: rolling beetles, female beetles, larvae beetles, and thief beetles, in the proportions of 6:6:7:11. Throughout the iterative procedure, the positional data of rolling beetles undergoes various updates, as defined by Eq. (13).

$${X_i}\left( {t+1} \right)={X_i}\left( t \right)+\alpha k{X_i}\left( {t - 1} \right)+b\left| {{X_i}\left( t \right) - {X^W}} \right|$$
(13)
$$\lambda =0.1,\eta =rand\left( 1 \right),\left\{ {\begin{array}{*{20}{c}} {\eta >\lambda ,\alpha =1} \\ {\eta <\lambda ,\alpha = - 1} \end{array}} \right.$$
(14)

where, i = 1, 2, 3,, NP; \({X_i}(t)\)represents the location of the i individual at the t step. The selection strategy for \(\alpha\) depends on a constant \(\lambda\) and a random variable \(\eta\). When \(\alpha =1\), it means that the dung beetle moves in the original direction, while \(\alpha = - 1\) represents the departure from the original goal. \(k \in (0,0.2]\) is the deviation parameter. \(b \in (0,1)\) is natural value too. \({X^W}\) denotes the poorest position in the entire population.

When a rolling beetle hits a barrier, it updates its position as Eq. (15):

$$\left\{ \begin{gathered} X_{i}^{\prime }\left( t \right)=\tan \left( \theta \right)\left| {{X_i}\left( t \right) - {X_i}\left( {t - 1} \right)} \right| \hfill \\ {X_i}\left( {t+1} \right)={X_i}\left( t \right)+X_{i}^{\prime }\left( t \right) \hfill \\ \end{gathered} \right.$$
(15)

Here,\(~\theta \in \left[ {0, \pi } \right]\).

Female dung beetle spawning boundary and egg position update as follow:

$$L{b^*}={\text{max}}\left\{ {X_{i}^{*} \times \left[ {1 - \left( {1 - {\raise0.7ex\hbox{$t$} \!\mathord{\left/ {\vphantom {t {{T_{max}}}}}\right.\kern-0pt}\!\lower0.7ex\hbox{${{T_{max}}}$}}} \right)} \right],Lb} \right\}$$
(16)
$$U{b^*}=min\left\{ {X_{i}^{*} \times \left[ {1+\left( {1 - {\raise0.7ex\hbox{$t$} \!\mathord{\left/ {\vphantom {t {{T_{max}}}}}\right.\kern-0pt}\!\lower0.7ex\hbox{${{T_{max}}}$}}} \right)} \right],Ub} \right\}$$
(17)
$$\left\{ \begin{gathered} B_{i}^{ * }\left( t \right)={b_1}\left( {{B_i}\left( t \right) - L{b^*}} \right)+{b_2}\left( {{B_i}\left( t \right) - U{b^*}} \right) \hfill \\ {B_i}\left( {t+1} \right)=X_{i}^{*}+B_{i}^{ * }\left( t \right) \hfill \\ \end{gathered} \right.$$
(18)

where, \(U{b^*}\)and \(L{b^*}\) are the boundaries of the egg-laying area. \({X_i}^{*}\) represents the current locally optimal position found during the search. \({T_{max}}\) represents the maximum number of iterations. \(Ub\) and \(Lb\)are the boundaries of the optimization problem. \({B_i}\left( t \right)\) denotes the i-th sac position in the t step. \({b_1}\) and \({b_2}\) are two uncorrelated random vectors with a magnitude of \(1 \times D\), where D represents the dimension of the distribution network reconfiguration problem.

The position of larvae in the population is simulated as Eq. (21):

$$L{b^b}=\hbox{max} \left\{ {X_{i}^{b} \times \left[ {1 - ( 1 - {\raise0.7ex\hbox{$t$} \!\mathord{\left/ {\vphantom {t {{T_{\hbox{max} }}}}}\right.\kern-0pt}\!\lower0.7ex\hbox{${{T_{\hbox{max} }}}$}}) } \right],Lb} \right\}$$
(19)
$$U{b^b}=\hbox{min} \left\{ {X_{i}^{b} \times \left[ {1+( 1 - {\raise0.7ex\hbox{$t$} \!\mathord{\left/ {\vphantom {t {{T_{\hbox{max} }}}}}\right.\kern-0pt}\!\lower0.7ex\hbox{${{T_{\hbox{max} }}}$}}) } \right],Ub} \right\}$$
(20)
$$\left\{ \begin{gathered} X_{i}^{ * }\left( t \right)={C_1}\left( {{X_i}\left( t \right) - L{b^b}} \right)+{C_2}\left( {{X_i}\left( t \right) - U{b^b}} \right) \hfill \\ {X_i}\left( {t+1} \right)={X_i}\left( t \right)+X_{i}^{ * }\left( t \right) \hfill \\ \end{gathered} \right.$$
(21)

where, \({X^b}\)is the global best location. \(U{b^b}\) and \(L{b^b}\) are the boundaries of the optimal foraging area. \({X_i}\left( t \right)\) is the location of the i larval beetle during the t iteration. \({C_1}\) represents a stochastic value following a normal distribution. \({C_1}\) is a random value within the range \(\left( {0,1} \right)\).

The equation for adjusting the location of the thief beetles, which emerge in the population to compete for food, is as Eq. (22):

$${X_i}\left( {t+1} \right)=X_{i}^{b}\left( t \right)+\gamma \omega \left( {\left| {{X_i}\left( t \right) - X_{i}^{*}} \right|+\left| {{X_i}\left( t \right) - X_{i}^{b}\left( t \right)} \right|} \right)$$
(22)

where, setting \(\gamma =1/2\), while \(\omega\) is defined as a vector of size \(1 \times D\), with its variation pattern following a normal distribution during the algorithm iteration process. The final algorithm outputs \(X_{i}^{b}\left( t \right)\) and the corresponding fitness value\(~f\left( {X_{i}^{b}\left( t \right)} \right)\) according to greedy selection.

LDEDBO algorithm

To achieve a uniform distribution of the initial beetle population in the search space, the DBO utilizes Chebyshev chaotic mapping to improve the initialization, ensuring that individuals are uniformly distributed. Furthermore, the introduction of the Levy flight strategy equips beetle individuals with the ability to make long jumps, enabling them to explore the optimal solution in a wide space when updating their position information. Furthermore, to avert the algorithm from becoming ensnared in local optima during subsequent iterations, the DE is employed to modify the optimal solution of the DBO through a series of operations including mutation, crossover, and selection. This is referred to as the LDEDBO algorithm, and its implementation can further improve the overall performance and effectiveness of the algorithm.

Chebyshev chaotic mapping

The Chebyshev chaotic mapping is a nonlinear dynamical system that generates a series of numerical sequences with chaotic properties through recursive iteration. In the DBO algorithm, the Chebyshev chaotic mapping is introduced to initialize the dung beetle population, simulating the random search behavior of individual dung beetles, and increasing the variability and heterogeneity within the population. The position of the individual i is \({X_i}\):

$${X_{i+1}}=\cos \left( {h{{\cos }^{ - 1}}{X_i}} \right),{X_i} \in \left[ { - 1,1} \right]$$
(23)

In this context, h represents the order of the Chebyshev mapping. When the value of h is greater than 2, it generates an infinite-length chaotic sequence without a periodic pattern. It is common to set \(h=4\) in practice.

Levy flight strategy

The long-tail distribution of Levy flight steps makes it possible to have large jumps in the search space. This method is introduced into the DBO algorithm to improve the location modification mode of beetles and help to escape from the local optimum. The particular equation is outlined below:

$$\left\{ \begin{gathered} {X_i}(t+1)={X_i}(t)+S \hfill \\ \hfill \\ S=0.01 * Step=0.01 * \frac{a}{{{{\left| b \right|}^{1/c}}}} \hfill \\ a\sim randn(1,D) * e,{\text{ }}b\sim randn(1,D) \hfill \\ \end{gathered} \right.$$
(24)
$$e={\left\{ {\left. {\frac{{T(1+c)\sin (\pi c/2)}}{{T\left[ {\frac{{(1+c)c}}{2}} \right]{c^{2(c - 1)/2}}}}} \right\}} \right.^{1/c}}$$
(25)

The function first defines the parameter c of the Levy distribution as 1.5 and calculates e according to the formula. Subsequently, the \(randn\) function is utilized to generate standard normal distribution random numbers a and b with a dimension of \(D=5\). The step length Step is then calculated based on the Levy flight formula and multiplied by 0.01 to obtain the final step vector S.

DE algorithm

DE approach is a parallel direct search technique employed to handle non-differentiable, complex and multi-peaked objective functions34. After the DBO algorithm obtains the initial optimal solution \(X_{i}^{b}(t)\), two individuals are randomly selected and the weighted difference between them is controlled by the scale factor. The resulting vector is added to \(X_{i}^{b}(t)\) to create a new individual, completing the mutation process. Then, \(X_{i}^{b}(t)\) is crossed with its autogenetic offspring with a certain probability to increase the diversity of perturbation parameter vectors. When the resulting individual’s fitness is lower than \(~f\left( {X_{i}^{b}\left( t \right)} \right)\), the target candidate is replaced and the next iteration is continued until the maximum number of iterations is reached. To improve the optimization performance of the algorithm, this study proposed to combine the DE with the DBO. Using this approach, two independent positions \(~{X_{i1}}\left( t \right)\) and \({X_{i2}}\left( t \right)\) are randomly chosen from the set, and an individual is created after mutation, as illustrated in Eq. (26):

$${V_i}\left( t \right)=X_{i}^{b}\left( t \right)+F*\left( {{X_{i1}}\left( t \right) - {X_{i2}}\left( t \right)} \right)$$
(26)

where, \(F \in \left[ {0,2} \right]\) is the variation factor. The intersection of \({V_i}\left( t \right)\) and the initial optimal entity \(X_{i}^{b}\left( t \right)\), which was generated by the DBO algorithm, gives rise to a novel vector entity, \({U_{i,j}}\left( t \right)\):

$${U_{i,j}}\left( t \right)=\left\{ {\begin{array}{*{20}{c}} {{V_{i,j}}(t),{\text{ }}ifrand(0,1) \le CR{\text{ }}or{\text{ }}j=jrand} \\ {X_{{i,j}}^{b}(t),{\text{ }}otherwise} \end{array}} \right.$$
(27)

where, \(j=1,2,3, \ldots ,D\).\(CR \in \left( {0,1} \right)\) is a cross probability factor; \(j~rand\) is a random component.

Following the selection operation, \(X_{i}^{b}\left( {t+1} \right)\) becomes a newly global optimal solution:

$$X_{i}^{b}(t+1)=\left\{ {\begin{array}{*{20}{c}} {{U_i}(t),{\text{ }}if{\text{ }}f~({U_i}(t)){\text{ }} \le f(X_{i}^{b}(t))} \\ {X_{i}^{b}(t),~~~~~~~~~~~~~~~~~~otherwise} \end{array}} \right.$$
(28)

The algorithm diagram for LDEDBO can be seen in Fig. 1.

Fig. 1
figure 1

Flowchart of LDEDBO algorithm.

Algorithm testing

This study selects 9 common test functions to evaluate LDEDBO’s algorithm performance. The test results of GA, PSO, WOA, HHO, and DBO as control algorithms are compared with those of the LDEDBO algorithm. We set key performance indicators such as best value (BEST), average value (MEAN), standard deviation (STD), and algorithm runtime (TIME) to evaluate its convergence accuracy, stability, robustness, and time complexity. Algorithm parameters are set as shown in Table 1. The formulas and parameters of relevant test functions are shown in Table 2. Each algorithm is initialized with a total initial population size of 30, runs 30 times, and iterates 600 times each. The test results are shown in Table 3, and the convergence curve of each algorithm is shown in Fig. 2.

According to the test results, the optimal value of LDEDBO algorithm is obviously better than that of the control algorithm, which indicates that LDEDBO algorithm has good optimization ability. The average index is close to the optimal value, reflecting the average result of LDEDBO’s overall performance in many runs, which indicates that it has good stability. And the standard deviation index is small, indicating that LDEDBO algorithm has good robustness. Although the LDEDBO algorithm is slightly worse than the control group in terms of runtime, the gap is not significant, and considering its advantages in other performance indicators, LDEDBO algorithm still shows a strong overall performance. The slight increase in the running time of LDEDBO algorithm may be due to the complexity of the calculation process caused by the addition of an improved strategy on the basis of the original DBO algorithm, but it also provides LDEDBO with higher accuracy and better robustness. Therefore, in summary, LDEDBO algorithm shows excellent performance in the test results, especially in solving complex problems, which is worthy of further promotion and application.

Table 1 GA, PSO, DBO and LDEDBO parameter configurations.
Table 2 Test function settings.
Table 3 Algorithm test results.
Fig. 2
figure 2

Algorithm test curve.

Experimental design and results analysis

When reconfiguring dispersed electricity distribution networks, the fluctuating nature of actual load demand necessitates a shift from static reconfiguration at a single time point to dynamic reconfiguration. In this study, we address this by reconfiguring the time-varying load into five distinct periods based on the rising and falling trends observed in the load power curve depicted in Fig. 3. Subsequent simulation experiments were conducted using the MATLAB platform. Throughout all experimental scenarios, control group experiments were conducted using DBO, PSO, and GA algorithms, with specific parameter settings detailed in Table 1. Each algorithm underwent independent runs 30 times, with varying numbers of iterations designed according to the experimental plan. Key metrics including average active network losses, minimum nodal voltage, and the switch configuration linked to the minimum performance value were recorded for analysis.

Fig. 3
figure 3

Aggregate power consumption fluctuation curve of the network throughout a 24-h timeframe.

Simulation and analysis of case 1: IEEE-33 node bus

In the structure of the IEEE-33 node bus, there are 32 feeders, 33 connection points, 32 isolating switches, 5 interconnection switches, and 5 primary loops. The initial base capacity of the network is 10 MVA, with a standard load of 3715 kW + j2300 kVar, and a reference voltage of 12.66 kV. In the experiment, wind energy sources are used as PQ-type nodes, photovoltaic sources as PI-type nodes, and gas turbines are linked to the distribution network as PV-type components, with the installation positions of DG shown in Fig. 4. Table 4 provides the specific parameters of the DG. Real-time load data at 05:00, 10:00, and 20:00 are randomly selected from the daily load curve for the purpose of reconfiguration. Each algorithm is set to undergo 50 iterations.

The experimental results presented in Table 5 clearly demonstrate the superior performance of LDEDBO over other control methods for optimizing the two objective functions, namely minimum active power dissipation and voltage fluctuation. The discovery strongly supports the potential use of LDEDBO for addressing the reconstruction challenge in minor distribution grids. Figure 5 illustrates the voltage restoration outcomes at three randomly selected moments, revealing a smoother overall contour of the voltage curve reconstructed by the LDEDBO compared to other algorithms. Furthermore, Fig. 6 showcases the convergence behavior of the different algorithms during the reconstruction process at these three moments. At 05:00, the LDEDBO exhibits a slightly slower convergence speed than the PSO algorithm. However, when considering the convergence curves across all three moments, the PSO algorithm demonstrates unstable convergence speed and fails to effectively find the optimal solution. In contrast, the LDEDBO consistently achieves convergence within 15 iterations, highlighting its exceptional accuracy and stability.

Table 4 The characteristics of various DG categories in the IEEE-33 small-scale node bus.
Fig. 4
figure 4

Installation position of the DG in the IEEE-33 small-scale node bus.

Table 5 GA, PSO, DBO and LDEDBO algorithms time reconstruction results of IEEE-33 small-scale node bus.
Fig. 5
figure 5

Node voltage distribution in case 1: (a) At 05:00; (b) At 10:00; (c) At 20:00.

Fig. 6
figure 6

Convergence curve in case 1: (a) At 05:00; (b) At 10:00; (c) At 20:00.

Following that, this article investigates the dynamic reconfiguration problem of small-scale distribution networks and designs the reconfiguration period according to the trend of daily load curve. The number of iterations for each algorithm is fixed at 200. The convergence plots of different algorithms are compared in Fig. 7. The LDEDBO achieves a superior switching combination solution compared to other algorithms at the 28th step.

Table 6 presents the experimental data recorded under this set of switching combinations. The results indicate a significant decrease in active power dissipation from 1950.4 kW to 1385.9 kW, representing a decrease of 28.94%. In comparison, the reductions achieved by GA, PSO, and DBO algorithms are 19.82%, 15.79%, and 20.53% respectively. Additionally, the minimum node voltage stands at 0.9447 p.u, surpassing the previous value of 0.9273 p.u. Figure 8 illustrates the active power loss curves under different reconstruction algorithms. It clearly shows that after the LDEDBO reconstruction, the active power dissipation at each node in the IEEE33 node bus is less than 20 kW per hour. Figure 9 compares the overall voltage curves under various reconstruction algorithms. It shows that after the LDEDBO reconstruction, the node voltages fluctuate more smoothly over 24 h. This indicates the stability and optimization ability of the LDEDBO.

Fig. 7
figure 7

The convergence curve for LDEDBO in comparison to alternative algorithms.

Table 6 GA, PSO, DBO and LDEDBO multi-period dynamic reconfiguration analyses of IEEE-33 small-scale node bus.
Fig. 8
figure 8

Active power dissipation of IEEE-33 small-scale node bus in 24 h: (a) GA; (b) PSO; (c) DBO; (d) LDEDBO.

Fig. 9
figure 9

Voltage fluctuation of IEEE-33 small-scale node bus in 24 h: (a) GA; (b) PSO; (c) DBO; (d) LDEDBO.

Simulation and analysis of case 2: IEEE-69 node bus

The structure of the IEEE-69 bus medium-scale power grid includes 73 branches, 69 nodes, and 68 isolating switches, 5 interconnection switches, and 5 primary loops. The initial reference capacity of the network is 10 MVA, with a standard load of 3802 kW + j2694.6 kVar, and a reference voltage of 12.66 kV. In the experiment, the installation positions of wind energy sources, photovoltaic sources, and gas turbines are shown in Fig. 10, with specific parameters detailed in Table 7. Real-time load data at 05:00, 10:00, and 17:00 are randomly selected from the daily load curve for reconstruction. Each algorithm is set to undergo 100 iterations.

The reconstruction results are presented in Table 8, further validating the feasibility of the LDEDBO in the reconstruction of medium-scale distribution networks. In Fig. 11, the overall voltage profile after reconstruction using the LDEDBO appears smoother compared to other algorithms, meeting the stability requirements of the power grid operation. In Fig. 12, the LDEDBO converges to the optimal value within 10 iterations in all three scenarios, demonstrating the exceptional optimization performance and rapid convergence of the LDEDBO in addressing medium-scale distribution network reconstruction problems.

Table 7 The characteristics of various DG categories in the IEEE-69 medium-scale node bus.
Fig. 10
figure 10

Installation position of the DG in the IEEE-69 medium-scale node bus.

Table 8 GA, PSO, DBO and LDEDBO algorithms time reconstruction results of IEEE-69 medium-scale node bus.
Fig. 11
figure 11

Node voltage distribution in case 2: (a) At 05:00; (b) At 10:00; (c) At 17:00.

Fig. 12
figure 12

Convergence curve in case 2: (a) At 05:00; (b) At 10:00; (c) At 17:00.

After confirming the effectiveness of the LDEDBO in the reconstruction challenge of medium-scale power grids, the LDEDBO was utilized for the dynamic reconstruction of the IEEE-69 medium-scale node bus. All algorithm parameters remained constant, with the iteration count fixed at 200. Figure 13 presents a comparison of the convergence patterns of the various algorithms. The LDEDBO achieved the optimal solution at the 32nd iteration.

Fig. 13
figure 13

Comparison of convergence curve of LDEDBO with other algorithms.

Table 9 records the reconstruction results of each algorithm under the optimal network switch combination. The power dissipation after reconstruction by the LDEDBO decreased from 2498.7 kW before reconstruction to 1588.0 kW, a reduction of 36.45%, which is significantly higher than the reductions achieved by the GA, PSO, and DBO algorithms, which were 30.52%, 24.00%, and 33.43%, respectively. Figure 14 shows the power dissipation curves under the reconstruction of each algorithm, and after reconstruction by the LDEDBO, the power dissipation curve of each time period in the IEEE-69 node bus is notably reduced compared to the other algorithms. Following the reconstruction by the LDEDBO algorithm, the minimum node voltage increased from 0.9224 p.u to 0.9481 p.u, as shown in Fig. 15, which presents the overall voltage curves under the reconstruction of each algorithm. The voltage profiles of individual nodes after reconstruction through the LDEDBO approach the standard value of 1 within 24 h. This outcome substantiates the effectiveness of the introduced LDEDBO approach in tackling the dynamic reconstruction challenge of medium-scale distribution networks under time-varying loads.

Table 9 GA, PSO, DBO and LDEDBO multi-period dynamic reconfiguration analyses of IEEE-69 medium-scale node bus.
Fig. 14
figure 14

Active power dissipation of IEEE-69 medium-scale node bus in 24 h: (a) GA; (b) PSO; (c) DBO; (d) LDEDBO.

Fig. 15
figure 15

Voltage fluctuation of IEEE-69 medium-scale node bus in 24 h: (a) GA; (b) PSO; (c) DBO; (d) LDEDBO.

Conclusion

The present study proposes a dynamic reconfiguration model for distribution networks that integrates an improved meta-heuristic algorithm. First, the DBO algorithm is enhanced using Chebyshev chaotic mapping, Levy flight, and differential evolution algorithms to develop the intelligent algorithm LDEDBO. Next, the feasibility of the LDEDBO algorithm in addressing the reconfiguration problem of distribution networks is validated under specific equivalent load conditions. Finally, for distribution networks with load fluctuations, reconfiguration time periods are determined based on the load curve trends, and the LDEDBO algorithm is employed to obtain the optimal reconfiguration schemes for each time period, ensuring minimal active power losses and minimal voltage deviations.

The experimental results are as follows: in the IEEE-33 small node bus, network active power losses are reduced by 28.94%, while the node voltage increases from 0.9273 p.u to 0.9447 p.u; in the IEEE-69 medium node bus, network active power losses are reduced by 36.45%, with the node voltage rising from 0.9224 p.u to 0.9481 p.u.

Based on the established model, future research needs to delve deeper into the following aspects: (1) Considering the impact of time-varying DG on the dynamic reconfiguration model of distribution networks based on time-varying loads; (2) Exploring more reasonable methods for dividing reconfiguration time periods; (3) Reducing the time complexity of the algorithm while enhancing its convergence accuracy, stability, and robustness.