Complicated Fitness Definition 
williamsharkey's picture

I'd like guidance. I want the real fitness of a creature to be equal to the
Lifespan of its best offspring.

(I have experience making special fitness forumulas that are more involved
than the simple slider bar methodology. I don't know how to access
information about other genotypes in the gene pool though.)

William Sharkey

Forums: 
Maciej Komosinski's picture

> I'd like guidance. I want the real fitness of a creature to be equal to the
> Lifespan of its best offspring.

To implement this idea, a complicated fitness formula is not enough.
You have to track parent-offspring relationships.

So when a creature dies, you would have to find its parent and check
if the offspring's fitness that has just died is higher than parent's.
Therefore each creature has to know who is its parent. You can add
this information to the user1 field of the creature when it is created
(mutated or crossed over). [or, if you meant only cloning, then it is
much easier, just change 'averaging' to 'maximum'].

You have to modify an *.expdef file to get this into work. For a simple
experiment that uses user1/2/3 fields, have a look at learn_food.expdef
from the Framsticks 3.0rc1.