Abstract
A lot of research has been directed to the new optimizers that can find a suboptimal solution for any optimization problem named as heuristic black-box optimizers. They can find the suboptimal solutions of an optimization problem much faster than the mathematical programming methods (if they find them at all). Particle swarm optimization (PSO) is an example of this type. In this paper, a new modified PSO has been proposed. The proposed PSO incorporates conditional learning behavior among birds into the PSO algorithm. Indeed, the particles, little by little, learn how they should behave in some similar conditions. The proposed method is named Conditionalized Particle Swarm Optimization (CoPSO). The problem space is first divided into a set of subspaces in CoPSO. In CoPSO, any particle inside a subspace will be inclined towards its best experienced location if the particles in its subspace have low diversity; otherwise, it will be inclined towards the global best location. The particles also learn to speed-up in the non-valuable subspaces and to speed-down in the valuable subspaces. The performance of CoPSO has been compared with the state-of-the-art methods on a set of standard benchmark functions.
Keywords
Introduction
Optimization plays an important role in engineering problems [1–9]. In many applications, at least one part is involved in an optimization problem [10–25]. Many problems in engineering fields are somehow involved in an optimization task [26, 27]. They are widely considered to be Black-Box Optimizers (BBO). An algorithm that is capable of optimizing any arbitrary fitness function is called an optimizer. Optimization problems can be divided into two subcategories (a) unconstraint and (b) constraint. If an optimization problem has some conditions to be satisfied during exploring the candidate solutions, it can be considered to be a constraint optimization problem; otherwise, it should be considered to be an unconstraint optimization problem. If an optimizer always finds the optimal solution (i.e. the global optimum), it is considered to be a global optimizer such as mathematical optimizers [26, 27]. Although mathematical optimizers (widely referred to as mathematical programming methods) are almost fast and optimal, some problems are too complex and hard to be modeled and then solved by them.
Therefore, it is sometimes desired to find a suboptimal solution (i.e. a local optimum) instead of the global optimum. Consequently, a lot of research has been directed to the new optimizers that can find suboptimal solutions for any optimization problem (they are named Heuristic Black-Box Optimizers (HBBO)). They have been appropriate for solving almost all optimization problems. The Population-Based Optimization (PBO) algorithms, such as Genetic Optimization (GO) algorithm, and Particle Swarm Optimization (PSO) algorithm, Harmony Search Optimization (HSO) algorithm are of this type. Several HBBOs have been proposed like GO algorithm, HSO algorithm, PSO algorithm, CuCkoo Search Optimization (CCSO) algorithm, Ant Colony Optimization (ACO) algorithm, Cat Swarm Optimization (CaSO) algorithm, and Artificial Bee Colony Optimization (ABCO) algorithm [28].
They contain two sub-fields: (a) Swarm Intelligence (SI) and (b) Evolutionary Algorithms (EA). They do not usually assume anything about the given problem and as a result they are considered to be black-box problem solvers. Therefore, they are very versatile in solving both industrial problems and also pioneering scientific problems [29].
They can find the suboptimal solutions of an optimization problem faster than the mathematical programming methods (if they find them at all). As mentioned, the PSO algorithm is an example of this type. The proposed PSO incorporates conditional learning behavior among birds into the PSO algorithm. Indeed, the particles, little by little, learn how they should behave in some similar conditions. The problem space is first divided into a set of subspaces. Any particle of a subspace will be inclined towards its best experience if its subspace has low diversity; otherwise, it will be inclined towards the global best. The particles also learn to speed-up in the non-valuable subspaces and to speed-down in the valuable subspaces.
Some problems have certain solutions; e.g. the best player in a sport, the longest day of the year and the solution of an ordinary differential equation of first degree are some examples of these simple problems. In contrast, some problems have multiple solutions known as optimal points or local optima; e.g. the best work of art, the most beautiful landscape and the most pleasant piece of music can be named as examples of such problems [30–32].
In this paper, the objective function is of type cost function. It means its output is defined as a cost value. According to many articles related to the topic, any optimization problem can be considered to be minimization of a cost function. Indeed, to maximize cost function F(x), we can minimize -F(x). The new function can be viewed as a fitness function or objective function, and consequently through an optimizer we can find its optimum value. In the paper, a special case of the PSO algorithm has been proposed. While all of the state-of-the-art methods suffer from lack of adaptive learning of environment or locations, referred to as conditional learning here, the main idea of the proposed PSO algorithm is to integrate conditional learning behavior of birds into the original PSO algorithm. Conditional learning is a kind of association or consistent learning. The proposed method is named as
In classic conditional learning, the animals learn to find an associative relationship connecting an environmental condition and a reward-punishment signal. This “conditional learning” expression was first introduced by a Russian physiologist, Ivan Pavlov. Assume a bird sees somebody many times hurting birds with a gun. It will flee if it sees the man again even without gun. This behavior is named conditional learning. This behavior has been employed in the proposed CoPSO algorithm. The particles (birds) in a swarm will try to reach the global optimum (the best solution irrespective to the swarm) if the diversity in their locality (in their swarm) at the search space is high; otherwise, they will try to reach their local optimum (the optimum of the whole swarm).
The particles (birds) in a swarm will try to reach the global optimum (the best solution irrespective to the swarm) if the diversity in their locality (i.e. in their swarm) at the search space is high; otherwise, they will try to reach their local optimum (i.e. the swarm optimum). Also if the diversity in their locality at the search space is high, then they will use larger speed parameters.
To make it more obvious, the paper contributions are as follows: Conditional learning is introduced to be used into BBOAs. A new PSO algorithm, which is able to converge to the optimal solution of any arbitrary objective function with a smaller number of fitness evaluations in comparison with state of the art methods, is introduced by applying conditional learning into a BBOA, i.e. PSO algorithm.
Section 2 presents related works. In Section 3, we introduce the proposed method, i.e. CoPSO algorithm. In Section 4, we show that this procedure is efficient for finding various types of optimal or nearly optimal solutions. Section 5 concludes the paper.
Related works
SI is a concept widely used in artificial intelligence established on the basis of collective behavior in decentralized and self-organized multi-agent systems. It is a kind of intelligence seen in the swarms of the dumb (i.e. simple) agents properly connected into a swarm. The behavior of these swarms yields smart results. It is a property of systems of non-intelligent agents showing cooperatively intelligent behavior. It is considered to be a decentralized, flexible, robust, and self-organized learning [33]. For example, the PSO algorithm and the ACO algorithm are among this type of intelligence.
EAs as a sub-field in Evolutionary Computation Algorithms (ECA) are among black-box PBO algorithms. Any EA algorithm is based on the evolution of an alive creature. EA algorithms should almost have the following steps (like GO algorithm): (a) re-producing step, (b) mutation step, (c) re-combination step, and finally (d) natural selection step. Any individual of the population stands for a candidate solution in these algorithms. The worth of an individual is computed based on the objective function. They evolve the population by their operators (each operator accomplishes one of the main steps). The most well-known algorithms of this type include GO algorithm [34, 35], Genetic Programming (GP) algorithm [36, 37], Evolutionary Strategy (ES) algorithm and Evolutionary Programming (EP) algorithm.
As mentioned, for general problem optimization, instead of traditional optimization approaches, ECAs can be considered to be an influential option because of their abilities that make them suitable for exploring search space. The PSO algorithm [29–38], the GO algorithm [34, 35], the GP algorithm [36, 37], the ACO algorithm [39, 40], and the ABCO algorithm [41–45] are extensively used in pattern recognition.
The ACO algorithm [46, 47] imitates the exploring behavior of ants [48]. Besides, there are also some other popular EC methods, such as the Learning Classifier Systems (LCS) [49, 50], the Differential Evolution Optimization (DEO) algorithm [51, 52], the Weighted Differential Evolution Optimization (WDEO) algorithm [53], the Artificial Immune System Optimization (AISO) algorithm [54, 55] and the Evolutionary Multi-Objective Optimization (EMOO) algorithms [56].
Kennedy and Eberhart introduced the PSO algorithm in mid-1990. The PSO algorithm considers each candidate solution to be a particle that is equal to exactly one bird in the whole flock. Initially, the particles are randomly created and positioned in the search space. After that, it updates each candidate solution in an iterative manner in accordance with his best experienced solution and the best solution experienced by the swarm [57]. It is an SI-based optimizer. These SI-based systems commonly consist of a population of simple agents that interact locally with each other and with their environment. Although there is not usually any centralized control on the behaviors of the agents, their local inter-actions result in the emergence of a complex collective behavior. It imitates the collective behavior of birds’ swarm (as an example see Fig. 1). It has been effectively employed to solve various problems emerged in different fields like power text partitioning, flow-analysis, bio-informatics, optimization of energy consumption in wireless sensor networks, feature selection [58–63], data classification [64, 65], and data clustering [66]. The PSO algorithm has been an ordinary algorithm for solving complex optimization problems [67].

