Abstract

This paper proposes an improved whale optimization algorithm with chaotic mapping and adaptive iteration strategy (CMAIS-WOA). This algorithm addresses the issues of the WOA algorithm that is prone to local optimal solutions with low stability. CMAIS-WOA utilizes chaotic mapping to enhance the diversity and coverage of the initial population. Also, it adaptively adjusts the weight values based on the current distribution of whale populations and the fitness of search agents. In addition, CMAIS-WOA uses an improved nonlinear convergence factor to adjust the breadth-first and depth-first search during the optimization process. The performance of the proposed CMAIS-WOA is evaluated by using 13 classical benchmark functions and IEEE CEC2014 test suite. The experimental results show that CMAIS-WOA effectively improves the stability of the optimal solution and helps the algorithm to approach the global optimal solution. The method proposed in this paper contributes to the field of optimization which solves problems more powerfully and efficiently.

1. Introduction

The optimization problem has always been a hot issue in many fields such as computer science, artificial intelligence, and engineering practice. In response to this problem, many scholars have designed various intelligent algorithms inspired by biological and physical phenomena in nature and the behavior of animal groups. These algorithms include the particle swarm optimization (PSO) algorithm [1], ant colony optimization algorithm (ACO) [2], differential evolution (DE) algorithm [3], firefly algorithm (FA) [4], bat algorithm (BA) [5], grey wolf optimization (GWO) [6], gravitational search algorithm (GSA) [7], fireworks algorithm (FWA) [8], sine cosine algorithm (SCA) [9], naked mole-rat (NMR) algorithm [10], slime mould algorithm (SMA) [11], farmland fertility algorithm (FFA) [12], Harris hawks optimization (HHO) algorithm [13], cuckoo search optimization (CSO) algorithm [14], sparrow search algorithm (SSA) [15], ant lion optimizer (ALO) algorithm [16], African vultures optimization algorithm (AVOA) [17], mountain gazelle optimizer (MGO) [18], artificial gorilla troops optimizer (GTO) [19], improved gorilla troops optimizer (IGTO) [20], improved hybrid aquila optimizer and African vultures optimization algorithm (IHAOAVOA) [21], and enhanced honey badger algorithm (EHBA) [22]. They provide powerful tools for the optimal solution of complex functions. Among them, the whale optimization algorithm (WOA) [23] is a metaheuristic algorithm proposed by Australian scholars in 2016, which is a kind of intelligent optimization algorithm. The algorithm realizes the optimization of the objective function by simulating the foraging behavior of whales in the ocean. Due to its advantages of good optimization performance and few control parameters, it has been widely applied in many fields, such as capacitor optimization site selection [24], CO2 emission prediction [25], clinical medicine [26], image segmentation [27], and power system [28]. WOA has great potential in the fields of engineering, medicine, and economics. Then, more scholars have carried out detailed research on this algorithm.

Although the WOA algorithm has achieved results in many projects, it has still some flaws [29]. Therefore, scholars have proposed many measurement technologies to make up for the shortcomings in swarm intelligence algorithms. Salgotra et al. [30] proposed three different modified algorithms of WOA to improve its explorative ability. Zhang and Wang [31] proposed an improved WOA based on nonlinear adaptive weight and golden sine operator (NGS-WOA). This algorithm introduced nonlinear adaptive weights, which enabled the search agent to adaptively explore the search space and balance the development and exploration phases. Also, it improved the defects of low accuracy and slow convergence speed of WOA. Jiang et al. [32] proposed an improved WOA (IWOA), which combined crossover and mutation operations in DE with the whale optimization algorithm. IWOA has higher efficiency, faster convergence speed, better accuracy, and stability of solution. Fan et al. [33] proposed a new improved WOA with a joint search mechanism called JSWOA, which can maintain the diversity of the initial population for global search. Also, a new adaptive inertia weight was given to improve the convergence accuracy and speed while jumping out of the local optimum. Tang et al. [34] proposed a WOA mixed with an artificial bee colony (ACWOA). It integrated an artificial bee colony algorithm and chaotic mapping, which effectively avoided the local optimum and improved the quality of the initial solution. Li et al. [35] proposed a chaotic strategy-based opposition-based learning adaptive variable speed WOA (CQAWOA). This algorithm was used to solve the problem of insufficient convergence accuracy and convergence speed of WOA. Oliv et al. [36] proposed the chaotic WOA (CWOA) to help WOA and avoid approaching local optimal solutions.

