Genetic Algorithm in Java problems
I am having trouble creating a Genetic Algorithm in java. I am competing in an online GA contest. I am trying to save the best result each time back into index 0, but it just becomes a reference to the original index. Meaning when I evolve the rest of the indexes, if it evolves the best members original index I lose it. I have tried shimming it with a getClone method that converts the objects data to and int array and creates a new object from it. Individual class: class Individual { public int[] angle; public int[] thrust; public double fitness; public Individual(){ angle = new int[2]; thrust