cloned the fitness array to avoid conflicts with optimizers which replaced the fitness without cloning the individual

This commit is contained in:
Michael de Paly 2009-12-16 16:48:58 +00:00
parent 9843be0855
commit 395ffb044c

View File

@ -123,7 +123,7 @@ Serializable {
}
protected void saveState(PopulationInterface Pop) {
oldFit = Pop.getBestFitness();
oldFit = Pop.getBestFitness().clone();
oldNorm = PhenotypeMetric.norm(oldFit);
popFitCalls = Pop.getFunctionCalls();
popGens = Pop.getGeneration();