Literature DB >> 27057159

An Allele Real-Coded Quantum Evolutionary Algorithm Based on Hybrid Updating Strategy.

Yu-Xian Zhang1, Xiao-Yi Qian2, Hui-Deng Peng1, Jian-Hui Wang3.   

Abstract

For improving convergence rate and preventing prematurity in quantum evolutionary algorithm, an allele real-coded quantum evolutionary algorithm based on hybrid updating strategy is presented. The real variables are coded with probability superposition of allele. A hybrid updating strategy balancing the global search and local search is presented in which the superior allele is defined. On the basis of superior allele and inferior allele, a guided evolutionary process as well as updating allele with variable scale contraction is adopted. And H ε gate is introduced to prevent prematurity. Furthermore, the global convergence of proposed algorithm is proved by Markov chain. Finally, the proposed algorithm is compared with genetic algorithm, quantum evolutionary algorithm, and double chains quantum genetic algorithm in solving continuous optimization problem, and the experimental results verify the advantages on convergence rate and search accuracy.

Entities:  

Mesh:

Year:  2016        PMID: 27057159      PMCID: PMC4736973          DOI: 10.1155/2016/9891382

Source DB:  PubMed          Journal:  Comput Intell Neurosci


1. Introduction

Quantum computing is a new class of computing algorithms based on the concepts and principles of quantum theory, such as superposition of quantum states, entanglement, and intervention. Quantum evolutionary algorithm (QEA) is proposed by combining quantum theory with evolutionary theory. It is a kind of evolutionary algorithm with the form of quantum chromosome; the random observation which simulates the quantum collapse can bring diverse individuals [1]. In QEA, the quantum bits (Q-bits) and quantum gate (Q-gate) have been used to update the individuals to realize evolutionary search. QEA has advantages, including the diversity of population, global search performance, and convergence rate, compared with other evolutionary algorithms due to Q-bits coding and the updating of rotation gate. Since then, QEA were developed, including different operators [2-5] and novel update strategy for Q-gates [6-9]. QEA has been applied in many optimization problems [10, 11]. However, frequent encoding and decoding in QEA will slow down convergence rate. In addition, the magnitude and the direction of the rotational angle of quantum rotation gates cannot be determined during optimization. Recently, numerous literatures on QEA have been reported. Han and Kim [12] proposed a quantum-inspired evolutionary algorithm with H gate in which the probability amplitudes of rotation gate converge to ε and 1 − ε. Chen et al. [13] proposed a rotation gate with chaos in QEA. It applied generated chaotic sequence beforehand at the updating of rotation gate to improve the computational speed. Yang et al. [14] proposed a rotation gate based on arithmetic guidance. In the proposed algorithm, the current optimal individuals transfer to next generation. S. Y. Li and P. C. Li [15] proposed the double chains quantum genetic algorithm (DCQGA) which mapped the real variables to the probability amplitude on Q-bit by transforming the solution space; in particular, a real Q-bit encoding can be used to avoid binary coding. da Cruz et al. [16] proposed a real-coded quantum evolutionary algorithm in which the solution space is expressed by rectangular region. Its outstanding performance in solving high dimensional continuous optimization problems was verified. P. Li and S. Li [17] proposed a Bloch spherical coding for QEA which can avoid local optimization in solving continuous optimization problems. Gao et al. [18] proposed a real-coded quantum evolutionary algorithm based on triploid coding. Zhang et al. [19] proposed four-chain quantum-inspired evolutionary algorithm in which a chromosome contains four gene chains. The above quantum evolutionary algorithms introduce Q-bit encoding and increase diversity of population but spend much time on encoding and decoding; meanwhile, the search process may fall into local minimum and prematurity. So it is very important for us to employ a novel updating strategy in order to improve convergence rate and prevent the premature. In this paper, we presented an allele real-coded quantum evolutionary algorithm (ARQEA) based on hybrid updating strategy. The proposed algorithm employs a real-coding to maintain the diversity of allele and introduces a hybrid updating strategy to balance performance between global search and local search in order to improve the convergence rate. The convergence of ARQEA is verified by Markov chain. The numerical examples verify the advantages of ARQEA on convergence rate and search accuracy. The remainder of this paper is organized as follows: in Section 2, an allele real-coded quantum evolutionary algorithm is proposed in which the real coding as well as hybrid update strategy is presented; in Section 3, the global convergence of proposed algorithm is verified by Markov chain. Finally, the numerical experiments are demonstrated and the advantages are verified in Section 4.