The above works of literature have extensively studied the problems of low efficiency, low accuracy of solution, and poor local optimal ability of WOA, respectively. However, these studies did not comprehensively consider the distribution of the population and the fitness of searching agents when designing the improvement methods. In addition, some improvement algorithms are too complex to reduce their time complexity. Therefore, this paper proposes CMAIS-WOA, which is a new algorithm to solve the mentioned problems. CMAIS-WOA can improve the defect of the low stability of optimal solution when WOA runs many times. At the same time, it can solve the problem that the search agent is easy to fall into the local optimum. Table 1 shows the comparison of various characteristics between the proposed method and related algorithms.

As shown in Table 1, the superiority of CMAIS-WOA lies in the integrated consideration of factors such as population distribution and fitness, which makes the optimization process more efficient. Moreover, the algorithm is concise in its steps and easy to implement and apply. In addition, it integrates and unifies important concepts involved in literature such as [31, 36]. Also, it can achieve diversified search and find the optimal solution. In the field of navigation, this algorithm can be used for the design of bow lines of the ship. The various physical parameters of the bow are used as position components of searching agents. Also, corresponding upper and lower bounds are set based on their actual physical meanings to find the optimal design solution. Therefore, CMAIS-WOA can help designers to design bow lines with better shape and lower resistance.

The contributions of this paper are as follows.(1)This paper proposes an improved whale optimization algorithm with chaotic mapping and adaptive iterative strategy(2)This paper uses chaotic mapping to improve the defects of insufficient diversity and poor coverage of the population during initialization, which improves the stability of the optimal solution(3)In this paper, WOA is improved by using an adaptive iterative strategy and an improved nonlinear convergence factor to make it approach the global optimal solution(4)The proposed algorithm can avoid the excessive increase in the complexity of the algorithm because it is relatively simple(5)The experimental results demonstrate the effectiveness of the proposed algorithm

The rest of this article is organized as follows. Section 2 describes the related work. Section 3 introduces the basic principles of WOA. Section 4 introduces the newly proposed algorithms CMAIS-WOA. Section 5 verifies the proposed scheme through experiments. Finally, Section 4 represents the newly proposed algorithms CMAIS-WOA.

Gharehchopogh [37] studies and analyzes somequantum-inspired metaheuristic algorithms. This paper also introduces many optimization algorithms. Li et al. [38] proposed a modified whale optimization algorithm (MWOA) with multistrategy mechanism. MWOA improved the initialization, control parameters, and search strategy of WOA. This is able to solve the problems of slow convergence and local optimality of WOA. MWOA facilitates spatial search using the Lévy antiperturbation strategy. This can enhance the global search capability. Uzer and Inan [39] proposed five hybrid algorithms to improve the whale optimization algorithm. These algorithms are mainly developed by combining WOA and PSO algorithms. These algorithms explore the search space of the problem more efficiently and then avoid local optimization. Fan et al. [40] proposed a novel hybrid metaheuristic algorithm ESSAWOA. ESSAWOA combined salp swarm algorithm (SSA) and lens opposition-based learning (LOBL) strategy to enhance WOA. ESSAWOA can solve the global optimization problem efficiently.

3. Basic Principles of WOA

Inspired by the group hunting behavior of humpback whales in nature, WOA is proposed to better solve the function optimization problem. In terms of function optimization, this algorithm has better convergence speed and convergence accuracy than DE, PSO, GSA, and other algorithms. Also, the algorithm is easy to be implemented by few parameters to be set only.

3.1. WOA

Humpback whales are tropical marine creatures that prefer to travel in groups and cooperate to capture prey by making bubble nets. When the number of prey is relatively small, humpback whales generally hunt alone or in groups of 2 to 3. When the number of prey is relatively large, humpback whales will form a team to hunt. The team consists of about 60 whales at most.

