Abstract

Quantum-inspired evolutionary algorithm (QEA) has been designed by integrating some quantum mechanical principles in the framework of evolutionary algorithms. They have been successfully employed as a computational technique in solving difficult optimization problems. It is well known that QEAs provide better balance between exploration and exploitation as compared to the conventional evolutionary algorithms. The population in QEA is evolved by variation operators, which move the Q-bit towards an attractor. A modification for improving the performance of QEA was proposed by changing the selection of attractors, namely, versatile QEA. The improvement attained by versatile QEA over QEA indicates the impact of population structure on the performance of QEA and motivates further investigation into employing fine-grained model. The QEA with fine-grained population model (FQEA) is similar to QEA with the exception that every individual is located in a unique position on a two-dimensional toroidal grid and has four neighbors amongst which it selects its attractor. Further, FQEA does not use migrations, which is employed by QEAs. This paper empirically investigates the effect of the three different population structures on the performance of QEA by solving well-known discrete benchmark optimization problems.

1. Introduction

Evolutionary algorithms (EAs) represent a class of computational techniques, which draw inspiration from nature [1] and are loosely based on the Darwinian principle of “survival of the fittest” [24]. EAs have been successfully applied in solving wide variety of real life difficult optimization problems (i.e., problems which do not have efficient deterministic algorithms for solving them, yet known) and where near optimal solutions are acceptable (as EAs do not guarantee finding optimal solutions). Moreover, EAs are not limited by the requirements of domain specific information as in the case of traditional calculus based optimization techniques [5]. EAs, typically, maintain a population of candidate solutions, which compete for survival from one generation to the next, and, with the generation of new solutions by employing the variation operators like crossover, mutation, rotation gate, and so forth, the population gradually evolves to contain the optimal or near optimal solutions. EAs are popular due to their simplicity and ease of implementation. However, EAs suffer from convergence issues like stagnation, slow convergence, and premature convergence [6].

Efforts have been made by researchers to overcome the convergence issues by establishing a better balance between exploitation and exploration. Quantum-inspired evolutionary algorithm (QEA) [7, 8] provides a better balance between exploration and exploitation during the evolutionary search process by using probabilistic Q-bit. QEAs have performed better than classical EAs on many complex problems [917].

Some investigations have also been made in using structured populations to improve the performance of EAs [18]. The structure of a population is classified as follows: panmixia, coarse-grained, and fine-grained models. The QEA described in [7, 19] has employed a population structured as coarse-grained model. The performance of this algorithm has been improved by changing the global update strategy in [8] and has been named versatile QEA (vQEA). The modification to convert QEA into vQEA can be also viewed as equivalent to changing the population structure from coarse-grained model in QEA to panmictic in vQEA. The improvement attained by vQEA over QEA indicates the impact of population structure on the performance of QEA. This also motivates investigation for employing fine-grained model in the population structure of QEA. This paper empirically evaluates the effect of population structures in QEA by solving some instances of well-known benchmark problems like COUNTSAT, -PEAKS, and 0-1 knapsack problems. The paper is further organized as follows. Section 2 briefly discusses population structures. QEA, vQEA, and FQEA are presented and their population structure is established in Section 3. Results and analysis are presented in Section 4. Section 5 draws conclusions and shows some directions for further work.

2. Population Structures

The population structures in EAs can be divided into two broad categories, namely, unstructured and structured [20], and are shown in Figure 1. The unstructured population model has been widely used in EAs, where a single population of individuals is evolved by employing variation operators. The advantage of unstructured population is its conceptual and implementation simplicity. The dissemination of information regarding the best individual is quickest as all the individuals are connected with all the other individuals. It works fine for EAs in which diversity can be maintained by suitably designed variation operators for a given problem. However, if the search space is highly deceptive and multimodal, the panmictic population may not be the most effective model. Structured population models are viable alternatives to the unstructured model. They have been primarily developed during efforts to parallelize EAs for running on multiprocessors hardware [2]. However, they have also been used with simple EAs (run on monoprocessor hardware) in place of panmictic population and have been found to provide better sampling of search space along with consequent improvement in empirical performance [21].

The structured models can be divided into two main groups, namely, coarse-grained and fine-grained models. The coarse-grained model is also known as distributed model and island model. It has multiple panmictic populations, which evolve in parallel and communicate with each other periodically, often exchanging or updating individuals, depending on the specific strategy. The advantage of island model is that it encourages niching and also allows slow dissemination of information across the structured subpopulation evolving in parallel. Thus, it maintains diversity in overall population to avoid premature convergence. However, it is known to be relatively slow in converging to optimal solution.

