GeneticAlgorithm icon indicating copy to clipboard operation
GeneticAlgorithm copied to clipboard

Question about crossover

Open kossolax opened this issue 6 years ago • 0 comments

Hello,

I've read your article on medium and I've question. In the crossover function, wouldn't be better to swap value randomly from left or right? With this implementation first genre is more prone to change than last gene of an individual. Is this intentional ?

https://github.com/memento/GeneticAlgorithm/blob/c61bf2adcc9bc0bd67092bf5c5f365cb27b7155e/src/fr/dieul/lab/geneticalgorithm/SimpleDemoGA.java#L106-L120

kossolax avatar Jan 21 '20 07:01 kossolax