Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Suggested GA operators for a TSP problem?

I'm building a genetic algorithm to tackle the traveling salesman problem. Unfortunately, I hit peaks that can sustain for over a thousand generations before mutating out of them and getting better results. What crossover and mutation operators generally do well in this case?

like image 566
Mark Avatar asked Feb 02 '10 15:02

Mark


2 Answers

Ordered mutation and ordered cross-over (see this article). Standard mutation and cross-over operations will usually result in invalid solutions (i.e. duplicate and/or missing cities in a route).

There was a similar question recently.

I have a Java applet that implements the TSP using ordered cross-over and mutation, if you are interested in comparing the performance of your implementation.

like image 88
Dan Dyer Avatar answered Oct 19 '22 23:10

Dan Dyer


If your problem is that peaks remain for over one thousand generations, then the problem might not be with the crossover and mutation operators. You might not be introducing or keeping enough variation to your population: I would examine the proportions of crossovers, of mutations, and of survivors from one generation to the next, and possibly raise the proportion of mutations.

like image 26
Chip Uni Avatar answered Oct 20 '22 00:10

Chip Uni