Abstract
To address the shortcomings of the whale optimization algorithm (WOA) in terms of insufficient global search ability and slow convergence speed, a differential evolution chaotic whale optimization algorithm (DECWOA) is proposed in this paper. Firstly, the initial population is generated by introducing the Sine chaos theory at the beginning of the algorithm to increase the population diversity. Secondly, new adaptive inertia weights are introduced into the individual whale position update formula to lay the foundation for the global search and improve the optimization performance of the algorithm. Finally, the differential variance algorithm is fused to improve the global search speed and accuracy of the whale optimization algorithm. The impact of various improvement strategies on the performance of the algorithm is analyzed using different kinds of test functions that are randomly selected. The particle swarm optimization algorithm (PSO), butterfly optimization algorithm (BOA), WOA, chaotic feedback adaptive whale optimization algorithm (CFAWOA), and DECWOA algorithm are compared for the optimal search performance. Experimental simulations are performed using MATLAB software, and the results show that the improved whale optimization algorithm has a better global optimization-seeking capability. The improved whale optimization algorithm is applied to the distribution network fault location of IEEE-33 nodes, and the effectiveness and accuracy of the distribution network fault zone location based on the multistrategy improved whale optimization algorithm is verified.
1. Introduction
The swarm intelligence optimization algorithm uses information sharing and competition between populations to find the optimal solution to an objective function by stochastically exploring and exploiting the feasible space with the help of the population evolutionary behavior of organisms. It is increasingly used in the engineering field because of its conceptual simplicity and ease of implementation.
The research on swarm intelligence optimization algorithms has flourished in recent years, and several new algorithms with different mechanisms and superior performance have emerged one after another, for example, the whale optimization algorithm (WOA) [1], monarch butterfly optimization (MBO) [2], slime mould algorithm (SMA) [3], moth search algorithm (MSA) [4], hunger games search (HGS) [5], Runge Kutta method (RUN) [6], colony predation algorithm (CPA) [7], weighted mean of vectors (INFO), [8] and Harris hawks optimization (HHO) [9]. Among them, the whale optimization algorithm was proposed by Seyedali Mirjalili, an Australian academic, in 2016. It is used to search for the optimal solution by simulating the predatory behavior of humpback whales, which has the advantages of simple process and fast convergence. As a new swarm intelligence optimization algorithm, the whale optimized algorithm still has some shortcomings and still has potential for development. It is of great significance to improve the algorithm and expand its application areas [10, 11]. In [12], a chaotic feedback adaptive whale optimization algorithm (CFAWOA) is proposed to improve the shortcomings of low accuracy in finding the best in complex function optimization problems. In [13], a chaotic search strategy-based whale optimization algorithm (CWOA) is proposed, and the algorithm is optimized in the problems of the difficult coordination of exploration and exploitation abilities and falling easily into local optimum. In [14], a Lévy flight-based whale optimization algorithm was used to improve the convergence of the algorithm. An adaptive decision operator-based whale optimization algorithm (IWOA) is proposed in [15], which improves the convergence speed of the algorithm. The continuous improvement in WOA optimization performance has led to WOA being used in a wide range of research areas. Currently, domestic and foreign researchers and scholars have applied the whale optimization algorithm to path planning [16], battery charging [17], optimal reactive power scheduling [18], load prediction [19], fault location [20] and other fields [21].
Scholars have made many improvements and achieved better experimental results at the moment, making WOA optimization relatively mature. However, the whale optimization algorithm still has not completely solved the problem of imbalance between global search ability and local exploitation ability, as well as the problem of easily falling into local optimum. To solve these difficulties encountered in the iterative process of the whale optimization algorithm, this paper analyzes the improvement methods of scholars in recent years, combines the advantages of different improvement methods, and proposes a chaotic whale optimization algorithm that incorporates differential evolution. The improved algorithm is named DECWOA for short in this paper. It is also applied to the distribution network fault location to verify the performance of DECWOA in finding the best performance.
2. Whale Optimization Algorithm WOA
This section introduces some preparations before completing the experiments. The optimization principles of WOA are introduced by understanding the three optimization-seeking phases of WOA. The algorithm simulates the predatory behavior of humpback whales and consists of three main stages: searching for food, encircling prey, and swimming spirally to feed. Its selection is determined by a random probability factor and a coefficient , as shown in Figure 1.

