Print

Print


Hello. It seems that the problem is in my function to reset the individuals,
because it seems that the individuals are only references to the same
individual instead of being different individuals, when the problem run.
Reset is called in first population, but is it called from other function?
I've re-writed the code of my reset function, and it is:

public void reset(EvolutionState state, int thread){
     
     genome = new UPEGene();  
 genome.setup(state, new Parameter(P_UPEINDIVIDUAL));
  
  
     genome.reset(state, thread);          
     
     fitness = new UPEFitness();
 ((UPEFitness)fitness).setup(state, new Parameter(P_UPEINDIVIDUAL));
 
     evaluated = false;
    }


Thanks in advance.