Fine-grained model is also known as cellular model and diffusion model. A unique coordinate is assigned to every individual of the single population in some space, which is typically a grid of some dimensionality with fixed or cyclic boundary. Individuals can only interact within a neighborhood, defined by neighborhood topology, through variation operators. The advantage of cellular model is slow diffusion of information through overlapped small neighborhoods which helps in exploring the search space by maintaining better diversity than panmictic model. This in turn helps in avoiding premature convergence [22]. Moreover, it is slower than a corresponding panmictic model in a given EA but is faster than a coarse-grained model. It has less communication overhead than a coarse-grained model as it maintains a single structured population rather than multiple subpopulations evolving in parallel. Further, it has been shown that a cellular model is more effective in complex optimization tasks as compared to the other models [23, 24].

3. Quantum-Inspired Evolutionary Algorithms

Quantum-inspired proposals are subset of a much larger attempt to apply quantum models in information processing, which is also referred to as quantum interaction [25]. The potential advantages of parallelism offered by quantum computing [26] through superposition of basis states in qubit registers and simultaneous evaluation of all possible represented states have led to the development of approaches that suggest ways to integrate aspects of quantum computing with evolutionary computation [25]. Most types of hybridization have focused on designing algorithms that would run on conventional computers and not on quantum computers and are most appropriately classified as “quantum-inspired.” The first attempt was made by Narayanan and Moore [27] to use quantum interpretation for designing a quantum-inspired genetic algorithm. A number of other types of hybridization have also been proposed, of which the most popular is the proposal made by Han and Kim [7], which uses a Q-bit as the smallest unit of information and a Q-bit individual as a string of Q-bits rather than binary, numeric, or symbolic representations. Results of experiments show that QEA performs well, even with a small population, without premature convergence as compared to the conventional genetic algorithms. Experimental studies have also been reported by Han and Kim to identify suitable parameter settings for the algorithm [19]. Platel et al. [8] have shown the weaknesses of QEA and proposed a new algorithm, called versatile quantum-inspired evolutionary algorithm (vQEA). They claim that vQEA is better than the QEA [7] as it guides the search towards the best solution found in the last iteration, which facilitates smoother and more efficient exploration. This claim is supported by experimental evaluations.

A qubit is the smallest information element in a quantum computer and is quantum analog of classical bit. The classical bit can be either in state “zero” or in state “one” whereas a quantum bit can be in a superposition of basis states in the quantum system. It is represented by a vector in Hilbert space with and being the basis states. The qubit can be represented by vector , which is given by where and are the probability amplitudes of qubit to be in state and , respectively, and should satisfy the following condition: The QEA proposed in [7, 19] primarily hybridizes the superposition and measurement principles of quantum mechanics in evolutionary computing framework by implementing qubit as Q-bit, which is essentially a probabilistic bit, and stores and values. A Q-bit string acts as the genotype of an individual and the binary bit string formed by collapsing the Q-bit forms the phenotype of the individual. A Q-bit is modified by using quantum gates or operators, which are also unitary in nature, as restricted by the postulates of linear quantum mechanics [26]. The quantum gates are implemented in QEA as unitary matrix [7]. A quantum gate known as rotation gate has been employed in [19] and it updates a Q-bit in the following manner: where and denote probabilities of th Q-bit in th iteration. is the angle of rotation. It acts as the main variation operator that rotates Q-bit strings to obtain good candidate solutions for the next generation. It also requires an attractor [8] towards which the Q-bit will be rotated. It further takes into account the relative current fitness level of the individual and the attractor and also their binary bit values for determining the magnitude and direction of rotation. The selection of an attractor is determined by the population model employed in a QEA. A close scrutiny of the architecture of QEAs designed in [7, 8, 19] reveal that attractors are the only mechanism available for interaction between the individuals.

The QEA in [7, 19] divides the population into local groups and implements two types of migrations, namely, local and global. In local migration, the best solution within the group is used as the attractor, whereas, in case of global migration, the global best solution is used as the attractor. The migration periods and size of local group are design parameters and have to be chosen appropriately for the problem being solved.

The quantum-inspired evolutionary algorithm is shown in Algorithm 1 [7, 8].

