cloned the fitness array to avoid conflicts with optimizers which replaced the fitness without cloning the individual
This commit is contained in:
parent
9843be0855
commit
395ffb044c
@ -123,7 +123,7 @@ Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected void saveState(PopulationInterface Pop) {
|
protected void saveState(PopulationInterface Pop) {
|
||||||
oldFit = Pop.getBestFitness();
|
oldFit = Pop.getBestFitness().clone();
|
||||||
oldNorm = PhenotypeMetric.norm(oldFit);
|
oldNorm = PhenotypeMetric.norm(oldFit);
|
||||||
popFitCalls = Pop.getFunctionCalls();
|
popFitCalls = Pop.getFunctionCalls();
|
||||||
popGens = Pop.getGeneration();
|
popGens = Pop.getGeneration();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user