A Fractional-Order Weighted and Self-Adaptive Max-Min Ant System with 3-Opt Algorithm for Traveling Salesman Problem
Shushu Chen*, Yifei Pu
College of Computer Science, Sichuan University, Chengdu, China
To cite this article:
Shushu Chen, Yifei Pu. A Fractional-Order Weighted and Self-Adaptive Max-Min Ant System with 3-Opt Algorithm for Traveling Salesman Problem. International Journal of Intelligent Information Systems. Vol. 5, No. 4, 2016, pp. 48-54. doi: 10.11648/j.ijiis.20160504.11
Received: May 8, 2016; Accepted: May 31, 2016; Published: June 21, 2016
Abstract: In this paper, a Fractional-order weighted and Self-adaptive Max-Min Ant System (FS-MMAS) is proposed to make full use of spatial information of the traveling salesman problem. Furthermore, it is realized so that ants can select next city according to the complex topography. Most advanced algorithms based on Ant Colony Optimization can't take advantage of spatial information during the traverse tour, which easily leads to local minimums. Through the multi-scale and self-adaptive search, ants can take advantage of information which contributes to finding the global optimization. Finally, the 3-Opt algorithm is used to improve local solutions. The performance of proposed method was investigated on eight different benchmark problems taken from a literature and proved to be better than other well-known methods in terms of solution quality and robustness.
Keywords:Self-Adaptive, Max-Min Ant System, 3-Opt Algorithm, Fractional-Order, Tsp
The Traveling Salesman Problem (TSP) is a well-known binatorial optimization Problem, which has been widely used in many engineering applications such as the design of hardware devices and radio electronic systems, and computer networks etc [1,2]. However TSP is regarded as a classical NP-hard problem, whose solution will rapidly expand with the increasing scale of issues. Many algorithms have been proposed in order to solve TSP effectively, such as Simulated Annealing (SA) , Genetic Algorithms (GA) , Ant Colony Optimization (ACO) , Particle Swarm Optimization algorithm (PSO)  etc. ACO is an optimization algorithm of swarm intelligence which is inspired by the behavior of ants in the real wild, and was first proposed by Dorigo. M and Gambardella. L. M in 1996 . ACO has rapid convergence, strong robustness and distributed parallel computing architecture. It can also be easily combined with other algorithms. Therefore, ACO spreads rapidly and is widely applied. But the performance of ACO is poor when it comes to solving large scale optimization issues. ACO will have low solution quality, slow convergence and easily fall into local minimums with the increasing scale of issues.
In order to solve those issues, many algorithms based on ACO were proposed. The Ant Colony System (ACS)  differs mainly in its pheromone update function. ACS employs a local pheromone update at the end of every iteration. And only the best ant can update its pheromone trials. ACS has better performance than ACO for TSP. The rank-based Ant System (AS rank)  incorporates the concept of ranking into the pheromone update procedure. Those M ants are ranked according to their tour length (L1≤L2 ≤……≤LM). The pheromone trials are updated among several better ants. And they are weighted so that an increment of the pheromone trials is in direct proportion to their ranking. In addition, the paths traversed by the global-best solution receive an additional amount of pheromone. The Max-Min Ant System (MMAS) algorithm  differs from the ACO in two ways: only the best ant can update the pheromone trials in the MMAS, but all ants can do in the ACO; the pheromone trials are limited between the upper and the lower pheromone bounds in the MMAS, but there is no limit in the ACO. MMAS makes full use of historical information and avoids premature convergence to local minimums. Although these methods improve some aspects, they can't make full use of information during the traverse tour and have poor performance in finding the global optimization. As we know, fractional calculus has nonlinear, non-causal and non-stationary characteristics, which help search multi-scalely and contribute to obtaining the global optimization.
In this paper, a Fractional-order weighted and Self-adaptive method based on the Max-Min Ant System is proposed. Not just the best ant can update its pheromone trials, but also those better ants can do. Furthermore, the search processing is self-adaptive such that ants may select other closer cities in addition to the closest city. Hence, FS-MMAS is more likely to find the global optimization. Finally, the 3-Opt algorithm is used to reduce the probability of falling into local minimums. Better results are achieved with the suggested method compared to other studies in the literature.
The rest of the paper is organized as follows: In Section 2, the background knowledge, including ACO, fractional differential approach and 3-Opt algorithms, is given. The proposed method is presented in Section 3. The results obtained in the application are given in Section 4. Finally, in Section 5, we conclude the paper with a summarization of results and emphasize the significance of this study.
2. Materials and Methods
In this section, information about MMAS,fractional differential approach and 3-Opt algorithm is provided.
2.1. Max–Min Ant System
The Max–Min Ant System (MMAS) algorithm was developed by Stutzle, T etc . The algorithm that suggests a solution to the TSP, which is a discrete test issue, by utilizing this attribute of ants, was proposed by Dorigo. M etc . For a set of N towns, the goal of TSP is to find the best route which is shortest and covers each town once. So, it is a closed curve and the starting town is also the ending town. The distance of two towns in TSP is calculated by Euclidean distance, as follows:
In Eq. (1), i and j represents the last town and the next town, respectively. represents the distance from i to j. During one iteration, ants choose the route from town i to town j according to the probability formula as follows:
In Eq. (2), represents the probability of the next town j chosen. indicates the amount of pheromones between town i and j. indicates information pertaining to distance between town i and j whose value is defined as the quantity . Parameters are used to determine the significance between the amount of pheromones and the inter-city distance. Each ant complete a tour until reaching the end town. Each iteration is defined as the interval in (t, t + 1) where each of the M ants moves once. After one iteration, each of the M ants has left the pheromone trial on a tour where they have gone. So the pheromone trial will be updated according to the following formula:
In Eq. (3), is the coefficient of evaporation and receives a value at the interval of [0-1], indicates the variation of the pheromone trial and only the shortest tour of the M ants can update its pheromone trial. represent the upper and lower pheromone bounds respectively. The pheromone trial is limit between as follows:
2.2. The Basic Definition of Fractional Calculus
There are different definitions for fractional calculus in terms of different angles to analyze the application issues. So far, there isn't a uniform expression of fractional calculus. Among those expressions, there are three classic fractional calculus definitions, which are the definitions from Grümwald-Letnikov, Riemann-Liouville and Caputo. The Grümwald-Letnikov definition of fractional calculus is as follows:
where , suppose the integral part is [v]. when , it has n+1 order continuous derivative, and the fractional order Grümwald-Letnikov definition can be express as follows :
In optimization, 3-Opt is a simple local search algorithm for solving the travelling salesman problem and related network optimization problems . And 3-Opt algorithm is the best one among k-opt algorithms. For a tour route, 3-Opt algorithm selects three different sides from it, and divides the route into three sections. If the original one isn't the shortest route, it will be replaced by the shortest one. Repeat until all possible combinations are traversed.
1. Initialize a tour route as .
2. Then select three random cities as ,, in fig. 1; ,, , and, , , Break edges then use 3-Opt algorithm to improve the tour .
3. If , a new tour route replaces the original tour route as .
4. Repeat 2 and 3 until all possible combinations are traversed.
3. Proposed Method and Analysis (FS-MMAS)
In general, ants can select the next city by the probability formula. If ants select a wrong city, the pheromone trials of the wrong route will be updated and increased. As a result, the algorithm falls into local minimums which is not what we expect. In this paper, a self-adaptive method is proposed. Ants select not only the best city but also other probable cities. The probability formula is changed as follows:
In Eq. (8), the probability formula is improved based on the MMAS algorithm. Firstly, each ant of M ants select the next town j which has the highest radio of . Then it will choose other towns S which is defined as follows:
In Eq. (9), is the coefficient and receives a value at the interval of [1-2]. As a result, a few of tours may appear with the varied topography. In this way, the new method can be self-adaptive. Ants may select other closer cities, which contributes to the probability of finding the global optimization. In the MMAS algorithm, only the best ant can update its pheromone trials of the traverse route which it goes through. But MMAS can't take advantage of spatial information after one iteration. In this paper, a fractional-order weighted method is proposed. All the traverse routes of the ants are sorted according to their length, such as . And a few of them which have shorter tour length update their pheromone trials as follows:
In Eq. (10), the difference coefficient of the fractional order is imported as a weight of ants which is determined by the tour length of the ant. So, MMAS is improved to be a multi-scale method through the nonlinear weighting. r represents the number of ants which are selected to update their pheromone trials. k is a coefficient and varies from 1 to r. is the quantity of pheromone laid on path (i, j) by the kth ant between time t and t + 1. In Eq. (11), is a fractional-order degree and is set to a positive number. Besides, can be calculate as Eq. (12), Q is a constant and is the tour length of the ant and indicates the length of the tour of the kth ant. Referring to Eq. (10), suppose that FS-MMAS could converge to the global optimization after t iterations and Q is set to 1. Hence, Eq. (10) can be expressed as follows:
In Eq. (13), represents the value of the global optimization. So, the maximum of the pheromone trial can be express as follows:
Suppose that the number of cities is set to N. Referring to Eq. (14), the minimum of the pheromone trial can be express as follows:
1. In the initialization processing,
2. for do
3. for do
4. M ants are randomly placed in N cities.
5. The tabu of route visited is set null.
6. while (the root of s ant has next town) do
7. The s ant select next town according to .
8. Then select other probable towns x which satisfy .
9. Add the j and x to the tabu.
10. end while
11. end for
12. Update the pheromone trials
13. end for
4. Experimental Results
The accuracy and performance of the proposed method is measured by standard deviation and average tour length on eight test problems taken from TSPLIB . During the experiment, the number of ants is the same as the number of cities. In Eq. (8), many extra routes may be obtained but less than the number of ants. is set to 0.3 and the value of is set as in all experiments. Q is a constant that is set to 1. FS-MMAS is operated throughout 1500 iterations and each TSP problem is repeated 50 times.
Fig. 2 shows that how the 3-Opt algorithm works. Lengths of the route are improved by the 3-Opt algorithm. 3-Opt algorithm is a local optimization algorithm, which can remove local cross-paths.
(a) St 70
(b) KroA 100
(c) Ch 150
In Table 1, Opt represents the global optimization. Best and Worst represent the shortest and longest route obtained after iteration. Average represent the average route of 50 runs. Prob. indicates the probability of the global optimization obtained by FS-MMAS. SD is the standard deviation and Error (%) represents the percentage relative error of results obtained by 50 runs.
|Method||Problem OPT||Eil51 426||Berlin52 7542||Eil76 538||St70 675||Kroa100 21,282||Eil101 629||Lin105 14,379||Ch150 6,528|
|ACOMAC (2004) ||Avg.||430.68||555.70||21,457.00|
|ACOMAC+NN (2004) ||Avg.||430.68||555.90||21,433.30|
|RABNETTSP (2006) ||Avg.||438.70||8,073.97||556.10||21,868.47||654.83||14,702.17||6753.20|
|Modified RABNETTSP (2009) ||Avg.||437.47||7932.50||556.33||21,522.73||648.63||14,400.7||6738.37|
|SA ACO PSO (2011) ||Avg.||427.27||7542.00||540.20||21,370.30||635.23||14,406.37||6563.70|
|ACO+2 opt (2012) ||Avg.||439.25||7556.58||23,441.80||672.37|
|WFA with 3 opt (2013) ||Avg.||426.60||7542.00||539.44||21,282.80||633.50||14,459.40||6700.10|
|ACO with Taguchi Method (2013) ||Avg.||435.40||7635.40||565.50||21,567.10||655.00||14,475.20|
|ACO with ABC (2014) ||Avg.||433.39||7544.37||557.98||700.58||22,435.31||683.39||6677.12|
|Propose Method FSMMAS||Avg.||426.76||7542.00||538.74||676.98||21,336.05||633.20||14,385.00||6555.97|
|Method||Problem OPT||Eil51 426||Berlin527 542||Eil76 538||St70 675||Kroa100 21,282||Eil101 629||Lin105 14,379||Ch150 6528|
In Table 2, eight experimental results of FS-MMAS are compared with the results of studies in the literature. It can be seen that FS-MMAS has better performance in terms of Berlin 52, Eil 76, St 70, Eil 101, Lin 105 and Ch 150. More precisely, the results obtained by FS-MMAS for Eil 51, Berlin 52, Eil 76, St 70, KroA 100 and Lin 105 are close to the global optimization whose percentage relative errors are less than 0.3%. As we see from Table 3 and Fig. 3, the results of FS-MMAS for Eil 51, Berlin 52, Eil 76, St 70 and Eil 101 are better than those by MMAS. However, the results obtained by FS-MMAS for KroA 100, Lin 105 and Ch 150 are similar to those by MMAS.
In this paper, a fractional-order weighted and self-adaptive method based on the Max-Min Ant System with 3-Opt algorithms is proposed in order to make full use of spatial information and find the global optimization. In this method, ants could select the next city multi-scalely and self-adaptively, which contributes to improving the probability of finding the global optimization. And 3-Opt algorithm is used to avoid falling into local minimums. Eight different benchmark problems were tested with FS-MMAS, whose performance is determined by standard deviation and average tour length. In most cases, FS-MMAS has better performance than other methods. It can be concluded that FS-MMAS is effective and efficient to solve the optimization problems. There is no doubt to see further developments in application based on FS-MMAS in the future. So the next research will focus on the application of the FS-MMAS algorithm, and we expect that it has better performance at the design of Large Scale Integrated circuit, Vehicle Scheduling Problem, Routing Problem etc.