: Size of the population that is, number of individuals.
: Size of the Group that is, population is divided in groups.
: Size of the Problem being solved that is, number of variables.
: Generation Counter.
: th -bit that stores the value of their and .
: th Quantum Individual comprising of their , where .
: Quantum Register that comprises of all the Quantum individuals, , where .
: th binary bit that stores the value of 0 or 1 formed by collapsing corresponding .
: th Binary Individual comprising of their , where .
: Binary Register that comprises of all the Binary individuals, , where .
: stores the best solution of all the Binary individuals, , where .
: stores the Best solution of Group, , in the current (th) generation.
AR: Attractor Register that stores the attractor individual for every , where .
: current Global Best Solution.
begin
       t  = 0; assign , , ;
(a) initialize Q(t);
(b) make P(t) by observing the states of Q(t);
(c) evaluate P(t);
(d) store the best solutions among P(t) into B(t);
(e) stores the best solution in each Group, , into respective (t), j = 1,…,/;
(f) store the best solution b amongst (t);
        while (termination condition is not met) do
        begin
   t = t + 1;
(g)     select AR(t) according to migration condition;
(h)    update Q(t1) according to P(t1) and AR(t) using Q-gates;
(i)    make P(t) by observing the states of Q(t);
(j)    evaluate P(t);
(k)    store the best solutions among P(t) and B(t1) into B(t);
(l)    store the best solution in each Group, , and (t1) into (t) respectively,
         j = 1,…,/;
(m)    store the best solution b amongst (t);
        end
end

In step (a),   Q(t) containing Q-bit strings for all the individuals are initialized randomly. In step (b), the binary solutions in are constructed by measuring the states of . The process of measuring or collapsing Q-bit is performed by generating a random number between 0 and 1 and comparing it with . If the random number is less than , then the Q-bit collapses to 0 or else to 1 and this value is assigned to the corresponding binary bit. In step (c), each binary solution is evaluated to give a measure of its fitness. In step (d), the initial solutions are then stored for each individual into . In step (e), the initial best solution for each group, , is then selected and stored into respective . In step (f), the initial global best solution, , is then selected amongst . In step (g), the attractors are selected for each individual according to the strategy decided by migration criteria. In case of local migration, the group best, , is used as the attractor whereas, in case of global migration, global best, , is used. In step (h), Q-bit individuals in are updated by applying Q-gates by taking into account and . The quantum rotation gate has been used as the variation operator. In steps (i) and (j), the binary solutions in are formed by observing the states of as in step (c), and each binary solution is evaluated for the fitness value. In step (k), the best solutions among and are selected and stored into . In step (l), the best solution for each group, , is then selected amongst and and stored into respective . In step (m), the global best solution, , is then selected amongst .

It is suggested that QEA designed in [7] should have population divided equally in 5 groups, where attractors in each group are individuals with best fitness. There is a fixed global migration cycle, at the end of which the attractors are selected as the individual with the best fitness in the entire population. Thus, upon comparing the population structure of QEA in [7, 19] with coarse-grained model, the groups are islands of subpopulation, which interact with each other during global migration that occurs after fixed number of generations. The vQEA [8] does away with the local groups by making global migration in every generation; thus, the population model is now panmictic and the interaction is taking place between every individual in every generation. Thus, the QEA with panmictic population model is referred to as PQEA and the QEA with coarse-grained population structure is referred to as CQEA.

The QEA with fine-grained population model, FQEA, has all the operators and strategies similar to those used in CQEA and PQEA except for the population structure and the neighborhood topology. The fine-grained population model does not have local groups. Every individual is located in a unique position on a two-dimensional toroidal grid as shown in Figure 2, which is the most common topology in fine-grained model. The size of the grid is “ cross ,” where “” is the number of rows and “” is the number of columns. The neighborhood on the grid is defined by Von-Neumann topology, which has five individuals, that is, the current individual and its immediate north, east, west, and south neighbors. Thus, it is also called NEWS or linear 5 (L5) neighborhood topology. The neighborhood is kept static in the current work so it is computed only once during a single run.

The steps in FQEA are shown in Algorithm 2 [7, 8].

: Size of the population that is, number of individuals.
: Size of the Problem being solved that is, number of variables.
: Number of Rows
: Number of Columns
: Generation Counter.
: th -bit that stores the value of their and .
: th Quantum Individual comprising of their , where .
: Quantum Register that comprises of all the Quantum individuals, , where .
: th binary bit that stores the value of 0 or 1 formed by collapsing corresponding .
: th Binary Individual comprising of their , where .
: Binary Register that comprises of all the Binary individuals, , where .
: stores the best solution of all the Binary individuals, , where .
: Attractor Register that stores the attractor individual for every , where .
: current Global Best Solution.
NL: List of neighbors of all the individuals, , where .
Begin
  t  = 0; assign , , A, B;
