Project

General

Profile

Statistics
| Revision:

root / clanki / clanek_gga / performance_analysis_new.tex

History | View | Annotate | Download (35.9 KB)

1 1 milan.djor
%%%%%%%%%%%%%%%%%%%% author.tex %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2
%
3
% sample root file for your "contribution" to a contributed volume
4
%
5
% Use this file as a template for your own input.
6
%
7 2 milan.djor
%%%%%%%%%%%%%%%% Springer %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8 1 milan.djor
9
10
% RECOMMENDED %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
11
\documentclass{llncs}
12
\usepackage{makeidx}
13
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
14
15
\usepackage{epsfig}
16
\usepackage{algorithm}
17
\usepackage{algpseudocode}
18
\begin{document}
19
20
\frontmatter
21
\pagestyle{headings}  % switches on printing of running heads
22
23
\mainmatter              % start of the contributions
24
25
\title{Performance Analysis of Partial Use of Local Optimisation Operator on Genetic Algorithm for TSP}
26
27
\titlerunning{Performance Analysis of Partial Use of Local Search and Genetic Algorithm}
28
% Use \titlerunning{Short Title} for an abbreviated version of
29
% your contribution title if the original one is too long
30
\author{Milan Djordjevic \and Andrej Brodnik \and Marko Grgurovic}
31
% Use \authorrunning{Short Title} for an abbreviated version of
32
% your contribution title if the original one is too long
33
\institute{Department of Information Science and Technology\\University of Primorska, Koper, Slovenia\\
34
\email{milan.djordjevic@student.upr.si}, \email{andrej.brodnik@upr.si}, \email{marko.grgurovic@student.upr.si}}
35
%
36
% Use the package "url.sty" to avoid
37
% problems with special characters
38
% used in your e-mail or web address
39
%
40
\maketitle
41
42
\abstract{The paper analyzes separate, combined and partial performance of local searcher and genetic algorithm.
43
%We propose a strategy to graft a 2-opt local searcher into a genetic algorithm, after recombination, to optimize each offspring`s genomes.
44
On the well studied Euclidean \textit{Travelling Salesman Problem} we examine the impact of grafting a \textit{2-opt} heuristic based local searcher into the genetic algorithm for solving the Euclidean Travelling Salesman Problem.
45
%Standard genetic algorithms are known to be rather slow, while 2-opt search applied to the Travelling Salesman Problem quickly gives results that are far from optimal.
46
Genetic algorithm provides a diversification, while 2-opt improves intensification. Results on examples from \textit{TSPLIB} show that this method combines good qualities from both methods applied and significantly outperforms each individual method. The experiment extension demonstrate a third generation testing on hybrid genetic algorithms where an influence of partial grafting a 2-opt local searcher into genetic algorithm was tested.}
47
48
49
\section{Introduction}
50
\label{sec:1}
51
52
Genetic Algorithms (GA) use some mechanisms inspired by biological evolution \cite{holland75}. They are applied on a finite set of individuals called population. Each individual in a population represents one of the feasible solutions of the search space. Mapping between genetic codes and the search space is called encoding and can be binary or over some alphabet of higher cardinality. Good choice of encoding is a basic condition for successful application of a genetic algorithm. Each individual in the population is assigned a value called fitness. Fitness represents a relative indicator of quality of an individual compared to other individuals in the population. Selection operator chooses individuals from the current population and takes the ones that are transferred to the next generation. Thereby, individuals with better fitness are more likely to survive in the population`s next generation. The recombination operator combines parts of genetic code of the individuals (parents) into codes of new individuals (offsprings).
53
%Such a mixing of genetic material enables that well-fitted individuals or their relatively good genes give even better offspring. By a successive application of selection and crossover, the diversity of genetic material can be decreased which leads to a premature convergence in a local optimum which may be far from a global one.
54
The components of the genetic algorithm software system are: Genotype, Fitness function, Recombinator, Selector, Mater, Replacer, Terminator, and in our system a Local searcher which is new extended component.
55
%The  basic  step  of  2-opt  is  delete  two  edges  from  a  tour  and  reconnect the remaining  fragments of  the  tour by adding  two new edges.
56
%Once we choose the two edges to delete, we do not have a choice about which edges to add there is only one way to add new edges that results in a valid tour.
57
%The 2-opt algorithm repeatedly looks for 2-opt moves that decrease the cost of the tour. A 2-opt move decreases the cost of a tour when the sum of the lengths of the two deleted edges is greater than the sum of the lengths of the two new replaced edges. A 2-opt move  is  the  same as  inverting a  subsequence of  cities  in  the  tour.
58
%\medskip
59
%\noindent
60
%{\it Here is a pseudo code for the 2-opt local search algorithm:}
61
%\begin{verbatim}
62
%current_tour := create_random_initial_tour()
63
%repeat
64
  %  modified_tour := apply_2opt_move(current_tour)
65
   % if length(modified_tour) < length(current_tour)
66
%then current_tour := modified_tour
67
%until no further improvement or a specified number of iterations
68
%\end{verbatim}
69
In this paper we study a well defined problem of a Traveling Salesman Problem (TSP). In the TSP a set $ \left\{C_{1}, C_{2}, ... C_{N}\right\}$ of cities is considered and for each pair $\left\{{C_{i},C_{j}}\right\}$ of distinct cities a distance $d(C_{i},C_{j})$ is given. The goal is to find an ordering $\pi$ of the cities that minimizes the quantity
70
71
\begin{equation}
72
  \sum^{N-1}_{i=1}d(C_{\pi(i)} , C_{\pi(i+1)} ) + d(C_{\pi(N)} , C_{\pi(1)}).
73
\end{equation}
74
75
This quantity is referred to as the tour length since it is the length of the tour a salesman would make when visiting the cities in the order specified by the permutation, returning at the end to the initial city. We will concentrate in this paper on the symmetric TSP in which the distances satisfy $d(C_{i}, C_{j})=d(C_{j},C_{i} )$ for $1 \leq i,j \leq N$ and more specificaly to the Euclidean distance. While the TSP is known to be \textit{NP-hard} \cite{garey79} even under substantial restrictions, the case with Euclidean distance is well researched and there are many excellent algorithms which perform well even on very large cases \cite{garey79}.
76
77
%Genetic algorithms have been successfully applied to the TSP, but for restricted versions of the TSP, such as one with the Euclidean distance, they are very slow in convergence and more efficient methods are known ~\cite{freisleben96}.
78
The 2-opt is a simple local search algorithm for the TSP. The main idea behind it is to take a route that crosses itself and reorder it so that it does not cross itself any more. The 2-opt local search will be used to hybridize GA metaheuristic to solve TSP. Although the 2-opt algorithm \cite{engels09} performs well and can be applied to Traveling Salesman Problems with many cities, it finds only a local minimum. The nearest neighbour algorithm \cite{hoos05} is one of the most intuitive heuristic algorithms for the TSP. It's a greedy method for solving the TSP.
79
The genetic algorithm considered in this paper are hybrid genetic algorithms, incorporating local search which have been referred to as Memetic Algorithms (MA) \cite{merz01}. One example of hybridisation of genetic algorithms is shown in \cite{sels11}
80
%~\cite{krasnogor05},
81
82
\section{Grafted GA for the TSP}
83
\label{sec:2}
84
% Always give a unique label
85
% and use \ref{<label>} for cross-references
86
% and \cite{<label>} for bibliographic references
87
% use \sectionmark{}
88
% to alter or adjust the section heading in the running head
89
90
%Grafted genetic algorithm.
91
Grafting in botanic is when the tissues of one plant are affixed to the tissues of another.
92
%To speed maturity of hybrids in fruit tree breeding programs, hybrid seedlings may take ten or more years to flower and fruit on their own roots.
93
Grafting can reduce the time to flowering and shorten the breeding program.
94
Local Searcher is an extension of the conventional genetic algorithm as it does not need to make use of genetic components. It facilitates the optimization of individual genomes outside the evolution process. There are many implementations of local searchers \cite{freisleben96}, some even in hardware \cite{hoos05}.
95
96
In our algorithm, the pseudocode can be seen in Algorithm \ref{alg:gga}, after the recombination has been applied (line 7 in the pseudocode), a Local Searcher is used to optimize every single offspring genome (line 8 in the pseudocode). Because of the usage of such external optimizer the genetic algorithm is no longer $pure$ and therefore we speak of a grafted genetic algorithm \cite{djordjevic08,djordjevic09}. This form of optimization is of a local kind. It alters the genome by heuristically changing the solution. %When approximating a TSP instance, a 2-opt local optimization technique is applied to make modifications to a genome so as to create better genomes at a higher rate. These are much desired because the evolution process can be quite slow with respect to the desired results. Furthermore  it has always been the case in optimization that incorporating problem specific knowledge (not only through local optimizations, but also in defining the evolutionary operators) is required to gain better results.
97
%A genome represents a potential solution to a problem. How the solution information is coded within a genome is determined by the genotype. TSP Numbered List is a representation of a tour in the TSP by means of a list in which the locations are identified by numbers.
98
Edge map crossover \cite{freisleben96} is an implementation of the recombination operator (line 7 in the Algorithm \ref{alg:gga}). It makes use of a so called edge map.
99
%Edge map is a table in which each location is placed. For each location there is a list in which the neighbouring locations are listed with this location. Recombination is then established as follows:
100
%\medskip
101
%\noindent
102
%{\it Here is a pseudcode for the 2-opt local search algorithm:}
103
%\begin{verbatim}
104
%1.	Choose the first location of one of both parents
105
  %          to be the current location.
106
%2.	Remove the current location from the edge map
107
  %          lists.
108
%3.	If the current location still has remaining edges,
109
 %           go to step 4, otherwise go to step 5.
110
%4.	Choose the new current location from the edge
111
%            map lists of the current location as the one with
112
 %           the shortest edge map list.
113
%5.	If there are remaining locations, choose the one
114
%            with the shortest edge map list to be the current
115
 %           location and return to step 2.
116
%Example:
117
%Parents: 1-2-3-4-5-6; 2-4-3-1-5-6
118
%Edge map: 1) 2 6 3 5;  2) 1 3 4 6;  3) 2 4 1;
119
         %  4) 3 5 2;     5) 4 6 1;     6) 1 5 2 6
