Abstract
Particle swarm optimization (PSO) is a population-based intelligent algorithm for solving optimization problems. Since the fast convergence and easy implementation, PSO has been successfully applied in some areas. However, the standard PSO also has some inherent drawbacks, and the premature convergence is the main issue. Many PSO variants have been developed to solve this problem. Unlike the previous studies, this paper focuses on the communications among different particles, based on the graph theory and information theory, a new analytical method for PSO topology was proposed. By analysing three typical topologies (star, ring, and von-Neumann), the influence of different topologies was revealed. Therefore, an improved topology combines the advantages of three typical topologies was developed, and the iterations of PSO were divided into three stages. The different stages have different topologies. The benchmark test results show that the improved topology is effective. It applies to both convex and nonconvex optimizations.
Keywords
Introduction
Particle Swarm Optimization (PSO) is a widely used computational intelligence algorithm which was firstly introduced by Eberhart and Kennedy in 1995 [1]. PSO belongs to the category of the swarm intelligence methods, which is inspired by the swarm behaviours of animals, such as fish schooling, bird flocking or bee swarming. In this algorithm, the potential solutions are treated as particles. Each particle has individual position and velocity, and they are flying in a multi-dimensional solution space and searching for the optimal global position. Due to the advantages of fewer parameters and easier implementation, the PSO algorithm has better performance in many application fields, such as economics, energy, electronics, electromagnetics, medicals, control science, communication systems, etc.
Although PSO algorithm has some outstanding features, it may easily get trapped in local optima and lead to a premature convergence issue [2], similar to other evolutionary algorithms. In recent years, to improve the global exploration ability and prevent premature convergence of the classic PSO, some researches have been conducted. These works can be categorized into three classes: parameter improvements, hybrid algorithms and new topology [3, 4]. The parameters affect the performance of PSO, such as inertia weight and speed factors. The inertia weight plays a key role in the convergence. Generally, a large inertia weight is helpful when searching for the global optimal, while a small inertia weight will enhance the local search capability [5]. Based on the standard PSO, there are many variants for dynamic inertia weight, such as random inertia weight [6] and time-varying inertia weight [7]. Compared with the inertia weight, the speed factors are usually constant. Besides, many improved PSO algorithms are mixed with other intelligent algorithms. These hybrid algorithms integrate the advantages of two or more algorithms and can overcome some shortcomings of standard PSO. Miranda and Prudêncio [8] apply Grammar-Guided Genetic Programming (GGGP) algorithms for PSO algorithm design problem, and four different GGGP approaches were used to compare the performance of the proposed method. Naderi et al. [9] use Heterogeneous Comprehensive Learning (HCL) strategy and fuzzy system to improve the standard PSO, and this hybrid method was used to solve reactive power dispatch problem. Yan et al. [10] developed a new PSO variant by combining the features of random learning mechanism and levy flight, and the numerical experiments show that the proposed hybrid algorithm is efficient. PSO is usually combined with other evolutionary algorithms, for example combining with Differential Evolution (DE) [11] and Artificial Immune System (AIS) [12].
Using a reasonable topology can also improve the performance. The most common used static topologies are a star, ring, and von-Neumann topologies [13]. Some dynamic topologies have been developed in recent years to improve the standard PSO. Wang et al. [14] used a dynamic tournament topology strategy to improve PSO. Several better solutions guide the particles, and the test results show that this strategy is promising. Augusto et al. [15] adopted a probabilistic method to decide which particles will communicate and developed a new global best strategy to seek an optimal solution, and the proposed dynamic topology was applied on nuclear engineering. Lim and Isa [16] developed a new PSO variant by linearly increasing the particle’s topology connectivity, which can balance the PSO’s exploration/exploitation capacity. Marinakis et al. [17] used a novel expanding neighborhood topology to improve the standard PSO, and the new hybridized algorithm can effectively solve the constrained shortest path problem. Bonyadi et al. [18] proposed a time-adaptive topology to locate many feasible regions at the early stages of the optimization process and to screen the best solution at the latter stages, and this method can find more feasible regions and get higher quality solutions. Mason et al. [19] used a PSO variant with a gradually increasing directed neighborhood to solve dynamic economic emission dispatch problem. In fact, the main difference between the topologies is the count of neighbors, and the dynamic topology of PSO can be achieved by controlling the number of neighbours. Jiang et al. [20] presented a novel age-based topology, which separate particles to different age-groups and the particles can only select the neighbours in younger groups or their group. Numerical analysis shows that the new topology provides better performances on both optimization problems and the data clustering tasks. Lynn et al. [21] pointed out that the two main structured population models are cellular topology and distributed topology. In cellular topology, the whole population is divided into many very small subpopulations. While, the distributed topology subdivides the population into smaller islands, which is isolated from each other and evolves independently. During the iterations, each particle shares its best experiment with its neighbours, so the topology selection is the most challenging aspect in PSO algorithm [22].
Many scholars have realized that PSO with a small neighbourhood performs better on complex problems, while a large neighbourhood performs better on simple problems [4, 16]. Most topology studies only focus on how to establish the dynamic topology, but the reasons that changing topology can improve performance are lack of theoretical analysis. In this paper, a new topological analysis method based on the graph theory and information theory is developed to solve this problem, and a new dynamic topology is proposed according to the analysis results of the different topologies. The following sections of this paper are organized as follows. In Section 2, the commonly used topologies were briefly introduced. In Section 3, some definitions and derived parameters are given to analyse three common used topologies. In Section 4, a newly improved topology is proposed, and the new method was tested in Section 5. Finally, in Section 6, we summarized the research and gave some suggestions for the future work.
Typical topologies
PSO typical topologies generally fall into two categories: global version and local version. The global version is a star topology, in which all the particles can communicate with each other, and the optimal particle in every iteration is selected from the whole population. Because there is only one global optimal particle and the other particles use the optimal particle as their learning target, the global version of PSO converges very quickly. The local version has fewer neighbours than the global version. The local optimal particle is selected among the particle itself and its neighbours. Each particle may have different learning target, so it can keep population diversity and avoid premature convergence, but the convergence speed will slow down. Because the global version is easily get trapped in local optima, the local version is widely used. The currently applied PSO algorithms are mostly static topologies with a fixed number of neighbours. Kennedy pointed out the three typical topologies: star, ring, and von-Neumann topologies [13], as shown in Fig. 1.
Three typical topologies.
Figure 1a shows the star topology. The population size is
Definitions
To analyse the topologies, some parameters need to be defined. Based on Chen’s proposal that the topology of PSO can be analysed by the graph theory [23], a new analytical method combines the graph theory and information theory is proposed. The definitions are as follows:
Distance: Consider an unweighted directed graph
Average Distance (AD): the AD is defined as for Eq. (1), where,
Longest Distance (LD): the longest distance
Information: The whole population can be represented as a set of
where,
The Eq. (2) can be used to analyse both the global and local versions of PSO. The ring topology, for instance, whose neighbourhood topology contains the particle itself and two neighbours, and the information expressed by the three particles are 001, 010, 100 and so on. Figure 2 is the information schematic diagram.
The information schematic diagram of the ring topology.
More generally, if a particle has
therefore, the total information can be divided into two categories,
where
Information Transfer Rate (ITR): One of the most important concepts in communication systems is the transfer rate of information. Theoretically, there is more time required for information transmission if the distance between two nodes is longer. In contrast, less time required if the distance is shorter. Therefore, the average transmission time of the unit information of PSO is directly proportional to the AD. In this paper, we set a proportion of 1:1. The average numbers of unit information transmitted per unit time can be expressed as,
where,
Based on Eq. (5), the ITR can be expressed as,
In Eq. (6),
Among these topologies, the star topology is the simplest. The AD and LD of the star topology are both 1. Instead, the parameters of the ring and von-Neumann topologies are more complicated.
If the population size of the ring topology is odd, the longest distance from a particle to another particle is
While, if
From Eqs (1), (7) and (8), the AD of ring topology can be deduced as Eq. (9).
Based on Fig. 1b, the LD of ring topology is not difficult to figure out.
The above formula can be simplified as Eq. (11), where, the symbol
Compared to the ring topology and star topology, the von-Neumann topology is very abstract. Suppose that the length and width of the grid in Fig. 1c are
The true topology of von-Neumann.
From the Fig. 3, we can see the von-Neumann topology has two typical rings in the vertical and horizontal directions. The sizes of the two rings are
If
Similarly, if
If
If
The Eqs (12)–(15) are subject to
According to the Eqs (1), (12)–(16), the AD of von-Neumann topology is
According to the Fig. 3 and Eq. (11), the LD of von-Neumann topology is
The ITR of the three topologies can be calculated according to the Eqs (2), (3), (6), (9) and (17). The main parameters are summarized in Table 1.
Parameters of different topologies
This section compares the parameters of the three typical topologies. The parameters include AD, LD, Information and ITR and the population size will gradually increase from 2 to 100.
The AD of different topologies.
The LD of different topologies.
Figure 4 shows the AD curves of the three topologies. Because the von-Neumann topology is subject to Eq. (16) and its parameters are not continuous, the scatter plot is used. The AD of the star topology is minimal, and the values keep up to 1. The AD of ring topology is proportional to the population size. As the population size increases, the AD also increases, and the slop of AD is a constant. The AD of von-Neumann topology is between the value of star topology and ring topology, which is not linear and increases slowly.
The LD curves are similar to AD curves. In Fig. 5, the LD of ring topology is the maximum, and the curve shows a linear increase. The von-Neumann topology is medium, and the star topology is still minimal. Compared with other two topologies, the LD of von-Neumann topology is more appropriate, neither too long nor too short. The LD is directly related to the AD. If the AD increases, the LD will increase. When applying graph theory to analyse the topologies, you can choose either one of AD or LD. Although we have analysed AD and LD in different topologies, the impact on performance remains unclear. In the following analysis, the communication mechanism among particles will be analysed.
The Information of different topologies.
The ITR of different topologies.
Figure 6 is the information of the whole population. It shows the star topology has the least information. As the population size increases, the total information changes very slowly. Instead, the information of ring and von-Neumann grows very quickly. More specifically, the information change of von-Neumann topology is slightly lower than that of the ring topology. According to Eq. (13), the ring topology has the largest information than any other topologies. Based on the principle of information theory, the more information means, the more communication among particles, so the search ability of ring topology is the best.
Figure 7 is the most important figure in this paper because the ITR can quantify the interaction among particles. If a topology has a higher IRT, it means that the optimal information is transmitted quickly and it will be very helpful for the convergence. In Fig. 7 the ITR of ring topology is the lowest, and it seems not related to the population size, so the ring topology converges very slowly. Unlike the other parameters, the ITR of the star topology is between the other two topologies. Subjectively, the AD of star topology is the shortest, and its transmission speed should be the fastest. However, because of the little information it carried, the ITR of star topology is slower than the von-Neumann topology. The von-Neumann topology has the fastest ITR, which means the exchange of information among particles is very efficient to improve the convergence.
Based on the above analysis, we can draw the following conclusions:
Star topology has the shortest AD and LD, the least whole information, and the IRT is much higher than the ring topology. The star topology converges very fast. The ring topology contains the most information, but its AD and LD are much longer than any other topologies. Accordingly, its ITR is the lowest, and the convergence is the slowest. The von-Neumann topology has the fastest ITR, medium AD and LD between the star and ring topologies. Meanwhile, the whole information it carried is much more than the star topology and nearly equal to the ring topology. More information means the particle can get more optimal information from the other particles, and the fast ITR means the information exchange is very efficient, so the von-Neumann topology can offer a solution to balance the searching ability and the convergence.
From Section 3, we know that different topologies have different performance and each topology has different advantages and disadvantages. In a traditional PSO, the number of the neighbours are fixed, and the topology is static. Several dynamic topologies suggest that changing topologies can improve the performance. In this section, a new dynamic topology combined with the advantages of three typical topologies is proposed. The improved topology is divided into three stages.
The three stages of the improved topology.
Figure 8 is the schematic diagram of three stages. In the early stage of iterations, the ring topology is used to search the optimal solution, which has the lowest ITR and the longest AD. It is good for keeping the diversity of the population. In the middle stage, the topology changes to von-Neumann. The proper AD and the fastest ITR mean that the particles have an opportunity to learn more information from the other particles. It is good for improving the searching efficiency. In the final stage, the topology is changed to star topology or ring topology, decided by the objective function. If the objective function is convex, the topology is a star, and it will accelerate the convergence. Otherwise, if the objective function is nonconvex, the topology will be changed to the ring again, which will enhance the local searching ability.
In Fig. 8,
where,
Although the values of
Algorithm of PSO with improved topology
To verify the effectiveness of the proposed method, we compared the three classical topologies and the improved topology by different benchmark functions. These algorithms are tested in MATLAB, running on a PC with 8 GB memory, and 2.6 GHz CPU and the operating system is Windows 10. Before testing, some test indicators need to be defined.
Mean Best (MB): If an algorithm runs
Best Solution (BS): the best solution among
Mean Difference (MD):
If the MD is small, it means that the algorithm is robust. Otherwise, it lacked stability.
Average Elapsed Time (AET): the average of run time.
Success Rate (SR): Under the given maximum iterations, if the optimal solution is better than the convergence criterion, the convergence is successful. Suppose the algorithm runs
Average Count of Iterations (ACS): Record the count of iterations when the convergence criterion is satisfied and calculate the average of the
In this section, the topologies of the algorithms are different, but the parameters are the same. The population size is 30; inertia weight is 0.729; acceleration factors are both 1.494;
The benchmark functions
Table 3 is the benchmark functions marked as
The comparison of test indicators among different topologies
Table 4 is the comparison of test indicators among different topologies. In
The improved topology is suitable for both convex and non-convex optimization problems. The optimal searching capability is better than the other traditional topologies. The improved method has the best stability.
In this paper, a new analytical method for PSO topology is developed, which combines the graph theory and information theory. Based on this method, three typical topologies of PSO are analyzed in detail. The star topology converges fast, but it’s easy to be trapped into a local minimum. The population diversity of ring topology is good, but the convergence is the slowest. The convergence of von-Neumann topology is more suitable, but it doesn’t work well in convex optimization problem. The improved topology divides the optimization process into three stages, and each stage has different topologies. Finally, five benchmark functions are used to test the proposed method. The test results reveal that the improved topology has the better comprehensive performance.
For future work, the effects of different values of
