Print

Print


GPData is a temporary object used to allow GPNodes to communicate amongst each other.  It is not intended for permanent storage, and is destroyed after fitness evaluation.  For permanent storage, you'll need to do something else, such as store information directly in the GPIndividual itself, during your evaluate(...) method.  If the data is small you can make sure it's cloned in the GPIndividual's clone() method.

Sean

On Jul 17, 2013, at 10:12 AM, Bojan Janisch wrote:

> Hey everyone,
> 
> is there a way to get the GPData from an GPIndividual?
> 
> At my case, a GPIndividual is a rule where the conditions and everything is stored in RuleData extends GPData.
> For statistical purpose I need some informations of the rule (my Individual), which are stored in the RuleData object of my problem.
> Each time an Individual is evaluated the RuleData is filled with different informations.
> 
> I know how to get the best Individual of a generation, but how do I get the Data of this Individual?
> 
> Greetings
> 
> Bojan