Based on the bubble-net attaching behavior of humpback whales, WOA [23] was proposed. WOA is divided into two stages, which are the bubble-net attacking stage and the search for prey stage. Assume that the space for searching food is d-dimensional space. The number of whales in the prey group is M. Then, the position of the j-th whale in the d-dimensional space can be expressed as . Meanwhile, the current optimal position is expressed as . There are multiple search agents. At each subsequent iteration, the search agents try to update their position until the target prey is found.

3.1.1. Bubble-Net Attacking

During this stage, the whale’s predation behavior is divided into two forms. One is the shrinking encircling mechanism, and the other is the spiral updating position. When the whales take the former, the individual whales in the whale procession all initiate a siege towards the prey. Among them, the shrinkage encirclement mechanism is expressed as formula (1). Also, formula (2) represents the spiral updating position.

The relevant descriptions of formulas (1) and (2) are described as follows. represents the current d-dimensional space. represents the distance between the whale individual and the optimal individual before the renewal of the position. represents the position coordinate vector of the prey. represents the coordinate vector of a whale individual in the global scope. The t represents the number of iterations. b is a constant that determines the shape of the spiral when updating the position. represents a random number in [−1, 1]. and are coefficient vectors. represents a random vector distributed in the range of [0, 1]. is the maximum number of iterations, and is a convergence factor.

In fact, in the real bubble-net attaching behavior, the shrinking encircling mechanism and the spiral updating position are carried out randomly with a probability of 0.5. The actual state is shown in the following formula:where is a free number in [0, 1].

3.1.2. Search for Prey

During this phase, individual whales in a whale team conduct random searches based on their location relative to each other. The search for prey is expressed as follows:

In formula (7), is the location of the current randomly selected prey from the whale population.

The overall representation of WOA is as follows:

3.1.3. Pseudocode of WOA

In order to present the logic of the WOA algorithm in more detail, its pseudocode is as follows (see Algorithm 1).

Input: Number of whales , maximum number of iterations , dimension , lower and upper bounds of whale population location variables, and optimization function.
Output: Optimal solution of the objective function, optimal position of searching agent, and searching curve.
(1)Randomly initialize the whale population
(2)Initialize iteration counter t = 0
(3)while ( < ) do
(4)for i = 1 to do
(5)  Bring out-of-bounds whale individuals back into the boundary
(6)  Calculate the fitness and location of the current optimal search agent
(7)end for
(8)for
(9)  Calculate
(10)  Calculate
(11)  Calculate
(12)  for j = 1 to d do
(13)   if ( ≥ 0.5)
(14)    Update the current individual position according to formula (6)
(15)   end if
(16)   else if ( < 0.5)
(17)    if (|| < 1)
(18)     Update the current individual position according to formula (1)
(19)    else if (|| ≥ 1)
(20)     Update the current individual position according to formula (7)
(21)    end if
(22)   end for
(23)  end for
(24)  t = t + 1
(25)end while

The specific steps of WOA are as follows:Step 1. Set the relevant parameters of the algorithm.Step 2. Randomly initialize each individual of the whale population.Step 3. Calculate the fitness value of each individual.Step 4. Record the optimal individual and its position .Step 5. Determine whether the termination condition is met. If satisfied, output the optimal solution; if not, return to Step 5Step 6. Calculate according to formula (5). Update and according to formulas (3) and (4).Step 7. Generate a random number in [0, 1]. If  ≥ 0.5, update the position according to formula (2), then go to step 3; if  < 0.5, judge the size of ||. If || ≥ 1, update the position according to formula (7), then go to step 3; if | |< 1, update the position according to formula (1), and go to step 3.

4. Improved WOA

The research is shown in [41]. The quality of the initial population affects the algorithm’s accuracy and convergence speed. Better diversity of the initial population is helpful to improve algorithm performance. However, WOA usually uses a random method to generate the initial population while solving optimization problems. It may result in uneven distribution of the initial population. Therefore, this paper uses chaotic mapping to initialize the population.

When the number of iterations increases, WOA tends to fall into the local optimal solution. In this paper, the population distribution and fitness scenarios are considered comprehensively. Then, an adaptive iteration strategy is designed. It can adjust the size of the weight value according to the current distribution of the whale population and the fitness of the current search agent location.