2.1. Searching for Food
The food search phase is the process by which whales randomly search for food. The current individual whale randomly selects another individual whale as a target and moves closer to its position. This process corresponds to the global development phase of the algorithm. They should be referred to as the following equation:where is a randomly selected individual whale from the current whale population, is the current individual whale position, is a vector of coefficients randomly distributed between , and should be referred to as the following equation:where is a random number within [0, 1]. is called the control parameter, is the current number of iterations, and is the maximum number of iterations. It can be seen that with a decrease linearly from 2 to 0, as the number of iterations increases, the value of the coefficient also decreases from 2 to 0.
2.2. Encircling the Prey
Whale schools employ a bubble net attack method when feeding on their prey. It consists of two mechanisms, contraction and spiral update, which correspond to the local exploitation phase of the WOA algorithm. In WOA, the individual of the population that has currently obtained the optimal solution is considered to be the target prey and all other individuals move closer to it. The mathematical model of the shrinkage envelope phase should be referred to as the following equation:where is the best positioned individual whale in the current population and is the length of the enclosing step. The smaller the value of , the smaller the step length of the whale swimming.
2.3. Swimming Spirally to Feed
During the spiral renewal phase, other whales will swim in a spiral for food as they approach the optimal whale. It results in a search for the best possible solution between them and the best individual. The initial point of the spiral update is the position of the current whale, and the target end point is the position of the current best whale. The mathematical model can be referred to as the following equation:where is the distance between the current individual whale and the best-positioned whale, is a constant coefficient, and belongs to a random number within [0, 1].
3. Whale Optimization Algorithm Incorporates Multiple Improvement Strategies
3.1. Sine Mapping Population Initialization
The method of population initialization for swarm intelligence optimization algorithms affects the speed of convergence and the accuracy of the algorithm. WOA will use random initial populations in the absence of relevant empirical information, resulting in an inability to ensure that whales are uniformly distributed throughout the solution space. Chaotic mappings generate random sequences from deterministic systems, which are ergodic and stochastic in nature [22, 23]. One-dimensional chaotic mappings, such as logistic mappings and Sine mappings, have simple structures and fast computational speed. In [24], it was verified that Sine chaos had more obvious chaotic properties than logistic chaos. Therefore, Sine chaos is used for the population initialization method of WOA. The expression of Sine chaos self-mapping is as follows:where the initial value cannot be 0, avoiding the immobility and zero point within . At a certain number of iterations, the system output will traverse the entire solution space.
3.2. Improved Adaptive Inertia Weights
The inertia weight is an important parameter in WOA. A constant inertia weight will reduce the efficiency of the algorithm and is not conducive to the global optimization of the algorithm [25, 26]. In [27], it is stated that larger inertia weights are beneficial for global optimization. Smaller inertia weights are beneficial for local mining. The ideal inertia weight strategy should present such characteristics: at the beginning of the iteration, it should have larger weights to ensure that the algorithm has a strong global search capability, and at the end of the iteration, it should have smaller weights to ensure that the algorithm has a strong local search capability. Therefore, a reasonable inertia weight is beneficial to balance the global exploration and local exploitation ability of the algorithm.
The improved adaptive inertia weight ω is introduced in equations (3) and (4), as shown in the equation.where is the fitness value of whale , is the best fitness value in the whale population at the first iteration of the calculation, and is the current number of iterations. The dynamic nonlinear property of ω is used to control the degree of influence of the whale position on the new whale position. The improved update formula is expressed as equations (7) and (8).
The improved adaptive inertia weights at the beginning of the iteration and the smaller adaptation values ensure that the algorithm has a larger inertia weight. On the contrary, the larger adaptation values at the later stage ensure that the algorithm has a smaller inertia weight, which is beneficial to the global optimization performance of WOA.
3.3. Differential Evolutionary Algorithm
The differential evolution algorithm (DE) mainly consists of three processes, namely variation, crossover, and selection [28, 29]. Its control parameters are three, which are the population size, the differential variation parameter , and the crossover probability . Firstly, the DE algorithm generates a new generation of variance vectors controlled by the differential variance parameter . Then, the crossover operation between the variance vector and the target vector is performed, and a new trial vector is generated. Finally, greedy selection is performed on the trial vector and the target vector, and the individuals with better fitness are selected to enter the next generation iteration process. After population initialization, three mutually different target vectors are randomly selected in the population, and a new variation vector is generated using the variation factor. It should be referred to as an equation.where is the variance factor, which belongs to the random number within .
After the mutation operation generates the mutation vector, the crossover operation is performed between the variance vector and the original target vector to generate the test vector. Two common crossover methods are binomial crossover and exponential crossover. Among them, binomial crossover is more commonly used, which is defined as the following equation:where is the dimension of the individual generated in the previous step. is the random number between . is the crossover factor, which is the random number within .
After the test vectors are generated, their fitness values are compared with the target vectors. The individual with the better fitness value is selected for the next generation. The is the fitness function, and the mathematical model of the selection operation is defined as the following equation:
The selection process can also be divided into two types: synchronous selection and asynchronous selection. Among them, the asynchronous selection approach has better performance than the synchronous selection approach. In the asynchronous selection approach, after each newly generated test vector is compared with the target vector, the better test vector immediately replaces the corresponding target vector in the population and participates in the update operation of the remaining population individuals. Therefore, the convergence speed of the algorithm is faster.
3.4. DECWOA Algorithm Description
The flow of improved DECWOA algorithm is shown as follows:
Step 1. Set the population size , the solution dimension , the maximum number of iterations , and the current number of iterations .
Step 2. Introduce Sine mapping to initialize the whale population . The tabular expression of the Sine chaotic self-mapping is shown in equation (5).
Step 3. After population initialization, three mutually dissimilar target vectors are randomly selected in the population. A new variation vector is generated using the variation factor, as shown in equation (9).
Step 4. After the variation operation generates the variation vector, the test vector is generated by crossover operation between the variation vector and the original target vector. The binomial crossover is defined as shown in equation (10).
Step 5. After the test vectors are generated, their fitness values are compared with those of the target vectors. The individuals with high fitness values are selected to enter the next generation. The mathematical model of the selection operation is defined as shown in equation (11).
Step 6. Calculate the value of the adaptive inertia weight . The expression for introducing the new adaptive inertia weights is shown in equation (6).
Step 7. The fitness value of each whale in the initial state is calculated and ranked by the fitness function.
Step 8. Refer to the appropriate whale position as the initial optimal solution of the algorithm, the optimal whale position , and its corresponding global optimal fitness value .
Step 9. Calculate the random probability factor p and the coefficient . The process set by the whale optimization algorithm is used to determine the next behaviors of the whale and thus selectively update the location of individual whales, as shown in equations (1)–(4).
Step 10. After the location update is completed, the fitness value is calculated again for all the whale individuals. If , the optimal fitness value . Otherwise, keep the current unchanged. is the optimal fitness value in generation .
Step 11. Determine whether the maximum number of iterations is reached, and if it is satisfied, terminate the iteration and output the current optimal solution. Otherwise, execute Step 9.
4. Experimental Results and Analysis
The experimental environment in this paper is based on an Intel(R) Core (TM) i7-7660U processor with 2.50 GHz CPU and 8.00 G of memory. The operating system is Windows 10 (64 bit). The simulation software is MATLAB R2020b. To verify the full performance of DECWOA, the benchmark test functions are selected to contain different spatial features for unimodal and multimodal. The names, exploration intervals, theoretical optimal values, and other attributes of the test functions are shown Table 1. Among them, F1∼F5 are unimodal test functions, F6∼F10 are nonlinear multipeak test functions, and F11∼F14 are solid-dimensional multipeak test functions. The population size of the algorithm is set to 30, and the dimensionality is 30 dimensions. To reduce the random error, the maximum number of iterations is set to 500, and the standard deviation, mean, best value, and worst value of the 30 experiments are obtained.
4.1. Time Complexity Analysis of DECWOA
The time complexity of DECWOA is the time consumption of the algorithm, which is the sum of the frequencies of all statements in the algorithm, and it is a function of the size of the problem solved by the algorithm. Considering that factors, such as computer hardware and software, can mask the strengths and weaknesses of the algorithm itself, this paper uses a prior analysis of the estimated algorithm. Assuming that the time complexity of DECWOA depends on the size of the problem, the time complexity of the algorithm can be expressed by the following equation:where denotes the problem size and denotes the number of times the basic operations of the algorithm are repeatedly executed. As the module n increases, the growth rate of the time of algorithm execution is proportional to the growth rate of . Therefore, the smaller is, the lower the time complexity of the algorithm and the higher the efficiency of the algorithm.
From a macroscopic point of view, in the optimization process of WOA, assume that the maximum number of iterations of the algorithm is , the dimension is , and the population size is . Then, according to the time complexity formula of the intelligent optimization algorithm, the time complexity of WOA is . For the improved DECWOA, although the number of cycles increases, the structure of the algorithm remains unchanged. It is still determined by the random probability factor and the coefficient to determine the foraging mode of individual whales, and the main cycle part of the algorithm is consistent with the basic WOA. Their time complexity is determined by the frequency of the innermost statement in the loop with the largest number of nested levels. Therefore, the time complexity of the improved DECWOA can be calculated as . Clearly, , and there is no increase in time complexity. However, from a microscopic point of view, the time complexity of DECWOA increases to some extent. Each Sine chaos initialization phase did not increase the time complexity. After population initialization, the target vector is selected and the experimental vector is generated using DE. Let the time complexity of DE be . In a word, from the microscopic point of view, the time complexity of the improved DECW OA is , however, the increase in each step does not cause an order of magnitude change. The total time complexity remains .
4.2. Impact of Different Improvement Strategies on Algorithm Performance
This section focuses on verifying the reasonableness and superiority of the three improvement strategies, as well as analyzing the magnitude of the contribution of different strategies to the algorithm. Firstly, the basic WOA is defined as WOA-1. The algorithm of WOA incorporating the Sine chaos initialization strategy is defined as WOA-2, the algorithm of introducing a new adaptive inertia weighting strategy into WOA is defined as WOA-3, and the strategy of WOA incorporating the difference variance algorithm is defined as WOA-4. Then, the above four models are compared with DECWOA improved by the hybrid strategy using the benchmark test function for simulation experiments, and the experimental data are shown as Table 2.
As can be seen in Table 2, the algorithm with the addition of the improved strategy has enhanced computational power compared to the basic WOA algorithm. From the test functions F7, F9, F13, and F14, it can be seen that WOA-3 and WOA-4 can find the theoretical optimal value. However, the analysis of the standard deviation of both shows that the optimization ability of WOA-4 is more stable. From the test functions F5, F7, and F11, it can be seen that WOA-1 outperforms WOA-2. From the test function F4, it can be seen that WOA-3 outperforms WOA-4. From the test function F12, it can be seen that WOA-2 outperforms WOA-3. However, the optimal value obtained by WOA-3 in 30 calculations is closer to the theoretical optimal value of F12.
Overall, the three improvement strategies have different degrees of improvement on WOA. The fusion difference evolutionary algorithm improves WOA-4 with the greatest improvement in computational power, followed by WOA-3 with improved inertia weights, and finally WOA-2 with Sine chaos optimized initial population. Therefore, DECWOA is a multistrategy improvement algorithm with fusion difference evolutionary algorithm as the main body and improved inertia weights and fusion chaos theory as the auxiliary means.
4.3. Performance Comparison with Other Optimization Algorithms
To verify the effectiveness of the DECWOA algorithm improvements in this paper, this section tests the performance of each algorithm using 14 test functions. To avoid bias in the results because of chance, the algorithms were run 30 times independently on each function. The butterfly optimization algorithm (BOA), the aquila optimizer (AO), the sparrow search algorithm (SSA), the whale optimization algorithm (WOA), the differential evolution (DE), the chaotic feedback adaptive whale optimization algorithm (CFAWOA), and the differential evolutionary chaotic whale optimization algorithm (DECWOA) are listed below on several standard test functions after the experimental results obtained after 30 independent runs (see Table 3).
From the experimental data in Table 3, it can be seen that the calculation accuracy of DECWOA is higher and the development ability is stronger in the single-peak test functions F1∼F5. The standard deviation is the smallest, which proves the good robustness of DECWOA. In the nonlinear multipeak test functions F6∼F10, DECWOA shows the best finding effect. The average value of its optimization search is better than the other six algorithms. In the solid-dimensional multipeak test functions F10 and F12, the average value of DECWOA is inferior to that of SSA and AO algorithms, indicating that the exploration ability of DECWOA still needs to be strengthened. On the whole, the improved DECWOA has greatly improved the merit-seeking ability. For example, in F1∼F14, the basic WOA has less merit-seeking ability than the SSA and AO algorithms. Even though CFAWOA has been improved, its optimization-seeking ability and robustness are not as good as DECWOA proposed in this paper. By comparing DE, WOA, and DECWOA, the experimental data show that the computational accuracy of DE is better than the basic WOA but inferior to DECWOA. Compared with the multipeak test functions F6∼F14, the optimization performance of the improved DECWOA is more prominent in the single-peak test functions F1∼F5.
4.4. Convergence Test of DECWOA
To more intuitively compare the convergence seeking performance of each algorithm in solving the test function, a comparison graph of the convergence curves of the various algorithms mentioned above in the optimization-seeking process is presented. Here, F1∼F3, F5, F6, F8, F11, F12, and F14 are selected, and the function images and convergence curves are shown in Figure 2.