(a) initialize Q(t);
(b) make P(t) by observing the states of Q(t);
(c) evaluate P(t);
(d) store the best solutions among P(t) into B(t);
(e) compute NL;
(f) store the best solution b amongst B(t);
       while (termination condition is not met) do
       begin
   t  = t + 1;
(g)   select AR(t);
(h)   update Q(t1) according to P(t1) and AR(t) using Q-gates;
(i)   make P(t) by observing the states of Q(t);
(j)   evaluate P(t);
(k)   store the best solutions among P(t) and B(t1) into B(t);
(l)   stores the best solution b amongst B(t);
       end
end

The steps (a) to (d) are the same as those for the QEA described earlier. In step (e), the neighborhood list is computed for each individual in the population. In step (f), the initial global best solution, , is then selected amongst . In step (g), the attractors are selected for each individual by selecting the fittest neighbor from the four neighbors listed in the neighborhood list, , of each individual. The steps (h) to (k) are the same as those for the QEA described earlier. In step (l), the global best solution, , is then selected amongst . Further, there are no local or global migrations as well as local isolated groups in FQEA.

The computation of neighborhood list, , is an additional component in FQEA as compared to the QEAs. The neighborhood list, , is computed only once during a single run of FQEA, so the overhead involved in computation of the neighborhood is dependent on the population size, , and the number of neighbors of each individual in the population and is independent of the size of the optimization problem being solved and the number of generations executed in a run of FQEA.

The implementation of selection of attractors for all the individuals is different for the three QEAs. It is the simplest and cheapest for PQEA as the global best solution, , is the attractor for all the individuals. The selection of attractors is dependent on the local group size and the population size in CQEA whereas, in FQEA, it is dependent on the neighborhood size and the population size, so if the local group size and the neighborhood size are equal along with the population size in CQEA and FQEA, then the selection of attractors is equally expensive in both CQEA and FQEA. The rest of the functions has the same implementation in all the QEAs and is equally expensive.

4. Testing, Results, and Analysis

The testing has been performed to evaluate the effect of all the three population models on QEA, namely, coarse-grained QEA (CQEA), panmictic QEA (PQEA), and fine-grained QEA (FQEA) on discrete optimization problems. The testing is performed with equivalent parameter setting for all the three algorithms so that a fair comparison of the impact of three population structures on the performance of QEA can be made statistically. An important point to note here is that the parameters suggested in [7, 8, 17] especially to have been mostly used as they all use the same variation operator and our main motive has been to determine the effect of different population structures, keeping all the other factors simple and similar.

The testing is performed on thirty-eight instances of well-known diverse problems, namely, COUNTSAT (nine instances), -PEAKS (five instances), and 0-1 knapsack problems (eight instances each for three different profit and weight distributions). COUNTSAT and -PEAKS problem instances have been selected as their optimal values are known; thus, it becomes easier to empirically evaluate the performance of algorithms. 0-1 knapsack problems have been selected as they have several practical applications. The problem instances used in testing of the QEAs are generally large and difficult and are explained in detail in respective Sections 4.1 to 4.3.

The parameters used for all the three algorithms in all the problems are given in Table 1. A population size of fifty and number of observations per Q-bit as one in each generation have been used in all the three algorithms. The value of to is the same for all the three QEAs. The local group size is five, local migration period is one iteration, and the global migration period is 100 generations for CQEA. The global migration period is one in PQEA. The toroidal grid size of “5 cross 10” with Von-Neumann topology having neighborhood size of five individuals is used in FQEA. The toroidal grid size of “5 cross 10” has been used as the population size is five. The stopping criterion is the maximum number of permissible generations, which is problem specific.

4.1. COUNSAT Problem [18]

It is an instance of the MAXSAT problem. In COUNTSAT, the value of a given solution is the number of satisfied clauses (among all the possible Horn clauses of three variables) by an input composed of Boolean variables. It is easy to check that the optimum is obtained when the value of all the variables is 1; that is, . In this study, nine different instances have been considered with = 20, 50, 100, 150, 200, 400, 600, 800, and 1000 variables, and, thus, the value of the optimal solution varies from 6860 to 997003000 as given by