This paper proposes two improvements based on WOA. First, a chaotic map can improve the robustness of the algorithm. Second, an adaptive iterative strategy is combined with an improved nonlinear convergence factor to develop the ability of global search of the algorithm. Therefore, CM-WOA and AIS-WOA constitute a novel WOA (CMAIS-WOA). Among them, CM-WOA is the improved WOA with chaotic mapping. AIS-WOA is the improved WOA with an adaptive iterative strategy.

4.1. Improved WOA with Chaotic Mapping

Aiming at the defect of poor optimization stability of the search agent when WOA optimizes the objective function multiple times, CM-WOA uses a population initialization strategy based on an improved chaotic mapping. It tries to make the initial population cover the entire solution space as much as possible. This lays the foundation for the diversity of the population for the global search and local search of the algorithm. Moreover, the ergodic coverage is enhanced. Then, it can improve the robustness of the algorithm. The strategy is described in detail as follows.

In the field of optimization, chaotic mapping can be used to replace pseudorandom number generators, which generate chaotic numbers between 0 and 1. The use of chaotic sequences to initialize the population and other operations will have a good effect on the entire process of the algorithm. Also, it can often achieve better results than pseudorandom numbers. Currently, the most widely used chaotic map is the logistic map method. The populations treated with this method are diverse. Also, these populations can be extended to the entire solution space. Based on this, this paper further improves the method and uses it to initialize the population of CM-WOA. Regarding the improved logistic chaotic map method, formula (11) shows the chaotic matrix variables required to obtain the initialized population. Based on the specification requirements of the population matrix, formula (11) is iterated times to generate the chaos variable matrix required to initialize the population.where represents a chaotic variable whose value is distributed in [0, 1], is the population dimension of the whale population after initialization, and represents the number of search agents to initialize the population. Furthermore, the initialized population of the whale solution space can be obtained after each element in the chaotic matrix is converted, as shown in the following formula:

In formula (12), and are the lower and upper bounds of the variables of whale population position, respectively. By this formula, the initial population of whales can be mapped out according to the chaotic matrix.

In order to reflect the internal logic of CM-WOA, the pseudocode of CM-WOA is shown as follows (see Algorithm 2):

Input: Number of whales , maximum number of iterations , dimension , lower and upper bounds of whale population location variables, and optimization function.
Output: Optimal solution of the objective function, optimal position of searching agent, and searching curve.
(1)Initialize whale population based on chaotic mapping
(2)Initialize iteration counter t = 0
(3)while ( < ) do
(4)for i = 1 to do
(5)  Bring out-of-bounds whale individuals back into the boundary
(6)  Calculate the fitness and location of the current optimal search agent
(7)end for
(8)for
(9)  Calculate
(10)  Calculate
(11)  Calculate
(12)  for j = 1 to d do
(13)   if ( ≥ 0.5)
(14)    Update the current individual position according to formula (6)
(15)   end if
(16)   else if ( < 0.5)
(17)    if (|| < 1)
(18)     Update the current individual position according to formula (1)
(19)    else if (|| ≥ 1)
(20)     Update the current individual position according to formula (7)
(21)    end if
(22)   end for
(23)  end for
(24)t = t + 1
(25)end while

Meanwhile, the execution steps of CM-WOA are as follows.Step 1. Set the relevant parameters of the algorithm.Step 2. Initialize each individual of the whale population based on formulas (11) and (12).Step 3. Calculate the fitness value of each individual.Step 4. Record the optimal individual and its position .Step 5. Determine whether the termination condition is met. If satisfied, output the optimal solution; if not, return to Step 5.Step 6. Calculate according to formula (5). Update and according to formulas (3) and (4).Step 7. Generate a random number in [0, 1]. If  ≥ 0.5, update the position according to formula (2), then go to step 3; if  < 0.5, judge the size of ||. If || ≥ 1, update the position according to formula (7), then go to step 3; if || < 1, update the position according to formula (1), then go to step 3.

4.2. Improved WOA with Adaptive Iterative Strategy

In order to improve the optimal ability of WOA, adaptively an adjusting method designs the weights based on population distribution and individual fitness of whales. So, the algorithm can adjust the weight value adaptively according to the current distribution of the whale population and the fitness of the current position of the search agent. AIS-WOA can solve the problem that the search agent is prone to fall into the local optimization and deviate from the global optimal solution. At the same time, an improved nonlinear convergence factor is designed to adjust the optimal ratio of the breadth and depth for WOA in the optimal process. The combination of the two schemes can improve the ability of individual whales to move closer to the global optimal solution. Both strategies are described as follows.