Bird Swarm Movement.
Cellular-PSO (CPSO) algorithm partitions the exploration space through Cellular Automata (CA). Particles located inside a cell of the CA use some special rules of that CA. According to the position of each particle, its cell is determined. Particles of each cell are considered to be almost an isolated search space and in each of them a different exploration path is employed. Indeed, particles of each cell only see particles of the neighbor cells. Therefore, it guarantees the diversity and it will highly likely to find global optimum [68]. Kamosi et al. [69] have introduced a new PSO algorithm which is based on multi-swarm. Their multi-swarm PSO algorithm has guaranteed the diversity among population through employing a pair of populations [69]. In the CPSO, the number of cells becomes greater in an exponential manner by adding the problem size (or feature size) or by adding the number of partitions. This is the most important weakness of CPSO. Another important weakness in CPSO is that it cannot change number of the cells throughout run-time.
AISO algorithm is a heuristic optimization algorithm that is based on the real immune system (RIS) of the alive creatures. RIS is divided into two types: inborn and flexible. The AISO algorithm is organized according to the flexible RIS [70, 71]. Clonal Selection (ClS) algorithm is an innovative sub-category among the AISO algorithms. It has been introduced by DeCastro and VonZuben as a general optimizer [72].
There are different SI algorithms based on the behavior of bees in the nature. These algorithms are classified into two groups: those created based on foraging behavior and those created based on mating behavior. Examples of simulation algorithms derived from foraging behavior of bees include the ABCO algorithm. A Combinatorial ABCO (CABCO) algorithm was presented [73] with discrete coding to solve Travelling Salesman Problem (TSP). Knowing that original ABC is slow, a Dual-Population Crossover based ABCO (DPCABCO) [74] has been proposed to speed up ABC. This algorithm was proposed by Geem et al. [75]. The HSO algorithm is a meta-heuristic algorithm in the natural process of musical performance that searches a good condition during jazz improvisation. A Simplified Binary Harmony Search (SBHS) algorithm has been introduced to solve the binary knapsack problem [76]. Furthermore, an improved Adaptive Binary Harmony Search (ABHS) algorithm has been introduced to solve binary knapsack problem [77]. Ashrafi and Dariane [78] have proposed a new version of HSO algorithm named Melody Search Optimization (MSO) algorithm. Later, Shafique et al. [79] have extended it. The Bee Optimization (BO) algorithm was first introduced by [80] on a mathematical function. The BO algorithm was first used to solve adjoined optimization functions and after that to solve scheduling tasks [81] and then to solve binary data clustering [82].
The Imperialist Competitive Optimization (ICO) algorithm is an evolutionary optimization method inspired by imperialist competition imperial and is derived from imperialist behavior in an effort to overcome the colonies [83]. Other algorithms have been presented in recent years, most of which were in line with improving famous optimization algorithms, such as the PBI algorithm [84], the NPSO algorithm [85], the CCSO algorithm [86], the Differential Search Optimization (DSO) algorithm [87] and the Bird Mating Optimization (BMO) algorithm [88]. The sinusoidal Differential Evolution Optimization (sinDEO) algorithm [89], the Joint Operations Optimization (JOO) algorithm [90], and the Dynamic multi-swarm Particle Swarm Optimization with Cooperative learning strategy (DPSOC) algorithm were presented using a dynamic multi-population method to improve the particle swarm algorithm [91].
In another algorithm, the CSO algorithm has been enhanced with the use of chaos theory [77]. In 2015, the PSO algorithm has been enhanced using humanistic learning ideas to discover the solutions of different problems [92]. In 2016, the ACO algorithm has been combined with the GO algorithm, and a new optimization algorithm has been introduced [93]. In a study, authors have employed the GO algorithm in their efforts to find the closest general optimal solution to solve nonlinear multi-modal optimization problems [94].
All the notations of the proposed method, i.e. the CoPSO algorithm, are presented in Table 1. The CoPSO algorithm is a special type of the PSO algorithm. At first, it partitions the search space into a predefined number of regions. In each region, a specific set of parameters is used by the particles. It means that the particles of each region have an adaptive corresponding parameters’ set. By dividing each variable into PartNum parts we can have PartNum ProbSize regions, where ProbSize stands as the number of variables. The particles of each region follow their corresponding parameters for the PSO algorithm, i.e. a special set of C1, C2 and C3.
The used notations for the parameters and their descriptions
The used notations for the parameters and their descriptions
First let’s define the step level in each variable based on the Equation 1.
The updating equation of each particle is defined based on Equation 4.
The
According to flowchart of the proposed method, which is depicted by Fig. 2, the only difference with the original part is “Update Particles” block where it is accomplished “Adaptively”. For more details, the pseudo code of the proposed CoPSO algorithm is presented in Fig. 3. The MaxItr parameter is the maximum iteration that the algorithm is permitted to proceed. The sign “↦” is the assignment sign. In the first step, i.e. statement 01, initialization of parameters is done. If PopSize, i.e. population size has not taken a value by function argument, it is set to 100 by default. If Ψ1 (or PartNum, i.e. number of fragments in each dimension or ϑ, i.e. the inertia parameter) has not taken a value by function argument, it is set by default to 1.1 (or correspondingly 10, or 0.1). Variable z′, an auxiliary temporary variable, and itr, i.e. iteration variable, are set to 0. Two empty sparse arrays, i.e. b
k
and z
k
, are created with
In the second step, i.e. statement 02, the local optimum of each particle is updated. A sparse list, i.e. S, is created. For each particle, its region is determined. Then, each particle, i.e. ith particle, that belongs to kth region is put into S k by calling put (i, S k ). If key k is available in sparse vector S, then the function put (i, S k ) assigns S k ∪ { i } to S k ; otherwise: it first creates S k and then assigns {i} to S k .

