Scientific Research

An Academic Publisher

Cooperative Particle Swarm Optimization in Distance-Based Clustered Groups

**Author(s)**Leave a comment

*k*-means clustering method, to maintain both diversity and centralization of search process are maintained. This paper conducts numerical experiments using several types of functions, and the experimental results indicate that the proposed method has higher performance than the TCPSO for large-scale optimization problems.

1. Introduction

PSO (Particle Swarm Optimization) is one of the most famous evolutionary computation methods that emulate the swarm behavior of some kinds of birds [1] . This evolutionary computation method interprets that the feature of the corresponding problem is not independently recorded on each individual of the swarm, but the whole population share the information for smart search. In the search process of PSO, each individual gets closer to an individual with highest evaluation value, by updating the current solution of each individual. A variety of PSO are applied to a number of problems in engineering discipline, because the updating method of the solution is very simple and computationally cheap [2] [3] [4] .

However, search process of PSO rarely converges a local optimum solution depending on the initial solution and the parameter settings due to the simpleness of the search procedure. To avoid the convergence problem several improved PSOs are proposed. For example, fully informed PSO (FIPSO) that several subgroups of particles (individuals) can communicate to each other by intermediary of the link between the subgroups [5] [6] , linearly decreasing weight PSO (LDWPSO) such that the value of the parameters in regard to search process are adapted to actualize a global search in the first part of the search process and a local search toward the end of the process [7] , FAPSO-ACO-K, a hybrid algorithm of fuzzy adaptive PSO (FAPSO), ant colony optimization (ACO), and $k$ -means clustering, is combined search procedure of hybrid of FAPSO and ACO for local search and $k$ -means clustering method for global search [8] , two-swarm cooperative PSO (TCPSO) which maintains the diversity of the population by division of the population into two kinds of subgroups [9] , and so forth.

The manner of division in TCPSO is not always suitable for the corresponding problems, thus the search process of TCPSO is not always appropriate. This study improves TCPSO by applying a statical clustering method for effective division of the population. The clustering is applied several times in process of search based on the degree of convergence of search. The experimental results indicate that the proposed method has higher performance for some high- dimensional problems than the existing methods relevant to PSO.

The rest of this paper is structured as follows: In Section 2, several works related to PSO, the original PSO, FIPSO, and TCPSO are briefly introduced. In Section 3, the proposed method using distance-based clustering method is constructed. In Section 4, numerical experiments using multiple benchmark problems are conducted, and finally Section 5 concludes this paper.

2. Related Works

In this section, some related works, PSO, FIPSO, and TCPSO are briefly described.

2.1. Particle Swarm Optimization (PSO)

Let $n$ be the number of swarms (individuals), and a swarm $i$ , $i=1,2,\cdots ,n$ retains its positional information vector at time $t$ , ${x}_{i}\left(t\right)$ , and its velocity vector, ${v}_{i}\left(t\right)$ , where ${x}_{i}\left(t\right)=\left({x}_{i1}\left(t\right),{x}_{i2}\left(t\right),\cdots ,{x}_{iJ}\left(t\right)\right)$ and

${v}_{i}\left(t\right)=\left({v}_{i1}\left(t\right),{v}_{i2}\left(t\right),\cdots ,{v}_{iJ}\left(t\right)\right)$ , here $J$ indicates number of dimension of the corresponding problem. Here, let ${\underset{\_}{x}}_{j}$ and ${\stackrel{\xaf}{x}}_{j}$ be the minimum and maximum values of the $j$ -th dimensional value, respectively, i.e., ${x}_{ij}\in \left[{\underset{\_}{x}}_{j},{\stackrel{\xaf}{x}}_{j}\right],\forall i,j$ is satisfied. Additionally, a swarm $i$ retains a positional information vector

${x}_{i}^{\ast}\left(t\right)=\left({x}_{i1}^{\ast}\left(t\right),{x}_{i2}^{\ast}\left(t\right),\cdots ,{x}_{iJ}^{\ast}\left(t\right)\right)$ of which has the highest evaluation value in which the swarm experienced from time 0 to $t$ . In similar way, whole swarms in the population shares a positional information vector

${X}^{\ast}\left(t\right)=\left({X}_{1}^{*}\left(t\right),{X}_{2}^{*}\left(t\right),\cdots ,{X}_{J}^{*}\left(t\right)\right)$ of which has the highest evaluation value in which whole swarms experienced from time 0 to $t$ . The position information vector ${x}_{i}\left(t\right)$ and velocity vector ${v}_{i}\left(t\right)$ of a swarm $i$ is updated by using following equation.

