Year: 2012

Venue: 2012 7th International Conference on Computing and Convergence Technology (ICCCT), 965–969. IEEE

Type: conference

Citations: Cited by 3 (per OpenAlex)

Abstract

Ant Colony System (ACS) is one of the best algorithms to solve NP-hard problems. However, ACS suffers from pheromone stagnation problem when all ants converge quickly on one sub-optimal solution. ACS algorithm utilizes the value between nodes as heuristic values to calculate the probability of choosing the next node. However, one part of the algorithm, called heuristic function, is not updated at any time throughout the process to reflect the new information discovered by the ants. This paper proposes an Enhanced Ant Colony System algorithm for solving the Travelling Salesman Problem. The enhanced algorithm is able to generate shorter tours within reasonable times by using accumulated values from pheromones and heuristics. The proposed enhanced ACS algorithm integrates a new heuristic function that can reflect the new information discovered by the ants. Experiments conducted have used eight data sets from TSPLIB with different numbers of cities. The proposed algorithm shows promising results when compared to classical ACS in term of best, average, and standard deviation of the best tour length.

Keywords

Ant colony optimizationant colony systemheuristic functiontraveling salesman problem.
📄 Full text (23,933 characters)extracted from the PDF · click to expand
New Heuristic Function in Ant Colony System for the Travelling Salesman Problem Mustafa Muwafak Alobaedy School of Computing College of Arts and Sciences, Universiti Utara Malaysia, 06010 Sintok, Kedah, Malaysia. E-mail: new.technology@hotmail.com Ku Ruhana Ku-Mahamud School of Computing College of Arts and Sciences, Universiti Utara Malaysia, 06010 Sintok, Kedah, Malaysia. E-mail: ruhana@uum.edu.my Abstract— Ant Colony System (ACS) is one of the best algorithms to solve NP-hard problems. However, ACS suffers from pheromone stagnation problem when all ants converge quickly on one sub-optimal solution. ACS algorithm utilizes the value between nodes as heuristic values to calculate the probability of choosing the next node. However, one part of the algorithm, called heuristic function, is not updated at any time throughout the process to reflect the new information discovered by the ants. This paper proposes an Enhanced Ant Colony System algorithm for solving the Travelling Salesman Problem. The enhanced algorithm is able to generate shorter tours within reasonable times by using accumulated values from pheromones and heuristics. The proposed enhanced ACS algorithm integrates a new heuristic function that can reflect the new information discovered by the ants. Experiments conducted have used eight data sets from TSPLIB with different numbers of cities. The proposed algorithm shows promising results when compared to classical ACS in term of best, average, and standard deviation of the best tour length. Keywords: Ant colony optimization, ant colony system, heuristic function, traveling salesman problem. I. INTRODUCTION Biological ants have the ability to discover the shortest route from the nest to the source of food [1]. Although they do not have an advanced vision system [2], they have the ability to communicate with the environment. Ants use a chemical substance called a “pheromone” to communicate with the environment and between each other [3]. Pheromone substance has an evaporation property which is a powerful mechanism to update the route information. While an ant moves looking for food, it deposits a pheromone along the path. The following ant will, more likely, select the route with richer pheromones. This mechanism will make the ant choose the shortest path. In 1992, Marco Dorigo proposed the first Ant Colony Optimization (ACO) algorithm to search for an optimal solution in graphs to solve optimization problems such as the travelling salesman problem, job scheduling and network routing [1]. The variants of ACO are: (i) Ant System (AS) [4] [5] [6]. (ii) The first improvement on the ant system, called the Elitist strategy for Ant System (EAS) [7]. The improvement was done by providing strong additional reinforcement to the arcs belonging to the best tour found since the start of the algorithm. (iii) Rank-Based Ant System (AS rank ), another improvement over ant system is the rankbased version of ant system introduced by [8]. In AS rank, each ant deposits an amount of pheromone that decreases with its rank. This is similar to EAS, where the best-so-far ant always deposits the largest amount of pheromone. (iv) Max-Min Ant System (MMAS) is another variant of ACO, this algorithm has four direct improvements over AS [9] [10]. MMAS strongly exploits the best tours found, limits the possible range of pheromone trail values to the interval [t min , t max ], the pheromone trails are initialized to the upper pheromone trail limit, and pheromone value is reinitialized each time the system approaches stagnation or when no improved tour has been generated for a specific number of iterations. (v) Ant Colony System (ACS), this improvement has been introduced by [3] [11] to improve the performance of AS. In the ACS algorithm, ants apply exploitation and exploration mechanisms when they select the next node to move to. In addition, ACS applies local pheromone updates and global pheromone updates to direct the search for the next iteration. The global update is calculated based on the quality of the best solution so far while the local update applies an evaporation concept. ACS is used to solve the Travelling Salesman Problem (TSP) [3] [11] [12]. TSP is one of the most typical NP-Hard problems in the optimization field [13]. In TSP there are a set of cities {C 1 , C 2 , C..., C N } and for each pair of cities, the distance is d (Ci, Cj). The solution for this problem is to find the shortest tour, that is to find a permutation π of the cities that minimizes the quantity σ Ɏܿ൫݀ ሺ ݅ ሻ ǡܿɎ ሺ ݅൅ͳ ሻ ൯൅݀൫ܿɎ ሺ ܰ ሻ ǡܿɎ ሺ ͳ ሻ ൯Ǥ ேିଵ ௜ୀଵ Such a problem is an optimization problem. Therefore, an approximation algorithm is required to find near optimal solutions rather than optimal solutions. ACS algorithm is one of those algorithms used to solve the travelling salesman problem. In this study, enhancement of the ACS algorithm to solve the TSP is proposed. The rest of the paper is organized as follows. Section II describes the structure of the ACS algorithm while Section III presents the proposed enhanced - 965 - ACS algorithm. Section IV discusses the implementation of the proposed algorithm in solving TSP and Section V presents the experimental results. Concluding remarks and future works are presented in Section VI. II. ANT COLONY SYSTEM Dorigo and Gambardella [3] used the ant colony system to solve the travelling salesman problem. The algorithm in their study consists of three parts. The first part of the algorithm deals with the exploitation of the environment experience discovered by the ants using an aggressive action choice rule. That is, when ant k wants to move from city i to city j, it will choose the city using a rule called the pseudorandom proportional rule, given by: ൌቊ݆ ƒ”‰ƒš ேא௟ ೔ ೖ  ݈݅߬൛ ሾ ݈݅ߟ ሿ ఉ ൟǡ‹ˆݍ൑ݍͲǢ ܬǡ‘–Ї”™‹•‡ where q is a random variable uniformly distributed in [0, 1], q0 (0 ≤ q0 ≤ 1) is a parameter, and J is a random variable selected according to the probability distribution given by the following formula: ܲ ݆݅ ݇ = ሿ݆݅߬ሾ Ǥ ሿ݆݅ߟሾ ߚ σ ሿ݈݅߬ሾ ߙ ሿ݈݅ߟሾ ߚ ܰא݈ ݅ ݇ , if ܰא݆ ௜ ௞ . The second part of the algorithm deals with a global update which is the mechanism of pheromone evaporation and pheromone deposit on the arcs of the best-so-far tour. In ACS only one ant (the best-so-far ant) is allowed to add pheromones after completing the iteration. The update is implemented using the following equation: ݆݅߬ ՚ ሺ ܲͳെ ሻ ߬ο݌൅݆݅ɒ ௜௝ ௕௦ ׊ǡ ሺ ݆ǡ݅ ሻ ܶא ௕௦  where P is the evaporation rate, and ߬ο ௜௝ ௕௦ = 1/ C bs . The third part of algorithm deals with local updates which occur each time an ant moves on the arc (i, j) to move from city to city, this process will remove some pheromones from the arc to increase the probability of exploring another path. In local update the ants apply the update rule immediately after moving on the arc (i, j) during the tour construction using the following rule: ݆݅߬ ՚ ሺ ͳെɌ ሻ ɒ ୧୨ ൅Ɍɒ ଴ whereɌ, 0 < Ɍ < 1, and ɒ Ͳ are two parameters. The value of ɒ Ͳ is equal to the initial value for the pheromone trail. In the ACS algorithm, the updating functions focus on pheromones only and neglect the heuristic value in the whole process of the algorithm. Enhancement of the ACS algorithm has been proposed by many researchers to solve the optimization problem such as those in [14] [15] [16] [17] [18]. They conducted different studies to enhance the ACS algorithm in order to solve TSP. In their works, they propose many ideas to increase the algorithm performance. However, all the studies focus on local and global pheromone update functions. In general, problems are modeled as graphs that consist of nodes and edges. The ACS algorithm utilizes the values between the edges as a heuristic value for the calculation of probability to choose the next node. However, the heuristic value is not updated at any time during execution. Such a condition is a contradiction to the concept of heuristics. According to [19] the word “heuristic” comes from Greek and means “to know”, “to find”, “to discover” or “to guide an investigation”. Therefore, an update function for heuristic value is needed to reflect the new information discovered by the ants. Hence, this research will focus on updating the heuristic value based on the tour quality to improve the algorithm performance. III. PROPOSED ENHANCED ANT COLONY SYSTEM ALGORITHM The proposed enhanced ACS algorithm integrates a new heuristic function that will update the heuristic value every time the ants find a better solution in the iteration. This is done to reflect the new status of the solution. After the ant constructs its solution, a global update process will be applied to update the best-so-far solution. This event will change the environment for the next iteration. A function will be triggered at this moment to reflect this change and thus a new heuristic value will be obtained. The new information will be applied to the best-so-far edge. The pseudo-code for the new heuristic function is shown in Fig. 1. Step 0: for each path in the best tour do step 1 to 2 Step 1: if path i (i = 1, 2, n) is not updated before do step 2 Step 2: η i = η i + (δ/ best-so-far tour) // δ is parameter from (0-10) End Figure 1: Pseudo-code for the new heuristic function By applying this function, the heuristic values will change according to the quality of the best-so-far solution. Best solution will increase the heuristic value and vice versa. The parameter δ will determine how much the influence of the updating value should be applied to the heuristic value. If δ = 0 then no update will occur which reflects the heuristic value in the classical ACS. The heuristic value on each edge will be updated only once during the whole process if it is belongs to the best-so-far edge. This condition will eliminate the issue of stagnation that may occur if the heuristic value updates more than once. After conducting many experiments, δ = 0.5 is found to produce good results. However, this depends on the problem domain and dimensions. The proposed Enhanced Ant Colony System (EHF_ACS) algorithm is depicted in Fig. 2. The difference between this algorithm and the classical ACS is the application of the enhanced heuristic function after global pheromone update activity is performed. - 966 - Procedure EHF_ACS Initialize parameters While (termination condition not met) do Construct Ants Solutions Apply Local Pheromone Update End - While If (New Ant Solution better than Global Best Solution) Global Best Solution = New Ant Solution Apply Global Pheromone Update Apply New Heuristic Function End - Procedure Figure 2: The EHF_ACS algorithm IV. EHF_ACS ALGORITHM FOR TRAVELLING SALESMAN PROBLEM In order to apply EHF_ACS to the travelling salesman problem, several initializations will have to be performed as follows: (i) Calculate distance between cities using Euclidean distance method. (ii) Calculate heuristic values using heuristic function (1/distance). (iii) Initialize pheromone on all paths using the method (1 / (No of cities * nearest neighbor solution). (iv) Set the variables: alpha (α) = 1, beta (β) = 2, delta (δ) = 0.5, q = 0.9, evaporation rate (p) = 0.1, 0 < p ≤ 1, number of ants = 10, and number of iteration = 10000. If α = 0, the closest cities are more likely to be selected. This corresponds to the classic stochastic greedy algorithm with multiple starting points since ants are initially randomly distributed over the cities. If β = 0, only pheromone amplification is at work. In other word, only pheromone is used without any heuristic bias. This generally leads to poor results and in particular, for values of α > 1 it leads to the rapid emergence of a stagnation situation. This is a situation in which all the ants follow the same path and construct the same tour, which, in general, is strongly suboptimal. δ = 0.5 is used in all experiments. If δ = 0, then no change in heuristic value will happen. If δ > 10, the ant will be bias to this path which will affect the behavior of the algorithm. The parameter p is used to avoid unlimited accumulation of pheromone on any trails and it enables the algorithm to ‘‘forget’’ bad decisions previously taken. No evaporation is applied if p = 0, and all pheromone has evaporated if p = 1. Ants will be randomly distributed to cities after the initialization process. All ants will move concurrently and each ant will start building a solution which is a function of the distance between the cities. Each time an ant moves from a city to the next city, the pheromone on that connection (edge) will be evaporated using a local update mechanism. After all ants have constructed their solutions, the best solution will be selected based on the shortest tour. The best solution will be saved as global best solution if it is better than the current global best solution. A global update will be applied at this step using the global best solution. The benefit from global update is to increase the probability of selecting the same city (or the edge) for the next iteration. The function of the local update is to reduce the probability of selecting the same city (or edge) for the following ant. Local update helps to reduce stagnation problems when sometimes the ACS algorithm does not show a convergence behavior. In other words, ants do not converge to the generation of a common path [3][11]. Local update also helps to increase the exploration mechanism. The heuristic function will start immediately after the global update in order to update the heuristic value. Fig. 3 shows the EHF_ACS algorithm implementation for TSP. Procedure EHF_ACS for TSP Step 0: Read TSP file (Coordinate points X & Y); Step 1: Calculate distance; Step 2: Calculate heuristic values; Step 3: Initialize pheromone; Step 4: Set Algorithm parameters; Step 5: Initialize ants array; Step 6: While (termination condition not met) do steps 7-15 Step 7: For each ant (ant[i], i = 0, 1, ..., m) do step 8; Step 8: Create Thread; /// one thread for each ant to move in parallel End - For Step 9: For each Thread (Thread i, i = 0, 1, ..., m) do Steps 10-11; Step 10: Construct ant[i] Tour; Step 11: Apply Local Pheromone Update; End - For Step12: If (Best Ant i tour is shorter than Global Best tour) Do Step 13 Step 13: Global Best tour = Best Ant i tour; Step 14: Apply Global Update Pheromone; Step 15: Apply New Heuristic Function; End – End step 6 End - Procedure Figure 3. EHF_ACS algorithm for TSP The quality of each ant solution is measured using the tour length. In this case, the shorter tour length the better is the solution quality. After completing all iterations, the heuristic value is updated for each edge that has not been updated before. - 967 - V. EXPERIMENTAL RESULTS OF PROPOSED ALGORITHM ON TRAVELLING SALESMAN PROBLEM Experiments were conducted on eight data sets from TSPLIP with different sizes. The Core i7-2600 CPU @ 3.4 GHz machine with 8 GB RAM was used in conducting the experiments. The ACS algorithm and EHF_ACS algorithm were implemented using C# programming language. The multi-thread concept was used in the implementation of the algorithms to enable the parallel movement of ants while constructing their tours. Experiments were performed to test the validity of the ACS algorithm implementation, and comparison of results was completed with [3][11]. The settings of the parameters are as follows: α = 1, β = 2, δ = 0.5, q = 0.9, m = 10, ݌ൌͲǤͳ, ɒ ଴ = 1/(N*nn), where ɒ ଴ is the initial pheromone value, N = number of cities and ݊݊ = nearest neighbour. Experiments were then performed to test credibility of the proposed algorithm. TSPLIB data sets were used in the experiments. Table I shows the comparisons of results of the proposed algorithm with Best Known Solution and ASC results from previous studies [17][20][21][22]. The results show that the proposed algorithm produces better solutions quality in terms of best and mean tours, and smaller standard deviation (SD). Seven (7) mean tour results obtained by the proposed algorithm are better than ACS and for the best tour results the proposed algorithm is on a par with ACS. The mean and SD shows the robustness of the proposed algorithm and its ability to guide the ants to quickly converge to the best solution. Each data set was run five times to calculate the mean and SD. All the experiments using EHF_ACS produced good solutions with minor differences between the runs. The mean tour length differences between EHF_ACS and ACS are summarized in Table II. The results show that the proposed algorithm was able to improve the quality of solutions in terms of tour length as high as 5.5 % in att48 instances. The classical ACS algorithm produced better results than the proposed algorithm when ei176 instance was used. However, the proposed algorithm produces better results for standard deviation in all instances which implied that better results are produced by the proposed algorithm. TABLE I: PERFORMANCE OF EHF_ACS ALGORITHM ON TSP a. SD is not calculated in the original study. TABLE II: SUMMARY OF MEAN TOUR DIFFERENCES Instances Differences in Mean Tour Length (Subtraction) |Mean ACS - Mean EHF_ACS| % att48 1980.6 5.56 % eil51 0.21 0.05 % st70 5.3 0.78 % eil76 -3.65 0.67 % rat99 7 0.57 % kroA100 144.1 0.67 % eil101 7.67 1.20 % rat195 5.76 0.24 % TSP instance Optimum Source ACS EHF_ACS |Mean ACS – Mean EHF_ACS|% Mean SD Best Mean SD Best att48 33522 [21] 35595 a--- 33780 33614.4 43.135 33587 5.56 % eil51 426 [17] 428.21 2.05 426 428 1.095 426 0.05 % st70 675 [22] 682.50 2.82 677 677.2 0.748 676 0.78 % eil76 538 [17] 541.55 2.97 538 545.2 1.469 543 0.67 % rat99 1211 [22] 1219.60 6.45 1211 1212.6 0.8 1211 0.57 % kroA100 21282 [20] 21441.30 112.13 21315 21297.2 11.51 21282 0.67 % eil101 629 [17] 640.67 5.86 630 633 2.449 631 1.20 % rat195 2323 [22] 2352.76 15.79 2334 2347 4.147 2342 0.24 % - 968 - VI. CONCLUSION The proposed enhanced heuristic function was able to reflect the new heuristic information obtained during the implementation of the ant colony system algorithm to solve the travelling salesman problems. This new information represents the heuristic experience gained by the ants while moving along the paths between cities. The new information will guide ants in their decision for the next iteration. The proposed enhanced algorithm outperforms ant colony system algorithm in term of shortest tour, mean, and standard deviation. Future work can focus on improvement in the data structure where better solutions can be obtained within a shorter time. A CKNOWLEDGMENT The authors wish to thank the Ministry of Higher Education Malaysia for funding this study under Fundamental Research Grant Scheme, S/O code 11980 and RIMC, Universiti Utara Malaysia, Kedah for the administration of this study. R EFERENCES [1] M. Dorigo and T. Stutzle. Ant colony optimization. Cambridge, Massachusetts, London, England: MIT Press, 2004. [2] S. Camazine, J. Deneubourg, N. Franks, J. Sneyd, G. Theraula, and E. Bonabeau. Self-Organization in Biological Systems. New Jersey: Princeton University Press, 2003. [3] M. Dorigo, and L.M. Gambardella. “Ant Colonies for the Travelling Salesman Problem”. BioSystems Journal, Vol. 43(2), pp. 73–81, 1997. [4] A. Colorni, M. Dorigo, and V. Maniezzo. Distributed “Optimization by Ant Colonies”. Proceedings of the first European Conference on Artificial Life, Cambridge, 1991, pp. 134 – 142. [5] M. Dorigo, V. Maniezzo, and A. Colorni. “Positive Feedback as a Search Strategy”. Milano, Italy: Politecnico di Milano. (Report No. 91- 016), 1991. [6] M. Dorigo, V. Maniezzo, and A. Colorni. “Ant system: optimization by a colony of cooperating agents”. Journal of Transactions on Systems, Man, and Cybernetics, Part B: Cybernetics, IEEE, Vol. 26(1), pp. 29 – 41, 1996. [7] M. Dorigo. “Optimization, learning and natural algorithms” (Unpublished doctoral dissertation), Politecnico di Milano, Italy. 1992. [8] B. Bullnheimer, R. F. Hartl, and C. Strauss. “A New Rank-Based Version of the Ant System: A Computational Study”. Central European for Operations Research and Economics, Vol. 7(1), pp. 25 – 38, 1999. [9] T. Stutzle. “MAX-MIN ant system for quadratic assignment problems”. Germany: Intellektik Group, Department of Computer Science, Darmstadt University of Technology (Report No. AIDA-97-04), 1997. [10] T. Stutzle, and H. Hoos. “MAX-MIN ant system and local search for the traveling salesman problem,” Proceedings of IEEE International Conference on Evolutionary Computation. Indianapolis, 1997, pp. 309 – 314. [11] M. Dorigo, and L. M. Gambardella. “Ant colony system: a cooperative learning approach to the traveling salesman problem”. IEEE Tran sactions on Evolutionary Computation, Vol. 1(1), pp. 53 – 66, 1997. [12] L. Gambardella, and M. Dorigo. “Solving symmetric and asymmetric TSPs by ant colonies”. Proceedings of the IEEE Conference on Evolutionary Computation, Japan, 1996, pp. 622-627. [13] E. L. Lawler, J. K. Lenstra, A. H. G. Rinnooy kan, and D. B. Shmoys, The Traveling Salesman Problem, Eastbourne: John Wiley & Sons, 1985. [14] S. Ilie, and C. Badica. “Effectiveness of Solving Traveling Salesman Problem Using Ant Colony Optimization on Distributed Multi-Agent Middleware,” Proceedings of the 2010 International Multiconference on Computer Science and Information Technology, Wisla, Poland, 2010, pp. 197 – 203. [15] M. Lianming. “An Efficient Ant Colony System for solving the new Generalized Traveling Salesman Problem,” Proceedings of the IEEE International Conference on Cloud Computing and Intelligent Systems, 2011, Beijing, China, 2011, pp. 401 – 412. [16] L. Liqiang, S. Yang, and D. Yuntao. “Cooperative Multi-ant Colony Pseudo-parallel Optimization Algorithm,” Proceedings of the International Conference on Information and Automation, China, 2010, pp. 1269-1274. [17] Y. Wei-Jie, H. Xiao-min, Z. Jun, and H. Rui-Zhang. “Self- Adaptive ant colony system for the traveling salesman problem,” Proceedings of the IEEE International Conference on Systems, Man and Cybernetics, San Antonio, Texas, USA, 2009, pp. 1399–1404. [18] L. Xiaojiang, L. Jiapin, and C. Min. “Ant colony algorithm for large scale TSP”. Proceedings of the International Conference on Electrical and Control Engineering, Yichang, China, 2011, pp.573-576. [19] R. Sarker, H. A. Abvbass, and C. Newton. “Heuristic and optimization for knowledge discovery”. United States of America: Idea Group Pub, 2002. [20] A. Aljanaby, K. R. Ku-Mahamud, and N. M. Norwawi. “Optimizing Large Scale Combinatorial Problems Using multiple Ant Colonies Algorithm Based on Pheromone Evaluation Technique.” International Journal of Computer Science and Network Security, vol. 8(10), pp. 54 – 58, 2008. [2 1] L. Kangshun, K. lanlan, Z. Wensheng, and L. Bing. “Comparative analysis of genetic algorithm and ant colony algorithm on solving traveling salesman problem.” Proceedings of the First IEEE International Workshop on Semantic Computing and Systems, Huangshan, China, 2008, pp. 72 – 75. [22] Y. Wei-Jie, and Z. Jun. “Pheromone-distribution-based adaptive ant colony system.” Proceedings of the 12th Annual Conference on Genetic and Evolutionary Computation, New York, USA, 2010, pp. 31-38. - 969 -

