Professional Documents
Culture Documents
C HUN -W EI T SAI1 , J UI -L E C HEN3 , S HIH -PANG T SENG2,3 , M ING -C HAO C HIANG2 , AND C HU -S ING YANG1
1
Department of Electrical Engineering, National Cheng Kung University, Tainan 70101, Taiwan cwtsai87@gmail.com; csyang@ee.ncku.edu.tw
Department of Computer Science and Engineering, National Sun Yat-sen University, Kaohsiung 80424, Taiwan tsp@mail.tajen.edu.tw; mcchiang@cse.nsysu.edu.tw
3
Department of Computer Science and Information Engineering, Tajen University, Pingtung 90741, Taiwan reler@mail.tajen.edu.tw; tsp@mail.tajen.edu.tw
A BSTRACT Genetic algorithm (GA) is one of the most widely used metaheuristics in nding the approximate solutions of complex problems in a variety of domains. As such, many researchers have focused their attention on enhancing the performance of GAin terms of either the speed or the quality but rarely in terms of both. This paper presents an efcient hybrid metaheuristic to resolve these two seemingly conicting goals. That is, the proposed method can not just reduce the running time of GA and its variants, but it can also make the loss of quality small, called High Performance Hybrid Metaheuristic (or HPHM for short). The underlying idea of the proposed algorithm is to leverage the strengths of GA, Tabu Search, and the notion of Pattern Reduction. To evaluate the performance of the proposed algorithm, we use it to solve the traveling salesman problem. Our experimental results indicate that the proposed algorithm can signicantly enhance the performance of GA and its variantsespecially the speed. Key Words: genetic algorithm, pattern reduction, and traveling salesman problem
1. Introduction
Over the past three decades or so, metaheuristics have been probably the most widely used techniques in nding the true or approximate solutions of complex and large problems [1] in a reasonable time. Researchers working on metaheuristics have developed many efcient algorithmsin terms of the speed or the quality but rarely in terms of both. Among them are genetic algorithm (GA) [2, 3, 4, 5, 6, 7], tabu search (TS) [8, 9, 10], simulated annealing (SA) [11, 1], ant colony system (ACS) [12], particle swarm optimization (PSO) [13], bees algorithm [14], harmony search [15], and the others. However, until now, no efcient method is ever found to solve NP-complete problems [16] in a reasonable time, not even metaheuristics. Even more important, each metaheuristic has its pros and cons. As such, all the metaheuristics are important in the sense that they can be used to solve problems in different domains. Moreover, in many situations, a problem to which an efcient solution can not be provided by a metaheuristic may be solved efciently by a combination of metaheuristics, say, A and B. One of the many possibilities is that A is GA and B is TS. If we combine these two algorithms to create a hybrid algorithm, say, C, TS in C might be able to be used to prevent GA, also in C, from falling into local optima at early generations in its convergence process. Of course, hybrid algorithms have been created and used in enhancing the performance of metaheuristics for a long time. However, most of them take into account either the speed or the quality but rarely both at the same time. In this paper, we present an efcient hybrid metaheuristic to solve the dilemma of not being able to reduce the running time of GA and its variants [17] while at the same time making the loss of quality small. The proposed algorithm is called High Performance Hybrid Metaheuristic (or HPHM for short) and is motivated by the observation that many sub-solutions of GA [17] will quickly become more and more similar to each other or even the same as the number of iterations grows. For this reason, an alternative search strategy is generally required to prevent the diversity, or search ability, of the population from being reduced too quickly, that is, to cut it down to one and only one or a very small number of chromosomes (solutions). The proposed method is in essence a hybrid metaheuristic that leverages the strengths of three algorithms: GA [2], TS [10], and Pattern Reduction (PR) [17]. More precisely, the proposal algorithm uses GA to guide the global search, TS to guide the local search (i.e., to enhance the quality), and PR to reduce the computation time of a GA and its variants. To evaluate the performance of HPHM, we use it to solve the traveling salesman problem (TSP) and compare the results with those found by GA and its variants. We also analyze the computation time and the quality of the end result because they make a good indicator of the performance of the algorithms evaluated. Our simulation results indicate that the proposed algorithm can signicantly reduce the computation time of GA and its variants while at the same time making the loss of quality smallespecially PREGA we proposed previously. The remainder of the paper is organized as follows. Section 2 gives a brief introduction to the problem that is used to evaluate the performance of the proposed algorithm, the relationships between metaheuristics and PR, and the hybrid genetic algorithm. Section 3 provides a detailed description of the proposed algorithm rst and then gives a simple example to illustrate how HPHM works, exactly. Performance evaluation of the proposed algorithm is presented in Section 4. Conclusion is given in Section 5.
2. Related Work
In this section, we give a brief introduction to the TSP that is used to evaluate the performance of the proposed algorithm, the relationships between metaheuristics and PR, and the hybrid genetic algorithm.
attentions of researchers from different backgrounds including applied mathematics and computer science. In the area of combinatorial optimization, the TSP [18, 19, 20] has been widely used as a yardstick by which the performance of a new algorithm is measured because TSP is NP-complete [21, 22, 23]. As such, any efcient solution to the TSP can be used to solve all the NP-complete problems [21, 22, 23] efciently. On the other hand, metaheuristics have been widely used in solving the TSP. The problem asks for a solution that is permutation c(1) , c(2) , . . . , c(n) of the given n cities that minimizes ! n1 X D= d(c(i) , c(i+1) ) + d(c(n) , c(1) ). (1)
i=1
In short, Eq. (1) gives the distance D of the tour that starts at city c(1) , visits each city in sequence, and then returns directly to c(1) from the last city c(n) .
3.1. Motivation
The High Performance Hybrid Metaheuristic is motivated by the observation that the solutions of simple, or traditional, GA (sGA) will become more and more similar to each other or even the same as the number of iterations increases [2], especially for the fast genetic algorithms (FGAs) such as LEM [27], MSGA [28, 29], and PREGA [17]. Most of the FGAs try to nd the same solution R in less time by either removing low-performance solutions from the population or using a fast convergence procedure to reduce the computation time. However, even though FGAs can nd solutions much faster than sGA can, they all face the premature convergence problema problem that can seriously degrade the quality of the end result of FGAs. An immediate solution to this problem is to increase the population size. However, increasing the population size increases the computation time. LEM [27] and MSGA [28, 29] both try to avoid the premature convergence problem by re-creating part
1
Simple GA (sGA) generally refers to GA with the original selection, crossover, and mutation operators and not combined with any other metaheuristics.
FOR
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Randomly generate an initial population S = {S1 , S2 , . . . , Sn } While the termination criterion is not met /* The Genetic Algorithm (GA) Phase */ For i = 1 to GGA Evaluate the tness value fi of each chromosome Si Select the tter chromosomes to reproduce Perform the crossover and mutation operators to generate a new generation of population S If (i > 2), perform PR [17] to detect and compress the common genes Let S = S End For /* The Tabu Search (TS) Phase */ Select the best solution from S and call it s For i = 1 to GTS Create a set of solutions St that is composed of the neighbors of s that are not currently in the tabu list Choose the best solution s in St Update the tabu list based on s Let s = s End For Recreate from the solution of TS s a set of solutions S for the GA phase End Output the nal result S
of the population. In this paper, we propose a different approach to solving the premature convergence problem. The detail of the proposed algorithm is given in the next subsection.
1 2 The GA Phase
2 1
3 3
4 4
5 6
6 5 The TS Phase 1
The operators of TS
3,4
Detection
1 2 1 2
2 1 2 1
3 3 3,4 3,4
4 4
5 6 5 6
6 5 6 5
PR for GA
Compression
1 5
5 1
3 3
4 4
2 2
6 6
generated just like the rst method. The only difference is that the rst gene is randomly generated from the genes not cloned. In other words, the set of chromosomes are generated in such a way that they are similar to, but not the same as s , so as to balance diversication and intensication.
3.3. An Example
A TSP with six cities is given in Fig. 2 as an example to illustrate how HPHM works, exactly. As Fig. 2 shows, the GA phase is essentially a combination of sGA and PR. As usual, sGA is composed of the selection, crossover, and mutation operators. It is the PR operator of the GA phase that takes the responsibility of detecting genes that are common to all the individuals rst and then compressing them so as to reduce the computation time at later generations. The PR algorithm will keep detecting and compressing common genes until it is high time to enter the TS phase at which HPHM will decompress the common genes that have been compressed. In addition, the so-far-best chromosome (the best solution s in Fig. 2) will be selected for the TS phase. In other words, the TS phase will perform the tabu search repeatedly until it is time to switch back to the GA phase or when the stopping criterion is met. The recreation operator is responsible for recreating the m 1 chromosomes in addition to s for the GA phase. Overall, HPHM will alternate between GA and TS phases until the stopping criterion is met.
4. Performance Evaluation
In this paper, the performance of the proposed algorithm is evaluated by using it to solve the TSP problem. All the empirical analyses were conducted on an IBM X3400 machine with 2.0 GHz Xeon CPU and 8GB of memory using CentOS 5.0 running Linux 2.6.18. Moreover, all the programs are written in C++ and compiled using g++ (GNU C++ compiler). For all the algorithms evaluated, the nearest-neighbor method [41] is used as the initial operator, and the 2-opt [42] is employed as the local search method. In addition, all the simulations use PMX as the default crossover operator of GA-based algorithms.
The benchmarks for evaluating the performance of these algorithms in solving the TSP problem are shown in Table 1. All the simulations are carried out for 30 runs, with the population size xed at 25, the crossover probability at 1.0, the mutation probability at 0.01, and the number of generations at 1,000 for all the algorithms compared. Furthermore, all the algorithms alternate between GA and TS once every 50 iterations. In other words, they perform GA for 50 iterations, TS for another 50 iterations, then back to GA for another 50 iterations, and so on until the stop criterion is met. Moreover, for all the simulations, PR is started at the second generation.
FOR
D d198 15,996.91 d493 36,554.30 d657 52,173.25 u724 45,088.78 pr1002 277,225.10 d1291 54,113.08 d1655 66,835.42 pr2392 408,105.20 T : Time in seconds.
F IGURE 3. Enhancement of time and quality of algorithms evaluated. As Table 2 shows, PREGA can reduce from 97.90% up to 98.37% the computation time of GAs while limiting the loss of the quality to no more than 3.08%. It, however, is still a loss, meaning that there is room to improve. EHM-E1 and EHM-E2 provide another solution to reduce the computation time of GA while minimizing the loss of the quality. In Table 2, the result also shows that EHM can also use the pattern reduction technique, called HPHM), to improve the quality of the end result of PREGA in addition to reducing the computation time, especially for the large datasets. The result of HPHM-E2 shows that cloning 90% of the new genes from the nal solution of TS can save more computation time than HPHM-E1, and it also makes the loss of the quality small compared to PREGA. Fig. 3 compares the performance of GA, PREGA, EHM-E1, EHM-E2, HPHM-E1, and HPHM-E2 in solving the TSP benchmark pr2392, using GA as the base for the purpose of comparison. The
Enhancement of Quality
Enhancement of Time
result of Fig. 3 also shows that HPHM-E2 outperforms all the other methods in terms of both the computation time saved and the quality enhanced. In summary, the proposed algorithm provides an efcient solution to balance the computation time and the quality of the end result of GA, especially when the problem is large.
5. Conclusions
The proposed algorithm is motivated by the observation that many time-efcient GAs are incapable of enhancing the quality of the end result, especially at the later generations of the convergence process. For this reason, in the paper, we presents a hybrid metaheuristic for enhancing the performance of GA and its variants, called HPHM. Our simulation results showed that the proposed algorithm can efciently enhance the performance of GA and its variants, in terms of the quality of the end result on several well-known data sets for the TSP. In particular, the proposed algorithm can keep fast GA-based algorithms from falling into local minima at the early generations. In the future, our goal is to try different hybrid strategies to further enhance the quality of the end result of GA and its variants.
REFERENCES [1] J. W. Pepper, B. L. Golden, and E. A. Wasil, Solving the traveling salesman problem with annealing-based heuristics: A computational study, IEEE Transactions on Systems, Man and CyberneticsPart A: Systems and Humans, vol. 32, no. 1, pp. 7277, 2002. [2] J. H. Holland, Adaptation in Natural and Articial Systems. Boston, MA: MIT Press, 1992. [3] D. E. Goldberg, Genetic Algorithms in Search, Optimization, and Machine Learning. Addison-Wesley Professional, 1989. [4] Z. Michalewicz, Genetic Algorithms + Data Structures = Evolution Programs. Berlin, Germany: Springer-Verlag, 1996. [5] S. Karungaru, M. Fukumi, and N. Akamatsu, Automatic human faces morphing using genetic algorithms based control points selection, International Journal of Innovative Computing, Information and Control, vol. 3, no. 2, pp. 247256, 2007. [6] F. Xhafa and J. Carretero, Genetic algorithm based schedulers for grid computing systems, International Journal of Innovative Computing, Information and Control, vol. 3, no. 5, pp. 10531071, 2007. [7] C.-H. Hsieh, W.-H. Ho, and J.-H. Chou, Optimal pid controllers design of pwm feedback time-varying systems using orthogonal-functions approach and genetic algorithm, International Journal of Innovative Computing, Information and Control, vol. 5, no. 2, pp. 387397, 2009. [8] F. Glover, Tabu searchpart I, ORSA Journal on Computing, vol. 1, no. 3, pp. 190206, 1989. [9] F. Glover, Tabu searchpart II, ORSA Journal on Computing, vol. 2, no. 1, pp. 432, 1990. [10] R. Mart, Multi-start methods, in Handbook of Metaheuristics (F. W. Glover and G. A. Kochenberger, eds.), (Boston, MA), pp. 355368, Kluwer Academic Publishers, 1993. [11] C. Lo and C. Hus, Annealing framework with learning memory, IEEE Transactions on Systems, Man and Cybernetics, Part A, vol. 28, no. 5, pp. 113, 1998. [12] M. Dorigo and L. M. Gambardella, Ant colony system: A cooperative learning approach to the traveling salesman problem, IEEE Transactions on Evolutionary Computation, vol. 1, no. 1, pp. 5366, 1997. [13] J. Kennedy and R. C. Eberhart, Particle swarm optimization, in Proceedings of the IEEE International Conference on Neural Networks, pp. 19421948, 1995. [14] D. T. Pham, A. Ghanbarzadeh, E. Koc, S. Otri, S. Rahim, and M. Zaidi, The bees algorithm, tech. rep., Manufacturing Engineering Centre, Cardiff University, Royaumes-Unis, 2005. [15] Z. W. Geem, J. H. Kim, and G. Loganathan, A new heuristic optimization algorithm: Harmony search, SIMULATION, vol. 76, no. 2, pp. 6068, 2001. [16] C. Blum and A. Roli, Metaheuristics in combinatorial optimization: Overview and conceptual comparison, ACM Computing Surveys, vol. 35, no. 3, pp. 268308, 2003. [17] S.-P. Tseng, C.-W. Tsai, M.-C. Chiang, and C.-S. Yang, Fast genetic algorithm based on pattern reduction, in Proceedings of the IEEE International Conference on Systems, Man and Cybernetics, pp. 214219, 2008. [18] E. L. Lawer, J. K. Lenstra, A. H. R. Kan, and D.B.Shmoys, The Traveling Salesman Problem. New York, NY: Wiley, 1985. [19] M. M. Flood, The traveling salesman problem, Operation Research, vol. 4, pp. 6178, 1955. [20] J. Yi, G. Yang, Z. Zhang, and Z. Tang, An improved elastic net method with time-dependent parameters for traveling salesman problem, International Journal of Innovative Computing, Information and Control, vol. 5, no. 4, pp. 10891100, 2009. [21] A. BARVINOK, The geometric maximum traveling salesman problem, Journal of the ACM, vol. 50, no. 5, pp. 641664, 2003. [22] T. Cormen, C. Leiserson, and R. Rivest, Introduction to Algorithms. MIT Press, 1990. [23] M. Garey and D. Johnson, Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman and Company, 1979. [24] C.-W. Tsai, C.-S. Yang, and M.-C. Chiang, A novel pattern reduction algorithm for k-means based clustering, in Proceedings of the IEEE International Conference on Systems, Man and Cybernetics, pp. 504509, 2007. [25] C.-W. Tsai, C.-Y. Lee, M.-C. Chiang, and C.-S. Yang, A fast vq codebook generation algorithm via pattern reduction, Elsevier Pattern Recognition Letters, 2009, Accepted. [26] C.-W. Tsai, S.-P. Tseng, M.-C. Chiang, and C.-S. Yang, A time-efcient method for metaheuristics: Using tabu search and tabu ga as a case, in Proceedings of the Ninth International Conference on Hybrid Intelligent Systems, 2009, Accept. [27] R. S. Michalski, Learnable evolution model: Evolutionary processes guided by machine learning, Machine Learning, vol. 38, no. 1-2, pp. 940, 2000. [28] C.-F. Tsai, C.-W. Tsai, and T. Yang, A modied multiple-searching method to genetic algorithms for solving traveling salesman problem, in IEEE International Conference on Systems, Man and Cybernetics, vol. 3, 2002. [29] C.-F. Tsai, C.-W. Tsai, and C.-P. Chen, A novel algorithm for multimedia multicast routing in a large scale network, Journal of Systems and Software, vol. 72, no. 3, pp. 431441, 2004. [30] R. K. Ahuja, Ozlem Ergun, J. B. Orlin, and A. P. Punnen, A survey of very large-scale neighborhood search techniques, Discrete Applie Mathematics, vol. 123, no. 1-3, pp. 75102, 2002. [31] S. Lin and B. W. Kernighan, An effective heuristic algorithm for the traveling-salesman problem, Operations Research, vol. 21, no. 2, pp. 498516, 1973. [32] D. E. Brown, C. L. Huntley, and A. R. Spillane, A parallel genetic heuristic for the quadratic assignment problem, in Proceedings of the third international conference on Genetic algorithms, pp. 406415, 1989. [33] D. Adler, Genetic algorithms and simulated annealing: a marriage proposal, IEEE International Conference on Neural Networks, vol. 2, pp. 11041109, 1993. [34] S. R. Thangiah, I. H. Osman, and T. Sun, Hybrid genetic algorithms, simulated annealing and tabu search methods for vehicle routing problems with time windows, Technical Report UKC/OR94/4, pp. 137, 1994. [35] K. Katayama and H. Narihisa, A efcient hybrid genetic algorithm for the traveling salesman problem, Electronics and Communications in Japan, Part III: Fundamental Electronic Science, vol. 84, no. 2, pp. 7683, 2001. [36] C.-K. Ting, S.-T. Li, and C. Lee, On the harmonious mating strategy through tabu search, Information Sciences, vol. 156, no. 3-4, pp. 189214, 2003. [37] Z.-J. Lee, S.-F. Su, C.-C. Chuang, and K.-H. Liu, Genetic algorithm with ant colony optimization (ga-aco) for multiple sequence alignment, Applied Soft Computing, vol. 8, no. 1, pp. 5578, 2008. [38] R. Baraglia, J. I. Hidalgo, and R. Perego, A hybrid heuristic for the traveling salesman problem, IEEE Transactions on Evolutionary Computation, vol. 5, no. 6, pp. 613622, 2001. [39] G. A. Jayalakshmi, S. Sathiamoorthy, and R. Rajaram, A hybrid genetic algorithm - a new approach to solve traveling salesman problem, International Journal of Computational Engineering Science, vol. 2, pp. 339355, 2001. [40] H. D. Nguyen, I. Yoshihara, K. Yamamori, and M. Yasunaga, Implementation of an effective hybrid ga for large-scale traveling salesman problems, IEEE Transactions on Systems, Man, and Cybernetics, Part B: Cybernetics, vol. 37, no. 1, pp. 9299, 2007. [41] G. Reinelt, The Traveling Salesman: Computational Solutions for TSP Applications, vol. 840. Heidelberg: Springer-Verlag, Berlin Heidelberg, 1994. [42] R. Yang, Solving large travelling salesman problems with small populations, pp. 157162, 1997.