120
%1.	Random choice: 2.
121
%2.	Next candidates: 1 3 4 6, choose from 3 4 6
122
%            (same #edges), choose 3.
123
%3.	Next candidates: 1 4 (edge list 4 < edge list 1),
124
 %           choose 4.
125
%4.	Next candidate: 5, choose 5.
126
%5.	Next candidate:  1 6 (tie breaking) choose 1
127
%6.	Next candidate; 6, choose 6.
128
%Offspring: 2-3-4-5-1-6
129
%\end{verbatim}
130
Distance preserving crossover \cite{helsgaun00} is another implementation of the recombination operator (line 7 in the Algorithm \ref{alg:gga}). It attempts to create a new tour with the same distance to both parents.
131
%In order to establish this, the content of the first parent is copied to the offspring and all edges that do not occur in the second parent are removed. The resulting fragments are reconnected without making use of non-overlapping edges of the parents. If edge $(i, j)$ has been destroyed, the nearest available neighbor $k$ of $i$ from the remaining fragments, is selected and the edge $(i, k)$ is added to the tour
132
%\medskip
133
%\noindent
134
%{\it Here is a pseudcode for the 2-opt local search algorithm:}
135
%\begin{verbatim}
136
%Example:  Parents: 5-3-9-1-2-8-0-6-7-4; 1-2-5-3-9-4-8-6-0-7
137
%Fragments: 5-3-9|1-2|8|0-6|7|4
138
%Offspring: 6-0-5-3-9-8-7-2-1-4
139
%\end{verbatim}
140
%
141
%Tournament Selector places groups of genomes from the population together, creating the groups from top to bottom with respect to the enumerative ordering of the genomes in the population and selects the best of the genomes within this group. This is repeated until the required amount of genomes is selected. The selection size is 400, and tournament size is 2. The Random Mater is a simple way of mating parents. It mates the parents as enumerated in the population at random using the mating size to create groups until no more groups can be created. The grouping size is 2. The new offspring only replacer is the implementation of the classical replacement strategy that simply only allows the offspring to survive. Thus the genomes from the next generation replace the entire current population. The equality terminator for all equal genomes  implements the termination condition specifying that the genetic algorithm should terminate when all genomes in the population are identical-all equal genomes.
142
The local learcher is an extension to the conventional genetic algorithm as it needs not make use of genetic operators. It facilitates the optimization of individual genomes outside the evolution process.
143
%After the Recombination has been applied, a Local Searcher is used to optimize every single offspring genome.
144
The Local Searcher has no further knowledge on the execution of the genetic algorithm in the larger setting. The system will provide it with the genome it needs to locally optimize when needed.
145
\medskip
146
147
\begin{algorithm}
148
\caption{Pseudocode}
149
\label{alg:gga}
150
\begin{algorithmic}[1]
151
%\Procedure{Euclid}{$a,b$}\Comment{The g.c.d. of a and b}
152
\State $t=0$
153
\State {{initialize} $(P(t))$}
154
\State {{evaluate} $(P(t))$}
155
\While{{not terminate} $(P(t))$}
156
\State{$sel$ = {select} $(P(t))$}
157
\State{$mat$ = {mate} $(sel)$}
158
\State{$rec$ = for each mated collection $m \in mat$
159
                      do recombination$(r)$}
160
\State{$loc$ = for each genome $g$ in each recombined
161
               collection $r \in rec$ do local search}
162
163
\State{$rep$ = replace($loc$, $P(t)$)}
164
\State{$P(t+1)$ = select$(rep)$}
165
\State{evaluate {$(P(t+1))$}}
166
\State{$t=t+1$}
167
\EndWhile
168
%\While{$r\not=0$}\Comment{We have the answer if r is 0}
169
%\State $a\gets b$
170
%\State $b\gets r$
171
%\State $r\gets a\bmod b$
172
%\EndWhile\label{euclidendwhile}
173
%\State \textbf{return} $b$\Comment{The gcd is b}
174
%\EndProcedure
175
\end{algorithmic}
176
\end{algorithm}
177
178
%\noindent
179
%{\it Here is a pseudo code for the algorithm:}
180
%\begin{verbatim}
181
%t=0
182
%initialize(P(t))
183
%evaluate(P(t))
184
%while(not terminate(P(t))) do
185
 %  sel = select(P(t))
186
  % mat = mate(sel)
187
   %rec = for each mated collection m belongs to mat do
188
    %     recombination(r)
189
   %loc = for each genome g in each recombined collection
190
    %     r belongs to rec do local search(l)
191
   %rep = replace(loc, P(t))
192
   %P(t+1) = select(rep)
193
   %evaluate(P(t+1))
194
   %t=t+1
195
%\end{verbatim}
196
The 2-opt local searcher is a local optimizer for the TSP that has been grafted into the standard genetic algorithm (line 8 in the Algorithm \ref{alg:gga}). This local optimizer performs the 2-opt heuristic that exchanges edges to reduce the length of a tour. An exchange step consists of removing two edges from the current tour and reconnecting the resulting two paths in the best possible way Fig. \ref{fig:example}.
197
198
\begin{figure}[b]
199
\centering
200
\includegraphics[height=3.6cm]{2opt.eps}
201
\caption{Exchange step of 2-opt algorithm}
202
\label{fig:example}
203
\end{figure}
204
205
Following experiments demonstrate a third generation testing on hybrid genetic algorithms.
206
In the extension of an experiment an influence of partial grafting a 2-opt local searcher into genetic algorithm was tested. In the conducted experiments we will present an influence of grafting GA with local search and we will perform a performance analysis of partial use of local optimisation operator on GA for TSP. Furthermore, we will answer the questions of how often to graft a GA and when.
207
208
\section{Experiment}
209
210
\label{sec:3}
211
212
\begin{table}
213
%\sidecaption[t]
214
\centering
215
\caption{Five techniques for solving Euclidean TSP}
216
%\vspace{7.8cm}
217
\includegraphics[height=6.8cm]{tabela}
218
\label{fig:Table 1}
219
\end{table}
220
221
For testing our strategy and comparing it to other solutions we used the instances of symmetric traveling salesman problem which can be found on TSPLIB. We deliberately used well known problem (TSP) and relatively small instances for which best solutions are known since the goal of this research is not to find a better algorithm for the symmetric TSP, but rather to compare on a controlled environment the impact of grafting a genetic algorithm.  Altogether 20 instances have been tried out, with different complexity and range from 14 to 150 cities per instance, look in Table \ref{fig:Table 1}.
222
We compared our method (grafted genetic algorithm (GGA)), separately in one case with edge map crossover (GGAemc) and in another case with a distance preserving crossover (GGAdpc) with four other methods. As the upper bound for the quality of solution we used the above mentioned Greedy Heuristic. For the lower bound for the quality of solution we used exact solutions, global minima, obtained by Concorde \cite{applegate01}.  Then we compared our grafted method with a pure 2-opt algorithm and pure genetic algorithm.
223
For Greedy Heuristic and the pure 2-opt Heuristic the running time is in a range from 0.5 to 1.5 seconds.
224
%U nastavku eksperimenta smo testirali parcijalni uticaj cepljenja 2 opt algoritma i genetskog algoritma. Odnosno, kada lokalni searcher povremeno implementiramo u 10, 20, 40, 50, 80 i 90 \% od ukupnog broja generacija rada algoritma.
225
%GGAemc i GGAdpc su algoritmi sa 100 \% korišćenja lokalnog searchera u celokupnom radu algoritma.
226
%Ovo testiranje je izvršeno na najvećoj instanci sa oznakom ch150.
227
%Broj generacija rada algoritma sa parcijalnim korišćenjem 2 opt algoritma je ograničen na broj generacija adekvatnog cepljenog genetskog algoritma sa 100 \% učestalosti.
228
%Što znači da za instancu ch150 termination condition iznosi tačno 88 i 82 generacija respectively for GGAemc and GGAdpc.
229
%Sa ovim kriterijumom terminacije garantujemo da će vreme rada parcijalnog GGA biti manje nego rad adekvatnog GGA sa 100 \% korišćenja loaklnog searchera.
230
%U varijantama sa 40, 50, 80 \% učestalosti, smo testirali različite preraspodele generacija rada sa lokalnim searcherom, i to uniformly, na početku i na kraju.
231
%Sve instance problema su zatim testirane sa 90 \% učestalosti rada lokalnog searchera u adekvatnom Graftovanom genetskom algoritmu.
232
233
In experiment extension a local searcher is periodically implemented with  10, 20, 30, 40, 50, 60, 70, 80 and 90\% frequency.
234
In all cases three different independent distributions of generations with local searcher were used: random, beginning sequence and ending sequence. Random variations means that use of local searcher is with adequate probability distributed in iterations of the algorithm. Begin sequence means that a sequence of iterations with local searcher is used in the first generations of an algorithm. While in the ending it is used on the last generations of the algorithm.
235
%The pseudocode of the Partial Grafted Genetic Algorithm is given in Algorithm 2. The $W$ stands for a set of iterations with local searcher involved.
236
The total number of iterations are limited to the number of iterations reached in grafted genetic algorithm with edge map recombination (GGAemc).
237
The extension of an experiment include testing on a 10 largest instances from the Table \ref{fig:Table 1} plus instance pr439. The results presents average values of 5 runs for each tested method.
238
239
All experiments were conducted on a computer with Pentium(R) 2.8 GHz CPU, with Windows 7. Furthemore, a development environment the \textit{EA Visualizer} \cite{bosman99}, an application written in \textit{Java} programming language, was used. The Concorde's code is written in the \textit{AnsiC} programming language. Therefore, in this research absolute times were not of crucial importance, we were only interested in relative performance of tested algorithms.
240
241
%\begin{table}
242
%%\sidecaption[t]
243
%\centering
244
%\caption{Three different variations of the algorithm with 50\% frequency of Local Searcher}
245
%%\vspace{5.8cm}
246
%\includegraphics[height=5.0cm]{tabela50}
247
%\label{fig:Table50}
248
%\end{table}
249
250
\section{Results}
251
\label{sec:4}
252
253
The results of an experiment are summarized in Table \ref{fig:Table 1}. Twenty cases from the well known TSPLIB were used for testing. The names of these cases are in the first column and the name always contains the size of the problem, i.e. the number of cities (which are between 14 and 150).
254
The last two columns are exact solutions (global minima) obtained by Concorde \cite{applegate01}, together with execution times. A well known problem with moderate sized examples and tools to get optimal solutions were selected, recall that a goal of this research is not to improve solutions for difficult problems but to compare and quantitatively examine  the effects of grafting local searches (in this case 2-opt based) to standard genetic algorithm. Such knowledge can be used to fine tune and calibrate a hybrid system which can then be used on large cases. These last two columns are used as a reference for all other tests.
255
The second column in Table \ref{fig:Table 1} represents lower bound for the quality of solution. It is a simple nearest neighbour heuristic. It is fast, but very unsophisticated and any reasonable algorithm should do better than that. This greedy heuristic gives results that are about 15 \% (except for some very small cases) worse than the optimal solution. The column titled quality shows by how many percent is the solution produced by this algorithm worse than the optimal solution. 0 \% in this column means  algorithm found the best solution. The running times of the algorithm are from 0.2 to 2.3 in seconds.
256
The third column in the Table \ref{fig:Table 1} corresponds to the pure 2-opt algorithm. As expected, it also gives quick but far from optimal solutions. It quickly finds a local minimum, but it is unable to broaden the search to find another local minimum. However, 2-opt algorithm is superior to greedy algorithm, the quality of the solution, with the similar running times from 0.2 to 2.5 seconds, is on average about 8 \% worse than optimal.
257
The fourth column in the Table \ref{fig:Table 1} corresponds to the pure Genetic Algorithm. The running time, as expected, is significantly increased. While our GGA algorithm reached optimal solution below one second or few seconds (0.6 to 15.3 seconds), the running time for pure genetic algorithm was from 3.4 seconds to 100 seconds which was time-limit. In 12 out of 20 cases no optimal solution was found within that time limit, but in 8 cases an optimal solution was found and the middle column indicates in which generation that happened. For 12 cases where optimal solution was not found, the quality of found solution is expressed as for previous cases in percents above the optimal solution.
258
The sixth column in Table \ref{fig:Table 1} describes results obtained by our grafted algorithm, which is programmed with edge map crossover as recombination operator (GGAemc). In 17 out of 20 considered cases an optimal solution was found. Remaining three instances differ from optimal solution in 0.01, 0.10 and 0.22 percent. The solutions were found in relatively few generations and very fast. Execution times were 0.6 to 15.2 seconds.
259
The seventh column in Table \ref{fig:Table 1} corresponds to our grafted genetic algorithm which contains a distance preserving crossover as recombination operator (GGAdpc). In 11 out of 20 considered cases an optimal solution was found. In remained 9 cases, delivered solutions differ from optimal in range from 0.13 to 0.32 percent. The running time and number of generations of GGAdpc, in comparison with GGAemc, are slightly lesser, particularly in the lowermost part of the table which represents more complex instances. Quantitative results on test cases from \textit{TSPLIB} show that grafted algorithms, GGAemc and GGAdpc, have advantages. Even when their's components have serious drawbacks, their grafted combinations exhibits a very good behaviour. Results on examples from \textit{TSPLIB} show that this grafted method combines good qualities from both methods applied and significantly outperforms each individual method.
260
%The difference in the quality on the other side is in the hand of GGAemc for the same considered cases.
261
%Poenta eksperimenta predstavljenog u tabeli 1 je fino izkalibrirati sistem na manjim instancama da bi uspešno rešili veće. U nastavku odnosno nadogradnji eksperimenta u testiranju parcijalnog korišćenja ekstenzije lokalnog serchera na genetski algoritam, sistem kalibriramo upravo na najvećoj instanci iz tabele 1, zbog toga jer je u instanci ch150 najduža evolucija odnosno broj generacija algoritma, zatim najveće je vreme rada algoritma i najveća je razlika u kvalitetu dobijenog rešenja.
262
263
264
%\begin{algorithm}
265
%\caption{Pseudocode}\label{}
266
%\begin{algorithmic}[]
267
%%\Procedure{Euclid}{$a,b$}\Comment{The g.c.d. of a and b}
268
	%\State $t=0$
269
	%\State {{initialize} $(P(t))$}
270
	%\State {{evaluate} $(P(t))$}
271
	%\While{{not terminate} $(P(t))$}
272
	%\State{$sel$ = {select} $(P(t))$}
273
	%\State{$mat$ = {mate} $(sel)$}
274
	%\State{$rec$ = for each mated collection $m \in mat$
275
												%do recombination$(r)$}
276
	%\If {{$t \in W$}}
277
	%%\State $loc$ = $\bigcup_{g \in rec} LocalSearch(g)$
278
		%
279
	%\State{$loc$ = for each genome $g$ in each recombined
280
								 %collection $r \in rec$ do local search}
281
	%\EndIf
282
	%\State{$rep$ = replace($loc$, $P(t)$)}
283
	%\State{$P(t+1)$ = select$(rep)$}
284
	%\State{evaluate {$(P(t+1))$}}
285
	%\State{$t=t+1$}
286
	%\EndWhile
287
%%\EndProcedure
288
%\end{algorithmic}
289
%\end{algorithm}
290
\begin{table}
291
%\sidecaption[t]
292
\centering
293
\caption{Partial Grafting of a Genetic Algorithm}
294
%\vspace{4.8cm}
295
\includegraphics[height=11.5cm,angle=90]{tabela_partial_gga5}
296
\label{fig:Tablesve}
297
\end{table}
298
299
The results of experiment extension are summarized in Table \ref{fig:Tablesve} and in Figures \ref{fig:example2}, \ref{fig:example3} and \ref{fig:example4}.
300
%The Table \ref{fig:Table50} describes results of 50\% frequancy use of local searcher. The results achieved by \textit{uniform} use of an algorithm show us results which vary from 0.0\% to 1.04\% from optimal, while running times vary from 6.1 to 14.6 seconds. In the second setting of an algorithm, named \textit{begin}, a little better results was achieved. The quality of solutions vary from 0.0 to 0.89\% from optimal, while the running times are the same. The best performance, of all three settings with 50\% use of local searcher, was achieved in the \textit{end} configuration. In two cases an optimal solutions was found, remaining instances differ from optimal solution in a range from 0.03 to 0.77\%. The running time vary from 6.1 to 14.6 seconds, which is the same as in \textit{begin} and \textit{uniform} configuration.
301
%The Table \ref{fig:Tablesve} describe results of pure genetic algorithm (GAemc), variations of algorithms with 10, 20, 30, 40, 50, 60, 70, 80 and 90 percent frequency, and grafted genetic algorithm (GGAemc). The variations with 20, 30, and 40 precent frequency has an uniform distribution of iterations with local search. Furthermore, the variations with 60, 70, 80 and 90 percent frequency has and ending sequence distrubition.
302
%For the lower bound for the quality of solution we used solutions obtained by GGA with edge map crossover as a recombination operator.
303
The first column in Table \ref{fig:Tablesve} corresponds to the names of instances and the size of the problem (which are between 76 and 439) which are duplicated for better visualization of the table.
304
The second column in the Table \ref{fig:Tablesve} presents the result of the pure Genetic Algorithm and grafted Genetic Algorithm, both with edge map crossover as recombination operator (GAemc and GGAemc). This algorithms contain 0\% and 100\% frequency of local search, respectively. The \textit{q} in Table \ref{fig:Tablesve} stands for \textit{quality} differ from optimal solution. The \textit{t} stands for running time.
305
The third column in Table \ref{fig:Tablesve} represents results for 10\% and 90\% frequency. The subcolumn titles \textit{rnd, begin, end} stands for three variations of partial hybridization, random, begin sequence and end sequence, respectively. The result for 10\% frequency shows that this kind of algorithm settings is fast (the time vary from 0.9 seconds to 11.0 seconds), but the quality of solution (which vary from 0.34\% to 4.92\%), are weak.
306
The best performance of all tested cases was achieved in the configuration with 90\% frequency, especially in variation with end sequence, with results coloured in red. In 9 out of 11 tested instances the results was the same as for GGAemc. For instance (kroB100) result was better in 0.01\%, and for instance pr439 a result is worse in 0.04\%. Furthermore, the solutions provided by, 90\% end sequnce variations, were found faster then by GGAemc. The running time vary from 3.3 to 78.9 seconds, compared to the time achieved by GGAemc, which vary from 3.6 to 91.8 seconds. This mean, that the {\em same quality} of result was achieved in {\em shorter time}.
307
308
The results for instance pr439 can be seen in Figure \ref{fig:example2}.
309
In 95\% of all tested cases, (look in columns from 3 to 7 in Table \ref{fig:Tablesve}) the best performance was achieved in variation with end sequence.
310
Additionally, the results of end sequence for all instances can be seen in Figure \ref{fig:example4}.
311
In all three variations of hybridization (random, begin and end) the running time is the same for particular frequency. For all tested instances the running time grows almost linerly with regard to percent of hybridization, see Figure \ref{fig:example3}.
312
313
314
%The fourth column in Table \ref{fig:Tablesve} presents result for grafted algorithm with 20\% frequency use of local searcher. This kind of settings also gives quick but far from optimal solutions. A running times vary from 5.4 to 12.7 seconds, and a quality of solutions is in the range from 0.46 to 1.98\% diference from optimal solutions.
315
%Fifth, sixth, seventh, eight and ninth column in Table \ref{fig:Tablesve} represents result of configurations with 30, 40, 60, 70 and 80 percent frequency use of local search, respectively.
316
317
318
\begin{figure}%[b]
319
\centering
320
\includegraphics[height=5.8cm]{pr439.eps}
321
\caption{Results for pr439}
322
\label{fig:example2}
323
\end{figure}
324
325
\begin{figure}%[b]
326
\centering
327
\includegraphics[height=5.6cm]{time.eps}
328
\caption{Running times}
329
\label{fig:example3}
330
\end{figure}
331
332
\begin{figure}%[b]
333
\centering
334
\includegraphics[height=7.6cm]{end.eps}
335
\caption{Results for end sequence}
336
\label{fig:example4}
337
\end{figure}
338
339
\section{Conclusions}
340
\label{sec:5}
341
342
The goal of this paper was to investigate influence of grafting a 2-opt based local searcher into the standard genetic algorithm, for solving the Travelling Salesman Problem with Euclidean distance. It is known that genetic algorithms are very successful when implemented for many NP-hard problems. However, they are much more effective if some specific knowledge about particular problem is utilized.
343
%The TSP is well researched problem with many such improvements, especially when the restricted version of the problem with Euclidean distance is considered.
344
In our first experiment we compared two direct techniques, with our grafted genetic algorithms. Solutions from Concorde and greedy algorithm were added for better comparison. Quantitative results on test cases from \textit{TSPLIB} show that grafted algorithms have advantages. Even when both components have serious drawbacks, their grafted combinations exhibits a very good behaviour. Results on examples from \textit{TSPLIB} show that this method combines good qualities from both methods applied and significantly outperforms each individual method.
345
%The future research will focus on a new heuristic algorithm for making an initial tour of Lin-Kernighan heuristic, which is known to be one of the most successful heuristics for the TSP.
346
347
In the second part of an experiment an influence of partial grafting a 2-opt local searcher into genetic algorithm was studied.
348
The {\em best performance} was achieved in a configuration with 90\% frequency with end sequence. In a comparison with a performance of GGAemc the {\em same quality} of results was achieved in a {\em shorter time}, on average a 7\% of running time was spared.
349
The cases with 10\% frequency use of local search provides fast and far from optimal solutions but still better then the GAemc, with small increase in time. The configurations with 50\% frequency use of local searcher present a good examples of trade-off between a running time and quality, especcialy in setting with ending sequence of local searcher.
350
From the results obtained in Table \ref{fig:Tablesve}, we can conclude that the best gain
351
%results of tested hybrid genetic algorithms for solving an Euclidean Travelling Salesman Problem
352
is attained when a local searcher is used in an ending sequence of the algorithm and in frequency not less then 50\% and not more than 90\%.
353
%Further calibration of this system will include measuring the optimal blend of all components for larger test cases.
354
There are several issues for future research, such as investigating the effects of a different use of the local optimisation and other metaheuristic algorithms, analyzing the individual performance gains provided by the local search, and to look at how to scale up the algorithm for solving large instances of TSP.
355
356
%%%%%%%%%%%%%%%%%%%%%%%% reference %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
357
% sample references
358
% %
359
% Use this as a template for your own input.
360
%
361
%%%%%%%%%%%%%%%%%%%%%%%% Springer-Verlag %%%%%%%%%%%%%%%%%%%%%%%%%%
362
%
363
364
365
\begin{thebibliography}{99.}%
366
% and use \bibitem to create references.
367
%
368
% Use the following syntax and markup for your references if
369
% the subject of your book is from the field
370
% "Mathematics, Physics, Statistics, Computer Science"
371
%
372
% Contribution
373
\bibitem{applegate01}
374
Applegate, D., Bixby, R., Chv\'{a}tal, V., Cook, W.: {TSP} cuts which do not
375
  conform to the template paradigm. In: Computational Combinatorial
376
  Optimization (2001) 261--304
377
378
\bibitem{djordjevic08}
379
Djordjevic, M.: {Influence of Grafting a Hybrid Searcher Into the Evolutionary
380
  Algorithm}. In: Proceedings of the Seventeenth International Electrotechnical
381
  and Computer Science Conference. Slovenian Section IEEE (2008) 115--118
382
383
\bibitem{djordjevic09}
384
Djordjevic, M., Tuba, M., Djordjevic, B.: {Impact of Grafting a 2-opt Algorithm
385
  Based Local Searcher Into the Genetic Algorithm}. In: Proceedings of the 9th
386
  WSEAS international conference on Applied informatics and communications. World Scientific and Engineering Academy and Society (WSEAS) (2009) 485--490
387
388
\bibitem{bosman99}
389
Bosman, P., Thierens, D.: {On the modelling of evolutionary algorithms}. In: Proceedings of the Eleventh Belgium-Netherlands Conference on Artificial Intelligence BNAIC (1999) 67--74
390
391
\bibitem{engels09}
392
Engels, C., Manthey, B.: Average-case approximation ratio of the 2-opt
393
  algorithm for the TSP. Operations Research Letters {\bfseries 37} (2009) 83--84
394
395
\bibitem{freisleben96}
396
Freisleben, B., Merz, P.: New genetic local search operators for the traveling
397
  salesman problem. In: Proceedings of the 4th International Conference on
398
  Parallel Problem Solving from Nature (1996) 890--899
399
400
\bibitem{garey79}
401
Garey, M., Johnson, D.: Computers and Intractability: A Guide to the Theory of
402
  NP-completeness. WH Freeman \& Co, New York (1979)
403
404
\bibitem{helsgaun00}
405
Helsgaun, K.: An effective implementation of the Lin-Kernighan traveling
406
  salesman heuristic. European Journal of Operational Research {\bfseries 126}
407
  (2000) 106--130
408
409
\bibitem{holland75}
410
Holland, J.: Adaptation in natural and artificial systems. The University of
411
  Michigan Press, Ann Arbor (1975)
412
413
\bibitem{hoos05}
414
Hoos, H., Stutzle, T.: Stochastic local search: Foundations and applications.
415
  Morgan Kaufmann (2005)
416
417
\bibitem{merz01}
418
Merz, P., Freisleben, B.: Memetic algorithms for the traveling salesman
419
  problem. Complex Systems {\bfseries 13} (2001) 297--346
420
421
\bibitem{sels11}
422
Sels, V., Vanhoucke, M.: A hybrid dual-population genetic algorithm for the single machine maximum lateness problem. In: Proceedings of the 11th European conference on Evolutionary computation in combinatorial optimization (2011) 14--25
423
\end{thebibliography}
424
\end{document}