Abstract

This paper presents a variant of multiscale quantum harmonic oscillator algorithm for multimodal optimization named MQHOA-MMO. MQHOA-MMO has only two main iterative processes: quantum harmonic oscillator process and multiscale process. In the two iterations, MQHOA-MMO only does one thing: sampling according to the wave function at different scales. A set of benchmark test functions including some challenging functions are used to test the performance of MQHOA-MMO. Experimental results demonstrate good performance of MQHOA-MMO in solving multimodal function optimization problems. For the 12 test functions, all of the global peaks can be found without being trapped in a local optimum, and MQHOA-MMO converges within 10 iterations.

1. Introduction

Many real-world optimization problems are multimodal optimization problems, such as classification problems in machine learning [1] and inversion of teleseismic waves [2]. Multimodal optimization problems always contain several high quality global or local solutions which have to be identified and the most appropriate solution should be chosen. Global optimization of a continuous multimodal function aims at finding its several global minima or the most appropriate solution, without being trapped in a local optimum. When facing complex multimodal optimization problems, traditional optimization methods, such as gradient descent, quasi-Newton method, and Nelder–Mead’s simplex methods, which may exploit all local information in an effective way, can easily be trapped into the local optimum. If a point-by-point classical optimization approach is used for this task, the approach must have to be applied several times, each time hoping to find a different optimal solution. There are two main reasons for us to find such optima as many as possible. Firstly, an optimal solution currently favorable in the future may not remain to be so. With the knowledge of another optimal solution for the problem, users can simply switch to this new optimal solution when such a predicament occurs. Secondly, the sheer knowledge of multiple optimal solutions in the search space may provide useful insights to the properties of optimal solutions of the problem. Evolutionary algorithms (EAs) and particle swarm optimization (PSO) are used to tackle multimodal optimization problems.

Due to the population-based approach, EAs have natural advantage over classical optimization techniques. EAs maintain a population of candidate solutions, which are processed in every generation. If several distinct solutions can be preserved over all these generations, we will get multiple good solutions, rather than the only best solution. In recent years, there are several attempts to improve EAs so as to deal with multimodal fitness landscapes. Niching methods are widely used in genetic algorithms (GA), differential evolution (DE), and other evolutionary algorithms for multimodal optimization [1, 316].

Similar to EAs, PSO is also an iterative, population-based optimization technique. The principle of PSO is that each particle has learning ability. It can learn from itself (pbest) and its best neighbor (gbest). According to the learning approaches of particles, PSO can be divided into two models. One is the global model, the other one is the local model. In the local PSO model, each particle learns from the best particle in its neighborhood while in the global model every particle learns from the best particle in the whole population. To ensure different particles in the population converge into different optima in the solution space, the way of choosing neighborhood topology structure is crucial. This property leads to the application of PSO for multimodal optimization problems in recent years [17, 18]. Owing to PSO’s features of easy-to-implement and robust adaptability, the PSO converges quickly. But once it gets stuck into the local optimum, it will be very difficult to get out from the local optimum. To overcome this problem, quantum theories are introduced into PSO system. Quantum behaved Particle Swarm Optimization (QPSO) is the quantum model of a PSO. In QPSO, individual particles have quantum behavior [19, 20]. Instead of position and velocity, wavefunction [21, 22] is used to depict the state of a particle in QPSO [23]. Though QPSO performs better in global optimization than standard PSO, it also has the problem of premature convergence.

A novel optimization algorithm named multiscale quantum harmonic oscillator algorithm (MQHOA) is proposed in 2013 [24]. The population parameter and sampling parameter are researched in [24]. The uncertainty principle, zero energy and quantum tunnel effect of MQHOA are researched in [25]. MQHOA was inspired by the wavefunction of quantum harmonic oscillator. It tranforms the optimization problems to find the low energy state of potential . The complex objective function’s second order Taylor approximation is Harmonic oscillator potential. According to quantum theory, the wavefunction of quantum harmonic oscillator represents the distribution of optimal solution. Different spring coefficients in quantum harmonic oscillator correspond with different search scales. Different spring coefficients vary inversely with search scales.

