#44 Terminal changes value if accessed via getAllTimeBest()

JGAP 4.0
closed-fixed
Klaus
None
8
2007-06-29
2007-06-27
kelsaka
No

org.jgap.gp.function.Terminal return different value than for the "real" all time best, avaiable via GPGenotype.getAllTimeBest()

Evolving generation 175, memory free: 5.0 MB
Best solution fitness: 7.091483116149902
Best solution: if(X1) then ((199.63596 + X1))
Depth of chromosome: 2
--------
Evolving generation 200, memory free: 2.0 MB
[..]
Evolving generation 375, memory free: 5.0 MB
Best solution fitness: 7.091483116149902
Best solution: if(X1) then ((183.80685 + X1))
Depth of chromosome: 2
--------

Discussion

  • kelsaka
    kelsaka
    2007-06-27

    Logged In: YES
    user_id=1398485
    Originator: YES

    Sorry for the incomplete posting.

    As you can see from the console output the best solution is
    "if(X1) then ((199.63596 + X1))", finally still "if(X1) then ((183.80685 + X1))" is returned. I used the MathProblem example with some little modifications. The "real" formula should be ""if(X1) then ((200.000 + X1))".

     
  • kelsaka
    kelsaka
    2007-06-27

    • summary: Terminal changes value if value iGsetAllTimeBest() --> Terminal changes value if accessed via getAllTimeBest()
     
  • Klaus
    Klaus
    2007-06-27

    Logged In: YES
    user_id=722855
    Originator: NO

    Thanx for your bug report!
    OK, I'll try to write a test case to expose the behaviour you describe.

     
  • Klaus
    Klaus
    2007-06-27

    • assigned_to: nobody --> klausikm
    • milestone: --> 483887
    • priority: 5 --> 8
     
  • Klaus
    Klaus
    2007-06-29

    • milestone: 483887 --> JGAP 4.0
    • status: open --> open-fixed
     
  • Klaus
    Klaus
    2007-06-29

    Logged In: YES
    user_id=722855
    Originator: NO

    Thanx for your very helpful report!
    There was an error with cloning. Cloning an array does not help if the array elements do not implement Cloneable (they implement a JGAP native interface ICloneable instead).
    Changes are checked in to CVS.

     
  • kelsaka
    kelsaka
    2007-06-29

    Logged In: YES
    user_id=1398485
    Originator: YES

    Thanks for your quick response and fix!

     
  • kelsaka
    kelsaka
    2007-06-29

    Logged In: YES
    user_id=1398485
    Originator: YES

    Thanks for your quick response and fix!

     
  • Klaus
    Klaus
    2007-06-29

    Logged In: YES
    user_id=722855
    Originator: NO

    And thanx fro your acknowledgment! I will close this bug, then.

     
  • Klaus
    Klaus
    2007-06-29

    • status: open-fixed --> closed-fixed