In order to improve the global search and local search capabilities of WOA, the inertia weight factor is changed to a function that changes with the number of iterations. The design of this function is shown in the following formulas:

In formulas (13) and (14), is the weight of dynamic adaptive changes with population distribution and the fitness of individual locations of whales. The and represent the upper and lower bounds of the variable. The , , and represent the position vector of the worst whale and optimal whale in the current state of the population distribution. Also, the represents times of iterative foraging in the current population. In addition, and are parameters of this function. For the , in the iteration process, the fitness of all individuals in the whale population is sorted from small to large. Then, this ordered population is divided into two parts, superior end and inferior end. Furthermore, the average values and for the fitness level of superior and inferior ends are obtained. Finally, , , and are compared to get the of the current search agent.

Based on the above, the shrinking encircling mechanism and the spiral updating position of the improved whale bubble-net attacking behavior are described as formulas (15) and (16). In addition, formulas (17) and (18) are expressions of relevant variables. Where b is a constant that determines the shape of the log arithmetic spiral, and  =  represents the distance between the current whale individual and the current best search agent in the d-dimensional space.  =  represents the position vector of the i-th whale in the d-dimensional space in the t + 1-th iteration. represents the coordinate vector of the optimal solution.

Under the action of this weight value, when the search agent for a relatively good position or individual differences in the population is small, the algorithm will produce less disturbances to the current prey. This facilitates the search for the optimal solution in the current range. Conversely, if the individual differences in the population are large or the search agent deviates far from the optimal whale individual, the algorithm will give greater disturbance to the prey. Therefore, AIS-WOA can look for prey in other locations, which improves its global optimal searchability. Moreover, whales can adaptively adjust the weight value according to the current distribution and fitness of the population. Therefore, in the process of searching for prey, whales are no longer restricted to one form but adaptively select the current prey in various forms. This makes the optimal process more diverse. Furthermore, the solution accuracy of the algorithm can be improved. The optimization ability of the algorithm can be increased. Also, the algorithm can avoid missing the global optimal solution.

The heuristic algorithm of swarm intelligence includes the breadth-first search and the depth-first search in the whole optimal process. Through the analysis of the algorithm, it is found that the coefficient vector affects the global and local search distribution in the algorithm. The change in is determined by the convergence factor [42]. Furthermore, this factor is improved to alleviate the problem that the algorithm is easy to fall into the local optimization. The improved convergence factor is shown in the following formula:

Formula (19) can better adjust the breadth-first search and depth-first search of the algorithm in the optimal process so that the ratio of 1 : 1 will not appear during the search. This formula increases the search ratio of the algorithm to the global optimal solution. At the same time, the convergence speed and accuracy of the algorithm are improved.

The pseudocode description of AIS-WOA is as follows (see Algorithm 3):

Input: Number of whales , maximum number of iterations , dimension , lower and upper bounds of whale population location variables, and optimization function.
Output: Optimal solution of the objective function, optimal position of searching agent, and searching curve.
(1)Randomly initialize the whale population
(2)Initialize iteration counter t = 0
(3)while ( < ) do
(4)for i = 1 to do
(5)  Bring out-of-bounds whale individuals back into the boundary
(6)  Calculate the fitness and location of the current optimal search agent
(7)end for
(8) Calculate the nonlinear convergence factor
(9)for
(10)  Calculate
(11)  Calculate
(12)  Calculate
(13) Calculate the improved inertia weight factor
(14)  for j = 1 to d do
(15)   if ( ≥ 0.5)
(16)    Update the current individual position according to formula (16)
(17)   end if
(18)   else if ( < 0.5)
(19)    if (|| < 1)
(20)     Update the current individual position according to formula (15)
(21)    else if (|| ≥ 1)
(22)     Update the current individual position according to formula (7)
(23)    end if
(24)   end for
(25)  end for
(26)  t = t + 1
(27)end while

