[Avida-cvs] avida/current/source/main CVS commit
Dusan Misevic
dule123 at users.sourceforge.net
Mon Jan 17 14:15:20 PST 2005
Update of /cvsroot/avida/avida/current/source/main
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25240/source/main
Modified Files:
config.cc config.hh phenotype.cc phenotype.hh population.cc
population.hh
Log Message:
While debugging the donation stuff, ran into a more general problem involving
how merit was passed from parent to offspring. It appears that there has
been a problem there for a while now (over a year at least), which does
alter the way a run would proceed. Fixed it.
Because organisms fitness is usually calculated only on divide, it does not
take into account the changes in organisms merit due to donations. Thus,
I added another variable to organisms phenotype, life_fitness, which is
updated every time when the merit is updated during organisms lifetime.
Added another method to the compete_demes event which allows selecting for
demes based on their average life_fitness.
Added two more output events, dump_donor_grid and dump_receiver_grid, which
dump a grid of 0s and 1s for organisms who have donated/received merit. If
the cell is empty, -1 is outputted.
More information about the Avida-cvs
mailing list