(a)

(b)

(c)

(d)

(e)

(f)

(g)

(h)

(i)
From Figure 2, it can be seen that the improved DECWOA algorithm and algorithm in this paper are highly accurate and have relatively low volatility and good robustness in the process of finding the optimal. It also indirectly confirms that the improved strategy in this paper can make the original WOA jump out of the local optimal state faster. The convergence iteration curves of F1∼F2 show that DECWOA converges approximately linearly and its convergence speed is the fastest. On the convergence iteration curves of F3, F5, and F11, it can be seen that DECWOA converges approximately in a stepwise manner. Compared with WOA and CFAWOA, the convergence speed and the optimization finding accuracy of DECWOA have been significantly improved. The convergence curve of F6 shows that the convergence speed of DECWOA is not as fast as that of WOA and CFAWOA. DECWOA reaches the global optimum in about 350 iterations, while the basic WOA falls into the local optimum after about 60 iterations and does not easily jump out of the local optimum. The convergence iteration curves of F12 and F14 show that DECWOA outperforms the above six algorithms in terms of convergence speed, computational accuracy, and robustness. The convergence iteration curve of F3 shows that WOA basically shows stagnation when it converges to about 50 generations, while the improved DECWOA shows several inflection points before 300 generations, indicating that the improved strategy can make WOA jump out of local optimum effectively. It also indirectly confirms that the strategy of fused differential evolutionary algorithm can make WOA effectively avoid falling into local optimum, and the improved algorithm has good global exploration.
5. Application of DECWOA
For large-scale optimal solution problems in practical engineering applications, this section applies DECWOA to distribution network fault zone localization. The speed and accuracy of its localization are simulated and experimented. As shown in Figure 3, a standard IEEE-33 distribution network topology diagram containing Distributed Generation (DG) is established. In Figure 3, , , and are switching nodes containing FTU devices, which correspond to the feeder segments from . are distributed power sources, and they are selectively put into operation. In this paper, single fault location, multiple fault location, and distortion of fault information are set up for simulation and analysis, respectively. The classical particle swarm optimization (PSO), genetic algorithm (GA), whale optimization algorithm (WOA), and chaotic feedback adaptive whale optimization algorithm (CFAWOA) are selected and compared with the improved DECWOA in the process of fault location in the distribution network. The convergence curves of DECWOA are compared and analyzed. The effectiveness and accuracy of DECWOA in distribution network fault segment localization are verified.

