GPopulation does not use GPFitnessEvaluator
Brought to you by:
klausikm
org.jgap.gp.impl.GPPopulation: create(..) uses "<" for evaluating fitness instead of ..getGPFitnessEvaluator().isFitter(..).
In line 207 there is a check
if (protoFitness < program.getFitnessValue()) {
this should be replaced by
if(getGPConfiguration().getGPFitnessEvaluator().isFitter(program.getFitnessValue(), protoFitness) ) {
getGPConfiguration().setPrototypeProgram(program);
}
now using the GPFitnessEvaluator set in the configuration.
Logged In: YES
user_id=722855
Originator: NO
OK, this seems to be a bug. Thanx for your detailled and helpful report!
Logged In: YES
user_id=722855
Originator: NO
Fixed the bug and checked in changes
Logged In: YES
user_id=1398485
Originator: YES
Thank you!