The detailed steps of AIS-WOA are as follows:Step 1. Set the relevant parameters of the algorithm.Step 2. Randomly initialize the whale population.Step 3. Calculate the fitness value of each individual.Step 4. Record the optimal individual and its position .Step 5. Determine whether the termination condition is met. If satisfied, output the optimal solution; if not, return to Step 5.Step 6. Calculate according to formula (19). Update and according to formulas (3) and (4).Step 7. Calculate based on formulas (13) and (14).Step 8. Generate a random number in [0, 1]. If  ≥ 0.5, update the position according to formula (15), then go to step 3; if  < 0.5, judge the size of ||. If || ≥ 1, update the position according to formula (7), then go to step 3; if || < 1, update the position according to formula (14), then go to step 3.

4.3. Improved WOA with Chaotic Mapping and Adaptive Iterative Strategy

CMAIS-WOA is a combination of CM-WOA and AIS-WOA, which solves not only the defect of the poor stability of WOA optimization but also the problem that WOA is easy to fall into local optimization. The process of CMAIS-WOA is shown in Figure 1. In the figure, the parameter m controls the selection of the algorithm. If m equals 1, the improved WOA can execute CM-WOA; otherwise, it executes AIS-WOA.

Time complexity reflects the running efficiency of an algorithm and shows an important factor to judge the performance of an algorithm. When the processing time of whale boundary conditions is t1, the time to calculate the fitness value of the objective function is f(n). The replacement time to compare with the current optimal fitness value is t2, and the calculation time of the coefficient vector is t3. Then, the time complexity of this stage is T2 = O (N (n × t1 + f(n) + t2 + t3)) = O (n + f(n)). When there are m1 whales in the population carrying out random walk for food, m2 whales carrying out contraction to surround prey and m3 whales carrying out spiral path to attack prey. Then, the time of position to update per dimension of whales executing the three strategies is t4, t5, and t6, respectively. Then, the time complexity of this stage is T3 = O (N(m1(n × t4) + m2(n × t5) + m3(n × t6))) = O (n). In summary, the time complexity of WOA is T1 + T2 + T3 = O (n + f(n)). Meanwhile, CMAIS-WOA is analyzed in detail, and its time complexity is O (n + f(n)). Based on the above analysis, the time complexity of CMAIS-WOA and WOA in this paper is the same. Therefore, the execution efficiency of the algorithm is not reduced well.

5. Experimental Results and Analysis

5.1. Benchmark Functions

In this paper, 13 benchmark functions F1–F13 are used to verify the effectiveness of CMAIS-WOA. These functions are roughly classified into unimodal functions and multimodal functions. Among them, the unimodal function is F1–F7. They have only one global optimal solution, which can be used to evaluate the local utilization ability and convergence speed of the algorithm. The multimodal function is F8–F13. They have multiple local optimal solutions, which can be used to evaluate the searchability of the algorithm. These benchmark functions are shown in Table 2. They all take the minimum value as the optimal value. The solution format is 30 dimensions. In this experiment, it records the results of running the benchmark functions 100 times. In this paper, the standard deviation is used to measure the optimization stability of the algorithm, and the optimal value of the results of 100 times is used to measure the optimization ability of the algorithm. The collected data are used to verify the optimization performance of CMAIS-WOA by calculating and analysing the standard deviation and the maximum value. Then, the proposed algorithm in this paper has a high performance.

The hardware environment of the computer used in this experiment is Intel(R) Core (TM) i5-8250U CPU@ 1.60 GHz 1.80 GHz. The software environment is MATLAB R2017b. In order to fully utilize the optimization performance of CMAIS-WOA, the parameters are set as follows. The constants b in formula (6) and formula (15) are set to 1. The parameters d1 and d2 in formula (12) are set to 0.005. This setting can make the experimental results better. Also, the source code to simulate is available for downloading in the GitHub link as follows: https://github.com/znlazy/WOA.

5.2. Verification of Algorithm Stability

Because it is necessary to verify the stability of the optimization results of CMAIS-WOA, this section uses the standard deviation as the performance indicator. In [31], various optimization algorithms are calculated. This paper compares PSO algorithms [1], FA [4], FWA [8], SCA [9], WOA [23], and DE [43] with CMAIS-WOA. To ensure the best results, the configuration parameters of each algorithm are set to the optimal values proposed by the author in the original article. The parameters of these algorithms are shown in Table 3. For a fair comparison, the maximum number of iterations of the seven algorithms is set to 1000. The size of the population is set to 30. The experimental results are shown in Table 4.