2. An Allele Real-Coded Quantum Evolutionary Algorithm

In ARQEA, the real variables are coding with probability superposition of allele. A hybrid evolutionary strategy balancing the global search and local search is presented in which the superior allele is defined. The supervised evolution as well as variable scale contraction is adopted, and H gate is introduced to prevent the premature convergence.

2.1. Real Coding for Allele

We present an allele real coding which will generate two continuous variables x and x ′ (x and x ′ are defined as the ith alleles) to replace 0 and 1 gene of Q-bit coding in QEA. The real coding iswhere n is the number of variables. The probability amplitudes of allele are expressed as trigonometric functions cos θ and sin θ :where cos θ and sin θ are the probability amplitudes of x and x ′; the initial value of θ is π/4, i = , 1,…, n. Then the observed probability of x and x ′ is cos2⁡ θ and sin2⁡ θ , respectively. So We employ the probability superposition to maintain the diversity for individual in real coding. And the proposed real coding prevents overlong chromosome length and saves time spent on encoding and decoding.

2.2. Hybrid Updating Strategy

In ARQEA, we adopt hybrid updating strategy to update allele and its probability amplitudes.

2.2.1. Updating Alleles

Firstly, we encode initial population on the basis of allele real coding scheme, compute the fitness of chromosomes, and recode the superior individual x . Then we compare the distances between the ith alleles x and x ′ and define the allele corresponding to the shorter distance with x as “superior allele,” the other one as “inferior allele.” Figure 1 shows the superior and inferior alleles, in which x and x ′ are the ith alleles of chromosome, x is the ith allele of the current optimal individual, and then we define x as the superior allele and x ′ as the inferior allele.
Figure 1

The superior and inferior alleles.

Next, we will update the alleles. The updating strategy is described as follows: (a) For the superior allele, we employ the updating strategy, such as reasonable choice of the initial step length and dynamic adjustment of the search step length, to guide superior allele to search optimal solution. In the early search stage, the updating strategy is accelerated by directing the search directionwhere x is a superior allele, x is the updated allele, Δd 1 = λ · |x − x | is the search step length, usually λ = 0.5, and sign() is a sign function; it decides the search direction of superior allele. When |x − x |/(x max − x min) is less than η, we adopt a variable scale contraction to search the optimal solutionwhere r is the number of current generation, g is the number of max generation, U(−1,1) is a random distribution between −1 and 1, (1 − arctan(r/g))4 is a change from 1 to 0 with the number of generation r, and Δd is the range of contraction. When U(−1,1) is a negative number, Δd 2 = x − x min. In this search stage, the superior allele will randomly search the optimal solution in a certain region, and the searching scale will change with the number of generation r. (b) For the inferior allele x ′, the allele x will be substituted to x ′ in (4) and (5) and alternate operation every two generations using (4) and (5). However, considering the randomness of the evolutionary algorithm, the inferior allele has the ability to escape from local optimum and approach the global optimum in the evolution stage.

2.2.2. Updating Probability Amplitudes

After updating the allele, H gate is used to update the corresponding probability amplitudes [20, 21]. We employ H gate operation to prevent the premature convergence. The rotation angle of H gate iswhere Δt is the range of θ and its direction depends on the superior allele. If the superior allele corresponds to cos θ , then (6) is subtracting. Instead, it is adding. The H gate operation will increase the observed probability for the superior allele and decrease the observed probability for the inferior allele. The operation rule of H gate is the following:where ε is a real number between 0 and 1, are the probability amplitudes after the H gate operation, and are the probability amplitudes after the H gate operation. if |α ′|2 ≤ ε and |β ′|2 ≥ 1 − ε, then ; if |α ′|2 ≥ 1 − ε and |β ′|2 ≤ ε, then ; else , The steps of hybrid evolutionary strategy are described as follows.

