FrogCity
09-11-2011, 09:35 PM
I am working on a genetic algorithm to minimize the spherical function. http://www.cs.cmu.edu/afs/cs/project/jair/pub/volume24/ortizboyer05a-html/node6.html#tabla:DefFunc
I have a class for each gene which is an array of size 30 with an associated fitness score.
I am having trouble passing the class to my crossover function which selects the best fitness scores and mixes their genetics.
Here is my code so far http://codepad.org/RWrPSXiE
I have a class for each gene which is an array of size 30 with an associated fitness score.
I am having trouble passing the class to my crossover function which selects the best fitness scores and mixes their genetics.
Here is my code so far http://codepad.org/RWrPSXiE