The COUNTSAT function is extracted from MAXSAT with the objective of being very difficult to be solved by evolutionary algorithms [28]. The variables are randomly assigned values, following a uniform distribution, and so will have approximately ones. Then, the local changes decreasing the number of ones will lead to better results, while local changes increasing the number of ones decrease the fitness as shown in Figures 3 and 4. Hence, it is expected that EAs would quickly converge to all-zero and have difficulties in reaching the all-one string.

The results of testing of all the three algorithms on nine COUNTSAT problem instances have been presented in Table 2. A total of thirty independent runs of each algorithm were executed and the Best, Worst, Average, Median, % success runs, that is, number of runs in which an optimum solution was reached, and standard deviation (Std) of the fitness along with the average number of function evaluations (NFE) were recorded. The maximum number of generations was one thousand. All the three algorithms were able to reach the global maxima till problem size, , being 600; however, in problem sizes, , being 800 and 1000, only FQEA could reach the global optima. The performance of PQEA is inferior to the other two algorithms on all the statistical parameters. The performance of CQEA is as good as FQEA for problem sizes 20 and 50 on all the statistical parameters except for average NFE, which indicates that FQEA is faster than CQEA. CQEA has better success rate than FQEA in the problem size, , being 100, but FQEA has performed better than CQEA on the remaining six problem instances as it has better success rate.

Figures 5, 6, 7, 8, 9, 10, 11, 12, and 13 show relative convergence rate of the QEAs on the COUNTSAT problem instances. The convergence graphs have been plotted between the number of generations and the objective function values of the three QEAs. The rate of convergence of PQEA is fastest during the early part of the search in all the problem instances. In fact, for small size problem instances, PQEA is the fastest QEA. However, as the problem size increases, the performance of PQEA deteriorates and FQEA, which was slowest on the small size problem instances, emerges as the fastest amongst all the QEAs. CQEA has been faster than FQEA on small size problem instances and has also outperformed PQEAs on large size problem instances. The reason for poor performance of FQEA initially on small size problem instances is the slowest dispersion of information as compared to PQEA and CQEA, which, in fact, enables FQEA to explore the solution space more comprehensively before converging to the global optimum. In fact, slow dispersion of information helps FQEA to reach the global optimum in large size problem instances as it does not get trapped in the local optimum. The dispersion of information is quickest in the case of PQEA, which helps it to outperform both CQEA and FQEA, but also causes it to get trapped in the local optimum, especially in large size problem instances. The dispersion of information is slower in CQEA as compared to PQEA so it has found global optimum in more numbers of problem instances. Overall, FQEA has performed better than PQEA and CQEA on all the instances of COUNSAT problems. Therefore, the slow rate of dispersion of information in the fine-grained model had helped FQEA to perform better than the QEAs with the other two population models in the COUNTSAT problem instances.

4.2. -PEAKS Problem [18, 29]

It is a multimodal problem generator, which can easily create problem instances, which have tunable degree of difficulty. The advantage of using a problem generator is that it removes the opportunity to hand-tune algorithms to a particular problem, thus, allowing a large fairness while comparing the performance of different algorithms or different instances of the same algorithm. It helps in evaluating the algorithms on a large number of random problem instances, so that the predictive power of the results for the problem class as a whole is very high [29].

The idea of -PEAKS is to generate “” random N-bit strings that represent the location of peaks in the search space. The fitness value of a string, , is the hamming distance between and the closest peak, , divided by (as shown in (5)). Using a higher (or lower) number of peaks, we obtain a problem with more (or less) degree of multimodality. The maximum fitness value for the problem instances is 1.0. Consider

The results of testing of all three algorithms on -PEAKS problem instances with being 1000 and number of peaks, , being 20, 50, 100, 500, and 1000 have been presented in Table 3. A total of thirty independent runs of each algorithm were executed and the Best, Worst, Average, and Median, % success runs, that is, number of runs in which an optimum solution was reached, and standard deviation (Std) of the fitness along with average number of function evaluations (NFE) were recorded. The maximum number of generations was three thousand. PQEA was quickest in the beginning of the search process but could not reach a global optimum even in a single run of any problem instance. CQEA was slow in the beginning but performed better than PQEA. FQEA outperformed all the other QEAs as it was able to reach a global optimum in all the runs of all the problem instances.