MQHOA’s structure is elegant and pithy. It only includes two iteration processes: Quantum harmonic oscillator process (QHO process) and multiscale process (M process). The goal of optimization problem is searching the lowest energy position (where is global minimum position). QHO process simulates the quantum harmonic oscillator annealing from high energy level to ground state. In M process, MQHOA chooses decreasing with a series of 1/2 to get an increased series spring coefficient. With the same , in QHO process, MQHOA defines a new wavefunction to get sufficient sampling points in the global optimal area. The new wavefunction is defined as the summation of Gaussian probability-density functions. MQHOA’s wavefunction in scale is the sum of Gaussian probability-density functions which take as centers. It depicts the probability distribution of optimal solutions in domain. The equation can be written as

The experimental results of 15 typical two-dimensional test functions show that MQHOA performs well in finding global optima [24].

In this paper, we present a variant of MQHOA for multimodal optimization named MQHOA-MMO. Similar to PSO’s local version, in the proposed MQHOA-MMO, for each scale, every sampling point just needs to compare with the sampling points which are of the same Gaussian distribution.

This paper is organized as follows. Section 2 describe the framework of MQHOA-MMO. Test functions and comparasion algorithms are presented in Section 3. The results of experiments are discussed in Section 4. Finally, Section 5 concludes the paper.

2. The Framework of MQHOA-MMO

This section presents the framework of MQHOA-MMO. We define the symbols as follows:(i) is the number of swarms and Gaussian distributions.(ii) is the number of sampling points of each Gaussian distribution.(iii) is the accuracy of optimization.(iv) is the standard deviation for all .(v) is the standard deviation for all new .(vi) is the absolute value of the difference between and .(vii) is the current scale for iteration, the initial value is defined as the domain length.(viii) is the swarm of particles such that indicates particle . is randomly generated in domain. For every , generate , which are following probability distribution . sampling positions are needed by every iteration. optimal positions are stored in .(ix) is the optimal position selected from sampling positions .(x) is the optimal position the algorithm has found.

MQHOA-MMO includes just two nested iteration processes: QHO process and M process. In MQHOA-MMO, the QHO process is nested inside the M process. The convergence conditions of QHO process and M process are and respectively. The framework of MQHOA-MMO is described in Algorithm 1.

begin
(1) initialize: , , ,
(2) randomly generate in domain
(3) calculate the standard deviation for all
(4) do
(5)do
(6), generate
(7), select from all
(8)update :
(9)calculate the standard deviation for all new
(10)
(11)update :
(12)while: ()
(13) update :
(14) while  ()
(15) output  
end

The elaborate interpretation of the framework of MQHOA-MMO is as follows:(1)Initialize , , . So . Here, we choose , , the influence of the value will be discussed in Section 4.1.(2)Randomly generate in . Calculate the standard deviation for all .(3)For each , generate , which are following probability distribution .(4)Choose the optimal position from all for each .(5)For each , . Calculate the standard deviation for all new .(6)Calculate .(7)Compare and . If , return to step (3). If , .(8)Compare and . If , return to step (3). If , return , .

According to the framework above, only two parameters ( and ) need to be set. The selection of is discussed in Section 4.1.

In framework the superposition of Gauss sampling areas constructs the wavefunction. Wavefunction written as equation (1) depicts the probability distribution of optimal solutions in domain. The changes of wavefunction in iterations are showed in Figure 5. In order to reduce the energy of system, optimal positions are retained from sampling positions. In QHO process, transforms the system from high energy state at scale to ground state at scale .

For high dimensional test functions, MQHOA-MMO can use two-dimensional array to store the high dimensional central positions of Gauss sampling area . Where is dimension, is the number of Gauss sampling areas. For every dimension, MQHOA-MMO calculates the value of and . The QHO process at scale will end until in every dimension.

3. Experimental Setup

In this section, we give a brief description of benchmark functions and comparison algorithms. Experimental setup is present at the end of this section.

3.1. Test Functions

The benchmark functions we choose are widely used in multimodal optimization. Some test functions have various characteristics, such as irregular landscape, symmetric or equal distribution of optima. The goals are thus to evaluate the ability to tackle a complicated problem, to validate its capacity to detect all the global peaks of a function. A brief description of the functions is listed in Table 1.

3.2. Comparasion Algorithms