Step 1 .

Judge the relative superior allele.

Step 2 .

For the superior allele, adopt supervised evolution by (4) to find current optimal allele x , and employ variable scale contraction by (5) approach to local search when |x − x |/(x max − x min) is less than η.

Step 3 .

For the inferior allele, search alternately by (4) and (5) in every two generations.

Step 4 .

Update the probability amplitudes of alleles by (6). In hybrid updating strategy, we employ different evolutionary mode for superior and inferior allele in order to balance global search and local search. The superior allele affects local search stage, and inferior allele plays important role in global search by the variable scale contraction to search unknown space and maintain the diversity of population. As generation goes on, superior allele and inferior allele exchange position in next generation dynamically. The hybrid updating strategy proposed has two mechanisms for superior and inferior allele to maintain diversity of population. In addition, the hybrid updating strategy in ARQEA balances the global search and local search by dynamic updating strategy of alleles.

2.3. Process of ARQEA

ARQEA employs allele real coding with probability superposition which generates a random number r between 0 and 1 and compares r with the probability amplitudes for each allele and adopts hybrid updating strategy to balance global search and local search. At the early search stage, the scale of mutation is large, the step size in search is long, and the algorithm approaches to the global search. With the increasing of generations, the scale of mutation becomes smaller and the performance of local search is strengthened. The process of ARQEA is shown in Figure 2.
Figure 2

The flowchart of ARQEA.

3. Convergence Analyses

In this section, we analyze the global convergence of ARQEA by Markov chain. The ARQEA is described as follows. Consider ARQEA:where Ω is search space, G is the evolutionary operator of superior allele, D is the evolutionary operator of inferior allele, P is the operator of probability selection, n is the dimension of Ω, X(0) is initial population, X′(t), X′′(t), and X(t) are the superior allele, the inferior allele, and the observed allele in tth generation, respectively, F min is the fitness function, X best is the optimal solution and F best is optimal value of the fitness function, and ε is the termination criterion. According to the hybrid update strategy, the population sequence of ARQEA can be expressed as follows: In (8), X(t + 1) relates to the state of generations t. Then, the state space of ARQEA can be expressed aswhere max = ∏ ((X − X )/ε); X and X are the upper bound and lower bound of the ith variable. So ARQEA can be regarded as a finite Markov process. Then the state space Ω is divided into two search spaces according to the termination criteria: S 1 = {Ω ∣|F − F best| < ε}; S 2 = {Ω ∣|F − F best| ≥ ε}. We define p 1→1 as the transition probability from S 1 to S 1, p 2→1 as the transition probability from S 2 to S 1, and p 2→2 as the transition probability from S 2 to S 2. And p 1→1 = 1.

Lemma 3 A (see [22]).

Assume A 1, A 2,… are the event sequence in probability space, and let p = p{A }; if ∑ p < ∞, then p{⋂ ⋃ A } = 0; if ∑ p = ∞ and all A are mutually independent, then p{⋂ ⋃ A } = 1.

Theorem 3 A.

∃φ ∈ (0,1), make p 2→2 < φ in ARQEA.

Proof

∃d > 0, when ε > 0 and |X(t) − X best| ≤ d, then |F(X(t)) − F best| < λ, in which 0 < λ < ε; if C 1 = {X(t)∣|X(t) − X best| ≤ d}, then C 1 ⊂ S 1. The variable scale contraction in ARQEA is Gaussian distribution. If the individual X in S 2 performs variable scale contraction operation and obtained X + δ, then Since δ is Gaussian distribution N(0, δ 2), the probability density isBecausethen Because δ depends on Gaussian distribution and p{(X + δ) ∈ C 1} is continuous, thenLet φ = 1 − p{(X′ + δ) ∈ S 1}; we can obtain following equation by (11) and (14):

Theorem 3 B.