Figures 14, 15, 16, 17, and 18 show relative convergence rate of the QEAs for -PEAKS problem instances. The convergence graphs have been plotted between the number of generations and the objective function values of the three QEAs. The rate of convergence of PQEA is fastest during the early part of the search in all the five problem instances; however, PQEA could not reach a global optimum even in a single run of any instance. CQEA has been the slowest of the three QEAs but has performed better than PQEA. FQEA is faster than CQEA and has also outperformed PQEA and CQEA on all the five problem instances. The reason for poor performance of FQEA initially is due to the slow dispersion of information as compared to PQEA, which enables it to explore the solution space more comprehensively before converging to a global optimum. In fact, slow dispersion of information helps FQEA to reach a global optimum in large size problem instances as it does not get trapped in a local optimum. The dispersion of information is the quickest in case of PQEA, which helps it to outperform CQEA and FQEA in the initial part of search process but also causes it to get trapped in a local optimum. The dispersion of information is slower in CQEA as compared to PQEA so it has found a global optimum in some runs of a problem instance. Overall, FQEA has performed better than PQEA and CQEA on all the instances of -PEAKS problems. Therefore, the slow rate of dispersion of information in fine-grained model had helped FQEA to perform better than the other population models in -PEAKS problem instances.

4.3. Knapsack Problem [30]

The 0-1 knapsack problem is a profit maximization problem, in which there are items of different profit and weight available for selection [30]. The selection is made to maximize the profit while keeping the weight of the selected items below the capacity of the knapsack. It is formulated as follows.

Given a set of items and a knapsack of capacity , select a subset of the items to maximize the profit : subject to the condition where , is 0 or 1, is the profit of th item, and is the weight of th item. If the th item is selected for the knapsack, ; else and .

Three groups of randomly generated instances of difficult knapsack problems (KP) have been constructed to test the QEAs. In all instances the weights are uniformly distributed in a given interval. The profits are expressed as a function of the weights, yielding the specific properties of each group. Eight different problem instances for each group of KP have been constructed. Four different capacities of the knapsack have been considered, namely, 10%, 5%, 2%, and 1% of the total weight of all the items taken together. The number of items available for selection in this study is 200 and 5000 items.

4.3.1. Multiple Strongly Correlated Instances

They are constructed as a combination of two sets of strongly correlated instances, which have profits where , , is different for the two sets. The multiple strongly correlated instances mstr have been generated in this work as follows: the weights of the items are randomly distributed in . If the weight is divisible by , then we set the profit ; otherwise, set it to . The weights in the first group (i.e., where ) will all be multiples of , so that using only these weights can at most use of the capacity; therefore, in order to obtain a completely filled knapsack, some of the items from the second distribution will also be included. Computational experiments have shown that very difficult instances could be obtained with the parameters mstr (300, 200, and 6) [30].

The results of testing of all the three algorithms on 0-1 knapsack problem with multiple strongly correlated data instances have been presented in Table 4. A total of thirty independent runs of each algorithm were executed and the Best, Worst, Average, and Median and standard deviation (Std) of the fitness along with average number of function evaluations (NFE) were recorded. The maximum number of generations was ten thousand. FQEA has outperformed PQEA and CQEA on all the problem instances as indicated by the statistical results. CQEA has performed better than PQEA on problems with smaller number of items but PQEA has performed better than CQEA on problems with larger number of items.

Figures 19, 20, 21, 22, 23, 24, 25, and 26 show relative convergence rate of the QEAs for 0-1 knapsack problem with multiple strongly correlated data instances. The convergence graphs have been plotted between the number of generations and the objective function values of the three QEAs. The rate of convergence of PQEA is fastest during the early part of the search in most of the problem instances; however, FQEA was able to overtake both the QEAs in later part of the search process. CQEA has been the slowest of the three QEAs in most of the instances except when the capacity of the knapsack is small; that is, it has performed better than PQEA in such problem instances. PQEA has performed better than CQEA on all other problem instances. FQEA has been slow initially but has performed better than PQEA and CQEA on all the problem instances. The reason for poor performance of FQEA during the initial part of the search process is due to slow dispersion of information in FQEA as compared to the other QEAs, which enables FQEA to explore the solution space more comprehensively before reaching near a global optimum. In fact, slow dispersion of information helps it to reach near the global optimum as it avoids getting trapped in a local optimum. The dispersion of information is quickest in case of PQEA, which helps it to outperform CQEA and FQEA during the initial part of search process but also causes it to get trapped in a local optimum. The dispersion of information is slower in CQEA as compared to PQEA but CQEA has been able to reach near best solution found by PQEA in the later part of the search and in some cases CQEA has outperformed PQEA. Overall, FQEA has performed better than PQEA and CQEA on all the instances of 0-1 knapsack problem with multiple strongly correlated data distribution. Therefore, the slow rate of dispersion of information in the fine-grained model had helped FQEA to perform better than QEAs with the other population models in 0-1 knapsack problem with multiple strongly correlated data instances.

