Full text
Swarm and Evolutionary Computation 65 (2021) 100936 Contents lists available at ScienceDirect Swarm and Evolutionary Computation journal homepage: www.elsevier.com/locate/swevo Self-organizing migrating algorithm using covariance matrix adaptation evolution strategy for dynamic constrained optimization Lenka Skanderova ∗ , Tomas Fabian , Ivan Zelinka Department of Computer Science, Faculty of Electrical Engineering and Computer Science, VSB – Technical University of Ostrava, 70800 Czech Republic a r t i c l e i n f o Keywords: Dynamic constrained optimization Self-organizing migrating algorithm Covariance matrix adaptation Evolution strategy Moving peaks a b s t r a c t The dynamic constrained optimization problems can be a challenge for the optimization algorithms. They must tackle global optimum detection, as well as the change of the environment. Recently, a novel test suite for dynamic constrained optimization was introduced. Furthermore, three well-performed evolutionary algorithms were compared based on it. The experimental results show that each algorithm performed best for a different type of optimization problem. The objective of our work was to develop an algorithm reflecting requirements arising from the novel test suite and regarding the results provided by the tested algorithms. In this work, we present a novel evolutionary algorithm for dynamic constrained optimization. The algorithm hybridizes the self-organizing migrating algorithm and the covariance matrix adaptation evolution strategy with constraints handling approach. To avoid premature convergence, the best solutions representing feasible regions do not affect the rest of the population. Two clustering methods, exclusion radius, and quantum particles are used to preserve population diversity. The performance is evaluated on the recently published test suite and compared to the three state-of- the-art algorithms. The presented algorithm outperformed these algorithms in most test cases, which indicates the efficiency of the utilized mechanisms. 1. Introduction Dynamic constrained optimization problems (DCOPs) are problems where the objective function, constraints, or both change over time. These problems include dynamic scheduling [1] , dynamic obstacle avoidance [2] etc. Different DCOPs can be described by different mathematical expressions. In this paper, the DCOP is defined as follows without loss of generality: maximize 𝑓( 𝑥 , 𝑡 ) , 𝑥 = ( 𝑥 1 , …, 𝑥 𝐷 ) ∈𝑆, 𝐿 𝑖 ≤ 𝑥 𝑖 ≤ 𝑈 𝑖 subject to: { 𝑔 𝑗 ( 𝑥 , 𝑡 ) ≤ 0 , 𝑗 = 1 , …, 𝑙 ℎ 𝑗 ( 𝑥 , 𝑡 ) = 0 , 𝑗 = 𝑙 + 1 , …, 𝑚 , (1) where 𝑥 is a decision vector, 𝑥 𝑖 is the 𝑖 th decision variable with lower and upper bounds 𝐿 𝑖 and 𝑈 𝑖 , respectively. 𝐷is the dimension of the problem and 𝑆 = ∏𝐷 𝑖 =1 [ 𝐿 𝑖 , 𝑈 𝑖 ] decision space. 𝑡 denotes the discrete time instance or the environmental variable, 𝑓( 𝑥 , 𝑡 ) is the objective function, 𝑔 𝑗 ( 𝑥 , 𝑡 ) is the 𝑗th inequality constraint, and ℎ 𝑗 ( 𝑥 , 𝑡 ) is the 𝑗th equality constraint. 𝑙and ( 𝑚 − 𝑙) then denotes the number of inequality and equality constraints, respectively [3] . Evolutionary algorithms can solve various constrained optimization problems from the engineering and economic domain [4,5] . Despite the ∗ Corresponding author. E-mail addresses: [email protected] (L. Skanderova), [email protected] (T. Fabian), [email protected] (I. Zelinka). relatively large number of EAs developed for solving COPs, the number of EAs focused on the DCOPs remains relatively small. In 2010, the Clustering Particle Swarm Optimizer (CPSO) [6] was presented. Initially, it was developed to solve dynamic optimization problems without constraints. The individuals are divided into subpopulations. For exploitation, a local search algorithm is utilized. When a migration cycle is finished, an overlapping ratio is calculated for each pair of subpopulations. If it is higher than a predefined constant, the subpopulations are merged. A new population is sorted, and the worst individuals are removed to preserve the predefined size. In 2019, Wang et al. [3] described a novel benchmark generator for dynamic constrained optimization. The performance of the CPSO, as well as two algorithms, Locating and Tracking Feasible Regions Dynamic Species-Based Particle Swarm Optimization (LTFR-DSPSO) [7] and Dynamic Constrained Optimization Differential Evolution (Dy- CODE) [3] , was evaluated using this test suite. The LTFR-DSPSO algorithm was developed in 2016. As well as the CPSO, the LTFR-DSPSO divides individuals into subpopulations (species). For each subpopulation, the best individual (seed) is identified. If a seed is infeasible, a gradient-based repair method is applied. Besides the gradient-based approach, sequential quadratic programming https://doi.org/10.1016/j.swevo.2021.100936 Received 26 January 2021; Received in revised form 3 June 2021; Accepted 13 June 2021 Available online 17 June 2021 2210-6502/© 2021 The Author(s). Published by Elsevier B.V. This is an open access article under the CC BY license ( http://creativecommons.org/licenses/by/4.0/ )
L. Skanderova, T. Fabian and I. Zelinka Swarm and Evolutionary Computation 65 (2021) 100936 (SQP) is used as a local search operator. The external memories are utilized to track and predict feasible regions. In 2019, Wang et al. published a novel dynamic constrained differential evolution algorithm (DyCODE) [3] . The DyCODE divides the population into subpopulations of a predefined size. The individuals are clustered based on random vectors generated in the space of possible solutions. Each cluster (subpopulation) is then evolving separately until the rate of feasible solutions is higher than a predefined constant. Then, some ratio of the best individuals from each cluster is selected to create a novel population. The cycle of reproduction is repeated, while the change of the environment is not detected. Unlike the CPSO and LTFRDSPSO, the DyCODE does not apply any mechanism for local search. Wang et al. compared the performance of the CPSO, LTFR-DSPSO, and DyCODE using the novel test suite [3] . The experimental results indicated that the performance of the compared algorithms depends on the optimization problem. The CPSO provided the best results for test problems with two and three feasible regions. The DyCODE for test instances with one feasible region. In the case of a slight environmental change, the LTFR-DSPSO performed best. For test problems with rapid environmental change, the CPSO outperformed the LTFR-DSPSO and DyCODE. Based on the analysis of the results described in [3] , we developed a novel hybrid evolutionary algorithm (denoted as CCMA-ES-SOMA). The CCMA-ES-SOMA hybridizes the self-organizing migrating algorithm (SOMA) and covariance matrix adaptation evolution strategy with a constraint handling approach (in this paper denoted as CCMA-ES) [8] . A population is divided strictly into two subpopulations using two different clustering methods. Quantum particles and exclusion radius are employed to preserve population diversity. The performance of the CCMAES-SOMA is evaluated on the benchmark described by Wang et al. [3] . Results provided by the CCMA-ES-SOMA are compared with results achieved by the CPSO, LTFR-DSPSO, and DyCODE. The statistical analysis indicates that the CCMA-ES-SOMA outperforms these algorithms in most test cases. The rest of the paper is organized as follows: In Section 2 , the principles of the SOMA and CCMA-ES are mentioned. Section 3 presents the novel self-organizing migrating algorithm using the CMA-ES for constrained optimization and explains the incorporated mechanisms thoroughly. The experiments and experimental results are presented in Section 4 , and in Section 5 they are summarized. 2. Related work In the following subsections, the SOMA and CCMA-ES algorithms will be described thoroughly. 2.1. SOMA Self-organizing migrating algorithm [9] is a population-based evolutionary algorithm developed for single-objective unconstrained optimization. Its principle originates from the idea of migration of individuals to leaders . A leading individual 𝑥 𝑀𝐿 𝐿 can be selected randomly or based on some criteria, for example, objective function evaluation. There are five migration strategies of SOMA [10] . In this paper, the strategy AllToOne Adaptive is used. Therefore, we will deal with this strategy in the following text. The initial population containing 𝑁𝑃 individuals is generated randomly within the prescribed range. Each 𝑖 th individual is represented by the 𝐷-dimensional vector 𝑥 𝑀𝐿 𝑖 of real-valued parameters, where 𝑀𝐿 is the actual migration loop. Each individual 𝑥 𝑀𝐿 𝑖 migrates to the best individual in the population –leader 𝑥 𝑀𝐿 𝐿 . To determine a direction of motion, for each individual, a perturbation vector 𝑃 𝑅𝑇 𝑉 𝑒𝑐𝑡𝑜𝑟 𝑖 is calculated according to the following equation: 𝑃 𝑅𝑇 𝑉 𝑒𝑐𝑡𝑜𝑟 𝑖,𝑗 = { 1 if 𝑟𝑛𝑑 𝑗 < 𝑃 𝑅𝑇 0 otherwise. (2) where 𝑟𝑛𝑑 𝑗 is a random uniform number from the interval [0,1] and 𝑃 𝑅𝑇 is a perturbation parameter. The perturbation parameter is a constant, usually set to 0.1. Smaller values of 𝑃 𝑅𝑇 can slow down the convergence of the algorithm. On the other hand, higher values ( > 0 . 5 ) might speed up the convergence. However, the diversity of a population can be lost in several migrations. Each individual moves towards a leader in steps with a predefined size denoted as 𝑆𝑡𝑒𝑝 . The length of the individual path is given by a constant 𝑃 𝑎𝑡ℎ𝐿𝑒𝑛𝑔𝑡ℎ , usually set to 3.0. The step size 𝑆𝑡𝑒𝑝 is usually set to the value 0.11 or 0.33 [9,10] . To avoid premature convergence, 𝑃 𝑎𝑡ℎ𝐿𝑒𝑛𝑔𝑡ℎ should not be fully divisible by 𝑆𝑡𝑒𝑝 . If a new position of the individual 𝑥 𝑡 𝑖 is better than the previous one, the individual will be moved to this position immediately. Calculation of a new position 𝑥 𝑡 𝑖 of an individual 𝑥 𝑀𝐿 𝑖 is mathematically described by the following equation: 𝑥 𝑡 𝑖 = 𝑥 𝑀𝐿 𝑖 + ( 𝑥 𝑀𝐿 𝐿 − 𝑥 𝑀𝐿 𝑖 ) ⋅𝑡 ⋅ 𝑃 𝑅𝑇 𝑉 𝑒𝑐𝑡𝑜𝑟 𝑖 , (3) where 𝑡 is increased based on the number of steps. The setting of 𝑆𝑡𝑒𝑝 is problem dependent and as well as 𝑃 𝑅𝑇 , it significantly affects the SOMA performance. In connection with the constrained optimization, some novel algorithms of SOMA were presented. Deep and Dipti developed a self-organizing migrating algorithm for constrained optimization (C- SOMGA) [11] using the genetic algorithm to generate the offspring in the first phase. In the second phase, the SOMA is utilized. dos Santos Coelho [12] applied the Gaussian operator in the process of migration of individuals and a tuning method for an update of the parameter 𝑃 𝑎𝑡ℎ𝐿𝑒𝑛𝑔𝑡ℎ in the SOMA and denoted this algorithm as GSOMA. The CSOMA was proposed by dos Santos Coelho and Mariani [13] , and it is based on a combination of the SOMA and cultural algorithm. In C- SOMAQI [14] , a new position of the worst individual is calculated based on the quadratic interpolation. To the best of our knowledge, no work dealing with SOMA applied to DCOPs was published. The publications mentioned above indicate several directions, which can lead to an improvement in the SOMA: hybridization [11,13] , development of some tuning method for control parameters [12] , change of the individual motion equation [12,14] . In this work, besides the hybridization, a novel principle of individual motion was incorporated. For hybridization, CCMA-ES [8] was used. 2.2. CCMA-ES The original CMA-ES [15] is based on the idea of eigendecomposition, which is used to generate normally distributed random vectors based on the covariance matrix. Igel et al. [16] incorporated the principle of the covariance matrix adaptation into the (1+1) selection scheme in the ES (in the original CMA-ES, it was ( 𝜇∕ 𝜇, 𝜆) selection scheme), and introduced an efficient principle of the covariance matrix update. The computationally expensive eigenvalue and Cholesky decompositions were replaced by the incremental rank-one update rule for the Cholesky factorization. Thanks to this mechanism, the computational complexity of the algorithm decreased from 𝑂( 𝑛 3 ) to 𝑂( 𝑛 2 ) [16] . It was shown that the (1+1)-CMA-ES was significantly faster than the ( 𝜇∕ 𝜇, 𝜆) - CMA-ES on the unimodal functions. In [17] , an active covariance matrix adaptation for (1+1)-CMA-ES was introduced, where successful as well as unsuccessful trial steps are used to update the distribution of mutation vectors. The (1+1)-CMA-ES for constrained optimization was developed by Arnold and Hansen [8] . The main principle of the CCMA-ES lies in the idea to reduce variances of the distribution of newly created individuals (offspring) in the directions of the normal vectors of constraint boundaries in the vicinity of the current individuals (parents) [8] . If we have 𝑚 constraints, then for each of them, exponentially fading record 𝑣 𝑗 of steps, where this constraint was violated, is maintained. 2
L. Skanderova, T. Fabian and I. Zelinka Swarm and Evolutionary Computation 65 (2021) 100936 At the beginning of the algorithm, the vectors 𝑣 𝑗 , 𝑗 = 1 , …, 𝑚 are initialized to zero, and a new offspring 𝑦 is generated as follows: 𝑦 = 𝑥 + 𝜎𝐀 𝑧 , (4) where 𝑥 denotes a parental candidate solution and 𝑛 ×𝑛 ( 𝑛 is the dimension of the problem) matrix 𝐀 is the result of the Cholesky decomposition of the positive definite covariance matrix 𝐂 such that 𝐂 = 𝐀𝐀 𝑇 . 𝑧 ∈ℝ 𝑛 is a vector with normally distributed components with standard deviation 𝜎, which effectively represents the global step size of the ES. For the offspring 𝑦 , the constraint violations are calculated. If a constraint 𝑗is violated, i. e. 𝑔 𝑗 ( 𝑦 ) > 0 , a vector 𝑣 𝑗 will be updated according to the following equation: 𝑣 𝑗 = (1 − 𝑐 𝑐 ) 𝑣 𝑗 + 𝑐 𝑐 𝐀 𝑧 , (5) where 𝑐 𝑐 ∈(0 , 1) affects the speed of fading of information in the constraint vectors. If an offspring 𝑦 is infeasible, the Cholesky factor of the covariance matrix will be updated according to Eq. (6) . The iteration of the CCMAES is finished. 𝐀 ← 𝐀 − 𝛽 ∑𝑚 𝑗=1 𝟙 𝑔 𝑗 ( 𝑦 ) > 0 𝑚 ∑ 𝑗=1 𝟙 𝑔 𝑗 ( 𝑦 ) > 0 𝑣 𝑗 𝑤 𝑇 𝑗 𝑤 𝑇 𝑗 𝑤 𝑗 , (6) where 𝑤 𝑗 = 𝐀 −1 𝑣 𝑗 and 𝟙 𝑔 𝑗 ( 𝑦 ) > 0 equals one if the constraint 𝑗in the offspring 𝑦 is violated, i. e. 𝑔 𝑗 ( 𝑦 ) > 0 . Otherwise, it is zero. 𝛽is a parameter controlling a size of updates. And it is set to 𝛽= 0 . 1 𝑛 +2 . If 𝑦 is feasible, the success probability estimate will be updated according to the following equation: 𝑃 𝑠𝑢𝑐𝑐 ← (1 − 𝑐 𝑃 ) 𝑃 𝑠𝑢𝑐𝑐 + 𝑐 𝑃 𝟙 𝑓 ( 𝑦 ) ≤ 𝑓 ( 𝑥 ) , (7) where 𝑐 𝑃 is a constant 0 < 𝑐 𝑃 < 1 . Then the global step size will be calculated as 𝜎← 𝜎exp ( 1 𝑑 𝑃 𝑠𝑢𝑐𝑐 − 𝑃 𝑡𝑎𝑟𝑔𝑒𝑡 1 − 𝑃 𝑡𝑎𝑟𝑔𝑒𝑡 ) , (8) where 𝑃 𝑡𝑎𝑟𝑔𝑒𝑡 equals approximately one fifth (in [8] it is set to 2 11 ) and 𝑑 > 0 is a damping constant [17] . The search path is an exponentially fading record 𝑠 ∈ℝ 𝑛 of successful steps. If the objective function value of the offspring 𝑓( 𝑦 ) is better than the objective function value of the parent 𝑓( 𝑥 ) , the parent 𝑥 is replaced by the offspring 𝑦 and the search path is updated as follows: 𝑠 ← (1 − 𝑐) 𝑠 + √𝑐(2 − 𝑐) 𝐀 𝑧 . (9) The parameter 𝑐is set to 𝑐 = 2 𝑛 +2 [8,17,18] . Then, the matrix 𝐀 will be updated according to Eq. (10) . 𝐀 ← √ 1 − 𝑐 + 𝑐𝑜𝑣 𝐀 + √1 − 𝑐 + 𝑐𝑜𝑣 ‖ ‖ 𝑤 ‖ ‖2 ⎛ ⎜ ⎜ ⎜ ⎝ √ √ √ √ 1 + 𝑐 + 𝑐𝑜𝑣 ‖ ‖ 𝑤 ‖ ‖2 1 − 𝑐 + 𝑐𝑜𝑣 − 1 ⎞ ⎟ ⎟ ⎟ ⎠ 𝑠 𝑤 𝑇 , (10) where 𝑤 = 𝐀 −1 𝑠 . The iteration is complete. In the case that 𝑓( 𝑦 ) is not better than its fifth-order ancestor, the matrix 𝐀 will be updated according to the following equation: 𝐀 ← √ 1 + 𝑐 − 𝑐𝑜𝑣 𝐀 + √1 + 𝑐 − 𝑐𝑜𝑣 ‖ ‖𝑧 ‖ ‖2 ⎛ ⎜ ⎜ ⎜ ⎝ √ √ √ √ 1 − 𝑐 − 𝑐𝑜𝑣 ‖ ‖𝑧 ‖ ‖2 1 + 𝑐 − 𝑐𝑜𝑣 − 1 ⎞ ⎟ ⎟ ⎟ ⎠ 𝐀 𝑧 𝑧 𝑇 . (11) In [8,17] , 𝑐 + 𝑐𝑜𝑣 = 2 𝑛 2 +6 and 𝑐 − 𝑐𝑜𝑣 = min ( 0 . 4 𝑛 1 . 6 +1 , 1 2 ‖𝑧 ‖2 −1 ) . Unlike CCMA-ES described in [8] , the ECMA-ES presented in [19] utilizes the well-known epsilon-level constraint handling technique ( 𝜖LCH). In [20] , the Maesani et al. used the viability principles and new rules for step size adaptation in the CCMA-ES [8] . The viability evolution is an abstraction of artificial evolution, where the individuals not satisfying the set of conditions are eliminated. These conditions are denoted as viability boundaries. They are defined on both objectives and constraints, and they are adapting during the evolution process. Spettel et al. [21] proposed a covariance matrix self-adaptation evolution strategy solving constrained optimization problems with linear constraints, denoted as ( 𝜇∕ 𝜇𝐼 , 𝜆)-CMSA-ES or lcCMSA-ES, where the 𝜎-self-adaptation and simplification of covariance update are utilized. In [22] , the concepts of the reference vector-based multi objective optimization are utilized to design a ranking strategy for the solutions of a constrained optimization problem. First, the constrained optimization problem is transformed into a bi objective optimization problem. Then it is solved by using the CMA-ES. Kumar et al. described a novel 𝜐-constrained matrix adaptation evolution strategy with Broyden-based mutation for constrained optimization [23] . In this work, to keep the balance between feasible and infeasible solutions, the 𝜐-level penalty function is introduced, which transforms a constrained optimization problem into an unconstrained one. The Broyden-based mutation is a repair technique providing feasible solutions closer to the infeasible ones using gradient information of constraints. In a modified covariance matrix adaptation evolution strategy for real-world constrained optimization problems [24] , an 𝜖-constrained- based ranking and repair method to handle the violation of the constraints are utilized. Helwig and Beyer proposed a modified matrix adaptation evolution strategy with restarts for constrained real-world problems BP- 𝜖MAg-ES [25] . It is based on the thorough analysis of the components of the 𝜖MAg-ES [25] (the overall second place at the CEC 2018 competition on constrained single-objective real-parameter optimization). The restart scheme and adjustments in the constraint handling technique improved the efficiency and simplified the configuration. In this work, the CCMA-ES is used as the local search operator for several reasons. The CCMA-ES utilizes all trial steps to update the distribution of mutation vectors. The scheme (1+1) indicates that the number of the objective and constrained function evaluations will be significantly smaller in comparison with the ( 𝜇∕ 𝜇, 𝜆) scheme. Moreover, based on the publications mentioned above, we can see that the CCMA-ES was successfully used to hybridize some evolutionary algorithms [19] solving the COPs. 3. Self-organizing migrating algorithm using (1+1)-CMA-ES with constraints handling approach for dynamic constrained optimization The CCMA-ES-SOMA algorithm is a hybrid algorithm utilizing the ability of the SOMA to detect feasible regions and the CCMA-ES to identify the local extreme within the feasible region. The clustering techniques are used to divide a population into subpopulations. With an increasing number of subpopulations, the convergence rate of an algorithm often decreases. Therefore, the CCMA-ES-SOMA divides individuals solely into two subpopulations (denoted as 𝑐𝑠𝑙𝑡 1 and 𝑐𝑙𝑠𝑡 2 ). For this purpose, two different clustering methods are used. The selection of the method relates to the subpopulations overlapping at the end of the previous migration/evolution cycle. If no feasible solution has been identified yet, individuals from both subpopulations migrate based on the AllToOne Adaptive strategy. Otherwise, only individuals from a better subpopulation migrate to speed up the convergence and preserve the diversity. If a feasible region is detected, the best solution is moved to an external archive (and removed from the subpopulation). At the end of the migration/evolution cycle, the overlapping of subpopulations is solved. The subpopulations are merged. In the next migration loop, the population is divided into subpopulations again. The CCMA-ES algorithm is applied to each solution in the external archive to find out the local extreme within the feasible region. The whole algorithm is described in Algorithm 1 . In the following subsections, all phases of the algorithm will be explained thoroughly. 3
L. Skanderova, T. Fabian and I. Zelinka Swarm and Evolutionary Computation 65 (2021) 100936 Algorithm 1 CCMA-ES-SOMA. 𝐸𝑥 _ 𝐴 = [⪯] , 𝐶𝑀 _ 𝐴 = [⪯] ⊳ External archives 𝑝𝑜𝑝 ← Random population with 𝑁𝑃 individuals 𝑔𝑢𝑎𝑟𝑑 ← Copy of the best individ. in 𝑝𝑜𝑝 ⊳ Monitoring individual 𝑜𝑣𝑒𝑟𝑙 𝑎𝑝𝑝𝑒𝑑 = 𝐹 𝑎𝑙 𝑠𝑒 while Stopping criteria is not met do if 𝑜𝑣𝑒𝑟𝑙𝑎𝑝𝑝𝑒𝑑 == 𝑇 𝑟𝑢𝑒 then Get subpopulations 𝑐𝑙𝑠𝑡 1 , 𝑐𝑙𝑠𝑡 2 based on Alg. 3 else Get subpopulations 𝑐𝑙𝑠𝑡 1 , 𝑐𝑙𝑠𝑡 2 based on Alg. 2 end if if 𝐸𝑥 _ 𝐴 is empty then Migrate 𝑐𝑙𝑠𝑡 1 and 𝑐𝑙𝑠𝑡 2 based on Alg. 5 else Use CCMA-ES based on Alg. 9 for each subpopulation 𝑐𝑙𝑠𝑡 𝑎 do 𝑏𝑒𝑠𝑡 ← best individual from 𝑐𝑙𝑠𝑡 𝑎 for each individual 𝑥 𝑖 in 𝐸𝑥 _ 𝐴 do if 𝑒𝑢𝑐𝑙( 𝑏𝑒𝑠𝑡 , 𝑥 𝑖 ) ≤ 𝑟 𝑒𝑥𝑐𝑙 then 𝑐𝑙𝑠𝑡 𝑎 ← Get random subpopulation end if end for end for 𝑏𝑒𝑠𝑡 1 ← Best individual from 𝑐𝑙𝑠𝑡 1 𝑏𝑒𝑠𝑡 2 ← Best individual from 𝑐𝑙𝑠𝑡 2 if 𝑏𝑒𝑠𝑡 1 is better than 𝑏𝑒𝑠𝑡 2 then Migrate 𝑐𝑙𝑠𝑡 1 based on Alg. 5 else Migrate 𝑐𝑙𝑠𝑡 2 based on Alg. 5 end if end if 𝑜𝑣𝑒𝑟𝑙𝑎𝑝𝑝𝑒𝑑 ← Solve subpopulations overlapping based on Alg. 7 if change detected then Restart algorithm and get 𝑝𝑜𝑝 based on Alg. 10 else 𝑝𝑜𝑝 ← Get population based on Alg. 8 end if end while 3.1. Clustering methods At the beginning of the algorithm, the population 𝑝𝑜𝑝 of 𝑁𝑃 random individuals (with uniform distribution) is generated and evaluated, i. e. values of the objective and constraint functions are calculated. Two clustering methods are used to divide 𝑝𝑜𝑝 into two subpopulations 𝑐𝑙𝑠𝑡 1 and 𝑐𝑙𝑠𝑡 2 . The first of them is based on the maximal Euclidean distance between individuals. It is used if subpopulations overlapping was not detected in the previous migration/evolution cycle. The main goal of this clustering method is to separate the subpopulations as much as possible. Each subpopulation then occupies a different region of the search space. The whole process is described in Algorithm 2 . For each pair of individuals in the population, Euclidean distance 𝑒𝑢𝑐𝑙() is calculated. Two individuals with the longest distance are selected as 𝑠𝑒𝑒𝑑 1 , 𝑠𝑒𝑒𝑑 2 , and they are put into two separated clusters 𝑐𝑙𝑠𝑡 1 and 𝑐𝑙𝑠𝑡 2 (and removed from the population). One seed is selected randomly, and its nearest neighbour is put to the same cluster and removed from the population. Then to the second cluster, the nearest neighbour of the second seed is appended. To each cluster, the nearest neighbours of the seed are added in rotation until the population is empty. The second clustering method is applied when subpopulations overlapping had to be solved in the previous migration/evolution loop. It ensures that the population will be divided into better and worse. The better cluster will consist of the best individual and its nearest neigh- Algorithm 2 Clustering based on the maximal Euclidean distance between individuals in 𝑝𝑜𝑝 . For each individual in 𝑝𝑜𝑝 get distances of its neighbours Get two individuals 𝑠𝑒𝑒𝑑 1 and 𝑠𝑒𝑒𝑑 2 with maximal distance 𝑐𝑙𝑠𝑡 1 = [ 𝑠𝑒𝑒𝑑 1 ] ⊳ The 1 st subpopulation 𝑐𝑙𝑠𝑡 2 = [ 𝑠𝑒𝑒𝑑 2 ] ⊳ The 2 nd subpopulation 𝑐𝑙𝑠𝑡𝑠 = [ 𝑐𝑙 𝑠𝑡 1 , 𝑐𝑙 𝑠𝑡 2 ] 𝑓𝑙𝑎𝑔 ← Get index of actual cluster randomly ⊳ 0 or 1 while 𝑝𝑜𝑝 is not empty do 𝑛𝑒𝑖𝑔ℎ ← Get the nearest neighbour of 𝑐𝑙 𝑠𝑡𝑠 [ 𝑓𝑙 𝑎𝑔][0] from 𝑝𝑜𝑝 Add 𝑛𝑒𝑖𝑔ℎ to 𝑐𝑙 𝑠𝑡𝑠 [ 𝑓𝑙 𝑎𝑔] Remove 𝑛𝑒𝑖𝑔ℎ from 𝑝𝑜𝑝 if 𝑓𝑙𝑎𝑔 == 0 then 𝑓𝑙𝑎𝑔 = 1 else 𝑓𝑙𝑎𝑔 = 0 end if end while return 𝑐𝑙𝑠𝑡𝑠 bours ( 𝑁𝑆 − 1 ). The worse cluster will be composed of the rest of the individuals. For better illustration, see Algorithm 3 . Algorithm 3 Clustering based on the best individual. 𝑁𝑆 …predefined number of individuals in a subpopulation Select the best individual 𝑏𝑒𝑠𝑡 from the population 𝑝𝑜𝑝 𝑐𝑙𝑠𝑡 1 = [ 𝑏𝑒𝑠𝑡 ] ⊳ Better subpopulation 𝑐𝑙𝑠𝑡 2 = [⪯] ⊳ Worse subpopulation 𝑐𝑙𝑠𝑡𝑠 = [ 𝑐𝑙 𝑠𝑡 1 , 𝑐𝑙 𝑠𝑡 2 ] 𝑖 = 0 while 𝑖 < 𝑁𝑆 − 1 do Get the closest neighbour 𝑛𝑒𝑖𝑔ℎ to 𝑏𝑒𝑠𝑡 from 𝑝𝑜𝑝 Add 𝑛𝑒𝑖𝑔ℎ to 𝑐𝑙𝑠𝑡𝑠 [0] Remove 𝑛𝑒𝑖𝑔ℎ from 𝑝𝑜𝑝 𝑖 + + end while 𝑐𝑙𝑠𝑡𝑠 [1] ← 𝑝𝑜𝑝 return 𝑐𝑙𝑠𝑡𝑠 3.2. Migration of subpopulations If an external archive is empty, both subpopulations migrate based on the AllToOne Adaptive scheme of the SOMA. For the best individual, a leader 𝐿𝑒𝑎𝑑 𝑖 is generated randomly within a decision space 𝑆 = ∏𝐷 𝑖 =1 [ 𝐿 𝑖 , 𝑈 𝑖 ] . For the rest of the individuals, the best individual is selected to be a leader. For each step of each individual 𝑥 𝑖 , a new perturbation vector 𝑃 𝑅𝑇 𝑉 𝑒𝑐𝑡𝑜𝑟 𝑡 𝑖 is generated based on Eq. (2) . A new position of an individual 𝑥 𝑡 𝑖 is then calculated based on Eq. (3) . Then the objective and constraint functions are evaluated. If a new position is better than a previous one, an individual is moved. If the actual individual (including the best one) is better than its leader, its migration process will be terminated. For each new position, we check whether it is inside the given search space 𝑆. If it is not, it will be set to the value of the closer bound. This principle retains the direction of individual motion. During migration, the objective and constraint functions are evaluated more than once for each individual. Therefore, the algorithm should select a leader to maximize the chance of position improvement. Although a selection of the best individual often leads to fast convergence, the evolution of some individuals might stagnate. This phenomenon relates to the distance between an actual individual and a leader. To avoid this stagnation, we have implemented a simple rule. If 𝑡 > 1 . 0 (in Eq. (3) ), and a position of an individual has not been im- 4
L. Skanderova, T. Fabian and I. Zelinka Swarm and Evolutionary Computation 65 (2021) 100936 proved yet, in the following step, a leader will be selected randomly from 20% of the best individuals within the subpopulation. The algorithm will add a new feasible position to the external archive 𝐸𝑥 _ 𝐴 in the following cases: • The external archive is empty. • Euclidean distance between new feasible position and positions in 𝐸𝑥 _ 𝐴 is greater than the exclusion radius 𝑟 𝑒𝑥𝑐𝑙 . The principle of the exclusion radius was introduced in [26] . Recently, it was utilized in the Global Replacement-based Differential Evolution (GRDE) [27] . In the following migration cycle, for each solution in the external archive, the algorithm CCMA-ES will be employed to find out the local optimum (within the feasible region). If a new position is added to an external archive, the actual subpopulation will be regenerated randomly. The SOMA AllToOne Adaptive often tends to a premature convergence, where the diversity of a population decreases rapidly. Therefore, in the CCMA-ES-SOMA, the principle of quantum particles [28] is used. This efficient mechanism was recently used in the quantum firefly swarms [29] developed to solve dynamic optimization problems without constraints. In the CCMA-ES-SOMA, the principle of quantum firefly generation has been slightly modified, see Algorithm 4 . At the beginning of the mi- Algorithm 4 Quantum particle generation. 𝑏 …best position within the subpopulation 𝑞 = ∅ 𝑟𝑒𝑝𝑒𝑎𝑡 = 𝑇 𝑟𝑢𝑒 𝑟 𝑐𝑙𝑜𝑢𝑑 = 𝑟 𝑒𝑥𝑐𝑙 while 𝑟𝑒𝑝𝑒𝑎𝑡 do Get random vector 𝑣 from normal distr. (0 , 1) 𝑑𝑖𝑠𝑡 = √ ∑𝐷 𝑗=1 𝑣 2 𝑗 𝑢 ← 𝑈(0 , 1) ⊳ random uniform number 𝑞 = 𝑏 + 𝑣 ∗ 𝑟 𝑐𝑙𝑜𝑢𝑑 ∗ √𝑢 ∕ 𝑑𝑖𝑠𝑡 𝑟𝑒𝑝𝑒𝑎𝑡 = 𝐹 𝑎𝑙𝑠𝑒 for 𝑖 = 0 ; 𝑖 < 𝐷; 𝑖 + + do if 𝑞 𝑖 < 𝐿 𝑖 or 𝑞 𝑖 > 𝑈 𝑖 then 𝑟𝑒𝑝𝑒𝑎𝑡 = 𝑇 𝑟𝑢𝑒 end if end for end while return 𝑞 gration loop, the Euclidean distance between the three worst individuals is calculated. If it is smaller than the exclusion radius, these individuals will be replaced by quantum ones. The whole process of subpopulation migration is described in Algorithm 5 . If an external archive 𝐸𝑥 _ 𝐴 is not empty before the migration process starts, only a subpopulation containing the best individual is migrated. So the convergence to a feasible region is accelerated, and the individuals diversity is preserved for a longer time. 3.3. Solving of overlapping of subpopulations At the end of the migration loop, the overlapping of the subpopulations ( 𝑐𝑙𝑠𝑡 1 and 𝑐𝑙𝑠𝑡 2 ) is checked. For this purpose, Euclidean distance 𝑒𝑢𝑐𝑙() of the best individuals 𝑏 1 and 𝑏 2 from the both subpopulations 𝑐𝑙𝑠𝑡 1 and 𝑐𝑙𝑠𝑡 2 is calculated and compared to the exclusion radius 𝑟 𝑒𝑥𝑐𝑙 . If it is smaller, the subpopulations are considered to be overlapping. When overlapping is detected, individuals within the better subpopulation (denoted as 𝑐𝑙𝑠𝑡 𝑏 ) are usually very close to each other. Therefore only the best individual 𝑏𝑒𝑠𝑡 from the better subpopulation is preserved. Then two quantum particles 𝑞 for the best individual 𝑏𝑒𝑠𝑡 are generated and appended to the 𝑐𝑙𝑠𝑡 𝑏 . The rest of the subpopulation is discarded. Algorithm 5 Migration process for an actual subpopulation 𝑐𝑙𝑠𝑡 𝑎 . Sort subpopulation 𝑐𝑙𝑠𝑡 𝑎 using Deb’s rule [30] for each 𝑥 𝑖 from 𝑐𝑙𝑠𝑡 𝑎 do ⊳ 𝑖 = 1 , …, 𝑁𝑆 if 𝑖 == 1 then 𝐿𝑒𝑎𝑑 𝑖 ← get random vector from 𝑆 = ∏𝐷 𝑖 =1 [ 𝐿 𝑖 , 𝑈 𝑖 ] 𝑓( 𝐿𝑒𝑎𝑑 𝑖 ) = −∞ 𝑔 𝑗 ( 𝐿𝑒𝑎𝑑 𝑖 ) = ∞for 𝑗 = 1 , …, 𝑚 else 𝐿𝑒𝑎𝑑 𝑖 ← best individual from 𝑐𝑙𝑠𝑡 𝑎 end if if 𝑖 > 𝑁𝑆 − 3 then : if 𝑒𝑢𝑐𝑙( 𝑥 𝑖 , 𝐿𝑒𝑎𝑑 𝑖 ) ≤ 𝑟 𝑒𝑥𝑐𝑙 then 𝑥 𝑖 ← Get quantum particle based on Alg. 4 Get 𝑓( 𝑥 𝑖 ) and 𝑔 𝑗 ( 𝑥 𝑖 ) for 𝑗 = 1 , …, 𝑚 end if end if 𝑡 = 𝑆𝑡𝑒𝑝 𝑖𝑚𝑝𝑟𝑜𝑣𝑒𝑑 = 𝐹 𝑎𝑙𝑠𝑒 while 𝑡 ≤ 𝑃 𝑎𝑡ℎ𝐿𝑒𝑛𝑔𝑡ℎ do Migrate particle 𝑥 𝑖 based on Alg. 6 𝑡 = 𝑡 + 𝑆𝑡𝑒𝑝 end while end for return 𝑐𝑙𝑠𝑡 𝑎 Algorithm 6 Migration of the actual particle 𝑥 𝑖 . Generate 𝑃 𝑅𝑇 𝑉 𝑒𝑐𝑡𝑜𝑟 𝑡 𝑖 based on Eq. (2) 𝑥 𝑡 𝑖 ← Get new position based on Eq. (3) Get 𝑓( 𝑥 𝑡 𝑖 ) and 𝑔 𝑗 ( 𝑥 𝑡 𝑖 ) for 𝑗 = 1 , …, 𝑚 if 𝑥 𝑡 𝑖 is better than 𝑥 𝑖 then 𝑖𝑚𝑝𝑟𝑜𝑣𝑒𝑑 = 𝑇 𝑟𝑢𝑒 𝑥 𝑖 ← 𝑥 𝑡 𝑖 if 𝑥 𝑖 is feasible then 𝑓𝑙𝑎𝑔 = 𝑇 𝑟𝑢𝑒 for each solution 𝑎 in 𝐸𝑥 _ 𝐴 do if 𝑒𝑢𝑐𝑙( 𝑥 𝑖 , 𝑎 ) < 𝑟 𝑒𝑥𝑐𝑙 then 𝑓𝑙 𝑎𝑔 = 𝐹 𝑎𝑙 𝑠𝑒 end if end for if 𝑓𝑙𝑎𝑔 == 𝑇 𝑟𝑢𝑒 then Add 𝑥 𝑖 to 𝐸𝑥 _ 𝐴 𝑐𝑙𝑠𝑡 𝑎 ← Get random subpopulation break end if if 𝑥 𝑖 is better than 𝐿𝑒𝑎𝑑 𝑖 then break end if end if else if 𝑡 > 1 . 0 then 𝐿𝑒𝑎𝑑 𝑖 ← Select leader from 20% of the best individuals in 𝑐𝑙𝑠𝑡 𝑎 end if end if From the worse subpopulation, the best individual is preserved too. Then, the distance between the best individual 𝑏𝑒𝑠𝑡 in the 𝑐𝑙𝑠𝑡 𝑏 and each individual from the worse subpopulation, 𝑐𝑙𝑠𝑡 𝑤 , is calculated. If it is smaller than the exclusion radius, an individual within 𝑐𝑙𝑠𝑡 𝑤 is replaced by a random individual. Otherwise, the individual from the worse subpopulation is retained in 𝑐𝑙𝑠𝑡 𝑤 . When the overlapping of individuals is solved, the environmental change is checked. If it is not detected, the subpopulations will be merged. The size of a new population 𝑝𝑜𝑝 will be smaller than a pre- 5
L. Skanderova, T. Fabian and I. Zelinka Swarm and Evolutionary Computation 65 (2021) 100936 defined constant 𝑁𝑃 . Therefore, random individuals will be added to 𝑝𝑜𝑝 . To strengthen the exploration of the CCMA-ES-SOMA, newly generated individuals are appended to the population only if their distance from the best individual in 𝑝𝑜𝑝 is greater than the exclusion radius, see Algorithm 8 . Algorithm 7 Solving of subpopulations overlapping. Sort 𝑐𝑙𝑠𝑡 1 and 𝑐𝑙𝑠𝑡 2 using Deb’s rule 𝑏 1 ← The best individual from 𝑐𝑙𝑠𝑡 1 𝑏 2 ← The best individual from 𝑐𝑙𝑠𝑡 2 if 𝑏 1 is better than 𝑏 2 then 𝑐 𝑙𝑠𝑡 𝑤 ← 𝑐 𝑙𝑠𝑡 2 𝑐 𝑙𝑠𝑡 𝑏 ← 𝑐 𝑙𝑠𝑡 1 𝑏𝑒𝑠𝑡 ← 𝑏 1 else 𝑐 𝑙𝑠𝑡 𝑤 ← 𝑐 𝑙𝑠𝑡 1 𝑐 𝑙𝑠𝑡 𝑏 ← 𝑐 𝑙𝑠𝑡 2 𝑏𝑒𝑠𝑡 ← 𝑏 2 end if if 𝑒𝑢𝑐𝑙( 𝑏 1 , 𝑏 2 ) ≤ 𝑟 𝑒𝑥𝑐𝑙 then 𝑐𝑙𝑠𝑡 𝑏 = [ 𝑏𝑒𝑠𝑡 ] for 𝑖 = 0 ; 𝑖 < 2 ; 𝑖 + + do 𝑞 𝑖 ← Get quantum particle of 𝑏𝑒𝑠𝑡 (Alg. 4) Get 𝑓( 𝑞 𝑖 ) and 𝑔 𝑗 ( 𝑞 𝑖 ) for 𝑗 = 1 , …, 𝑚 Add 𝑞 𝑖 to 𝑐𝑙𝑠𝑡 𝑏 end for for each 𝑥 𝑗 in 𝑐𝑙𝑠𝑡 𝑤 do if 𝑗! = 0 and 𝑒𝑢𝑐𝑙( 𝑏𝑒𝑠𝑡 , 𝑥 𝑗 ) ≤ 𝑟 𝑒𝑥𝑐𝑙 then 𝑥 𝑗 ← Get random position from 𝑆 end if end for return 𝑇 𝑟𝑢𝑒 else return 𝐹 𝑎𝑙𝑠𝑒 end if Algorithm 8 Population creation from subpopulations. 𝑐 𝑙𝑠𝑡 1 , 𝑐 𝑙𝑠𝑡 2 …subpopulations 𝑝𝑜𝑝 = [⪯] for each subpopulation 𝑐𝑙𝑠𝑡 𝑎 do for each individual 𝑥 𝑖 in 𝑐𝑙𝑠𝑡 𝑎 do Add 𝑥 𝑖 to 𝑝𝑜𝑝 end for end for while size of 𝑝𝑜𝑝 < 𝑁𝑃 do 𝑦 ← Get random position from 𝑆 if 𝑒𝑢𝑐𝑙( 𝑦 , 𝑏𝑒𝑠𝑡 ) > 𝑟 𝑒𝑥𝑐𝑙 then Evaluate 𝑓( 𝑦 ) and 𝑔 𝑗 ( 𝑦 ) for 𝑗 = 1 , …, 𝑚 Add 𝑦 to 𝑝𝑜𝑝 end if end while return 𝑝𝑜𝑝 As we can see, from both subpopulations, the best individuals are preserved regardless of their distance. Therefore, in the following migration/evolution loop, the clustering method in Algorithm 3 will be applied. If overlapping is not detected, the subpopulations 𝑐𝑙𝑠𝑡 1 and 𝑐𝑙𝑠𝑡 2 are merged into one population 𝑝𝑜𝑝 based on Algorithm 8 . And the migration/evolution loop is finished. 3.4. Use of CCMA-ES to identify local extreme in feasible region If a feasible region is detected, the best candidate solution will be added to an external archive 𝐸𝑥 _ 𝐴 (see Algorithm 5 ). At the next migration/evolution cycle, the Euclidean distance between each pair of solutions in 𝐸𝑥 _ 𝐴 is calculated. If it is smaller than 𝑟 𝑒𝑥𝑐𝑙 , the worse individual will be removed from 𝐸𝑥 _ 𝐴 . Then, the CCMA-ES is applied to each individual within 𝐸𝑥 _ 𝐴 . Besides the external archive 𝐸𝑥 _ 𝐴 containing individuals from different feasible regions, an archive with actual settings of the CCMA-ES algorithm for each individual in 𝐸𝑥 _ 𝐴 is created. This archive is denoted as 𝐶𝑀 _ 𝐴 . When an individual is added to 𝐸𝑥 _ 𝐴 , a new instance of the CCMA-ES algorithm is created. The number of generations of CCMA-ES is given by a constant 𝑚𝑎𝑥 𝑐 . The CCMA-ES algorithm is thoroughly described in Section 2.2 and its use in the CCMA-ES-SOMA is illustrated by Algorithm 9 . The parameters Algorithm 9 Use of the CCMA-ES algorithm. 𝐶𝑀 _ 𝐴 …external archive with actual settings of CCMA-ES for each solution 𝑥 𝑖 in 𝐸𝑥 _ 𝐴 for each pair of individuals 𝑥 𝑖 and 𝑥 𝑗 from 𝐸𝑥 _ 𝐴 do if 𝑒𝑢𝑐𝑙( 𝑥 𝑖 , 𝑥 𝑗 ) ≤ 𝑟 𝑒𝑥𝑐𝑙 then Remove worse one from 𝑥 𝑖 , 𝑥 𝑗 from 𝐸𝑥 _ 𝐴 end if end for for each 𝑥 𝑖 in 𝐸𝑥 _ 𝐴 do if CCMA-ES instance does not exist for 𝑥 𝑖 then Add a new instance of CCMA-ES to 𝐶𝑀 _ 𝐴 𝑛𝑜𝑡 _ 𝑖𝑚𝑝𝑟𝑜𝑣𝑒𝑑 = 0 end if for 𝑘 = 0 ; 𝑘 < 𝑚𝑎𝑥 𝑐 ; 𝑘 + + do Get an offspring 𝑦 𝑘 of 𝑥 𝑖 based on Eq. (4) for each constraint 𝑔 𝑗 do if 𝑔 𝑗 ( 𝑦 𝑘 ) > 0 then Recalculate 𝑣 𝑗 𝑖 based on Eq. (5) end if end for if 𝑦 𝑘 is infeasible then Recalculate Cholesky factor 𝐀 𝑖 based on Eq. (6) else Update succ. probab. 𝑃 𝑠𝑢𝑐𝑐 𝑖 based on Eq. (7) Update global step 𝜎𝑖 based on Eq. (8) if 𝑓( 𝑥 𝑖 ) is better than 𝑓( 𝑦 𝑘 ) then 𝑥 𝑖 ← 𝑦 𝑘 Update search path 𝑠 𝑖 based on Eq. (9) Update 𝐀 𝑖 based on Eq. (10) 𝑛𝑜𝑡 _ 𝑖𝑚𝑝𝑟𝑜𝑣𝑒𝑑 = 0 else 𝑛𝑜𝑡 _ 𝑖𝑚𝑝𝑟𝑜𝑣𝑒𝑑 + + end if end if if 𝑛𝑜𝑡 _ 𝑖𝑚𝑝𝑟𝑜𝑣𝑒𝑑 ≥ 5 then Update 𝐀 𝑖 based on Eq. (11) 𝑛𝑜𝑡 _ 𝑖𝑚𝑝𝑟𝑜𝑣𝑒𝑑 = 0 end if end for end for relating with the instance of the CCMA-ES algorithm corresponding to the individual 𝑥 𝑖 are denoted by index 𝑖 . 3.5. Change detection and restart of CCMA-ES-SOMA In the CCMA-ES-SOMA, a monitoring individual ( 𝑔𝑢𝑎𝑟𝑑 ) is used to detect environmental change. At the beginning of the algorithm, 𝑔𝑢𝑎𝑟𝑑 equals the best position. At the end of each migration/evolution loop, objective and constraint functions are evaluated for 𝑔𝑢𝑎𝑟𝑑 . If a new value of the constraints violation or objective function differs from the previous one, a change of the environment is detected. 6
L. Skanderova, T. Fabian and I. Zelinka Swarm and Evolutionary Computation 65 (2021) 100936 When a change is detected, an empty population 𝑝𝑜𝑝 will be created. Each individual within the external archive 𝐸𝑥 _ 𝐴 will be re-evaluated. If an individual is infeasible, it will be removed from 𝐸𝑥 _ 𝐴 and put to 𝑝𝑜𝑝 . Otherwise, it will be retained in 𝐸𝑥 _ 𝐴 . The CCMA-ES in 𝐶𝑀 _ 𝐴 for each individual in 𝐸𝑥 _ 𝐴 is set to initial values. Since the number of individuals in 𝑝𝑜𝑝 is smaller than a predefined number 𝑁𝑃 , random individuals are generated. A new individual is added into 𝑝𝑜𝑝 only if the distance between this individual and each individual in 𝑝𝑜𝑝 is greater than the exclusion radius 𝑟 𝑒𝑥𝑐𝑙 . The restart of the CCMA-ES-SOMA is described in Algorithm 10 . Algorithm 10 Reset of CCMA-ES-SOMA after detection of environmental change. 𝑝𝑜𝑝 ← [⪯] 𝐶𝑀 _ 𝐴 ← [⪯] for each individual 𝑥 𝑖 in 𝐸𝑥 _ 𝐴 do Evaluate objective and constraints functions if 𝑥 𝑖 is infeasible then Add 𝑥 𝑖 to 𝑝𝑜𝑝 end if end for while size of 𝑝𝑜𝑝 < 𝑁𝑃 do Generate random individual 𝑦 𝑓𝑙𝑎𝑔 = 𝑇 𝑟𝑢𝑒 for each 𝑥 𝑖 in 𝑝𝑜𝑝 do if 𝑒𝑢𝑐𝑙( 𝑥 𝑖 , 𝑦 ) ≤ 𝑟 𝑒𝑥𝑐𝑙 then 𝑓𝑙 𝑎𝑔 = 𝐹 𝑎𝑙 𝑠𝑒 end if end for if 𝑓𝑙𝑎𝑔 == 𝑇 𝑟𝑢𝑒 then Evaluate 𝑓( 𝑦 ) and 𝑔 𝑗 ( 𝑦 ) for 𝑗 = 1 , …, 𝑚 Add 𝑦 to 𝑝𝑜𝑝 end if end while 4. Experiments The CCMA-ES-SOMA and the test suite [3] were implemented in Python 3.6. The source codes of the CCMA-ES-SOMA are available in [30] . The experiments were done on the PC with the Intel Core i7-4770 CPU 3.40 GHz and 16 GB RAM. In this paper, all test instances (including the parameters settings) used to compare the CPSO, LTFR-DSPSO, and DyCODE in [3] , are utilized to evaluate the performance of the CCMAES-SOMA. For all test instances, the number of peaks was set to 𝑝 = 10 . In [3] , the author showed that the number of peaks does not influence the performance of the algorithms. Wang et al. [3] declared that the CPSO and LTFR-DSPSO were implemented based on the codes provided by their authors. Wang et al. is the author of the DyCODE. Therefore, we have taken the results from Wang et al. [3] to compare the CCMA-ES-SOMA and the algorithms as CPSO, LTFR-DSPSO, and DyCODE. The experimental results are mentioned for dimensions 𝐷 = 10 , 𝐷 = 20 , and 𝐷 = 30 . The number of individuals in the CCMA-ES-SOMA was set to 𝑁𝑃 = 30 , the number of individuals within a subpopulation then to 𝑁𝑆 = 15 . The perturbation parameter was set to 𝑝𝑟𝑡 = 0 . 4 , the path length to 𝑃 𝑎𝑡ℎ𝐿𝑒𝑛𝑔𝑡ℎ = 3 . 0 , and the step size to 𝑆𝑡𝑒𝑝 = 0 . 55 . As well as for the CPSO, LTFR-DSPSO, and DyCODE in [3] , in the case of the dimension 𝐷 = 10 and 𝐷 = 20 , the change frequency was set to 5000 objective function evaluations (FEs). For the dimension 𝐷 = 30 , it was set to 6000 FEs. The value of the exclusion radius was empirically set to 𝑟 𝑒𝑥𝑐𝑙 = 2 𝐷. For exclusion radius with values based on [26,27] , the CCMA-ES-SOMA provided significantly worse results, especially in the case of dimensions 𝐷 = 10 and 𝐷 = 20 . In the CCMA-ES, the parameters were set as follows: 𝜎= 0 . 1 , 𝑑 = 1 + 𝑛 2 , 𝑐 = 2 𝑛 +2 , 𝑐 𝑃 = 1 12 , 𝑃 𝑡𝑎𝑟𝑔𝑒𝑡 = 2 11 , 𝑐 + 𝑐𝑜𝑣 = 2 𝑛 2 +6 , 𝑐 − 𝑐𝑜𝑣 = 0 . 4 𝑛 1 . 6 +1 , 𝑐 𝑐 = 1 𝑛 +2 , 𝛽= 0 . 1 𝑛 +2 , 𝑐 𝑤 = 0 , 𝑃 𝑠𝑢𝑐𝑐 = 0 [8] . The number of evolution cycles used for each solution within the external archive 𝐸𝑥 _ 𝐴 was set to 𝑚𝑎𝑥 𝑐 = 𝐷 + 20 . At the beginning of the algorithm, the Cholesky factor 𝐀 equals an identity matrix. And each record 𝑣 𝑗 of steps, where the constraint 𝑔 𝑗 ( 𝑔 = 1 , …, 𝑚 ) was violated, was set to be a zero vector, as well as search path 𝑠 . For each solution in 𝐸𝑥 _ 𝐴 , the actual setting of the CCMA-ES was remembered. In [3] , the performances of the algorithms are compared based on two metrics: offline error and normalized score [3] . Offline error is defined as follows: 𝑒 = 1 𝐾 𝐾 ∑ 𝑘 =1 ( 𝑔 𝑘 − 𝑏 𝑘 ) , (12) where 𝑔 𝑘 is the global optimum solution of the 𝑘 th environment. 𝐾is the total number of the environments. 𝑏 𝑘 is the objective function value of the best solution in 𝑘 th environment. The normalized score 𝑆 𝑛𝑜𝑟𝑚 is then given by the following equation: 𝑆 𝑛𝑜𝑟𝑚 = 1 𝑚 𝑚 ∑ 𝑗=1 ||𝑒 max ( 𝑗) − 𝑒 ( 𝑖, 𝑗) || ||𝑒 max ( 𝑗) − 𝑒 min ( 𝑗) ||, 𝑖 = 1 , …, 𝑛 (13) where 𝑒 min ( 𝑗) and 𝑒 max ( 𝑗) are the minimal and maximal offline error achieved by the tested algorithms, 𝑚 denotes the number of test instances, 𝑛 is the number of algorithms. 𝑒 ( 𝑖, 𝑗) is the offline error of the 𝑖 th algorithm on the 𝑗th test instance. The normalized score is a value between 0 and 1. The algorithms with better performance achieve the higher values of the normalized score [3] . In this paper, besides these metrics, the Friedman rank test, Nemenyi, and Wilcoxon rank-sum test (level of significance 𝛼= 0 . 05 ) [31] are used to compare the CCMA-ES-SOMA with the CPSO, LTFR-DSPSO, and Dy- CODE The Friedman rank test and Nemenyi post-hoc test are suitable to present the statistical results. However, the Nemenyi test is not so reliable as the Wilcoxon test. For this reason, in this paper, the Nemenyi test is used for the graphical presentation of the statistical results. The differences between ranks of the algorithms are judged based on the Wilcoxon rank-sum test. 4.1. Experimental results The experimental results are based on 30 independent runs of the algorithm for each test instance. In Tables 1–6 , the results of the algorithms CPSO, LTFR-DSPSO, DyCODE, and CCMA-ES-SOMA are mentioned for the test instances 1–6, number of peaks 𝑝 = 10 , and shift lengths (defining change severity of 𝑓( 𝑥 , 𝑡 ) ) 𝑠 = {1 . 0 , 2 . 0 , 3 . 0 , 4 . 0 , 5 . 0 , 6 . 0} . The global extremes are situated in the center of the feasible region. In Table 7 , the normalized scores of the compared algorithms for the dimensions 𝐷 = 10 , 20 , 30 are presented. In Table 8 , the normalized scores related to the number of feasible regions are shown. The normalized scores of the algorithms on the different change severity of feasible regions can be found in Table 9 . In Tables 10–12 the results of the Friedman rank test and two post-hoc tests are mentioned. The results of the Nemenyi test are then depicted in Figs. 1–3 . In Table 13 , the offline error and standard deviation for the test instances 7–9 are shown. In Table 16 , the results for the test instances with the global extreme situated on the border of a feasible region are presented. These experiments were performed for 10 dimensions. The normalized scores related to these experiments are then shown in Tables 17 and 18 . In Tables 14 and 20 , the results of Friedman, Nemenyi, and Wilcoxon test are mentioned. Fig. 4 a and 4 b represents the results of the Nemenyi test. The best results are highlighted for all tables. 4.2. Dimensions In comparison with the LTFR-DSPSO and CPSO, the DyCODE does not utilize any local search algorithm. Therefore, the normalized score of the DyCODE increases with higher dimensions. In the CCMA-ES-SOMA, 7
L. Skanderova, T. Fabian and I. Zelinka Swarm and Evolutionary Computation 65 (2021) 100936 Table 1 The mean and standard deviation of the offline error for test instance 1, dimensions 𝐷 = 10 , 20 , 30 , and 10 peaks. 10 peaks CPSO LTFR-DSPSO DyCODE CCMA-ES-SOMA Mean Stdev Mean Stdev Mean Stdev Mean Stdev 10D (s = 1) 3.39E-02 1.10E + 00 9.67E-05 1.30E-04 4.45E-02 1.09E-01 3.20E-11 9.28E-11 10D (s = 2) 5.50E-02 2.98E-01 6.39E-05 5.92E-05 5.71E-02 1.30E-01 1.26E-10 4.38E-10 10D (s = 3) 4.24E-01 1.13E + 00 8.98E-05 7.59E-05 2.13E-01 5.62E-01 4.88E-11 1.33E-10 10D (s = 4) 1.12E-01 3.87E-01 1.15E-04 2.18E-04 4.09E-01 8.69E-01 4.19E-11 8.87E-11 10D (s = 5) 2.23E-01 7.26E-01 1.64E-04 1.76E-04 5.64E-01 9.98E-01 5.14E-11 9.26E-11 10D (s = 6) 9.86E-01 2.08E + 00 1.20E-04 1.01E-04 3.84E-01 9.14E-01 6.92E-11 1.23E-10 20D (s = 1) 1.60E + 00 4.06E + 00 4.86E-01 2.76E-01 2.07E-01 2.19E-01 4.43E-07 6.35E-07 20D (s = 2) 2.59E + 00 6.13E + 00 4.14E-01 2.58E-01 2.97E-01 2.76E-01 4.13E-07 4.23E-07 20D (s = 3) 5.38E + 00 7.83E + 00 3.83E-01 2.69E-01 6.42E-01 9.09E-01 4.49E-07 5.30E-07 20D (s = 4) 3.92E + 00 7.14E + 00 5.64E-01 3.75E-01 8.33E-01 8.96E-01 4.22E-06 2.43E-06 20D (s = 5) 2.22E + 00 3.10E + 00 5.66E-01 3.52E-01 1.35E + 00 1.75E + 00 1.07E-06 1.80E-06 20D (s = 6) 3.61E + 00 4.76E + 00 6.00E-01 3.70E + 01 1.36E + 00 1.83E + 00 4.81E-07 4.45E-07 30D (s = 1) 2.85E + 00 3.05E + 00 2.63E + 00 7.70E + 00 2.30E + 00 8.61E-01 1.91E-03 3.12E-03 30D (s = 2) 3.50E + 00 6.92E + 00 2.52E + 00 6.97E-01 2.59E + 00 1.09E + 00 1.24E-03 1.10E-03 30D (s = 3) 6.12E + 00 7.40E + 00 2.18E + 00 7.76E-01 3.23E + 00 1.70E + 00 1.57E-03 1.77E-03 30D (s = 4) 6.95E + 00 7.29E + 00 2.67E + 00 7.19E-01 3.41E + 00 1.33E + 00 1.65E-03 1.44E-03 30D (s = 5) 6.40E + 00 8.01E + 00 4.17E + 00 1.50E + 00 4.47E + 00 2.62E + 00 2.32E-03 1.49E-03 30D (s = 6) 5.12E + 00 6.05E + 00 4.80E + 00 1.52E + 00 5.23E + 00 2.95E + 00 2.36E-03 2.20E-03 Table 2 The mean and standard deviation of the offline error for test instance 2, dimensions 𝐷 = 10 , 20 , 30 , and 10 peaks. 10 peaks CPSO LTFR-DSPSO DyCODE CCMA-ES-SOMA Mean Stdev Mean Stdev Mean Stdev Mean Stdev 10D (s = 1) 1.14E + 00 2.05E + 00 4.98E-03 5.07E-03 2.48E-01 6.22E-01 1.85E-10 2.19E-10 10D (s = 2) 7.38E-01 1.93E + 00 3.58E-03 5.02E-03 1.01E-01 3.40E-01 4.19E-10 1.07E-09 10D (s = 3) 2.79E + 00 4.39E + 00 8.10E-03 1.59E-02 1.89E-01 8.48E-01 1.66E-10 3.08E-10 10D (s = 4) 2.13E + 00 3.70E + 00 2.96E-03 3.09E-03 2.62E-01 7.03E-01 2.31E-10 2.66E-10 10D (s = 5) 1.11E + 00 3.19E + 00 4.47E-03 5.12E-03 3.78E-01 1.59E + 00 2.29E-10 3.50E-10 10D (s = 6) 1.82E + 00 2.46E + 00 5.42E-03 5.44E-03 1.59E-01 4.48E-01 2.81E-10 2.90E-10 20D (s = 1) 6.60E + 00 7.77E + 00 5.83E + 00 2.88E + 00 1.33E + 00 9.93E-01 4.43E-06 2.40E-06 20D (s = 2) 3.67E + 00 3.71E + 00 6.22E + 00 3.33E + 00 1.08E + 00 8.01E-01 6.02E-06 5.33E-06 20D (s = 3) 7.28E + 00 6.73E + 00 6.85E + 00 3.55E + 00 1.66E + 00 1.66E + 00 5.09E-06 4.73E-06 20D (s = 4) 6.89E + 00 6.96E + 00 6.09E + 00 3.44E + 00 1.95E + 00 2.14E + 00 4.22E-06 2.43E-06 20D (s = 5) 6.73E + 00 6.56E + 00 6.26E + 00 2.43E + 00 1.90E + 00 1.86E + 00 5.59E-06 4.90E-06 20D (s = 6) 7.83E + 00 7.92E + 00 7.16E + 00 3.87E + 00 2.32E + 00 2.66E + 00 6.67E-06 4.39E-06 30D (s = 1) 1.19E + 01 6.91E + 00 1.61E + 01 5.61E + 00 1.35E + 01 3.72E + 00 1.91E-02 1.14E-02 30D (s = 2) 1.22E + 01 9.32E + 00 1.67E + 01 5.83E + 00 1.36E + 01 5.03E + 00 1.82E-02 7.89E-03 30D (s = 3) 1.64E + 01 8.73E + 00 1.79E + 01 5.12E + 00 1.46E + 01 3.90E + 00 1.72E-02 1.39E-02 30D (s = 4) 1.32E + 01 5.95E + 00 1.70E + 01 6.10E + 00 1.31E + 01 4.13E + 00 1.90E-02 1.55E-02 30D (s = 5) 1.19E + 01 8.66E + 00 1.83E + 01 7.09E + 00 1.39E + 01 4.55E + 00 2.62E-02 3.56E-02 30D (s = 6) 1.32E + 01 1.00E + 01 2.02E + 01 6.64E + 00 1.56E + 01 5.05E + 00 2.64E-02 2.60E-02 Table 3 The mean and standard deviation of the offline error for test instance 3, dimensions 𝐷 = 10 , 20 , 30 , and 10 peaks. 10 peaks CPSO LTFR-DSPSO DyCODE CCMA-ES-SOMA Mean Stdev Mean Stdev Mean Stdev Mean Stdev 10D (s = 1) 1.20E + 00 3.20E + 00 3.61E + 00 4.94E + 00 6.05E + 00 6.36E + 00 3.98E-02 2.18E-01 10D (s = 2) 1.73E-01 9.27E-01 2.84E + 00 5.48E + 00 8.95E + 00 8.15E + 00 4.43E-05 2.23E-04 10D (s = 3) 7.76E-01 1.78E + 00 2.22E + 00 3.23E + 00 7.12E + 00 7.22E + 00 2.87E-02 1.11E-01 10D (s = 4) 7.10E-01 1.46E + 00 2.05E + 00 2.38E + 00 6.17E + 00 5.61E + 00 8.58E-02 3.11E-01 10D (s = 5) 8.22E-01 1.54E + 00 3.46E + 00 6.02E + 00 9.27E + 00 6.51E + 00 4.02E-02 2.17E-01 10D (s = 6) 2.09E + 00 3.48E + 00 5.17E + 00 7.53E + 00 1.12E + 01 8.69E + 00 1.15E-03 6.04E-03 20D (s = 1) 1.68E + 00 2.40E + 00 5.18E + 00 3.51E + 00 8.86E + 00 5.85E + 00 2.05E-01 7.10E-01 20D (s = 2) 1.95E + 00 2.12E + 00 6.74E + 00 6.62E + 00 9.97E + 00 1.00E + 01 1.18E-01 3.23E-01 20D (s = 3) 2.60E + 00 2.19E + 00 6.16E + 00 5.50E + 00 1.08E + 01 9.07E + 00 4.01E-01 1.00E + 00 20D (s = 4) 1.48E + 00 1.51E + 00 6.27E + 00 3.92E + 00 1.31E + 01 1.36E + 01 1.83E-01 4.94E-01 20D (s = 5) 1.47E + 00 1.50E + 00 6.92E + 00 5.51E + 00 1.01E + 01 8.92E + 00 2.16E-01 6.27E-01 20D (s = 6) 2.73E + 00 3.00E + 00 6.86E + 00 5.17E + 00 1.29E + 01 1.05E + 01 2.58E-01 5.36E-01 30D (s = 1) 8.92E + 00 4.36E + 00 1.18E + 01 6.36E + 00 9.82E + 00 6.57E + 00 5.34E-01 7.05E-01 30D (s = 2) 9.04E + 00 4.95E + 00 1.17E + 01 6.61E + 00 1.28E + 01 9.00E + 00 4.43E-01 7.23E-01 30D (s = 3) 1.24E + 01 6.03E + 00 1.01E + 01 7.65E + 00 1.28E + 01 8.71E + 00 1.14E + 00 1.28E + 00 30D (s = 4) 9.04E + 00 3.65E + 00 1.11E + 01 5.79E + 00 1.52E + 01 1.03E + 01 1.02E + 00 1.08E + 00 30D (s = 5) 1.09E + 01 5.92E + 00 1.70E + 01 8.06E + 00 1.22E + 01 8.71E + 00 1.50E + 00 1.37E + 00 30D (s = 6) 9.78E + 00 4.71E + 00 1.36E + 01 6.14E + 00 1.44E + 01 1.01E + 01 1.62E + 00 1.25E + 00 8
L. Skanderova, T. Fabian and I. Zelinka Swarm and Evolutionary Computation 65 (2021) 100936 Table 4 The mean and standard deviation of the offline error for test instance 4, dimensions 𝐷 = 10 , 20 , 30 , and 10 peaks. 10 peaks CPSO LTFR-DSPSO DyCODE CCMA-ES-SOMA Mean Stdev Mean Stdev Mean Stdev Mean Stdev 10D (s = 1) 2.66E-01 5.15E-01 7.93E-01 6.48E-01 2.74E + 00 2.51E + 00 1.26E-01 2.38E-01 10D (s = 2) 1.55E-01 4.36E-01 9.58E-01 8.04E-01 2.95E + 00 2.08E + 00 5.08E-02 1.31E-01 10D (s = 3) 9.35E-01 2.55E-01 7.14E-01 5.44E-01 3.80E + 00 2.20E + 00 1.60E-01 2.63E-01 10D (s = 4) 8.96E-01 1.59E-01 9.89E-01 7.60E-01 4.00E + 00 3.19E + 00 1.06E-01 1.69E-01 10D (s = 5) 4.52E-01 1.15E + 00 1.10E + 00 8.60E-01 3.83E + 00 2.91E + 00 1.05E-01 2.22E-01 10D (s = 6) 7.23E-01 1.39E + 00 1.40E + 00 1.14E + 00 5.72E + 00 5.24E + 00 9.10E-02 2.75E-01 20D (s = 1) 2.98E + 00 3.45E + 00 7.29E + 00 2.81E + 00 7.72E + 00 4.59E + 00 4.54E-01 5.30E-01 20D (s = 2) 2.37E + 00 2.20E + 00 7.37E + 00 3.38E + 00 7.14E + 00 4.89E + 00 5.66E-01 8.56E-01 20D (s = 3) 3.46E + 00 3.62E + 00 8.22E + 00 4.09E + 00 8.94E + 00 7.10E + 00 4.50E-01 4.49E-01 20D (s = 4) 2.68E + 00 2.55E + 00 8.21E + 00 4.49E + 00 8.17E + 00 5.95E + 00 3.13E-01 4.11E-01 20D (s = 5) 2.43E + 00 3.37E + 00 9.70E + 00 4.95E + 00 7.09E + 00 5.01E + 00 3.54E-01 6.38E-01 20D (s = 6) 3.76E + 00 5.00E + 00 9.59E + 00 3.86E + 00 1.03E + 01 7.50E + 00 6.02E-01 8.27E-01 30D (s = 1) 1.53E + 01 5.00E + 00 1.64E + 01 5.06E + 00 1.51E + 01 5.94E + 00 1.09E + 00 8.56E-01 30D (s = 2) 1.42E + 01 4.55E + 00 1.66E + 01 6.35E + 00 1.32E + 01 6.38E + 00 1.27E + 00 5.66E-01 30D (s = 3) 1.56E + 01 4.84E + 00 1.65E + 01 7.04E + 00 1.53E + 01 6.88E + 00 1.43E + 00 9.09E-01 30D (s = 4) 1.45E + 01 4.01E + 00 1.66E + 01 6.11E + 00 1.42E + 01 5.33E + 00 1.51E + 00 8.88E-01 30D (s = 5) 1.49E + 01 5.07E + 00 2.16E + 01 6.64E + 00 1.76E + 01 5.90E + 00 1.37E + 00 7.83E-01 30D (s = 6) 1.57E + 01 6.05E + 00 2.09E + 01 8.36E + 00 1.63E + 01 4.98E + 00 1.51E + 00 9.12E-01 Table 5 The mean and standard deviation of the offline error for test instance 5, dimensions 𝐷 = 10 , 20 , 30 , and 10 peaks. 10 peaks CPSO LTFR-DSPSO DyCODE CCMA-ES-SOMA Mean Stdev Mean Stdev Mean Stdev Mean Stdev 10D (s = 1) 4.11E-01 6.58E-01 5.55E + 00 7.32E + 00 1.07E + 01 6.99E + 00 1.77E-01 6.12E-01 10D (s = 2) 7.12E-01 1.90E + 00 7.62E + 00 8.32E + 00 1.29E + 01 7.91E + 00 2.58E-01 5.37E-01 10D (s = 3) 4.18E-01 1.00E + 00 2.91E + 00 3.26E + 00 1.13E + 01 6.63E + 00 2.44E-01 8.17E-01 10D (s = 4) 5.23E-01 7.77E-01 7.03E + 00 6.76E + 00 1.61E + 01 8.24E + 00 4.44E-01 7.52E-01 10D (s = 5) 5.61E-01 8.31E-01 4.96E + 00 5.31E + 00 1.37E + 01 8.31E + 00 6.50E-01 1.48E + 00 10D (s = 6) 1.54E + 00 2.49E + 00 8.00E + 00 8.39E + 00 1.36E + 01 9.14E + 00 5.57E-01 8.05E-01 20D (s = 1) 4.97E + 00 1.77E + 00 9.82E + 00 6.48E + 00 1.27E + 01 7.69E + 00 8.69E-01 1.73E + 00 20D (s = 2) 5.32E + 00 2.90E + 00 7.08E + 00 6.43E + 00 1.31E + 01 9.87E + 00 1.14E + 00 1.68E + 00 20D (s = 3) 6.19E + 00 2.85E + 00 8.04E + 00 4.61E + 00 1.57E + 01 1.14E + 01 7.75E-01 1.07E + 00 20D (s = 4) 6.32E + 00 3.14E + 00 1.00E + 01 6.44E + 00 1.20E + 01 8.09E + 00 1.58E + 00 1.78E + 00 20D (s = 5) 5.90E + 00 2.75E + 00 1.11E + 01 7.00E + 00 1.91E + 01 1.20E + 01 1.87E + 00 1.72E + 00 20D (s = 6) 7.77E + 00 3.78E + 00 1.21E + 01 5.38E + 00 1.60E + 01 9.43E + 00 2.46E + 00 2.53E + 00 30D (s = 1) 2.00E + 01 5.59E + 00 1.36E + 01 6.43E + 00 1.16E + 01 7.61E + 00 2.32E + 00 2.30E + 00 30D (s = 2) 2.28E + 01 5.01E + 00 1.51E + 01 5.82E + 00 1.45E + 01 8.54E + 00 2.21E + 00 2.39E + 00 30D (s = 3) 2.65E + 01 7.30E + 00 1.35E + 01 6.24E + 00 1.64E + 01 9.30E + 00 2.81E + 00 1.99E + 00 30D (s = 4) 2.53E + 01 5.23E + 00 1.59E + 01 7.61E + 00 1.47E + 01 9.16E + 00 3.25E + 00 3.31E + 00 30D (s = 5) 2.79E + 01 6.32E + 00 1.91E + 01 9.12E + 00 1.69E + 01 8.18E + 00 3.12E + 00 2.41E + 00 30D (s = 6) 2.52E + 01 4.78E + 00 1.93E + 01 9.48E + 00 1.43E + 01 7.97E + 00 3.86E + 00 2.63E + 00 Table 6 The mean and standard deviation of the offline error for test instance 6, dimensions 𝐷 = 10 , 20 , 30 , and 10 peaks. 10 peaks CPSO LTFR-DSPSO DyCODE CCMA-ES-SOMA Mean Stdev Mean Stdev Mean Stdev Mean Stdev 10D (s = 1) 3.62E-01 6.32E-01 1.87E + 00 1.49E + 00 4.78E + 00 3.11E + 00 3.34E-01 5.15E-01 10D (s = 2) 2.89E-01 5.74E-01 2.55E + 00 1.93E + 00 5.89E + 00 4.25E + 00 3.26E-01 4.51E-01 10D (s = 3) 4.18E-01 4.00E-01 2.26E + 00 1.47E + 00 6.24E + 00 3.76E + 00 4.05E-01 4.71E-01 10D (s = 4) 3.98E-01 7.54E-01 2.21E + 00 1.15E + 00 7.35E + 00 3.52E + 00 3.25E-01 4.02E-01 10D (s = 5) 5.35E-01 1.02E + 00 2.51E + 00 1.78E + 00 8.22E + 00 4.45E + 00 5.61E-01 5.31E-01 10D (s = 6) 5.35E-01 6.52E-01 2.42E + 00 1.79E + 00 8.38E + 00 4.76E + 00 5.03E-01 6.23E-01 20D (s = 1) 6.86E + 00 2.47E + 00 1.03E + 01 4.45E + 00 8.89E + 00 5.49E + 00 1.01E + 00 8.73E-01 20D (s = 2) 6.10E + 00 1.63E + 00 1.00E + 01 4.61E + 00 9.44E + 00 5.21E + 00 7.73E-01 8.31E-01 20D (s = 3) 7.82E + 00 2.48E + 00 1.05E + 01 4.42E + 00 8.94E + 00 6.77E + 00 4.59E-01 5.94E-01 20D (s = 4) 6.81E + 00 2.49E + 00 8.91E + 00 3.61E + 00 1.08E + 01 9.34E + 00 1.16E + 00 7.64E-01 20D (s = 5) 8.07E + 00 2.37E + 00 1.00E + 01 5.28E + 00 1.06E + 01 6.64E + 00 1.17E + 00 6.98E-01 20D (s = 6) 7.37E + 00 2.89E + 00 1.04E + 01 6.47E + 00 1.13E + 01 7.16E + 00 1.06E + 00 8.69E-01 30D (s = 1) 2.72E + 01 5.37E + 00 1.86E + 01 4.15E + 00 1.53E + 01 4.36E + 00 1.96E + 00 8.14E-01 30D (s = 2) 2.81E + 01 6.29E + 00 1.61E + 01 7.67E + 00 1.46E + 01 6.31E + 00 2.19E + 00 1.54E + 00 30D (s = 3) 3.08E + 01 6.15E + 00 1.80E + 01 6.36E + 00 1.66E + 01 7.08E + 00 2.57E + 00 1.22E + 00 30D (s = 4) 3.02E + 01 5.91E + 00 1.58E + 01 5.60E + 00 1.44E + 01 6.65E + 00 2.70E + 00 1.41E + 00 30D (s = 5) 3.06E + 01 6.54E + 00 1.89E + 01 5.08E + 00 1.66E + 01 5.91E + 00 2.56E + 00 1.07E + 00 30D (s = 6) 3.21E + 01 6.11E + 00 2.25E + 01 8.69E + 00 1.82E + 01 6.42E + 00 3.34E + 00 1.94E + 00 9
L. Skanderova, T. Fabian and I. Zelinka Swarm and Evolutionary Computation 65 (2021) 100936 Table 17 The normalized scores 𝑆 𝑛𝑜𝑟𝑚 of the compared algorithms for the test instances with the optimal solution on the boundary of the feasible region. Dimension is 𝐷 = 10 . CPSO LTFR-DSPSO DYCODE CCMA-ES-SOMA 10D 6.15E-01 4.95E-01 1.94E-01 9.94E-01 Table 18 The normalized scores 𝑆 𝑛𝑜𝑟𝑚 of the compared algorithms on different numbers of the feasible regions for the test instances with the optimal solution on the boundary of the feasible region. Dimension is 𝐷 = 10 . CPSO LTFR-DSPSO DYCODE CCMA-ES-SOMA 1 8.92E-02 5.45E-01 5.80E-01 9.87E-01 2 7.94E-01 4.95E-01 1.34E-03 1.00E + 00 3 9.63E-01 4.45E-01 0.00E + 00 9.95E-01 4.8. Computational complexity In this section, we will discuss the computational complexity of the algorithm. The CCMA-ES-SOMA is divided into several sections: • Individuals clustering. Both clustering methods are based on the nearest neighbours, see Algorithms 2 and 3 . For this purpose, the kNN algorithm can be used. The computational complexity of this algorithm depends on the implemented method. We have used the Ball-tree method with training time complexity 𝑂( 𝑑 ×𝑛 ×log ( 𝑛 )) and Table 19 The normalized scores 𝑆 𝑛𝑜𝑟𝑚 of the compared algorithms on different change severities of the feasible regions for the test instances with the optimal solution on the boundary of the feasible region. Dimension is 𝐷 = 10 . Change CPSO LTFR-DSPSO DYCODE CCMA-ES-SOMA Slight 6.69E-01 2.93E-01 2.03E-01 9.97E-01 Large 5.62E-01 6.98E-01 1.85E-01 9.91E-01 Table 20 Results of Friedman rank test, Nemenyi post-hoc test, and Wilcoxon rank-sum test for the test instances 1 –6 with the optimal solution on the boundary of the feasible region. Dimension 𝐷 = 10 , 10 peaks. 𝐶𝐼 denotes the critical interval. Statistically significant differences between CCMA-ES-SOMA and the corresponding algorithm are denoted by †. Algorithm Meanrank Nemenyi Wilcoxon 𝐶𝐼 Sign. p-value Sign. 1 CCMA-ES-SOMA 1.19 [0.80, 1.58] 2 CPSO 2.47 [2.08, 2.86] †4.01E-03 † 3 LTFR-DSPSO 2.83 [2.44, 3.22] †6.01E-05 † 4 DyCODE 3.50 [3.11, 3.89] †1.23E-03 † prediction time complexity 𝑂( 𝑘 ×log ( 𝑛 )) , where 𝑘 denotes number of neighbours, 𝑛 number of individuals, and 𝑑dimension. • Exploration phase. The second phase is the exploration phase using the AllToOne Adaptive migration strategy, see Algorithm 5 . This migration strategy works with time complexity 𝑂( 𝑛 × Table 21 Results of the running time complexity analysis based on [32] for the test instances 1 –6 and dimensions 𝐷 = 10 , 20 , 30 . 𝐷 = 10 𝐷 = 20 𝐷 = 30 𝐸𝑅𝑇 𝐸𝑅𝑇 𝑡 𝑝 𝑠 𝑅𝑇 𝑡 𝑈𝑆 𝐸𝑅𝑇 𝐸𝑅𝑇 𝑡 𝑝 𝑠 𝑅𝑇 𝑡 𝑈𝑆 𝐸𝑅𝑇 𝐸𝑅𝑇 𝑡 𝑝 𝑠 𝑅𝑇 𝑡 𝑈𝑆 Instance 1 s = 1 2973 1.81 1.00 NA 4570 2.57 0.77 2.69 5784 4.06 0.36 4.14 s = 2 3164 1.85 1.00 NA 4709 2.53 0.63 2.63 5844 4.00 0.12 4.09 s = 3 3244 1.86 1.00 NA 4752 2.52 0.36 2.62 5943 4.00 0.01 4.03 s = 4 3363 1.82 1.00 NA 4751 2.44 0.09 2.54 NA NA 0.00 4.04 s = 5 3509 1.89 1.00 NA 4867 2.52 0.01 2.54 NA NA 0.00 4.09 s = 6 3626 1.82 1.00 NA 4635 2.40 0.01 2.55 NA NA 0.00 4.02 Instance 2 s = 1 3767 1.86 1.00 NA 4514 2.42 0.20 2.65 5782 4.01 0.07 4.10 s = 2 3691 1.90 1.00 NA 4761 2.51 0.17 2.59 5884 4.04 0.03 4.05 s = 3 3840 1.85 1.00 NA 4827 2.52 0.08 2.58 NA NA 0.00 4.13 s = 4 3855 1.86 1.00 NA 4707 2.50 0.03 2.60 NA NA 0.00 4.05 s = 5 3839 1.94 1.00 NA NA NA 0.00 2.56 NA NA 0.00 4.04 s = 6 3919 1.87 1.00 NA NA NA 0.00 2.55 NA NA 0.00 4.01 Instance 3 s = 1 3531 1.79 0.75 2.31 4667 2.60 0.21 2.75 5832 4.30 0.08 4.44 s = 2 3664 1.77 0.76 2.28 4741 2.63 0.11 2.74 5763 4.24 0.02 4.46 s = 3 3817 1.80 0.73 2.24 4766 2.61 0.08 2.72 NA NA 0.00 4.38 s = 4 3939 1.83 0.81 2.28 4889 2.64 0.01 2.69 NA NA 0.00 4.33 s = 5 4112 1.85 0.80 2.22 NA NA 0.00 2.69 NA NA 0.00 4.34 s = 6 4214 1.85 0.77 2.14 4738 2.60 0.01 2.70 NA NA 0.00 4.29 Instance 4 s = 1 3945 1.83 0.63 2.32 4934 2.72 0.06 2.82 5804 4.41 0.04 4.47 s = 2 4087 1.79 0.55 2.23 4735 2.65 0.06 2.79 NA NA 0.00 4.47 s = 3 4139 1.83 0.58 2.18 4836 2.72 0.03 2.78 NA NA 0.00 4.45 s = 4 4167 1.85 0.63 2.21 4944 2.78 0.01 2.75 NA NA 0.00 4.35 s = 5 4346 1.86 0.58 2.16 4856 2.72 0.00 2.76 NA NA 0.00 4.37 s = 6 4415 1.85 0.53 2.10 NA NA 0.00 2.81 NA NA 0.00 4.38 Instance 5 s = 1 3890 1.83 0.61 2.22 4731 2.79 0.05 2.97 5702 4.53 0.02 4.81 s = 2 4094 1.87 0.63 2.18 4747 2.74 0.04 2.90 5866 4.63 0.00 4.76 s = 3 4167 1.87 0.59 2.14 4950 2.91 0.01 2.96 NA NA 0.00 4.72 s = 4 4253 1.87 0.52 2.13 NA NA 0.00 2.84 NA NA 0.00 4.6 s = 5 4293 1.86 0.50 2.14 4933 2.87 0.00 2.84 NA NA 0.00 4.59 s = 6 4453 1.87 0.42 2.08 NA NA 0.00 2.86 NA NA 0.00 4.58 Instance 6 s = 1 3913 1.86 0.49 2.26 4633 2.80 0.04 2.99 5988 4.61 0.03 4.75 s = 2 4021 1.85 0.45 2.24 4857 2.88 0.02 2.95 5895 4.76 0.01 4.73 s = 3 4142 1.88 0.45 2.21 4768 2.84 0.01 3.04 NA NA 0.00 4.78 s = 4 4167 1.92 0.48 2.22 NA NA 0.00 2.93 NA NA 0.00 4.72 s = 5 4358 1.89 0.39 2.18 NA NA 0.00 2.92 NA NA 0.00 4.67 s = 6 4413 1.92 0.35 2.15 NA NA 0.00 2.91 NA NA 0.00 4.62 16
L. Skanderova, T. Fabian and I. Zelinka Swarm and Evolutionary Computation 65 (2021) 100936 𝑃 𝑎𝑡ℎ𝐿𝑒𝑛𝑔𝑡ℎ ∕ 𝑆𝑡𝑒𝑝 ) . However, in Algorithm 6 , a new feasible position is always compared to each position within the external archive with time complexity 𝑂( 𝑛 ) . If a new position is put to the archive, the whole subpopulation is regenerated with computational cost 𝑂( 𝑛 ) . • Exploitation phase. The CCMA-ES is employed to find out the extreme of the feasible region, where the computational cost of the update of 𝐀 is 𝑂( 𝑛 3 + 𝑚𝑛 2 ) ( 𝑚 denotes the number of violated constraints) [8] . When the CCMA-ES is finished, the distances between best positions in the subpopulations and ones in the external archive are calculated ( 𝑂( 𝑚𝑛 ) ). If the distance is smaller than the exclusion radius, the corresponding subpopulation will be regenerated ( 𝑂( 𝑛 ) ). • Overlapping. In this phase, the distance between the best individuals of the subpopulations is calculated, and random individuals are generated if necessary. This process is done with computational complexity 𝑂( 𝑛 ) . Then the individuals are merged ( 𝑂( 𝑛 ) ), and random individuals are added ( 𝑂( 𝑛 ) ). • Reset. If a change in the environment is detected, the algorithm is reset. Positions within the external archive are re-evaluated ( 𝑂( 𝑛 ) ), and new individuals are generated. However, each new individual is compared to each individual within the population. Therefore, the time complexity of this process is 𝑂( 𝑛 2 ) . In this work, the time complexity of the presented algorithm is evaluated based on the expected running time [32] from the perspective of the number of objective function evaluations (OFEs) and CPU time. The expected running time ( 𝐸𝑅𝑇 ) is defined as 𝐸𝑅𝑇 ( 𝑓 𝑡𝑎𝑟𝑔𝑒𝑡 ) = 𝑅𝑇 𝑠 + 1 − 𝑝 𝑠 𝑝 𝑠 𝑅𝑇 𝑈𝑆 , (14) where 𝑅𝑇 𝑠 is the average number of objective function evaluations for successful trials. 𝑅𝑇 𝑈𝑆 is the average number of OFEs for unsuccessful trials. 𝑝 𝑠 denotes the fraction of the successful trials. 𝑓 𝑡𝑎𝑟𝑔𝑒𝑡 = 𝑓 𝑜𝑝𝑡 + Δ𝑓 is the target function value to reach. 𝑓 𝑜𝑝𝑡 denotes the optimal function value, and it is defined for each test instance individually. Δ𝑓is the precision to reach, and it is set to Δ𝑓 = 10 −8 . A successful trial is a trial where the target function value was reached. When 𝑓 𝑡𝑎𝑟𝑔𝑒𝑡 is reached, the following evaluations will be disregarded. From the perspective of the CPU time, the expected running time ( 𝐸𝑅𝑇 𝑡 ) is defined as follows: 𝐸𝑅𝑇 𝑡 ( 𝑓 𝑡𝑎𝑟𝑔𝑒𝑡 ) = 𝑅𝑇 𝑡 𝑠 + 1 − 𝑝 𝑠 𝑝 𝑠 𝑅𝑇 𝑡 𝑈𝑆 , (15) where 𝑅𝑇 𝑡 𝑠 and 𝑅𝑇 𝑡 𝑈𝑆 is the average CPU running time in seconds for successful and unsuccessful trials,respectively. The results of the algorithm running time analysis are mentioned in Table 21 . The value 𝑁𝐴 means that the values are not available. For each dimension, test instance, and severity, 300 trials have been conducted, including 30 resets of the algorithm. With the increasing number of dimensions, the expected running time of the CCMA-ES-SOMA increases, and the fraction of the successful trials significantly decreases. The expected running time is higher for the test instances with the higher severity of the environmental change and the functions with rapid environmental change. 5. Conclusion In this paper, a hybrid evolutionary algorithm CCMA-ES-SOMA was introduced. The main idea of this work was to develop an algorithm detecting multiple feasible regions as fast as possible. And then to exploit them using a fast local search operator. For exploration, the SOMA All- ToOne Adaptive connected with there setting of the individuals is used. The CCMA-ES algorithm is then utilized for exploitation. The performance of the CCMA-ES-SOMA was evaluated on the novel test suite [3] and compared with the performance of the three state- of-the-art algorithms –CPSO, LTFR-DSPSO, and DyCODE. For comparison of the algorithms, offline error and normalized score were used as suggested in [3] . We have also applied the Friedman rank test with two post-hoc tests – Nemenyi and Wilcoxon rank-sum test at the significance level 𝛼= 0 . 05 . Based on the analysis of the results in Section 4 we have concluded that the CCMA-ES-SOMA provides significantly better solutions for the selected test suite than the CPSO, LTFR-DSPSO, and DyCODE. Besides an effective CCMA-ES, the quality of the provided solutions is given by the mechanisms of the population diversity preservation. Their principle is often based on the comparison of the mutual distances between individuals. However, the frequent comparison of the distances between individuals negatively affects the computational complexity of the whole algorithm. To balance the quality of the provided solutions with the computational complexity is a difficult task that will be a subject of our future work. Declaration of Competing Interest The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper. CRediT authorship contribution statement Lenka Skanderova: Conceptualization, Formal analysis, Investigation, Validation, Methodology, Software, Writing - original draft, Writing - review & editing. Tomas Fabian: Software, Supervision, Writing - review & editing. Ivan Zelinka: Supervision, Writing - review & editing. Acknowledgments The following grants are acknowledged for the financial support provided for this research by Grant of SGS No. 2021/72, VSB-Technical University of Ostrava and under the support of NAVY and MERLIN research lab. References [1] J. Luo, S. Fujimura, D. El Baz, B. Plazolles, Gpu based parallel genetic algorithm for solving an energy efficient dynamic flexible flow shop scheduling problem, J. Parallel Distrib. Comput. 133 (2019) 244–257, doi: 10.1016/j.jpdc.2018.07.022 . [2] X. Zhang, A. Liniger, F. Borrelli, Optimization-based collision avoidance, IEEE Trans. Control Syst. Technol. (2020), doi: 10.1109/TCST.2019.2949540 . [3] Y. Wang, J. Yu, S. Yang, S. Jiang, S. Zhao, Evolutionary dynamic constrained optimization: test suite construction and algorithm comparisons, Swarm Evol. Comput. 50 (2019) 100559, doi: 10.1016/j.swevo.2019.100559 . [4] K. Malekzadeh Fard, A. Pourmoayed, Optimization of the prismatic core sandwich panel under buckling load and yield stress constraints using an improved constrained differential evolution algorithm, J. Appl. Comput. Mech. (2019), doi: 10.22055/jacm.2019.30540.1739 . [5] R.V. Rao, A. Saroj, Constrained economic optimization of shell-and-tube heat exchangers using Elitist-Jaya algorithm, Energy 128 (2017) 785–800, doi: 10.1016/j.energy.2017.04.059 . [6] S. Yang, C. Li, A clustering particle swarm optimizer for locating and tracking multiple optima in dynamic environments, IEEE Trans. Evol. Comput. 14 (6) (2010) 959–974, doi: 10.1109/TEVC.2010.2046667 . [7] C. Bu, W. Luo, L. Yue, Continuous dynamic constrained optimization with ensemble of locating and tracking feasible regions strategies, IEEE Trans. Evol. Comput. 21 (1) (2016) 14–33, doi: 10.1109/TEVC.2016.2567644 . [8] D.V. Arnold, N. Hansen, A (1+1)-cma-es for constrained optimisation, in: Proceedings of the 14th Annual Conference on Genetic and Evolutionary Computation, 2012, pp. 297–304, doi: 10.1145/2330163.2330207 . [9] Z. Ivan , L. Jouni , Soma-self-organizing migrating algorithm, in: Proceedings of the 6th International Conference on Soft Computing, Brno, Czech Republic, 2000 . [10] I. Zelinka , Soma – self-organizing migrating algorithm, in: New Optimization Techniques in Engineering, Springer, 2004, pp. 167–217 . [11] K. Deep, et al., A self-organizing migrating genetic algorithm for constrained optimization, Appl. Math. Comput. 198 (1) (2008) 237–250, doi: 10.1016/j.amc.2007.08.032 . [12] L. dos Santos Coelho, Self-organizing migrating strategies applied to reliabilityredundancy optimization of systems, IEEE Trans. Reliab. 58 (3) (2009) 501–510, doi: 10.1109/TR.2009.2019514 . [13] L. dos Santos Coelho, V.C. Mariani, An efficient cultural self-organizing migrating strategy for economic dispatch optimization with valve-point effect, Energy Convers. Manag. 51 (12) (2010) 2580–2587, doi: 10.1016/j.enconman.2010.05.022 . [14] D. Singh, S. Agrawal, K. Deep, C-somaqi: self organizing migrating algorithm with quadratic interpolation crossover operator for constrained global optimization, in: Self-Organizing Migrating Algorithm, Springer, 2016, pp. 147–165, doi: 10.1007/978-3-319-28161-2_7 . 17
L. Skanderova, T. Fabian and I. Zelinka Swarm and Evolutionary Computation 65 (2021) 100936 [15] N. Hansen, The cma evolution strategy: a comparing review, in: Towards a New Evolutionary Computation, Springer, 2006, pp. 75–102, doi: 10.1007/3-540-32494-1_4 . [16] C. Igel, T. Suttorp, N. Hansen, A computational efficient covariance matrix update and a (1+1)-cma for evolution strategies, in: Proceedings of the 8th Annual Conference on Genetic and Evolutionary Computation, 2006, pp. 453–460, doi: 10.1145/1143997.1144082 . [17] D.V. Arnold, N. Hansen, Active covariance matrix adaptation for the (1+1)-cma-es, in: Proceedings of the 12th Annual Conference on Genetic and Evolutionary Computation, 2010, pp. 385–392, doi: 10.1145/1830483.1830556 . [18] T. Suttorp, N. Hansen, C. Igel, Efficient covariance matrix update for variable metric evolution strategies, Mach. Learn. 75 (2) (2009) 167–197, doi: 10.1007/s10994-009-5102-1 . [19] M. Bonyadi, X. Li, Z. Michalewicz, A hybrid particle swarm with velocity mutation for constraint optimization problems, in: Proceedings of the 15th Annual Conference on Genetic and Evolutionary Computation, 2013, pp. 1–8, doi: 10.1145/2463372.2463378 . [20] A. Maesani, G. Iacca, D. Floreano, Memetic viability evolution for constrained optimization, IEEE Trans. Evol. Comput. 20 (1) (2015) 125–144, doi: 10.1109/TEVC.2015.2428292 . [21] P. Spettel, H.-G. Beyer, M. Hellwig, A covariance matrix self-adaptation evolution strategy for optimization under linear constraints, IEEE Trans. Evol. Comput. 23 (3) (2018) 514–524, doi: 10.1109/TEVC.2018.2871944 . [22] A. Kumar, S. Das, R. Mallipeddi, A reference vector-based simplified covariance matrix adaptation evolution strategy for constrained global optimization, IEEE Trans. Cybern. (2020) 1–14, doi: 10.1109/TCYB.2020.3013950 . [23] A. Kumar , S. Das , R.K. Misra , D. Singh , A 𝜐-constrained matrix adaptation evolution strategy with Broyden-based mutation for constrained optimization, IEEE Trans. Cybern. (2021) 1–3 . [24] A. Kumar , S. Das , I. Zelinka , A modified covariance matrix adaptation evolution strategy for real-world constrained optimization problems, in: Proceedings of the 2020 Genetic and Evolutionary Computation Conference Companion, 2020, pp. 11–12 . [25] M. Hellwig , H.-G. Beyer , A matrix adaptation evolution strategy for constrained real-parameter optimization, in: Proceedings of the IEEE Congress on Evolutionary Computation (CEC), IEEE, 2018, pp. 1–8 . [26] T. Blackwell , J. Branke , X. Li , Particle swarms for dynamic optimization problems, in: Swarm Intelligence, Springer, 2008, pp. 193–217 . [27] Z. Zhu, L. Chen, C. Yuan, C. Xia, Global replacement-based differential evolution with neighbor-based memory for dynamic optimization, Appl. Intell. 48 (10) (2018) 3280–3294, doi: 10.1007/s10489-018-1147-9 . [28] T. Blackwell, J. Branke, Multi-swarm optimization in dynamic environments, in: Proceedings of the Workshops on Applications of Evolutionary Computation, Springer, 2004, pp. 489–500, doi: 10.1007/978-3-540-24653-4_50 . [29] F.B. Ozsoydan, A. Baykaso ğlu, Quantum firefly swarms for multimodal dynamic optimization problems, Expert Syst. Appl. 115 (2019) 189–199, doi: 10.1016/j.eswa.2018.08.007 . [30] L. Skanderova, T. Fabian, I. Zelinka, Self-organizing migrating algorithm using covariance matrix adaptation evolution strategy for dynamic constrained optimization source codes, 2020. [31] J. Carrasco , S. García , M. Rueda , S. Das , F. Herrera , Recent trends in the use of statistical tests for comparing swarm and evolutionary computing algorithms: Practical guidelines and a critical review, Swarm Evol. Comput. 54 (2020) 100665 . [32] N. Hansen , A. Auger , S. Finck , R. Ros , Real-parameter black-box optimization benchmarking 2010: experimental setup, INRIA, 2010 Ph.D. thesis . 18