As shown in the table, the proposed CMAIS-WOA has the best performance on F1, F2, F6, and F7 on unimodal functions. WOA performs best on functions F3, F4, and F5. PSO performs well on functions F1, F2, and F6. FA performs well on functions F1 and F6. FWA performs well in F1 and F2. SCA does well in F2. DE performs well in F13. On multimodal functions, CMAIS-WOA performs best on functions F9, F10, F11, F12, and F13. WOA performs best on function F8. FA does well in F12 and F13. FWA is the best performer in F11. Therefore, CMAIS-WOA performs well on 69.2% of the functions. WOA and FA perform well on 30.8% of the functions. PSO and FWA perform well on 23.08% of the functions. SCA and DE perform well on the 7.7% function. Therefore, the improved strategy proposed in this paper can effectively improve the convergence speed of WOA and the stability of the optimal solution.

5.3. Verification of Algorithm Optimization Ability

The optimization performance of CMAIS-WOA is evaluated by running CMAIS-WOA and other optimization algorithms on 13 benchmark functions 100 times, respectively. During the whole iterative process, the convergence factor and the coefficient variable control the breadth-first search and depth-first search of whale foraging behavior. is the controller of the search pattern for the entire optimization process. By improving it, CMAIS-WOA changes the 1 : 1 optimization ratio of breadth-first search and depth-first search. In Figure 2, CMAIS-WOA performs an extensive global search while iterating. It preserves the diversity of the population. In this figure, A1 represents before improvement, and A2 represents after improvement.

In this experiment, the minimum value is used as the performance indicator. It is used to express the optimization ability of the algorithm on the corresponding function. The comparison results are shown in Table 5.

In Table 5, CMAIS-WOA has the best performance on functions F1, F2, F3, F4, F7, F8, F9, and F10. Also, it performs well on function F6. WOA performs well on functions F1, F2, F3, F4, and F10. PSO and FA perform well on functions F11, F12, and F13. FWA performs best on functions F9 and F11. DE performs well on function F13. Therefore, CMAIS-WOA finds the theoretical optimum on the 69.2% function. WOA found the theoretical optimum on the 38.5% function. PSO and FA find the theoretical optimum on the 23.08% function. FWA finds the theoretical optimum on the 15.4% function. DE finds the theoretical optimum on the 7.7% function. Moreover, CMAIS-WOA is 30.7% higher than WOA in the global optimal solution search efficiency. Therefore, the improved WOA can improve the optimization ability of the algorithm. It is worth mentioning that CMAIS-WOA performs well on the same number of benchmark functions in this experiment and the verification experiment of the algorithm stability, all of which are 9. However, the types of these 9 benchmark functions are different.

Figure 3 shows the benchmark function iteration process with good performance of CMAIS-WOA. It records the iterative trajectory of the search agent to find the global optimal solution. The metaheuristic algorithm makes an improved design for the inertia weight factor value and nonlinearly adjusts the convergence factor. Therefore, it has a good breadth-first search and depth-first search layout structure throughout the optimization process. First, the breadth-first search is significant, which guarantees the algorithm priority in global search. Second, the convergence speed is fast, and the global optimal solution is efficiently approached.

Figures 3(a), 3(c), 3(e), 3(g), 3(i), 3(k), 3(m), 3(o), and 3(q) are 3D contour maps of the functions F1, F2, F3, F4, F6, F7, F8, F9, and F10 based on CWAIS-WOA, respectively. From this figure, the optimal value for distributions of functions F1, F2, F3, F4, F6, and F10 is relatively concentrative. Therefore, they are not easily misled by partial solutions. The optimal values of functions F7, F8, and F9 are scattered and easily misled by partial solutions. Figures 3(b), 3(d), 3(f), 3(h), 3(j), 3(l), 3(n), 3(p), and 3(r) are the graphs of the iterative process of the above function, respectively. They show the process of the function converging to the global optimal solution. For function F1, CMAIS-WOA searches in a relatively large range before the 330th iteration. After the 330th iteration, it began to conduct a more precise search. The speed of updating the optimal search agent is very fast. Therefore, the cut-off point for the number of iterations in F1 is 330. Moreover, the cut-off points for the number of iterations in F2, F3, F4, F6, F7, F8, F9, and F10 are 470, 350, 340, 320, 180, 20, 17, and 370, respectively. Additionally, Table 6 shows the final optimal search agent positions for these benchmark functions.