5.1. Fault Location Mathematical Model
The fault location in the distribution network is a prerequisite for fault isolation and power supply restoration, which is based on the fault information collected by each feeder terminal unit (FTU) to comprehensively determine the zone where the fault occurs [30, 31]. When a fault occurs in the distribution system, the FTU installed at each switch node is able to detect a current value greater than the pretuned fault current value. The system will upload the fault information to the control master station and then start the fault location procedure for fault location [32, 33].
In the distribution network containing DG, since the tidal direction is not in the unique, this paper defines the direction of the system power pointing to the distributed power and load as the reference direction. Let be the actual measurement state of node switch , and the node is coded in the way shown in the equation.
DECWOA can determine the faulty zone using the actual measurement information of the node switches uploaded by the FTU. This process needs to be realized with the help of switching functions. In this paper, the switching function applicable to the multipower distribution network is selected as shown in the equation.where and are the number of all zones upstream and downstream of the node, respectively, and are the operating states of the upstream and downstream lines of the node, respectively, is the dropout of distributed power , is the distributed power into the distribution network, and is the distributed power removed from the distribution network, and is the number of distributed power.
Suppose the actual measured state of the node is A and the desired state calculated by the switching function is B. Then the fitness function represents the difference relationship between A and B. The reasonable construction of this relationship is the key to whether the DECWOA algorithm can accurately achieve fault location in the distribution network. The constructed fitness function is shown in the following equation:where is the adaptability value of the node , is the total number of node switches in the distribution system, is the weighting factor with a value of 0.5, is the total number of zones in the distribution system, and in general, the values of E and F are equal. The process of distribution network fault location based on intelligent calculation is the process of solving the minimum value of the fitness function.
5.2. Experimental Results and Analysis
In the simulation experiment, set the population parameter and the maximum number of iterations , and the simulation platform is built in MATLAB2021. We set nine different fault types, . To verify the localization accuracy of each algorithm, the simulation was cycled 50 times for each fault state, and the localization results are shown in Table 4. To more clearly demonstrate the advantages of DECWOA in locating faults in the distribution network with high speed and accuracy, a comparison of the convergence curves of the five algorithms is presented in Figure 4.