4.3.2. Profit Ceiling Instances

These instances have profits of all items as multiples of a given parameter . The weights of the items are randomly distributed in , and their profits are set to . The parameter, , has been experimentally chosen as , as this resulted in sufficiently difficult instances [30].

The results of testing of all the three algorithms on 0-1 knapsack problem with profit ceiling distribution instances have been presented in Table 5. A total of thirty independent runs of each algorithm were executed and the Best, Worst, Average, and Median and standard deviation (Std) of the fitness along with the average number of function evaluations (NFE) were recorded. The maximum number of generations was ten thousand. FQEA has outperformed both the other QEAs on all the problem instances as indicated by the statistical results. CQEA has performed better than PQEA on problems with smaller number of items but PQEA has performed better than CQEA on problems with larger number of items.

Figures 27, 28, 29, 30, 31, 32, 33, and 34 show relative convergence rate of the QEAs for 0-1 knapsack problem with profit ceiling data instances. The convergence graphs have been plotted between the number of generations and the objective function values of the three QEAs. The rate of convergence of PQEA is fastest during the early part of the search process in most of the problem instances; however, FQEA was able to overtake both the QEAs during later part of the search process. CQEA has been the slowest of the three QEAs in most of the instances except when capacity of knapsack is small; that is, CQEA has performed better than PQEA in such problem instances. PQEA has performed better than CQEA on the other problem instances. FQEA has been slow initially but has performed better than both PQEA and CQEA on all the problem instances. The reason for poor performance of FQEA initially is due to the slow dispersion of information as compared to the other QEAs, which enables FQEA to explore the solution space more comprehensively before reaching near a global optimum. In fact, slow dispersion of information helps FQEA to reach near a global optimum as it avoids getting trapped in a local optimum. The dispersion of information is quickest in the case of PQEA, which helps it to outperform CQEA and FQEA in the initial part of the search process, but also causes it to get trapped in a local optimum. The dispersion of information is slower in CQEA as compared to PQEA but CQEA has been able to reach near the best solution found by PQEA in the later part of the search process in some cases. Overall, FQEA has performed better than PQEA and CQEA on all the instances of 0-1 knapsack problem with profit ceiling data distribution. Therefore, the slow rate of dispersion of information in the fine-grained model had helped FQEA to perform better than the QEAs with other population models in 0-1 knapsack problems with profit ceiling data distribution.

4.3.3. Circle Instances

These instances have the profit of their items as function of the weights forming an arc of a circle (actually an ellipsis). The weights are uniformly distributed in and for each weight the corresponding profit is chosen to be . Experimental results have shown in [30] that difficult instances appeared by choosing which was chosen for testing in this work.

The results of testing of all the three algorithms on 0-1 knapsack problem with circle data instances have been presented in Table 6. A total of thirty independent runs of each algorithm were executed and the Best, Worst, Average, and Median and standard deviation (Std) of the fitness along with average number of function evaluations (NFE) were recorded. The maximum number of generations was ten thousand. FQEA has outperformed both PQEA and CQEA on all the problem instances as indicated by the statistical results. CQEA has performed better than PQEA on problems with smaller number of items but PQEA has performed better than CQEA on problems with larger number of items.

Figures 35, 36, 37, 38, 39, 40, 41, and 42 show relative convergence rate of the QEAs for 0-1 knapsack problem with circle data distribution instances. The convergence graphs have been plotted between the number of generations and the objective function values of the three QEAs. The rate of convergence of PQEA is fastest during the early part of the search process in some problem instances; however, FQEA was able to overtake both the QEAs during later part of the search process. CQEA has been the slowest of the three QEAs in most of the problem instances. CQEA has performed better than PQEA on most of the problem instances. FQEA has been slow initially but has performed better than both PQEA and CQEA on all the problem instances. The reason for poor performance of FQEA initially is due to the slow dispersion of information as compared to the other QEAs, which enables it to explore the solution space more comprehensively before reaching near a global optimum. In fact, slow dispersion of information helps it to reach near the global optimum as it avoids getting trapped in a local optimum. The dispersion of information is quickest in case of PQEA, which helps it to outperform CQEA and FQEA in initial part of the search process, but also causes it to get trapped in a local optimum. The dispersion of information is slower in CQEA as compared to PQEA but it has been able to reach near the best solution found by PQEA in the later part of the search in some cases. CQEA has also outperformed PQEA in some cases. Overall, FQEA has performed better than PQEA and CQEA on all the instances of 0-1 knapsack problem with circle data distribution. Therefore, the slow rate of dispersion of information in the fine-grained model had helped FQEA to perform better than the QEAs with other population models in 0-1 knapsack problem with circle data distribution.