Automatically extracted. Refer to the original PDF for figures, tables, and formatting.


Cited by 3 papers

Top 2 citing works, by citation count (via OpenAlex).

  1. Novel Ant Colony Optimization Methods for Simplifying Solution Construction in Vehicle Routing Problems (2016) · IEEE Transactions on Intelligent Transportation SystemsCited by 116
  2. TSP Solution Using Dimensional Ant Colony Optimization (2015)Cited by 8

Cite this


Other peer-reviewed work on overlapping topics.

  1. Ku-Mahamud, K. R., & Mustafa Muwafak Alobaedy (2013). New Heuristic Function in Ant Colony System Algorithm for Optimization. Proceedings of Recent Advances in Mathematical Methods, Intelligent Systems and Materials (MAMECTIS 2013, 13–18). Cited by 2
  2. Mustafa Muwafak Alobaedy (2015). Hybrid Ant Colony System Algorithm for Static and Dynamic Job Scheduling in Grid Computing. PhD Thesis, Universiti Utara Malaysia. Cited by 1
  3. Mustafa Muwafak Alobaedy and Ku Ruhana Ku-Mahamud (2015). Low and High Level Hybridization of Ant Colony System and Genetic Algorithm for Job Scheduling in Grid Computing. Proceedings of the 5th International Conference on Computing and Informatics, ICOCI 2015. DOI