${x}_{ij}\left(t+1\right)={x}_{ij}\left(t\right)+{v}_{ij}\left(t+1\right)$ (1)

$\begin{array}{c}{v}_{ij}\left(t+1\right)=w{v}_{ij}\left(t\right)+{C}_{1}{r}_{1}\left({x}_{ij}^{\ast}\left(t\right)-{x}_{ij}\left(t\right)\right)\\ \text{}+{C}_{2}{r}_{2}\left({X}_{j}^{\ast}\left(t\right)-{x}_{ij}\left(t\right)\right),\end{array}$ (2)

where ${C}_{1}$ and ${C}_{2}$ are parameters, $w$ indicates inertia coefficient, and

${r}_{1},{r}_{2}\in \left[0,1\right]$ are random numbers which are determined before each updating. From (1) and (2), the performance of PSO depends in a large part on values of there parameters. The positions of all swarms are updated depending also on the common position information vector ${X}^{\ast}$ , therefore it is difficult to deviate from a local optima if the search process converges near the local optima.

2.2. Fully Informed PSO (FIPSO)

Whereas whole swarms in the population share the common position information in PSO, a pair of swarms which located at nearest in whole swarms each other share personal best position information with the highest evaluation ${x}_{i}^{\ast}$ in FIPSO. The nearest swarm of a swarm is called neighbor of her/him, and let $b\left(i\right)$ be a neighbor of a swarm $i$ . FIPSO updates the position information vector ${x}_{ij}\left(t\right)$ by using following (1) and the velocity vector ${v}_{ij}\left(t\right)$ by using following equation.

${v}_{ij}\left(t+1\right)=\chi \left\{{v}_{ij}\left(t\right)+\frac{1}{{n}_{i}}{\displaystyle \underset{i=1}{\overset{{n}_{i}}{\sum}}}{C}_{1}{r}_{1}\left({x}_{ij}^{\ast}\left(t:b\left(i\right)\right)-{x}_{ij}\left(t\right)\right)\right\},$ (3)

where $\chi $ is a learning parameter.

2.3. Two-Swarm Cooperative PSO (TCPSO)

TCPSO divides population into two subgroups, master swarms and slave swarms. As shown in Figure 1, the master swarms are assigned to wide search and the slave swarms are assigned to intensive local search.

Figure 1. The distribution of swarms: TCPSO.

The position information vector ${x}_{i}^{M}\left(t\right)$ and the velocity vector ${v}_{i}^{M}\left(t\right)$ of swarm $i$ belonging to master swarms are updated by following equations.

${x}_{ij}^{M}\left(t+1\right)={x}_{ij}^{M}\left(t\right)+{v}_{ij}^{M}\left(t+1\right)$ (4)

$\begin{array}{c}{v}_{ij}^{M}\left(t+1\right)=w{v}_{ij}^{M}\left(t\right)+{C}_{1}^{M}{r}_{1}\left({x}_{ij}^{M\ast}\left(t\right)-{x}_{ij}^{M}\left(t\right)\right)\\ \text{}+{C}_{2}^{M}{r}_{2}\left({X}_{j}^{S\ast}\left(t\right)-{x}_{ij}^{M}\left(t\right)\right)\\ \text{}+{C}_{3}^{M}{r}_{3}\left({X}_{j}^{\ast}\left(t\right)-{x}_{ij}^{M}\left(t\right)\right)\end{array}$ (5)

The position information vector ${x}_{i}^{S}\left(t\right)$ and the velocity vector ${v}_{i}^{S}\left(t\right)$ of swarm $i$ belonging to slave swarms are updated by following equations.

${x}_{ij}^{S}\left(t+1\right)={x}_{ij}^{S}\left(t\right)+{v}_{ij}^{S}\left(t+1\right)$ (6)

$\begin{array}{c}{v}_{ij}^{S}\left(t+1\right)=w{v}_{ij}^{S}\left(t\right)+{C}_{1}{r}_{1}\left({x}_{ij}^{S\ast}\left(t\right)-{x}_{ij}^{S}\left(t\right)\right)\\ \text{}+{C}_{2}{r}_{2}\left({X}_{j}^{\ast}\left(t\right)-{x}_{ij}^{S}\left(t\right)\right)\end{array}$ (7)

