Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#47 GPopulation does not use GPFitnessEvaluator

next JGAP version
closed-fixed
Klaus
5
2007-07-30
2007-07-30
kelsaka
No

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.

Discussion

  • Klaus
    Klaus
    2007-07-30

    • milestone: 672555 --> next JGAP version
    • assigned_to: nobody --> klausikm
     
  • Klaus
    Klaus
    2007-07-30

    Logged In: YES
    user_id=722855
    Originator: NO

    OK, this seems to be a bug. Thanx for your detailled and helpful report!

     
  • Klaus
    Klaus
    2007-07-30

    Logged In: YES
    user_id=722855
    Originator: NO

    Fixed the bug and checked in changes

     
  • Klaus
    Klaus
    2007-07-30

    • status: open --> open-fixed
     
  • Klaus
    Klaus
    2007-07-30

    • status: open-fixed --> closed-fixed
     
  • kelsaka
    kelsaka
    2007-08-01

    Logged In: YES
    user_id=1398485
    Originator: YES

    Thank you!