The flowchart of CoPSO.

The pseudo code of the proposed CoPSO algorithm. ReLU stands for Rectified Linear Unit.
At the third step, i.e. statement 03, the best particle in each region is first detected and then if the number of particles in the region is more than 2, the best (Pop j , value (R k )) is assigned to R k , i.e. a sparse array that maintains the best position in each so-far-explored region. The function value (R k ) returns R k if R has a key k; otherwise, it returns null position. The function best (Pop j , value (R k )) returns the better (in terms of objective function) position between Pop j and R k (if available). Finally, π k is computed for each region according to equation 15 (with the exception that we use value (b k ) instead of b k as it is a sparse array with default value 0).
At the fourth step, i.e. statement 04, if the number of particles in any arbitrary region is more than 2, then we compute σ
k
and store it in a sparse array (with a 0 default value). At the next step, i.e. statement 05, σQ20, σQ80,
At the sixth step, i.e. statement 06, if the number of particles in an arbitrary region is more than 2, if σ k < σQ20, then value (z k ) + 1 is assigned to z k (i.e. a sparse array (with a 0 default value) that maintains number of the times the first condition is triggered minus number of the times the third condition is triggered in Equation 6); otherwise, if σ k > σQ80, then value (z k ) - 1 is assigned to z k .
At the subsequent step, i.e. statement 07, the best particle and its region are found, its location is stored in G and then its b k and the itr (iteration counter) are increased each by one. At the next step, velocity and location vectors of particles are updated. Finally, if itr is still less than MaxItr, S and σ are first removed (reinitialized with empty lists) and then the algorithm goes to statement 02.
In the proposed CoPSO algorithm, it is tried to maintain the maximum diversity. For example, if the diversity in a region is high, the exploitation should be followed; otherwise, the exploration is targeted. The proposed CoPSO algorithm has done this idea using conditioning learning behavior of birds. It is done through partitioning the environment into non-overlapping regions and defining different controlling parameters. Also, by emphasizing the exploration parameter (i.e. the C1) and deemphasizing the exploitation parameters (i.e. the C2 and C3) in low-diversity regions the proposed CoPSO algorithm makes the population diverse. In contrary, by deemphasizing the exploration parameters (i.e. the C2 and C3) and emphasizing the exploitation parameter (i.e. the C1) in high-diversity regions the proposed CoPSO algorithm puts pressure on the population to move towards the optimum.
Parameters of algorithm are as follows: PopSize, PartNum, ProbSize, Ψ1, C1, C2, C3, ϑ, MaxItr, and ϑ. Note that in parameters’ initialization, PopSize and MaxItr are not set by our side. They are used as they are defined in standard CEC problems and they are same for all methods. Also, C1, C2, C3, and ϑ are not set by our side. They are used as recommended by the original versions of PSO. The parameter Ψ1 is set to 1.1, because exploring its value among the set {1.01, 1.05, 1.1, 1.2, 1.3, 1.4, 1.5} on first objective function of CEC 2009 [95] shows its best value is 1.1. The PartNum is not analyzed, because its analyzing is not the target of this paper. This paper only targets to determine if it (conditional learning) has any positive effect on optimization. Besides, the conditional learning can be applied to other optimization algorithms and it is more than tuning this parameter.
Figure 4 shows how to value the problem space. The parts marked in bold have greater value. It means global optimum is probably located in these areas more frequently. In the proposed method, it is tried to move the particles in the high-valued spaces at a slower speed so that the particles could do more exploration those spaces.

