Evolife
Evolife has been developed to study Genetic algorithms, Natural evolution and behavioural ecology.
|
A population is a set of semi-permeable groups. More...
Classes | |
class | EvolifePopulation |
Population + reproduction + call to Scenario life_game. More... | |
class | Population |
List of Groups Minimal version More... | |
Functions | |
def | limit (self) |
(gr_in,dummy) = self.lottery() # choosing where to go More... | |
def | update (self, flagRanking=False, display=False) |
updates groups and looks for empty groups More... | |
def | statistics (self, Complete=True, Display=False) |
Updates statistics about the population. More... | |
def | one_year (self) |
One year of life. More... | |
def | members (self) |
iterates over all individuals in the population More... | |
def | display (self) |
calling 'display' for all individuals in the population More... | |
Variables | |
Obs = Meta_Observer('PopObs') | |
Pop = Population(Obs) | |
popSize | |
best_score | |
A population is a set of semi-permeable groups.
def Evolife.Ecology.Population.display | ( | self | ) |
calling 'display' for all individuals in the population
Definition at line 200 of file Population.py.
def Evolife.Ecology.Population.limit | ( | self | ) |
(gr_in,dummy) = self.lottery() # choosing where to go
randomly kills individuals until size is reached
Definition at line 132 of file Population.py.
def Evolife.Ecology.Population.members | ( | self | ) |
iterates over all individuals in the population
Definition at line 193 of file Population.py.
def Evolife.Ecology.Population.one_year | ( | self | ) |
One year of life.
Calls 'limit', 'migration', 'group_splitting', 'season', 'statistics'
Definition at line 170 of file Population.py.
def Evolife.Ecology.Population.statistics | ( | self, | |
Complete = True , |
|||
Display = False |
|||
) |
Updates statistics about the population.
Definition at line 158 of file Population.py.
def Evolife.Ecology.Population.update | ( | self, | |
flagRanking = False , |
|||
display = False |
|||
) |
updates groups and looks for empty groups
Definition at line 143 of file Population.py.
Evolife.Ecology.Population.best_score |
Definition at line 155 of file Population.py.
Evolife.Ecology.Population.Obs = Meta_Observer('PopObs') |
Definition at line 278 of file Population.py.
Evolife.Ecology.Population.Pop = Population(Obs) |
Definition at line 279 of file Population.py.
Evolife.Ecology.Population.popSize |
Definition at line 146 of file Population.py.