A Comparative Study of Adaptive Crossover Operators For Genetic Algorithms To Resolve The Traveling Salesman Problem
A Comparative Study of Adaptive Crossover Operators For Genetic Algorithms To Resolve The Traveling Salesman Problem
A Comparative Study of Adaptive Crossover Operators For Genetic Algorithms To Resolve The Traveling Salesman Problem
ABOUCHABAKA Jaafar
ABSTRACT
Genetic algorithm includes some parameters that should be
adjusting so that the algorithm can provide positive results.
Crossover operators play very important role by constructing
competitive Genetic Algorithms (GAs). In this paper, the basic
conceptual features and specific characteristics of various
crossover operators in the context of the Traveling Salesman
Problem (TSP) are discussed. The results of experimental
comparison of more than six different crossover operators for
the TSP are presented. The experiment results show that OX
operator enables to achieve a better solutions than other
operators tested.
Keywords
Travelers Salesman Problem, Genetic Algorithm, NP-Hard
Problem, Crossover Operator, probability of crossover, Genetic
Algorithm,
1. INTRODUCTION
This section introduces the current scientific understanding of
the natural selection process with the purpose of gaining an
insight into the construction, application, and terminology of
genetic algorithms. Natural selection evolution- is discussed in
many texts and treatises, and one of its first proponents, Charles
Darwin.His theory of evolution was based on four primary
premises [7]. First, like begets like; equivalently, an offspring
has many of the characteristics of its parents. This premise
implies that the population is stable. Second, there are variations
in characteristics between individuals that can be passed from
one generation to the next. The third premise is that only a small
percentage of the offspring produced survive to adulthood.
Finally, which of the offspring survive depends on their
inherited characteristics. These premises combine to produce the
theory of natural selection. In modern evolutionary theory an
understanding of genetics adds impetus to the explanation of the
stages of natural selection.
Another set of biologically-inspired methods are Genetic
Algorithms (GAs). They derive their inspiration from combining
the concept of genetic recombination with the theory of
evolution and survival of the fittest members of a population [5].
Starting from a random set of candidate parameters, the learning
process devises better and better approximations to the optimal
parameters. The GA is primarily a search and optimization
technique. One can, however, pose nearly any practical problem
as one of optimization, including many environmental modeling
problems. To configure a problem for GA solution requires that
49
. +1 .
+ . +1 .
=1
+ ( . 1
. )2
+ ( . 1
. )2 (1)
d(i , j) =
() =
. .
+ . . (2)
1
=1 d(T[i] , T[i +
{ , = 1 , 2 , ,
(4)
0 ,
(5)
1 ,
Number of
possibilities
12
181440
43 billions
60 E+15
310 E+21
Computation time
12 s
0,18 ms
12 hours
1928 years
9,8 billions of years
50
3. GENETIC ALGORITHM
1
(6)
=1
1
=1
Initialize
population
Evaluate
Cost
Solution
Mutation
Selection
(7)
= 2, = 1,2, , (8)
Yes
No
Crossover
Converge?
2 (9)
51
4.3 Selection
While there are many different types of selection, we will cover
the most common type - roulette wheel selection. In roulette
wheel selection, the individuals are given a probability Pi of
being selected (10) that is directly proportionate to their fitness.
The algorithm for a roulette wheel selection algorithm is
illustrated in algorithm (Fig. 3)
1
N1
fi
jPopulation
fj
(10)
52
Parent 1
1 4 7
Child 1
1 8 6
2
*
Parent 1
3 4 5
Child 1
1 3 5
(G.XP.1)
(G.XP.2)
*
7 5 1
Parent 1
3 4 2
Child 2
4 6 5
Parent 2
5 7 3
Child 2
y1 = x1 and y2 = x2;
endfor
Input: Parents x1=[x1,1,x1,2,,x1,n] and x2=[x2,1,x2,2,,x2,n]
Output:Children y1=[y1,1,y1,2,,y1,n] and y2=[y2,1,y2,2,,y2,n]
-----------------------------------------------------------------------------------Initialize
Parent 1
1 4 7
4 6 5
Parent 2
S1
S3
Child 1
4 8 3
1 7 5
Child 2
y1 = x1 and y2 = x2;
53
i = 1;
Repeat
Parent 1
1 4 7
4 6 5
Parent 2
Child 1
1 8 7
4 7 8
Child 2
Until i n
y1 = [y1,1 y1,a1 x2,a x2,b y1,a y1,na];
y2 = [y2,1 y2,a1 x1,a x1,b y2,a y2,na];
Parent 1
1 4 7
4 6 5
Parent 2
Child 1
1 8 6
4 7 3
Child 2
*
2
*
5
Child
54
5.1 Environment
The operators of the genetic algorithm and its different
modalities, which will be used later, are grouped together in the
next table (Table 10):
Table 10. The operators used
OX ; NWOX ; PMX ; UPMX ; CX
1; 0.9 ; 0.8 ; 0.7 ; 0.6 ; 0.5 ; 0.4 ; 0.3 ;
Probability of crossover
0.2 ; 0.1 ; 0
PSM ; RSM
Mutation operator
1; 0.9 ; 0.8 ; 0.7 ; 0.6 ; 0.5 ; 0.4 ; 0.3 ;
Mutation probability
0.2 ; 0.1 ; 0
Crossover operators
55
7. REFERENCES
[1] Alireza Arab Asadi, Ali Naserasadi and Zeinab Arab Asadi.
Article: A New Hybrid Algorithm for Traveler Salesman
Problem based on Genetic Algorithms and Artificial Neural
Networks. International Journal of Computer Applications
24(5):69, June 2011. Published by Foundation of
Computer Science.
6. CONCLUSION
In this paper, the solution recombination, i.e. crossover operators
in the context of the traveling salesman problem are discussed.
These operators are known as playing an important role by
developing robust genetic algorithms.
We implemented six different crossover procedures and their
modifications in order to test the influence of the recombination
operators to the genetic search process when applied to the
traveling salesman problem. The following crossover operators
have been used in the experimentation: the Uniform Crossover
Operator (UXO), the Cycle Crossover (CX), the PartiallyMapped Crossover (PMX), the Uniform Partially-Mapped
Crossover (UPMX), the Non-Wrapping Ordered Crossover
(NWOX) and the Ordered Crossover (OX). The obtainedresults
with BERLIN52,as a test instance of the TSP, show high
performance of the crossover operators based on the creating
and filling holes. The best known solution for the TSP instance
BERLIN52 was obtained by using the OX operator.
According to thecomparative study of the crossover operators
mentioned, the development of innovative crossover operators
for the traveling salesman problem may be the subject of the
future research.
56
57