If one-step transition probability in ARQEA p 2→2 < φ, then ARQEA is global convergence. For the termination criterion ε > 0, when the probability p′ = p 2→2 = p{|F(X(t)) − F(X best)| ≥ ε}, X(t) cannot satisfy the termination criterion ε > 0 after t generations; we can obtain (16) by Theorem A:and 0 < φ < 1, so ∑ φ = φ/(1 − φ); we can get (17) by Lemma A:So lim F(X(t)) = F(X best). That is, ARQEA can converge to the optimal solution with probability 1.

4. Experiments and Results Analysis

In this section, we investigate the search ability of ARQEA by eight test functions and compare the results with GA, QEA, and DCQGA. And the above optimization algorithms are encoded in MATLAB 2010b and implemented on computer with Intel T3200 CPU and 2 G DDR3 memory using Windows XP. The test functions are listed in Table 1. The test functions contain trigonometric function, polynomial function, and exponential function in the list. And f 1, f 2, and f 3 are two-dimension multiple hump functions; f 4, f 5, f 6, f 7, and f 8 are high dimension functions. Each test function has only one optimal solution in feasible region, in which the minimum of f 1 and f 2 is 0 at [0,0], the minimum of f 3 is 0 at [1,1], and the minimum of test functions f 4, f 5, f 6, f 7, and f 8 is 0 at [0,0,…, 0]. However, the test functions with high dimension will bring more difficulty in global and local search process.
Table 1

The test functions.

NumberFunction expressionSearch space f min
1 f1x1,x2=0.5+sin2x12+x22-0.51+0.001x12+x222XX x i ∈ [−10,10] f min = 0

2 f2x1,x2=100x1-x222+x1-12XX x i ∈ [−10,10] f min = 0

3 f3x1,x2=-20exp-0.2x12+x222-expcos2πx1+cos2πx22+exp1XX x i ∈ [−10,10] f min = 0

4 f4x=418.9829n+i=1nxi·sinxi,n=10XX x i ∈ [−500,500] f min = 0

5 f5x=i=1ni+110expxi-xi-5.5,n=10XX x i ∈ [−5.12,5.12] f min = 0

6 f6x=14000i=1n-1xi2-i=1n-1cosxii+1+1,n=20XX x i ∈ [−100,100] f min = 0

7 f7x=i=1nxi2,n=30XX x i ∈ [−10,10] f min = 0

8 f8x=10n+i=1nxi2-10i=1ncos2πxi,n=30 x i ∈ [−10,10] f min = 0
In this experiment, the population size is 50 for GA, QEA, DCQGA, and ARQEA; the max generation is 500 for two-dimension test functions f 1, f 2, and f 3, and 3000 for high dimension test functions f 4, f 5, f 6, f 7, and f 8. And the coding for GA, QEA, DCQGA, and ARQEA is implemented, respectively, as follows: GA adopts real coding. The real coding is adapted to every variable in GA. The selection operation employs roulette wheel selection, crossover probability is 0.8, and mutation probability is 0.01. The real coding for chromosome is QEA adopts Q-bit coding. The length of every variable is 12. The updating strategy employs the rotating gate based on check table. The coding for the ith individual with n variables is DCQGA adopts double chain real-coding scheme. The step size of rotation angle is 0.001π; mutation probability is 0.05; the coding for the ith individual with n variables is where p = (cos(t ), cos(t ),…, cos(t )) and p = (sin(t ), sin(t ),…, sin(t )). p and p represent a chromosome pair that maps the unit space of n dimensions to the solution space by solution space transformation. ARQEA adopts real coding based on allele with (1) and (2) and employs hybrid updating strategy to update the alleles and the corresponding probability amplitude. In this experiment, we run repeatedly the above optimization algorithms for each test function and record the running results (including the optimal values, average values, worst values, and average run times) in different optimization algorithms. The comparison results for different optimization algorithms are shown in Table 2. From the comparison results, we can find that the search accuracy of ARQEA is obviously superior to GA's, QEA's, and DCQGA's in solving continuous optimization problem. In addition, the running time of ARQEA is faster than GA's, QEA's, and DCQGA's as well.
Table 2

Comparison with different optimization algorithms.