The values of the problem space.
The benchmarks used throughout all the paper, contain different cost functions. Therefore, we should multiply them by a coefficient (i.e. minus one) and optimize their multiplied versions, as our method is presented as a maximizer of objective functions.
Structure of experimentations
The implementations of the proposed method and the state-of-the-art methods have been accomplished using a MATLAB 2015a on a number of benchmarks. The experimental results have been classified into 3 parts. CEC 2009 is the first benchmark that has been used throughout all results reported in section 4.2. CEC 2005 is the second used benchmark (employed in section 4.3) and finally the CEC 2013 is used as the third benchmark (employed in Section 4.4). Section 4.2 compares the proposed CoPSO method with the state-of-the-art basic heuristic optimizers. Section 4.3 compares the proposed CoPSO method with the state-of-the-art more sophisticated heuristic optimizers. In the fourth subsection, the proposed CoPSO method is compared with the state-of-the-art hybrid optimizers.
CEC 2009
In the first section, CEC 2009 is used as the benchmark [95]. The details of this benchmark have been presented in Table 2.
Introduction of CEC 2009 benchmark
Introduction of CEC 2009 benchmark
In this section, we compared the CoPSO algorithm with the state-of-the-art methods. These methods are the GO algorithm [96], the DEO algorithm [51], the PSO algorithm [97], the BO algorithm [80], the PBI algorithm [84], the NPSO algorithm [85], the MRPSO algorithm [98], the EPSDE algorithm [99], the CCABCO algorithm [100] and the FFO algorithm [101]. We implemented the results with equal parameters for all methods, including the population of 100, and 500000 fitness function evaluations. The algorithm-specific parameters have been as reported in Table 3.
Parameter setting
The results of this section are in terms of the averaged objective function value and its standard deviation. After accomplishing a total execution of any algorithm, the fitness of the best optimal solution is recorded as the score of the algorithm. Indeed, each method is executed 30 times. After execution of 30 independent runs, 30 different scores for the algorithm are recorded. The average and standard deviation of them (denoted respectively by mean best cost (Mean) and the standard deviation (Std) in tables) are reported. The results of the algorithm on 26 functions of the CEC 2009 have been presented in Table 4. The results presented by Table 4 are a comprehensive experimental study.
Comparison of the proposed method with the state-of-the-art methods on CEC 2009 benchmark
According to the results presented in Table 4, the proposed method has been able to converge to the optimal point in almost all of 26 objective functions of the CEC 2009 benchmark. As the results are reported in the form of averages over 30 trials, it is fair to conclude that the results indicate the proposed CoPSO algorithm could fully converge to the optimum in all 26 functions. Also, the standard deviation of the proposed CoPSO algorithm is also very low, and it is another reason showing the algorithm is effective. In functions F11, F13 and F15 all methods except for genetic algorithm converged to the optimal point. In functions F3, F14, F17 and F21, all methods could converge to the optimal point. The proposed method alone could achieve the optimal solution in functions F8, F12 and F18. The Friedman test is also used for having more confidence in the results and the results have been confirmed by it. The diagrams of the quality of the solutions found by different optimization methods in terms of different dimension sizes (i.e. twenty, thirty, forty, fifty, eighty and hundred) on all 26 objective functions are shown in Fig. 5. The term “Dimension” is equal to “Variable” in Fig. 5 and throughout all this paper. The results shown in Fig. 5 indicate the proposed method is the most robust method against dimension size (or problem size).