In Equations (4)-(7), “ $M$ ” and “ $S$ ” indicate the master and the slave swarms in order, respectively. From Equation (7), a slave swarm updates the velocity vector ${v}_{i}^{S}\left(t\right)$ based only on the position information, but the last velocity. This updating mechanism without inertia term leads that search regions of the slave swarms becomes more narrow than of the master swarms. The difference of search area between the master and the slave swarms are due to updating mechanism differences such whether it refers another kind of swarms or not. On the other hand, the term including ${X}_{j}^{S\ast}\left(t\right)$ in the updating mechanism of the velocity of a master slave refers the search efforts of the slave swarms. Several kinds of experimental results using TCPSO indicate that it has satisfying performance in many types of optimization problems. However, it does not have satisfying performance in high dimensional maps.

3. Distance-Based Divided Groups and Cooperative PSO

As described in the above section, TCPSO divides the population into two groups with different migration rules. However, the master swarms cannot always maintain the search area widely, because, a master swam updates its velocity in refer not only to master swarms but also the best solution in the slave swarms as Equations (4) and (5). This is a reason of which the searching process of TCPSO rarely converges on the local optima of the target optimization problem which is not the global optima of it, depending on the future of target problems.

This paper revises TCPSO to avoid the convergence of the swarms on the local optima by dividing the master swarms into multiple groups based on Euclidean distance. This is the main feature of the proposed method. Similarly, the slave swarms are divided into same number of groups and each group is connected a group of divided master swarms. For distance-based clustering, $k$ -means clustering method is applied for dividing the swarms.

3.1. $k$ -Means Clustering

The proposed method applies $k$ -means clustering method to the population. $k$ -means clustering is a non-hierarchical clustering algorithm, the whole swarms in the population are divided into $k$ groups based on the distance measure. Here, let ${\stackrel{\xaf}{x}}_{\kappa}$ be a median point of the positional information vector of the swarms belonging to a cluster $\kappa $ . Revise the division of the population into cluster to satisfy following condition.

$\underset{{V}_{1},\cdots ,{V}_{k}}{\mathrm{arg}\mathrm{min}}{\displaystyle \underset{i=1}{\overset{n}{\sum}}}\underset{\kappa}{\mathrm{min}}\Vert {x}_{i}-{\stackrel{\xaf}{x}}_{\kappa}\Vert $ (8)

3.2. Algorithms

Let ${X}^{M\kappa \ast}$ and ${X}^{S\kappa \ast}$ indicate the locational information vector of which has the highest evaluation value in which the master and slave swarms in a cluster $\kappa $ experienced from time 0 to $t$ . This study revises update procedure of the velocity vector of a swarm as follows, differing depending on the kind whether the swarm is master or slave swarm as following equations.

$\begin{array}{l}{v}_{ij}^{M}\left(t+1\right)=w{v}_{ij}^{M}\left(t\right)+{C}_{1}^{M}{r}_{1}\left({x}_{ij}^{M\ast}\left(t\right)-{x}_{ij}^{M}\left(t\right)\right)\hfill \\ \text{}+{C}_{2}^{M}{r}_{2}\left({X}_{j}^{S\ast}\left(t\right)-{x}_{ij}^{M}\left(t\right)\right)\hfill \\ \text{}+{C}_{3}^{M}{r}_{3}\left({X}_{j}^{M\kappa \ast}\left(t\right)-{x}_{ij}^{M}\left(t\right)\right)\hfill \\ \text{}+{C}_{4}^{M}{r}_{4}\left({X}_{j}^{\ast}\left(t\right)-{x}_{ij}^{M}\left(t\right)\right)\hfill \end{array}$ (9)

$\begin{array}{l}{v}_{ij}^{S}\left(t+1\right)={C}_{1}^{S}{r}_{1}\left({x}_{ij}^{S\ast}\left(t\right)-{x}_{ij}^{S}\left(t\right)\right)\hfill \\ \text{}+{C}_{2}^{S}{r}_{2}\left({X}_{j}^{\ast}\left(t\right)-{x}_{ij}^{S}\left(t\right)\right)\hfill \\ \text{}+{C}_{3}^{S}{r}_{3}{\displaystyle \underset{\kappa =1}{\overset{k}{\sum}}}\left({X}_{j}^{M\kappa \ast}\left(t\right)-{x}_{ij}^{S}\left(t\right)\right),\hfill \end{array}$ (10)

