I am working on a genetic algorithm to minimize the spherical function. http://www.cs.cmu.edu/afs/cs/project...#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
Comment