The quality of the solutions found by different optimization methods in terms of different dimension sizes on all 26 objective functions.
The objective function of the best solution among the population at the ith evaluation of the fitness function is depicted in different iterations of different optimization methods in Fig. 6 (the results are averaged on 30 trials). The i values spotted and reported in Fig. 6 include iterations 100, 200, 500, 1000, 100000 and 500000.

Results of the compared methods in 100th, 200th, 500th, 1000th, 100000th and 500000th fitness function evaluations on 26 benchmark functions.
To measure the particles’ convergence in the proposed method, the first 9 objective functions have been selected and the standard deviation of the population particles is shown on those functions by Fig. 7. The particles’ convergence curves in the 9 functions indicate that the particles in the middle of the evaluation are very diverse and they converge to the optimal point at the end of the execution. These plots show the rationale of the proposed CoPSO in the problem space.

The standard deviation of the proposed algorithm on 9 functions from benchmark functions.
In this subsection, the proposed method was compared to the following methods: the Drop Rain (RD) algorithm [76], the CS algorithm [86], the TLBO algorithm [102], the DSO algorithm [87] and the BMO algorithm [88]. We tested these methods on the test series CEC 2005 [103]. This comparison has been conducted based on the Mean and the Std (averaged on 30 trials). The number of fitness function evaluations is set to 300000, and a population size is 40.
The results presented in Table 5 confirm the superiority of the proposed CoPSO to the state-of-the-art methods. In the functions F1 and F9, the proposed CoPSO method together with another algorithm could have the best performance. In the function F1, the CS algorithm and the proposed CoPSO method have the best performance due to reaching the optimal point. The same scenario is occurred for the function F9 where the proposed CoPSO method and the DSA method find the optimal solution of the problem. The proposed CoPSO method is often among the two methods with the least standard deviation values. The results presented by Tables 4 and 5 are validated by the statistical test available at their last rows. In Table 4, the Friedman test is presented to test the significance of the results for all methods. Considering each dataset in Table 4 as a sample and each column as a method, the Freidman test output is presented in the last row of Table 4. The p-value of Freidman test is 3.21E-8 which shows significant difference in methods’ performance. The same experiment is repeated for Table 5 and the Freidman test output is presented in the last row of Table 5. The p-value of Freidman test is 4.26E-18 which shows significant difference in methods’ performance.
Results of the proposed CoPSO in comparison with some newer algorithms on 26 functions based on the Mean and Std
Results of the proposed CoPSO in comparison with some newer algorithms on 26 functions based on the Mean and Std
At last, complexity analysis of CoPSO according to the specified (standard) guidelines of CEC 2005 [103] has been depicted by Table 6. For clarifying the values of Table 6, let’s compute the running time of the following test program and denote it by T0.
Computational complexity analysis
Let’s compute the time that 200,000 evaluations of F3 for a certain dimension D take to be executed and denote it by T1. Let’s compute the time that an algorithm
In the third experimentation, the proposed CoPSO method has been compared with the state-of-the-art methods that are published during the last 2 recent years. Table 7 represents the experimental results of this section. In this section, the functions to be tested are the objective functions of the CEC 2012 benchmark [95]. The state-of-the-art methods are as follows: the sinDEO algorithm [89], the JOO algorithm [90], the NPSO algorithm [85], the DPSOC [91], and the DPCABCO [74]. While these methods are state-of-the-art, they all suffer from lack of adaptive learning of environment or locations, referred to as conditional learning here. The population size is set to 40 and the number of fitness evaluations is set to 10000 times. Moreover, the problem size is 30 and each reported result here in this subsection is an average of 51 trials.
Results of the proposed method and four hybrid optimization methods on 28 benchmark functions
Results of the proposed method and four hybrid optimization methods on 28 benchmark functions
Except for function F7 in which the JOO approach has the best result at the end of the specified evaluations, the proposed CoPSO method obtains the best results in other 27 functions. In function F28, the JOO algorithm is at the same level of the proposed CoPSO method and it finds the global optimal point too. Furthermore, the proposed CoPSO method alone has the best performance in all other 26 objective functions. The standard deviation of the proposed method is among the lowest in each objective function in contrast with other state-of-the-art methods. This indicates that the proposed CoPSO method can be considered as a robust optimizer.
Artificial intelligence has many applications in electrical engineering problems [104–110]. Due to their stochastic nature [111–113], meta-heuristic optimization algorithms have been used there [114]. In this sub-section, we have tried to solve a real industrial problem, which is presented in detail by Subbaraja et al. [115] and is named combined heat and power economic dispatch problem. In this problem, it is desired to find the optimal power and heat production values for all suppliers. We have
Two additive conditions should be satisfied for two co-generation power-heat units depicted in Figs. 8 and 9. Figure 8 depicts the valid work region for co-generation power-heat unit number 1. Figure 9 depicts the valid work region for co-generation power-heat unit number 2.