Furthermore, the position of each function falling to the lowest point in the graph is analyzed and summarized. The curve of function F2 drops last. It is around the 470th iteration. Also, the curve of function F9 drops earliest. It is around the 17th iteration. The number of iterations for the former is about 27 times that of the latter. This shows that the amount of computation required by function 2 is relatively large, but, at the same time, the search range is large. On the contrary, the function F9 requires a relatively small amount of computation. However, it also shows that the search scope of this function is relatively small.

5.4. Comparison of Algorithm Performance on CEC2014

In order to further verify the performance and effectiveness of CMAIS-WOA algorithm, the CEC2014 benchmark set proposed by [44] is the optimal result. In the comparative experiment, all algorithms adopt the same experimental parameters for the fairness of comparison. The population size is 30, and the number of iterations is 30000. For each test function, each algorithm is run independently for 50 times. Its average accuracy and standard deviation are recorded. The results are shown in Table 7. CMAIS-WOA performs well in functions F5, F6, F9–F16, F18, F19, F22, F23, F24, F26, and F28–F30. He performed well in 19 functions and ranked first. Therefore, CMAIS-WOA has the best performance to compare with all other algorithms.

In view of the shortcomings of the WOA algorithm, this paper will improve it from two aspects. First, the chaotic map makes the initial population cover the entire solution space as much as possible. Also, the stability of the optimal solution can be improved. Second, the adaptive iterative strategy can adaptively adjust the weight value according to the current distribution of the whale population and the fitness of the current search agent location. At the same time, the improved nonlinear convergence factor can adjust the proportion of breadth search and depth search in the optimal process. The combination of the two schemes further improves the optimization performance of the algorithm. The experimental results show that CMAIS-WOA has better optimization performance, high accuracy, and fast convergence compared with other algorithms.

CWAIS-WOA still has two certain limitations, even though it performs well in optimization issues. First, CWAIS-WOA may be affected by the curse of dimensionality, thus reducing its effectiveness in the case of high-dimensional optimization. Second, the features of the optimization issue could restrict the algorithm’s application. To address these limitations, further improvements can be made to CWAIS-WOA. For example, dimensionality reduction techniques such as principal component analysis (PCA) and linear discriminant analysis (LDA) can be used to mitigate the effects of high-dimensional problems. Additionally, in order to broaden the applicability of the algorithm, those improvements can be combined with other optimization algorithms, such as the particle swarm optimization (PSO) algorithm and the ant colony optimization (ACO) algorithm.

6. Conclusion and Future Works

This paper presents CMAIS-WOA to address the drawbacks of WOA for solving optimization problems. The proposed algorithm is based on WOA and embedded with chaotic mapping, adaptive iteration strategy, and nonlinear convergence factor. The population distribution and fitness scenarios are integrated into the optimal process by CMAIS-WOA. It enables a broad search for the best solutions. It also has the advantage of having clear steps. In the maritime industry, CMAIS-WOA is crucial for directing the design of ship bow profiles. In this paper, the effectiveness of CMAIS-WOA in solving the benchmark problem is evaluated by comparing it with other optimal algorithms. The results show that CMAIS-WOA has better optimization performance. It can effectively improve the stability of the optimal solution and help the algorithm converge to the global optimal solution.

In the future, the number of benchmark functions involved in the validation should be increased. This can further explore the law of numerical variation. In addition, CMAIS-WOA can further integrate some optimal algorithms to get hybrid algorithms with better performance, such as GWO and BA. Meanwhile, CMAIS-WOA can be applied to image processing, data mining, and other fields to solve various practical problems.

Data Availability

All data generated or analysed during this study are included in this article.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

This research was supported by the Natural Science Foundation of Shandong Province (No. ZR2020MF048).