where, ${r}_{1},{r}_{2},{r}_{3},{r}_{4}\in \left[0,1\right]$ are the random variables as employed in Equations (2), (5), and (7). The positional information vector is updated based on Equations (4) and (6). Equation (9) maintains or increases diversity of search process of TCPSO by referring the positional information vector ${X}^{M\kappa \ast}\left(t\right)$ with the highest evaluation value in the belonging cluster, and Equation (10) avoids excessive convergence.

The outline of the proposed method is briefly summarized as follows.

Step 0 Initialize the parameter ${k}^{\text{temp}}=k=2$ .

Step 3 Generate initial population of the master and the slave swarms.

Step 2 If $k>1$ , execute $k$ -means clustering to the population of master and the slave swarms.

Step 3 Calculate the evaluation value of each swarm, based on the positional information vector.

Step 4 Update the positional information and velocity vector by Equations (4), (6), (9), and (10). If the largest evaluation value in the population is larger than predetermined value, it remains unchanged during for a given period, or number of updating of the positional information and the velocity vector approaches predetermined number, then terminate the search process. If a convergence condition satisfied, then go to Step 3, otherwise go to Step 5.

Step 5 If $k=1$ , then let $k={k}^{\text{temp}}+1$ and go to Step 2. If $k>1$ , then let

${k}^{\text{temp}}=k,\text{}k=1$ and go to Step 2.

A quite feature of the proposed method is applying $k$ -means clustering to population of the master swarms and the slave swarms, respectively, with changing number of clusters $k$ . Note that there exists a hybrid algorithm using $k$ -means clustering, FAPSO-ACO-K [8] , the algorithm divides the all swarms in the population into clusters. Our method has stronger tendency to avoid the convergence of swarms on the local optima, because the number of clusters $k$ periodically changes in our method as $2,1,3,1,4,1,\cdots $ . Whereas FAPSO-ACO-K uses predetermined number of clusters. The desired effect of the proposed method is that population repeats widespread migrations and convergences when the number of $k$ changes at Step 5. It is expected to discover another better solutions by the widespread migration, and intensive local search by the convergence of the search process.

4. Numerical Experiments

In this section, numerical experiments using some kinds of nonlinear functions. The terminate conditions are set as that the function values $f\left(x\right)$ is less than $1.0\times {10}^{-10}$ or the number of iterations without change of the largest evaluation values of solution. 10 discrete trail runs are executed for each problem by changing number of the dimensions of the problems as $D=2,10,30,50$ . The values of parameters are set as Table 1.

The numerical experiments which conduct in this study use 11 kinds of functions shown in Table 2 and Table 3.

Table 1. Parameter settings.

Table 2. Benchmark problems (unimodal functions).

Table 3. Benchmark problems (multi-modal functions).

The aim of these optimization problem is finding the solution vector

$x=\left({x}_{1},{x}_{2},\cdots ,{x}_{D}\right)$ which minimizes each target function. The functions are classified in terms of unimodal or multi-modal. $D$ indicates number of dimensions. In Appendix, some functions with number of dimensions is 2

$\left(D=2\right)$ are shown in Figures 6-15 for example.

The error per number of dimensions $D$ and termination term per $D$ are shown in Table 4 and Table 5 as experimental result. Figures 2-5 summarizes these results.

From the experimental result shown in Table 4, Figure 2 and Figure 3, the proposed method has higher or approximately equivalent performance relative to TCPSO in the optimization problem of unimodal functions. In other words, the proposed method is more helpful than the comparative approach, TCPSO. In the case of Rosenbrock, it is a unimodal function, though the gradient around

Table 4. Experimental results (unimodal functions).

the optimal solution is very small, and it is very difficult to find the optimal solution of such problems by heuristic approaches.

As shown in Table 5, Figure 4 and Figure 5, the proposed method has higher performance relative to TCPSO also in almost types of multi-modal functions. However, the function “Generalized penalized 2” with the number of demensions is $D=100$ , the amount of error by the proposed method is larger than of TCPSO. This function is nearly discrete type function as shown in Figure 15. From the experimental result, the proposed method is very effective for a lot of types of optimization problems, however, it should be revised to improve the performance also in high-dimensional discrete type functions such as “Generalized penalized 2”.

Table 5. Experimental results (multi-modal functions).

5. Conclusions

