Professional Documents
Culture Documents
Introduction
The Travel Salesman Problem solved with
Genetic Algorithms
The Job Shop Scheduling solved as a Travel
Salesman Problem
Conclusions
City 2
City 3
City 4
City 5
City 1
132
217
164
58
City 2
132
290
201
79
City 3
217
290
113
303
City 4
164
201
113
196
City 5
58
79
303
196
(1,5)
(2,4)
(3,1)
(4,3)
(5,2)
58
201
217
113
79
Route
1-2-3-4-5
5-3-1-2-4
3-4-5-2-1
2-4-5-1-3
3-1-4-2-5
5-2-3-1-4
2-1-5-3-4
3-2-1-5-4
1-2-5-4-3
5-4-1-3-2
Cost
132+290+113+196+58
303+217+132+201+196
113+196+79+132+217
201+196+58+217+290
217+164+201+79+303
79+210+217+164+196
132+58+303+113+201
290+132+58+196+113
132+79+196+113+217
196+164+217+290+79
Fitness
789
1049
737
962
964
946
807
789
737
946
Winner
6
Route
5-2-3-1-4
Fitness
946
3,4
7,9
3
9
3-4-5-2-1
1-2-5-4-3
737
737
8,10
5,6
8
6
3-2-1-5-4
5-2-3-1-4
789
946
1,3
2,7
3
7
3-4-5-2-1
2-1-5-3-4
737
807
4,8
9,5
8
9
3-2-1-5-4
1-2-5-4-3
789
737
10,1
1-2-3-4-5
789
Table 4. Tournament
Child 1=
Child 2=
5
1
2
2
Figure 2. Crossover.
5
3
4
1
4
3
Child 1=
Child 2=
5
1
2
2
3
5
1
4
4 =Individual 9
3 =Individual 1
Individual
1
2
3
4
5
6
7
8
9
10
Route
1-2-5-4-3
4-2-1-5-3
3-4-5-2-1
3-4-5-2-1
3-2-1-5-4
3-5-2-1-4
1-2-3-4-5
2-1-5-3-4
5-2-3-1-4
5-2-3-1-4
Fitness
737
807
737
737
789
791
789
807
946
946
Individual 2=
Mutation=
4
4
2
3
Figure 4. Mutation
1
1
5
5
3
2
Individual
1
2
3
4
5
6
7
8
9
10
Route
1-2-5-4-3
4-3-1-5-2
3-4-5-2-1
3-4-5-2-1
3-2-1-5-4
3-5-2-1-4
1-2-3-4-5
2-1-5-3-4
5-2-3-1-4
5-2-3-1-4
Table 6 .Population after Mutation
Fitness
737
668
737
737
789
791
789
807
946
946
Total Distance
Distancia Total
Best Fitness by generation (100 individuals, 100 Generations, crossover probability 0.6, mutation probability 1/10)
Menor Distancia obtenida por generacin(100 Individuos,100 Generaciones,0.6 probabilidad de cruce,1/10 probabilidad de mutacin)
1600
1400
1200
1000
0
20
40
60
80
100
Generacin
Generation
a)Offline Performance-Tournament Selection
Total Distance
Distancia Total
Best Fitness by generation (100 individuals, 100 Generations, crossover probability 0.6, mutation probability 1/10)
Menor Distancia obtenida por generacin(100 Individuos,100 Generaciones,0.6 probabilidad de cruce,1/10 probabilidad de mutacin)
1600
1400
1200
1000
0
20
40
60
80
100
Generacin
Generation
a)Offline Performance-Roulette Selection
Experiment
(Number of
Cities)
(Winston,2005):
5
5
(Gerhard,2006):
10
10
10
10
15
15
20
20
21
21
AO
BT
AP
BU
AQ
CA
AR
BX
AS
BI
BZ
AT
BJ
Selection
Individual
Generation
Crossover
probability
Mutation
Probability
Time
(seconds)
Experiment
Result
Tournament
Roulette
100
100
100
100
0.6
0.6
0.1
0.1
2
2
668
668
668
668
Tournament
Roulette
Tournament
Roulette
Tournament
Roulette
Tournament
Roulette
Tournament
Roulette
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
1/10
1/10
0.1
0.1
0.05
0.05
1/20
1/20
0.05
0.05
3
3
3
3
5
5
7
7
8
8
1185
1185
7392
7392
1692
1757
1700
1854
2042
2077
1185
1185
8914
8914
1513
1513
1688
1688
2042
2042
Tournament
Roulette
Tournament
Roulette
Tournament
Roulette
Tournament
Roulette
Tournament
Roulette
Tournament
Roulette
Tournament
100
100
500
1000
1000
1000
2000
2000
5000
5000
20000
20000
50000
0.6
0.6
0.6
0.6
0.6
0.6
0.6
0.6
0.6
0.6
280 Cities (Gerhard, 2006)
20000
0.6
20000
0.6
20000
0.6
20000
0.6
20000
0.6
20000
0.6
20000
0.6
20000
0.6
20000
0.6
20000
0.6
1000
0.6
1000
0.6
1000
0.6
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
1/280
1/280
1/280
1/280
1/280
420
900
2220
13680
4200
13980
8400
28860
46810
76680
3600
21600
81140
6213.25
7968.55
6750.22
8686.33
5656.54
8686.33
6424.03
10820.19
5325.67
7433.69
7205.13
5509.59
4724.52
Best
result in
literature
2579
2579
2579
2579
2579
2579
2579
2579
2579
2579
2579
2579
2579
Table 7. Results
From these examples it can be concluded that the tournament selection is the
best, it is necessary to consider a relatively large number of individuals in the
population with a moderate number of iterations (at a ratio of 10 individuals for
one iteration approximately) as we can observe in examples BZ, AT and AJ. The
crossover probability works best is the 0.6 and low mutation probability (1 / n),
where n is the number of individuals
O2=J1M3=3
O5=J2M1=5
O8=J3M1=6
O3=J1M2=4
O6=J2M3=2
O9=J3M2=4
1
O1=JI MI
O2=J1M3
Time
Tiempo
1
O1=JI MI
O6=J2M3
Figure 6: JSP as a TSP
O2
O3
O4
O5
O6
O7
O8
O9
O1
O2
O3
O4
O5
11
O6
O7
10
O8
O9
8
4
6
4
6
8
6
5
11
5
6
4
10
8
M
10
10
M
M3
M1
M1
M3
M2
M2
Individual
Generation
Crossover
probability
Mutation
Probability
Time
(seconds)
Tamilarasi y
Anantha
(2010)
FT06 (Ruiz,
2011)
LA04 (Ruiz,
2011)
FT10 (Ruiz,
2011)
LA02 (Ruiz,
2011)
LA03 (Ruiz,
2011)
LA12 (Ruiz,
2011)
LA 13 (Ruiz,
2011)
1000
100
0.6
1/9
120
Result
obtained in
the
experiment
17
1000
100
0.6
1/36
180
55
55
60000
300
0.6
1/50
64800
621
590
50000
1000
0.6
1/100
41230
1156
930
50000
1000
0.6
1/50
40120
768
655
50000
1000
0.6
1/50
40100
699
597
70000
1250
0.6
1/50
110801
1412
1039
50000
1000
0.6
1/100
75900
1520
1150
Best
result
(Ruiz,
2011)
17
Applegate, D., 2006. The Traveling Salesman Problem. Princeton University Press, Estados Unidos de Amrica.
Beasley, J., 1990.OR-Library: Distributing test problems by electronic mail. Journal of the Operational Research Society, 11, 1069-1072.
Bozejko, W., Pempera J. and Smuntnicki C., 2009. Parallel simulated annealing for the Job Shop Scheduling problem. Biological Cybernetics, 60, 139-144.
Cerny, V., 1985. Thermodynamical Approach to the Traveling Salesman Problem: An Efficient Simulation Algorithm. Lecture note in computer science Proceedings of the 9th
Intenational Conference on Computational Science, 5544, 631-640.
Chambers, L., 1998. Genetic Algorithms. University Western Press, Australia.
Chatterjee, S., Carrera C., y Linch L., 1996. Genetic Algorithms and traveling salesman problems. Siam Journal of Optimation, 515-529.
Delgado E., 2005. Aplicacin de Algoritmos Genticos para la Programacin de Tareas de una celda de manufactura. Ingeniera e Investigacin: Universidad
Nacional de Colombia, 24-31.
Dorigo, M., 1997. Ant colonies for the traveling salesman problem. Universidad Libre de Bruselas, Blgica.
Fogel, D., 1998. An evolutionary approach to the traveling salesman problem. Biological Cybernetics, 60, 139-144.
Ge, H., Du W., y Quian F., 2007. A hybrid algorithm based on swarm optimization and simulated annealing for job shop scheduling. Proceedings of the Third International
Conference on Natural Computation, 3, 715-719.
Gerhard, R., 2006. Discrete and Combinatorial Optimization. Universidad de Heidelberg-Instituto de Ciencias de la Computacin, Alemania.
Goldberg, D., 1989. Genetic Algorithms in Search, Optimization and Machine Learning. Addison-Wesley Publishing Corporation, Estados Unidos de Amrica.
Holland, J., 1992. Adaptation in Natural and Artificial Systems. MIT Press, Cambridge, Estados Unidos de Amrica.
Jog, P., Kim J., Suh J., y Gucht D., 1991. Parallel Genetic Algorithms Applied to the Traveling Salesman Problem. European Journal of Operational Research, 490-510.
Juang, C., 2004. A hybrid genetic algorithm and particle swarm optimization for recurrent network design. IEEE Transactions on Evolutionary Computation, 34, 997-1006.
Larraaga, P., Kuijpers C., Murga R., Inza I., y Dizdarevic S., 1999. Genetic Algorithms for the Traveling Salesman Problem: A review of Representations and Operators. Artificial
Intelligence Review, 129170.
Moon, C., Kim J., Choi G., y Seo Y., 2002. An efficient genetic algorithm for the traveling salesman problem with precedent constraints. European Journal of Operational
Research, 606-617.
Ruiz , J., 2011. Complexity Indicators Applied to the Job Shop Scheduling Problem. International Journal of Combinatorial Optimization Problems and Informatics, 25-31.
Sivanamdam, S. y Deepa S, 2008. Introduction to Genetic Algorithms. Springer, Estados Unidos de Amrica.
Tamilarasi, A. y Anantha K., 2010. An enhanced genetic algorithm with simulated annealing for jobshop scheduling. International Journal of Engineering Science
and Technology 2, 144151.
Winston, W., 2005. Investigacin de Operaciones: Aplicaciones y Algoritmos. Indiana University Press, Estados Unidos de Amrica.
Yamada T., y Nakano R., 1997. Genetic Algorithms for Job Shop Scheduling. Proceedings of Modern Heuristic for Decision Support, UNICOM Seminar London, 67-81