Menu

#48 Chromosome#getApplicationData returns null

next JGAP version
closed-works-for-me
Klaus
5
2008-05-10
2008-01-23
Tully Ernst
No

I call the method #setApplicationData where I store a mapping Object for the current chromosome.

Calling #getApplicationData returns the previously set mapping Object.

I subsequently call:
configuration#setSampleChromosome(chromosome)
configuration#setPopulationSize(populationSize)
Genotype.randomInitialGenotype(configuration)

However in the evaluation method of my fitness function the call to #getApplicationData always returns null. JGAP has lost my mapping object.

Discussion

  • Klaus

    Klaus - 2008-01-23
    • milestone: 672555 --> next JGAP version
    • assigned_to: nobody --> klausikm
     
  • Klaus

    Klaus - 2008-01-23

    Logged In: YES
    user_id=722855
    Originator: NO

    OK, I will check that. But I have the suspicion that the setup is not correct, because a sample chromosome is (currently) not seen as a template for taking the app. data from.

     
  • Klaus

    Klaus - 2008-05-10

    Logged In: YES
    user_id=722855
    Originator: NO

    Existing unit tests show that the app. data is taken from one generation to the other for a chromosome. This is unrelated to sample chromosomes (which are a template only, not an instance).

     
  • Klaus

    Klaus - 2008-05-10
    • status: open --> closed-works-for-me
     

Log in to post a comment.

MongoDB Logo MongoDB