Swarm Intelligence in Engineering 2014View this Special Issue
Quantum Behaved Particle Swarm Optimization Algorithm Based on Artificial Fish Swarm
Quantum behaved particle swarm algorithm is a new intelligent optimization algorithm; the algorithm has less parameters and is easily implemented. In view of the existing quantum behaved particle swarm optimization algorithm for the premature convergence problem, put forward a quantum particle swarm optimization algorithm based on artificial fish swarm. The new algorithm based on quantum behaved particle swarm algorithm, introducing the swarm and following activities, meanwhile using the adaptive parameters, to avoid it falling into local extremum of population. The experimental results show the improved algorithm to improve the optimization ability of the algorithm.
Quantum behaved particle swarm algorithm is first proposed by Sun et al.  in 2004. Quantum behaved particle swarm optimization algorithm introduces quantum computing into the particle swarm algorithm, starting from the mechanical point of view that the particle in the space has quantum behavior. The algorithm overcomes the disadvantages while preserving the advantages of particle swarm algorithm, which can effectively improve the performance of optimization algorithms.
Research on the quantum particle swarm optimization mainly focuses on the following three aspects: The first one is proof theoretic research, the second one is to improve the contraction expansion factor, and the third one is combined with other algorithms. In 2005, Moore and Venayagamoorthy  proposed quantum particle swarm algorithm for the combinational logic circuit. In 2006, Mikki and Kishk  proposed a quantum mechanical particle swarm algorithm based on electromagnetism and is used to optimize the electromagnetic aspects.
Quantum particle swarm optimization (QPSO) is in the field of medical image watermarking for copyright protection and authentication . The trade-off between the imperceptibility and robustness is one of most serious challenges in digital watermarking system. Image watermarking can be considered as an optimization problem by utilizing human visual system characteristics and QPSO algorithm in adaptive quantization index modulation and singular value decomposition in conjunction with discrete wavelet transform and discrete cosine transform. In the literature , a modified and efficient version of the QPSO combined with chaotic sequences (CQPSO) is proposed and evaluated.
An artificial fish swarm algorithm based on a filter methodology for trial solutions acceptance is analyzed for general constrained global optimization problems . The preliminary numerical experiments with a well-known benchmark set of engineering design problems show the effectiveness of the proposed method.
In the literature , an improved dynamic clustering algorithm was presented, which combines the quantum particle swarm algorithm with -means algorithm by improving the encoding of quantum particles and the introduction of new distance metric rules. The algorithm has a quantum behaved particle swarm global search capability. In order to accelerate the convergence speed, the -means algorithm is used to optimize every particle. Through the adjustment of the value of the fitness function, our algorithm can search for the optimal clustering number of clusters, so the number of clusters and centers is not subject to subjective factors. Extensive experiments verified the effectiveness of the algorithm.
Based on quantum evolutionary algorithm and particle swarm optimization, a quantum particle swarm evolutionary algorithm is proposed . In this algorithm, quantum angle is used to represent the qubit, a new method learning from the idea of particle swarm algorithm which is presented to determine rotation angle. The gate is taken to prevent premature convergence. In the literature , analytical optimization techniques suffer from slow convergence in complex solution space. Heuristics-based swarm intelligence is an efficient alternative to analytical optimization techniques. The particle swarm optimization approach is utilized for better and efficient nanodevice modeling.
Artificial fish swarm algorithm (AFSA) is a kind of swarm intelligence algorithms which is usually employed in optimization problems . There are many parameters to adjust in AFSA like visual and step. Evaluations of the proposed methods were performed on eight well-known benchmark functions in comparison with standard AFSA and particle swarm optimization (PSO). The overall results show that proposed algorithm can be effective surprisingly.
The paper based on the quantum behaved swarm algorithm, combined with the artificial fish swarm algorithm, proposed the new improved quantum particle swarm algorithm. In order to avoid the individual into local extremum, the new algorithm uses the swarm and following behavior, meanwhile it combines with the adaptive parameter adjustment.
2. Quantum Particle Swarm Algorithm
2.1. The Principle of the Algorithm
According to the principle of quantum mechanics, quantum particle swarm algorithm is proposed by Sun et al. With the help of DELTA potential well, the particle swarm optimization algorithm is applied to the quantum space. The quantum space particle used wave function to describe Among them, is the square of the module of wave function, representing the probability density of particles in a position to appear. is the probability density function and satisfies the normalization condition:
Assume that the dimension of (on behalf of the dimension of the variables associated with problem) quantum space has a population, which consists of particles. Location of the th particle is , and the particle through the history of the best location is ; after all the particles of the best historical position is .
In quantum space, positions of particles after the particles get through stochastic simulation of Monte Carlo measurement: Among them, is the random number range of . is obtained by the particle’s current position and historical best position is . Thus, get the update formula of quantum particle swarm optimization: Among them, is the iteration number of algorithm. is the contraction expansion factor and is the only parameter of quantum particle swarm algorithm.
In order to avoid the premature convergence, Sun et al. improved quantum particle swarm algorithm, introducing best in the algorithm; that is, where is the best position of th particles and is the number of particles. “best” find the average best location of particles and solve problems based on the dimension of the variable.
After the introduction of best, the individual update formula is
Therefore, quantum particle swarm optimization particle updating formula can be described as Among them, is the random number in ; other parameters are same as the ones mentioned above.
2.2. The Algorithm Flow
Quantum particle swarm algorithm flow chart in Figure 1 is specifically described as follows.
Step 1. Initialize algorithm parameters (population size , particle dimension , the maximum number of iterations MAXGEN), population initialization, initialization particles history , and global history optimal value .
Step 2. Evaluate individual fitness value.
Step 3. Update the optimal population in history. The particle’s fitness is better than the particle history itself, with the current value of the replacement; otherwise, the history optimal particles remain unchanged.
Step 4. Update the history global optimal particle in a population, the best fitness value of all the particles in the population.
Step 5. Update particles by using quantum behaved particle swarm optimization algorithm formula, all the particles in space.
Step 6. If the algorithm reaches the maximum number of iterations, then output the optimal solution, and the algorithm terminates; otherwise, continue to implement the Step 2.
3. An Improved Quantum Behaved Particle Swarm Algorithm
For quantum particle swarm algorithm, due to the small parameter and the solving speed of algorithm, many scholars have joined the ranks of the algorithm, but the premature convergence may also exist. In order to optimize the algorithm, put forward a quantum particle swarm optimization algorithm based on artificial fish swarm, abbreviated as QAFSP.
3.1. Improvement Strategies
3.1.1. Swarm and Follow
In the improved QAFSP algorithm, for the individual updates, cluster operates to the optimal position of the history of particles. Based on and searching other individuals within the perceived distance together constitute a search region. Calculate and record the center position and value to the small area. If the is better and the center around the position is not too crowded, so the individual moves to the direction, and the moving formula is as follows:
If the mobile requirement is not met, the individual performing quantum particle swarm particle updating formula gets the new state of particles.
The introduction of polygroup activities which can help particle has been or is about to fall into the local extremum to escape, moving toward the optimal direction, to improve the quantum particle swarm algorithm local convergence. Similarly, the rear-end activities are also conducted for the individual and the current particle best position to be carried out. Take the minimum value problem as an example, rear-end activity is based on the , searches for the minimum value of individual among its sensing range. The all individuals within the perceived distance of together form a small region. If the fitness value of is better, and the small region is not too crowded, then the individual moves towards the direction of position:
If the mobile requirement is not met, then the particles perform the updating formula of the quantum particle swarm algorithm and get the new state of particles.
Introduction of rear-end activities and enabling space particle to move toward better accelerate the speed of the individuals to be close to better solutions. In addition, this can help the individual to jump out of local minimum, to prevent it falling into local extreme and to stop the search.
3.1.2. Adaptive Adjustment
The shrinkage factor is the only parameter of quantum particle swarm algorithm; how to choose can affect the overall performance of the proposed algorithm. If the contraction factor is too large, the algorithm convergence has long search time and too slow time; if it is too small, this can make the algorithm into a local optimal solution.
In order to avoid the defects of shrinkage factor fixed, use adaptive shrinkage factor to improve QAFSP algorithm. The shrinkage factor is defined as a function associated with the evolution algebra: Among them, MAXGEN is the maximum number of iterative algorithms; is the evolution algebra.
As can be seen, the shrinkage factor in the initial stage of algorithm is greatly easy to large range for group search. Accompanied by optimization algorithm, the shrinkage factor decreases gradually, the individual searching scope reduces. And it starts to fine search among the local area.
Another parameter to be automatically adjusted is the moving step in the clusters and rear end. Similar to the shrinkage factor, step size has a direct impact on the performance of the proposed algorithm. The individuals with larger step size expand those searching scope, and the individuals with smaller step size start to fine search among the local area.
In the improved quantum particle swarm algorithm QAFSP, use the adaptive step size adjustment. Based on fitness value of in the cluster or in rear end, the ratio of and individual fitness between, automatically adjust the step size, in particular to: Therefore, when the individual is closer to or , step of smaller values is more suitable for fine search in a small range. On the contrary, the adaptive step of larger size is suitable for moving in large scope. Adaptive step size selection can balance the local and global search ability, improving the ability of the algorithm.
3.2. Quantum Behaved Particle Swarm Optimization Algorithm Based on Artificial Fish Swarm
The proposed quantum particle swarm optimization algorithm based on artificial fish swarm, the basic process shown in Figure 2, can be described as follows.
Step 1. Initialize algorithm parameters (population size , the number of iterations MAXGEN, perceived distance, the maximum number of temptation, the maximum step size, and crowding factor) and population initialization.
Step 2. Evaluate individual fitness value of the population. Do records particle history optimal and populations of the globally best.
Step 3. Implement quantum particle swarm optimization particle updating formula; the particle is updated.
Step 4. Update the optimal particle itself and update the globally best population.
Step 5. For polygroup activities, according to the history of optimal particles , particles are perceived within the scope of the center . If it meets the mobile condition, move to the center position direction; if not satisfied, then perform particle update.
Step 6. For rear-end activity, according to the historical optimum particle , get the minimum fitness value of individual particles in the perception. If it meets the mobile condition, move to the minimum fitness position direction of individual; otherwise, perform particle update.
Step 8. Update the particle’s own history and the globally best optimal of population.
Step 9. If the maximum number of iterations is reached, then output the optimal solution, and the algorithm terminates; otherwise, continue to implement Step 3.
Compared with quantum particle swarm algorithm, the improved algorithm adopts swarming and rear-end activities and basis on the best position of particle. In addition, the swarming and rear end use adaptive step length adjusting operation and dynamically change the length of the particles moving step; in update formula of the particles, adaptive shrinkage factor is also used, according the size of iterative search to automatic adjust.
4. Function Optimization and Simulation Experiment
4.1. Test Function
The improved algorithm is applied to a test function for function optimization. Use the following test functions:
(8) Minimum theoretical test functions are 0. The theory of minimum, respectively, is 7, −1, −1.0316, −6.5511.
4.2. The Experimental Design
The improved quantum particle swarm optimization algorithm based on artificial fish algorithm(QAFSP), quantum particle swarm algorithm (QPSO), quantum genetic algorithm (QGA), and artificial fish swarm algorithm (AFSA), of four kinds of algorithms, was applied to the eight minimum test functions. Experiments were carried out in environment of MATLAB R2008b; the computer processor is Intel(R), Core(TM)2, Quad CPU Q9400 @2.66 GHz (4 CPUs), and the RAM is 2048 MB. Each algorithm for each test function is repeated in 50 independent experiments.
Algorithm of QAFSP, QPSO, and AFSA adopts real coding and QGA coding using qubits. For multidimensional functions, take dimension , take dimension , and and take dimension . The specific parameter of each algorithm is shown in Table 1.
4.3. Experimental Results and Analysis
The accuracy of the function is 10−3, when the difference between optimal value from algorithm and the theoretical minimum value is less than 10−3, denoted by algorithm for success. Define the algorithm success rate, the number of times for successful and independent experiment ratio. Four kinds of algorithms on eight benchmark functions result in Table 2.
As can be seen from the table, strong optimization ability of quantum particle swarm algorithm (QAFSP) is based on artificial fish school. Using the same even smaller population size, the number of iterations, compared with the other three algorithms, QAFSP solves the optimal solution closer to the theoretical minimum function. In separate experiments 50 times, the number of successful optimization QAFSP is more and the success rate is close to 1. Experimental results show that the improved algorithm can be relatively stable to meet the accuracy requirements of searching the global optimum. In addition, the test functions include higher dimension complex functions, although the other three algorithms to optimize the effect of low-dimensional test function better, the high-dimensional functions lose the optimization capabilities gradually, meanwhile QAFSP Shows better optimization ability to high-dimensional functions or low-dimensional functions.
In Figures 3, 4, 5, 6, 7, 8, 9, and 10 four algorithms on eight test function optimization iterations convergence plan were given. Where “fitness” represents the result value of test functions during the algorithm runs, “evolution algebra” is the number of iterations performed for solving test functions.
(a) Evolutionary graph
(b) Evolutionary partial graph
(a) Evolutionary graph
(b) Evolutionary partial graph
(a) Evolutionary graph
(b) Evolutionary partial graph
From the convergence graph functions, you can see that quantum particle swarm algorithm based on artificial fish (QAFSP) has better convergence. Compared with the other three optimization algorithms, QAFSP is fast and stable convergence. Experimental results show that the improved quantum particle swam optimization improved quantum particle swarm premature convergence and effectively improved the performance of the algorithm.
On the basis of the quantum particle swarm optimization, combinations of artificial fish clusters and rear-end activities, a new improved algorithm is provided. The new algorithms use a dynamic parameter adjustment which is conducive to jump out of local optima and move to global extreme. Through the optimization of test functions, the experimental results show that the improved algorithm can improve the algorithm for solving ability and can better solve the global optimum to meet the accuracy requirements.
Conflict of Interests
The authors declare that there is no conflict of interests regarding the publication of this paper.
This paper was supported by the National Natural Science Foundation of China (61173056).
J. Sun, B. Feng, and W. B. Xu, “Particle swarm optimization with particles having quantum behavior,” in Proceedings of the Congress on Evolutionary Computation (CEC '04), pp. 325–331, June 2004.View at: Google Scholar
M. M. Soliman, A. E. Hassanien, and H. M. Onsi, “An adaptive medical images watermarking using Quantum Particle Swarm Optimization,” in Proceedings of the 35th International Conference on Telecommunications and Signal Processing (TSP '12), pp. 735–739, Prague, Czech Republic, July 2012.View at: Publisher Site | Google Scholar
L. dos Santos Coelho, F. A. Guerra, B. Pasquim, and V. Cocco Mariani, “Chaotic quantum-behaved particle swarm optimization approach applied to inverse heat transfer problem,” in Proceedings of the 5th International Joint Conference on Computational Intelligence (IJCCI '13), pp. 97–102, 2013.View at: Google Scholar
A. M. A. C. Rocha and M. F. P. Costa, “An artificial fish swarm filter-based method for co nstrained global optimization,” in Proceedings of the 12th International Conference Computational Science and Its Applications (ICCSA '12), M. G. P. Fernandes, Ed., vol. 7335 of Lecture Notes in Computer Science, pp. 57–71, 2012.View at: Publisher Site | Google Scholar
F. Q. Liu and H. W. Zhang, “Dynamic clustering based on quantum-behaved particle swarm optimization,” Advanced Materials Research, vol. 798, pp. 808–813, 2013.View at: Google Scholar
D. Yazdani, A. N. Toosi, and M. R. Meybodi, “Fuzzy adaptive artificial fish swarm algorithm,” in AI 2010: Advances in Artificial Intelligence, vol. 6464 of Lecture Notes in Computer Science, pp. 334–343, 2011.View at: Google Scholar