To evaluate the performance of MQHAO-MMO, MQHAO-MMO is compared with the following standard multimodal evolutionary algorithms. MQHOA-MMO is marked as AL0.AL1 (IWO--GSO [26]): the vasion weed optimization--group search optimizers;AL2 (scma [27]): CAM-ES with Self-Adaptive Niche Radius;AL3 (cde [28]): the original crowding DE;AL4 (sde [29]): speciation-based DE;AL5 (ferpso [30]): fitness-Euclidean distance Ratio;AL6 (spso [31]): speciation-based PSO;AL7 (r2pso [31]): a lbest PSO with a ring topology, each member interacts with only its immediate member to its right;AL8 (r3pso [31]): a lbest PSO with a ring topology, each member interacts with only its immediate member to its left;AL9 (r2psolhc): the same as r2pso [32], but with no overlapping neighborhoods;AL10 (r3psolhc): the same as r3pso [32], but with no overlapping neighborhoods.

3.3. Experimental Environment and Criteria

MQHOA-MMO is coded in Matlab R2014 and the simulations are run on i5 CPU 2.9 GHz with 8 GB memory. Results are averaged over 30 independent runs. If the difference between a computed solution and a known global optimum is less than , the peak is considered to be found. The performance of all multimodal algorithms is measured in terms of the following two criteria:(1)Success rate: The percentage of runs in which an algorithm can detect all the global peaks.(2)Average peak number: Peak number found over 30 runs for each function.

4. Experimental Studies

The experimental studies and analyses are presented in this section. MQHOA-MMO had been run until or the maximum number of function evaluation was exhausted.

4.1. Parameter Experiment

In this section, we examine the effectiveness and efficiency of MQHOA-MMO by applying it to selected four benchmark functions: Six-Hump Camel Back Function (E1-F4), Himmelblaus’s Function (E1-F3), Hansen Function (E1-F8) and 2D Inverted Shubert Function (E1-F18). The numbers of solution individuals are 2, 4, 9, and 18, respectively.

In MQHOA-MMO, we generate initial population using two parameters: and . We choose different initial parameter to test the impact on the ability of finding global optima. We run over 30 times for each while . Figure 1 contains four relation figures between the parameter and the number of global optima which MQHOA-MMO can find. The initial value begins at 5 and increases by 5 each time. According to Figures 1(c) and 1(d), while is smaller than the number of global optima, MQHOA-MMO can only find part of global optima. With the increasing of , we can find most global optima when the initial is close to the number of global optima. When the number of optimal solutions is small, for example, less than 10, the increased can find all the optimal solutions. But when the number of global optima is lager (more than 10), with the increase of , the number of global optima which MQHOA-MMO can find also increases. When increases to a certain number, the number of global optima which MQHOA-MMO can find is stable. When the domain is large, should increase in a large scale more than ten times. We can make a conclusion that to find all the global optima the initial value of should be larger than the number of the global optima. Besides, along with the increase of domain, the number of should increase correspondingly.

4.2. Convergence Experiment

To be more intuitive, we apply 12 benchmark test functions to demonstrate the convergence and verify the effectiveness of MQHOA-MMO. Figures 2, 3, and 4 show the relationship between fitness and iteration times. Fitness is the average of optimum function values of test functions. The value of iteration times is the number of QHO processes. For the 12 benchmark test functions, we set parameters as follows: , , and . Results are averaged over 30 independent runs.

From Figures 24, we find that almost all the functions have converged to several small areas before the tenth iteration. Some functions, such as , , , , , , and , can converge to several small areas at the fifth iteration. Table 2 presents the iteration times of 12 test functions while or the maximum number of function evaluations was exhausted. The results mean that MQHOA-MMO has a fast convergent ability, and for most test functions there is only one QHO process in each M process.

4.3. Changes of Wavefunction

In this section, we choose Hansen function (E1-F8) to present the changes of wavefunction in MQHOA-MMO. We set , , , and . The function is written as follows:

MQHOA-MMO’s wavefunction is written as (1). To describe wavefunction clearly, we have defined three notions. First notion is incipient centers of swarms, which are used in QHO’s first iteration for each . Second notion is incipient wavefunction, which is the wavefunction of used in QHO’s first iteration for each . The last notion is last wavefunction, which is the wavefunction of used in QHO’s last iteration for each . After the last QHO iteration for each , will be cut half to .