Test functionEvolutionary algorithmsBest valueAverage valueWorst valueRunning time (sec.)
f 1 QEA3.4533e − 064.5658e − 041.3433e − 039.543e + 01
DCQGA6.8996e − 084.3543e − 067.8732e − 046.526
GA2.6704e − 116.3684e − 039.7032e − 038.654
ARQEA3.0738e − 156.0451e − 152.0368e − 143.481

f 2 QEA6.3275e − 045.2164e − 031.6233e − 025.569e + 01
DCQGA5.5437e − 081.2654e − 064.3251e − 045.658
GA1.5684e − 059.1982e − 024.0523e − 016.423
ARQEA2.1055e − 134.5264e − 137.3382e − 131.291

f 3 QEA1.6048e − 023.2418e − 025.2529e − 024.1324e + 01
DCQGA1.4323e − 055.2189e − 021.59171e − 016.4383
GA1.2181e − 083.7907e − 046.3203e − 032.2957
ARQEA2.5346e − 164.8491e − 132.1526e − 094.4252

f 4 QEA5.0412e + 011.6542e + 023.47741e + 024.8342 + 03
DCQGA2.43427.0424e + 012.429242e + 025.3226e + 01
GA7.0136e − 042.0751e + 012.3687e + 013.5501e + 01
ARQEA1.2728e − 041.2728e − 041.2728e − 043.1341e + 01

f 5 QEA4.9056e − 041.3872e − 023.4341e − 023.5231e + 02
DCQGA7.3975e − 061.8576e − 053.9103e − 036.3342e + 01
GA5.0090e − 081.4547e − 056.9581e − 054.7454e + 01
ARQEA1.7982e − 163.2573e − 168.8818e − 165.0032e + 01

f 6 QEA2.2667e − 013.37427.41073.3703e + 03
DCQGA3.25412.33715.72331.0399e + 02
GA2.9913e − 032.3544e − 016.627e − 017.3251e + 01
ARQEA9.96785e − 032.0576e − 022.7094e − 024.812e + 01

f 7 QEA3.6544e − 024.7685e − 011.32763.586e + 03
DCQGA8.9768e − 043.4765e − 035.5876e − 021.635e + 02
GA6.0000e − 033.7400e − 020.21936.3324e + 01
ARQEA4.9223e − 147.2357e − 128.5674e − 115.011e + 01

f 8 QEA6.3267e − 032.6832e − 011.95191.278e + 04
DCQGA3.5257e − 054.2347e − 047.0863e − 012.8593e + 03
GA2.6432e − 021.42423.02748.07e + 01
ARQEA4.1248e − 115.3442e − 109.3327e − 86.158e + 01
Figure 3 shows the comparison of the convergence optimized by QEA, DCQGA, and ARQEA, respectively. We employ logarithmic ordinate to analyze search accuracy and convergence rate. For two-dimension test functions f 1, f 2, and f 3, the convergence curve of ARQEA shows rapid decline after 500 generations in solving continuous optimization problem. For high dimension test functions, the convergence rate of ARQEA is obviously superior to GA's, QEA's, and DCQGA's, even though the global and local search processes become more difficult. So, due to diversity of allele and hybrid updating strategy, the convergence rate of ARQEA is superior to GA, QEA, and DCQGA.
Figure 3

Comparison of convergence for GA, QEA, DCQGA, and ARQEA.

5. Conclusions

In this paper, we present an allele real-coded quantum evolutionary algorithm. The proposed algorithm employs real coding based on probability superposition to maintain the diversity of population and prevent overlong length of chromosome. In hybrid updating strategy, we employ different evolutionary mode for superior and inferior allele in order to balance global search and local search. By comparing with different optimization algorithms, the search accuracy and convergence rate of ARQEA are obviously superior to GA's, QEA's, and DCQGA's in solving continuous optimization problem. For the future, we will analyze the influence on initial population to search accuracy and relationship between parameters in updating strategy and convergence rate.
  1 in total

1.  Improved Quantum Artificial Fish Algorithm Application to Distributed Network Considering Distributed Generation.

Authors:  Tingsong Du; Yang Hu; Xianting Ke
Journal:  Comput Intell Neurosci       Date:  2015-09-01
  1 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.