cloned the fitness array to avoid conflicts with optimizers which replaced the fitness without cloning the individual
This commit is contained in:
		@@ -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();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user