IE538 : Genetic Algorithms and Tabu search
Term Project : Traveling Salesman Problem (TSP) – Final presentation
GA & TSP - KJ.Kim, M.Buil
IE538 : Genetic Algorithms and Tabu search Term Project : Traveling - - PowerPoint PPT Presentation
IE538 : Genetic Algorithms and Tabu search Term Project : Traveling Salesman Problem (TSP) Final presentation GA & TSP - KJ.Kim, M.Buil Contents Description of the problem Results - Comparison of ERX/SXX and EAX/SXX
GA & TSP - KJ.Kim, M.Buil
2 GA & TSP - KJ.Kim, M.Buil
EAX/SXX
3 GA & TSP - KJ.Kim, M.Buil
every pair cities
Edge Recombination Crossover Sub-tour Exchange Crossover
(SXX works best with high-fitness sub-tours. ERX can find good local solutions.)
Cities are spread out in a circle (so that we can check the results) Cities are spread out randomly (so that we can check the robustness of the operators)
4 GA & TSP - KJ.Kim, M.Buil
Shortest length: 735xπ = 2309
= 0 Otherwise Where n: total number of cities Xi: city number in position I D(Xi , Xj ): distance from Xi to Xj Cmax: Sum of all values of our distance matrix (naïve upper bound)
D(Xi , Xj ) = D(Xj , Xi ) If g(x) < Cmax ,
5 GA & TSP - KJ.Kim, M.Buil
Binary tournament
ERX to SXX SXX to ERX
ERX SXX
Swap each city in the string with another with the mutation probability
6 GA & TSP - KJ.Kim, M.Buil
edge (7 6) or (6 7) Ex: Available edges Algorithm Parent 1 : (1 2 3 4 5 6 7 8 9) City 1: (1 9), (1 2), (1 4)
with the smallest Parent 2 : (4 1 2 8 7 6 9 3 5) City 2: (2 1), (2 3), (2 8) number of edges …
City 8: (8 7), (8 9), (8 2) has smallest number of City 9: (9 8), (9 1), (9 6), (9 3) available edges.
Parents d(1 9) = d(9 1) In this algorithm, the resulting path is (1 4 5 6 7 8 2 3 9)
Selecting the city with the smallest number of edges maximizes the probability that you will finish the tour using the parental set of edges From previous studies experiments, failure occurs in less than 1.5% of the cases with this criterion
7 GA & TSP - KJ.Kim, M.Buil
8 GA & TSP - KJ.Kim, M.Buil
Select two strings randomly For one string, randomly select a starting site and a length For all genes (cities) in sub-path 1, determine sub-path 2, consisting of the same cities From these two first strings, the two sub-paths and the two reverse-order-sub-paths, 4 children can result of crossover Fitness of all 4 children is calculated, and the two with higher fitness are selected Ex: Parent 1 : (1 2 3 4 5) sub-path 1: 3 4 5 reverse-order-sub-path 1: 5 4 3 Parent 2 : (2 4 1 5 3) sub-path 2: 4 5 3 reverse order sub-path 2: 3 5 4 4 children: 1 2 4 5 3 (string 1, s2) 1 2 3 5 4 (string 1, rs2) 2 3 1 4 5 (string 2, s1) 2 5 1 4 3 (string 2, rs1)
3rd, etc), according to the probability of mutation, with another gene, selected randomly.
Take gene in 1st position: test the probability of swapping with Pm If swap=true, then swap the gene with another random gene (2nd, 3rd, …, nth) Move to next position, and redo the above process Continue, until the nth gene is reached
Take gene in 1st position: assume swap=true, and the random gene is the 4th one. The new string is (4 2 3 1 5) Move to next position, and redo the above process. Assume swapping is done with the gene in 1st position, than the new string is (2 4 3 1 5) Continue, until the 5th gene is reached
9 GA & TSP - KJ.Kim, M.Buil
to the total number of cities
distances - calculated by or if the best so far is the same for the last 50 generations. We consider there is similarity in average distances when in the last 10 generations 0.999 ≤ r ≤ 1.001
10 GA & TSP - KJ.Kim, M.Buil
ㅡ ㅡ
11 GA & TSP - KJ.Kim, M.Buil
12 GA & TSP - KJ.Kim, M.Buil
13 GA & TSP - KJ.Kim, M.Buil
14 GA & TSP - KJ.Kim, M.Buil
15 GA & TSP - KJ.Kim, M.Buil
16 GA & TSP - KJ.Kim, M.Buil
17 GA & TSP - KJ.Kim, M.Buil
close)
18 GA & TSP - KJ.Kim, M.Buil
81~96 - 98 - 97 - 99~39 - 41 - 40 - 42~53 - 55 - 54 - 56~80
19 GA & TSP - KJ.Kim, M.Buil
20 GA & TSP - KJ.Kim, M.Buil
Average first convergence - change of operators from ERX to SXX
21 GA & TSP - KJ.Kim, M.Buil
70~96-35-98-0-99-1~10-12-11-13~20-22-21-23-25-24-26-27-29-28-30~34-97-36~69
22 GA & TSP - KJ.Kim, M.Buil
23 GA & TSP - KJ.Kim, M.Buil
24 GA & TSP - KJ.Kim, M.Buil
76~81-83-82-84-86-85-87~96-98-97-99-0-2-1-3~42-44-43-45~54-56-55-58-57-59-61-60-62~65-69-68- 67-66-70-72-71-74-73-75
25 GA & TSP - KJ.Kim, M.Buil
26 GA & TSP - KJ.Kim, M.Buil
Average fitness values of each crossover operator (simple circle problem)
It finds optimal solutions the fastest However, it takes a lot of time to find the overall best
It finds its optimal solution quite fast
For our simple first problem (cities located on a circle), this combination proves useless compared to SXX alone
Fast finding of optimal solutions due to SXX somewhat late finding of overall best
27 GA & TSP - KJ.Kim, M.Buil
28 GA & TSP - KJ.Kim, M.Buil
Average fitness values of each crossover operator (random location problem)
SXX proves to be better than all other crossover operators when comparing average fitness ERX is the worst crossover operator when comparing average fitness
(almost 900,000)
it due to computer memory problems
SXX alone in every cases of TSP.
difficulties with finding the optimal solution.
29 GA & TSP - KJ.Kim, M.Buil
ERX converges fast, but can get stuck at local optimal solutions SXX can approximate best solutions well, but then struggles to find an optimal solution ERX-SXX in more difficult problems can combine the ERX fast convergence to local
computation power, were perhaps not the best, and further work could try to study the effects of changing these criteria
perfected
the population at each generation could only consist of 100 individuals
more accurate results could be obtained
30 GA & TSP - KJ.Kim, M.Buil
crossover operators studied, but that could not be proven here
crossover operators
Which operators to use ? How to implement these operators ? How to understand the results ? What to modify to make the results better ?
with our algorithm
31 GA & TSP - KJ.Kim, M.Buil
Operators” – Ryouei Takahashi – IMCLA‘05 (2005)
Shigenobu Kobayashi – IEEE (1999)
CETC (2007)
(1998)
Hirabayashi , Hiroyuki Narihisa – Systems and Computers in Japan (1999)
32 GA & TSP - KJ.Kim, M.Buil