The valid work region for co-generation power-heat unit number 1.

The valid work region for co-generation power-heat unit number 2.
The population size of all methods has been set to the default parameters presented by their corresponding papers. The best solution in the population of a given method named A after B number of fitness evaluations is denoted by
Results of the proposed method and 4 optimization methods on combined heat and power economic dispatch problem
In each generation, the average computational cost of the proposed PSO version is about 0.012 second while it is about 0.009 for the original PSO version. Therefore, in each generation, computational cost of the proposed PSO version is increased in comparison with the original PSO version. Although its computational cost has been increased per generation, its solution is found in less generations; therefore, its computational cost is decreased for solution finding. It can be seen in Fig. 10 where depicts the histogram of the consumed times in the proposed PSO version to reach the optimal solution in 200 independent runs of the algorithm (It can also be inferred from Figs. 10 and 11). The same results for the original PSO version are depicted in Fig. 11. Figures 10 and 11 depict the consumed time of the proposed PSO version in comparison with the original PSO version for solving the real-world objective function. This comparison has proved our claim that the proposed PSO version is superior to the original PSO version, even in terms of time complexity.

The histogram of the consumed times in the proposed PSO version to reach a specific cost value in 200 independent runs.

The histogram of the consumed times in the original PSO version to reach a specific cost value in 200 independent runs.
In recent years, meta-heuristic algorithms have been used as primary techniques for obtaining the optimal solutions to real engineering design optimization problems. This work proposed a novel nature-inspired algorithm called CoPSO. In this paper, we provided an algorithm using the instinctive behaviors of birds. It could perform more accurately, purposefully and more cautiously than the basic SI algorithms. Conditional learning behavior has been employed in this paper for improving the PSO. Based on the CL behavior, any particle should learn how to update its velocity; and also it learns the best behavior in any condition. Indeed, it learns how to act in each condition. The comprehensive experimental results have been conducted on standard benchmarks (implemented in MATLAB platform) and the results of the proposed CoPSO method have shown that the proposed CoPSO method is an efficient and reliable optimizer in static objective functions.
According to what was stated in this paper, the following ideas are proposed for future studies: employing the chaotic number generator as the random number generator (or the stochastic number generator), employing the idea of quantum particles in the aforementioned method, employing the aforementioned method to solve dynamic optimization problems.
Compliance with ethical standards
Conflict of interest
The authors declare that they have no conflict of interest.
Ethical approval
This article does not contain any studies with human participants or animals performed by any of the authors.
Footnotes
Acknowledgment
This research was supported by the Natural Science Foundation of Zhejiang Province (Grant No. LQ15D010002); the Science and Technology Benefit People of Ningbo City (Grant No. 2015C50052); the Zhejiang Provincial Research Plan for Public Science and Technology (Grant No. 2014C31076).