Figure 5 presents the change of wavefunction in iterations. Figures 5(a)5(d) show the incipient centers of swarms with different . Figures 5(e)5(h) show the incipient wavefunctions with different . Figures 5(i)5(l) show the last wavefunctions with different . With , Figure 5(a) shows the incipient centers of swarms and Figure 5(e) shows the incipient wavefunction while the last wavefunction is shown in Figure 5(i). With , Figure 5(b) shows the incipient centers of swarms, Figure 5(f) shows the incipient wavefunction, and the last wavefunction is shown in Figure 5(j). With , Figure 5(c) shows the incipient centers of swarms, Figure 5(g) shows the incipient wavefunction, and the last wavefunction is shown in Figure 5(k). With , Figure 5(d) shows the incipient centers of swarms, Figure 5(h) shows the incipient wavefunction, and the last wavefunction is shown in Figure 5(l).

Figures of the same show the changes of wavefunctions in different QHO iterations. For example, Figures 5(g) and 5(k) show the changes in QHO iterations with . As mentioned in Section 4.2 the number of QHO iterations is small in each M iteration, so the change of wavefunctions is not obvious in different QHO iterations with the same . Figures of different give us the differences of wavefunctions in different M iterations. For example, Figures 5(i), 5(j), 5(k), and 5(l) show the changes of wavefunctions in M iterations. According to our definition, Figures 5(j) and 5(g) have the same centers of swarms and the different . From the wavefunctions, we also can find that if there is a large probability of the optimal solution at a certain point, the point will be more attracted in this area, according to Gauss sampling law. It means that the higher probability is that the optimal solution is in the region. With the decrease of , the probability distribution of particles is more and more concentrated. This is the principle that MQHOA-MMO uses multiscale to implement the precision of the algorithm.

4.4. Comparison Experiments

In this section, we will present a detailed discussion on the performance of various algorithms that were chosen in the comparative study. We use 6 challenging functions of various characteristics to evaluate the MQHOA-MMO’s performance. MQHOA-MMO runs until or the maximum number of function evaluations was exhausted. The experimental results of other algorithms are quoted from [26]. All performances of MQHOA-MMO are calculated and averaged over 30 independent runs with , , and . From Table 3, we can find that MQHOA-MMO’s success rate can reach up to 100%. For some complex test functions, such as , , and , MQHOA-MMO can also get 100% success rate while some other algorithms even cannot find the global optima.

Table 4 shows the average number of global peaks detected by the MQHOA-MMO and other ten evolutionary multimodal optimization algorithms on test functions. Table 4 further indicates that MQHOA-MMO is able to detect the global optima in the test cases, and MQHOA-MMO can yield a good level of accuracy. IWO--GSO is a new excellent combination algorithm. It can generate acceptable results over the test functions. SCMA can also generate good results over simple and low dimension. Their performance gradually becomes poor when the dimension increases. SDE algorithm shows very poor performance if the number of peaks has high accuracy. Other SDE could not be able to generate satisfactory solution. FERPSO is able to generate relatively satisfactory results in many test functions. For MQHOA-MMO, given suitable parameters, it can get all global optima.

5. Conclusion

In this paper, we proposed a multimodal optimization algorithm named MQHOA-MMO. We used wave function to locate the possibility positions of the optimal solutions. The experimental study undertook 12 distinct test functions with number of global peaks varying from 2 to 25. Through comparison of results which were obtained from optimization of several benchmark functions using MQHOA-MMO and other optimization algorithms with two criteria and results obtained from performance experiments it is revealed that MQHOA-MMO can detect all the global optimum in a fast effective, controllable, and higher accuracy. Furthermore, this algorithm can find the global optimum of multifunction without being trapped in local optimum. The experimental study clearly indicated that, in most of the test cases, performance of MQHOA-MMO remains statistically better than all the other algorithms compared with it. For some complex functions, MQHOA-MMO could not have a good success rate. Future research of MQHOA-MMO will be focused on the optimization of such complex functions and higher-dimensional functions.

Data Availability

The data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest

The authors declare that there are no conflicts of interest regarding the publication of this paper.

Acknowledgments

This work was supported in part by the National Natural Science Foundation of China (60702075), Fundamental Research Funds for the Central Universities of China (2017NZYQN27), Science and Technology Planning Project of Guangdong Province, China (2016B090918062), and Jiangsu Key Laboratory of Media Design and Software Technology Foundation.