(a)

(b)

(c)

(d)
From Table 4, it can be seen that in , when a single fault occurs in the distribution network, all the other four algorithms have high fault location accuracy, except GA, and the fault location accuracy of DECWOA is 100%. The distortion of fault information has no significant effect on the localization accuracy of various algorithms. In , when multiple faults occurred in the distribution network, the localization accuracy of various algorithms significantly decreased. Among them, GA has the lowest localization accuracy with an average of 92.67%, and DECWOA maintains the highest accuracy with an average of 99.78%. Comparing , and , , these four sets of data show that the access of DG reduces the accuracy of distribution network fault localization. The accuracy of DECWOA is 98% in and 100% in other fault conditions. However, in practical engineering, it is less likely that multiple faults will occur in the distribution network at the same time. The improved performance of DECWOA optimization effectively improves its reliability in engineering applications. Compared with the basic WOA, the fault location accuracy of DECWOA is significantly improved.
Figure 4(a) corresponds to , and both distributed power sources are connected to the system operation. In the condition that a single fault occurs in and the node information is not distorted, all five algorithms can find the minimum adaptation value. Among them, DECWOA is the first to find the optimal fitness value of 0.5, and GA converges the slowest and finally also finds the minimum fitness value of 0.5. 4(b) corresponds to , and both distributed power supplies are connected to the system. In the condition of a single fault at and information distortion at node , DECWOA is the first to find the optimal adaptation value of 3. However, the convergence of WOA becomes significantly worse. 4(c) corresponds to , in which all five algorithms fall into local optima when multiple faults occur at and , and no information distortion occurs at nodes. DECWOA is the first to jump out of the local optimum in the 8th iteration and obtains the optimal value of 1. 4(d) corresponds to , in which multiple faults occur at , , and simultaneously and no information distortion occurs at node . DECWOA is the first to jump out of the local optimum in the 7th iteration and obtain the optimal fitness value of 5.5. The other algorithms take longer time to fall into the local optimum. Among them, CFAWOA fails to jump out of the local optimum, which leads to the fault location error. In conclusion, DECWOA can be well-applied in the distribution network fault location.
6. Conclusions
To address the problems of slow convergence and poor global search ability of the underlying WOA in this paper, Sine chaos initialization is used to increase the initial population diversity. The global search and local exploitation ability are improved by introducing a new adaptive inertia weighting strategy. The differential evolution algorithm is also introduced to enhance the ability of the algorithm to jump out of the local optimum. Based on the above multiple improvement strategies, a differential evolution chaotic whale optimization algorithm is proposed. Fourteen benchmark functions and distribution network fault location models are selected for optimization experiments. The results show that the improved whale optimization algorithm based on the hybrid strategy has significantly improved in optimization-seeking accuracy and convergence speed.
Data Availability
Some data of our team need to be kept confidential. If necessary, please ask the authors for it.
Conflicts of Interest
The authors declare that there are no conflicts of interest regarding the publication of this paper.
Acknowledgments
This work was financially supported by Fujian Provincial Science and Technology Department on the project (Grant no. 2019J01773).