This paper proposed a procedure of particle swarm optimization (PSO), which is constructed based on two-swarm cooperative PSO (TCPSO) [9] and includes the procedure of distance-based clustering. The main idea of the proposed method is dividing whole swarms into multiple subgroups by using $k$ -means clustering, and the divisions are executed several times with periodical change of $k$ during the search process. This mechanism maintains the diversity and centralization of the search, and resolves the optimization problem of several kinds of functions.

Figure 2. Experimental result: error/D (unimodal functions).

Figure 3. Experimental result: termination term/D (unimodal functions).

This paper conducts numerical experiments using some benchmark problems of unimodal and multi-modal functions, and the experimental results indicate that the proposed method succeed to discover better solutions of some problems compared to the existing method (TCPSO).

Figure 4. Experimental result: error/D (multi-modal functions).

Figure 5. Experimental result: termination term/D (multi-modal functions).

As shown in Table 4, Figure 2 and Figure 3, only in a case of high- dimensional function of Rosenbrock $\left(D=100\right)$ , the proposed method is obviously defeated by TCPSO, we should explain the reason and propose an improvement of the performance, for example, by revising the condition of change of $k$ is improved.

Appendix

Benchmark problems (unimodal functions)

Figure 6. Sphere function (D = 2).

Figure 7. Quandratic function (D = 2).

Figure 8. Schwefel’s problem 1.2 function (D = 2).

Figure 9. Rosenbrock function (D = 2).

Figure 10. Schwefel’s problem 2.22 function (D = 2).

Benchmark problems (multi-modal functions)

Figure 11. Generalized Rastrigin function (D = 2).

Figure 12. Generalized Schwefel’s problem 2.26 function (D = 2).

Figure 13. Generalized Griewank function (D = 2).

Figure 14. Generalized penalized 1 function (D = 2).

Figure 15. Generalized penalized 2 function (D = 2).

Conflicts of Interest

The authors declare no conflicts of interest.

Cite this paper

*Journal of Software Engineering and Applications*,

**10**, 143-158. doi: 10.4236/jsea.2017.102008.

[1] |
Kennedy, J. and Eberhart, R.C. (1995) Particle Swarm Optimization. Proceedings of IEEE International Conference on Neural Networks, Piscataway, 27 November-1 December 1995, 1942-1948. https://doi.org/10.1109/ICNN.1995.488968 |

[2] | Babazadeha, A., Poorzahedyb, H. and Nikoosokhana, S. (2011) Application of Particle Swarm Optimization to Transportation Network Design Problem. Journal of King Saud University—Special Issue on “Advances in Transportation Science”, 23, 293-300. |

[3] | Esmin, A.A.A. and Lambert-Torres, G. (2012) Application of Particle Swarm Optimization to Optimal Power Systems. International Journal of Innovative Computing, 8, 1705-1716. |

[4] | Li, W. and Wang, G.-Y. (2010) Application of Improved PSO in Mobile Robotic Path Planning. Proceedings of International Conference on Intelligent Computing and Integrated Systems (ICISS), Guilin, October 2010, 45-48. |

[5] | Kennedy, J. and Mendes, R. (2002) Population Structure and Particle Swarm Performance. Proceedings of the IEEE Congress on Evolutionary Computation (CEC 2002), Honolulu, May 2002, 1671-1676. |

[6] |
Kennedy, J. and Mendes, R. (2006) Neighborhood Topologies in Fully Informed and Best of Neighborhood Particle Swarms. IEEE Transactions on Systems, Man, and Cybernetics, Part C, Applications and Reviews, 36, 515-519.
https://doi.org/10.1109/TSMCC.2006.875410 |

[7] | Yang, C.-H., Hsiao, C.-H. and Chuang, L.-Y. (2010) Linearly Decreasing Weight Particle Swarm Optimization with Accelerated Strategy for Data Clustering. IAENG International Journal of Computer Science, 37. (Online Available) |

[8] |
Niknam, T. and Amiri, B. (2010) An Efficient Hybrid Approach Based on PSO, ACO and -Means for Cluster Analysis. Applied Soft Computing, 10, 183-187.
https://doi.org/10.1016/j.asoc.2009.07.001 |

[9] |
Sun, S. and Li, J. (2014) A Two-Swarm Cooperative Particle Swarms Optimizations. Swarm and Evolutionary Computation, 15, 1-18.
https://doi.org/10.1016/j.swevo.2013.10.003 |

Copyright © 2018 by authors and Scientific Research Publishing Inc.

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.