4.4. Comparative Study

A comparative study has been performed between FQEA and recently proposed “state-of-the-art” algorithm known as “hybrid cuckoo search algorithm with improved shuffled frog leaping algorithm” (CSISFLA) [31]. It was shown in [31] that CSISFLA has performed better than genetic algorithm [3], Differential Evolution Algorithm [32, 33], and Cuckoo Search [34] on some 0-1 knapsack problem instances. The size of the knapsack is very large as it is 75% of the total weight of all the items taken together. Table 7 empirically compares the performance of FQEA and CSISFLA on KP-1, KP-2, KP-3, and KP-7, which are 0-1 knapsack problem instances with uncorrelated weight and profit instances given in [31]. The duration of execution of FQEA (compiled with Visual Studio 6) was five seconds for KP-1, KP-2, and KP-3 and eight seconds on a computer with AMD Athlon 7750 Dual-Core, 2.71 GHz, 1.75 GB RAM running under Windows XP, which was a similar machine to that used for running CSISFLA in [31]. The target capacity, total capacity, and total value of the items in each problem are the same as those given in [31].

Results in Table 7 show that FQEA outperforms CSISFLA on KP-1, KP-2, and KP-3, but CSISFLA performs better than FQEA on KP-7. This shows that FQEA is performing better on small dimension problems compared to CSISFLA but CSISFLA is performing better than FQEA on large dimension problems. In order to find the reason for poor performance of FQEA on large dimension problems, an investigation was made on the conditions of comparative study. It was found that KP-1 has 150 items, KP-2 has 200 items, KP-3 has 300 items, and KP-7 has 1200 items. Thus, by keeping total running time of five seconds for KP-1 to KP-3 shows that it is either more for KP-1 or less for KP-3, because the problem size in KP-3 is double that of KP-1. So let us assume that if 5 seconds of run time was adequate for KP-3, then, it is considerably more for KP-1. However, even when CSISFLA has evolved for more time in case of KP-1, it has produced inferior result as compared to FQEA, showing that CSISFLA has a tendency of getting trapped in suboptimal region. The search process of FQEA is slow initially as it explores the search space in a more comprehensive way due to slow dissemination information in its population structure as compared to other algorithms. In case of KP-7, the problem size is eight times that of KP-1. Thus, if FQEA is evolved for forty seconds instead of eight seconds, it should produce better results than CSISFLA. It can be argued that CSISFLA may produce better result if it evolved for forty seconds, but, as we have seen in KP-1, evolving for more duration is not necessarily helping CSISFLA. Table 8 shows the results of FQEA with forty seconds of execution time on KP-7, KP-14, KP-19, KP-24, KP-29, and KP-34 along with the results of CSISFLA given in [31]. Table 8 shows that FQEA is able to produce better results when evolved for longer duration. However, CSISFLA produces better result in large dimension problem instances than FQEA, when evolved for eight seconds only.

5. Conclusions

Quantum-inspired evolutionary algorithm are a type of evolutionary algorithms, which have been designed by integrating probabilistic bit representation, superposition, and measurement principles in evolutionary framework for computationally solving difficult optimization problems. The QEA in [7] has been developed on coarse-grained population model, which has been subsequently modified into panmictic model, vQEA, and is shown to be better than QEA in solving some problems [8]. This motivated further investigations of the effect of fine-grained population structure on the performance of QEA [35]. The experimental testing has shown that fine-grained model improves the performance of QEA in comparison to the other models on COUNTSAT problem instances, -PEAKS problem instances, and three difficult knapsack problem instances. Thus, the contribution of this work is twofold; namely, the first is the critical examination of the population structures employed in QEA and the implementation of QEA on the two-dimensional toroidal grid for fair comparison of the effect of all the three population models on QEA. A comparative study was also performed with the “state-of-the-art” hybrid cuckoo search algorithm [31], which showed that FQEA is slow but produces better solutions. Future endeavors will be made to further improve the speed of convergence in FQEA for solving benchmark as well as real world search and optimization problems.

Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

Acknowledgments

The authors are thankful to anonymous reviewers for giving insightful comments, which helped in improving the paper. Nija Mani is thankful to her department and UGC for supporting her Ph.D. through Meritorious Student’s Fellowship.