|
Evolife
Evolife has been developed to study Genetic algorithms, Natural evolution and behavioural ecology.
|
List of Groups Minimal version
More...

Public Member Functions | |
| def | __init__ (self, Scenario, Observer) |
| Creation of the groups - calls createGroup. More... | |
| def | createGroup (self, ID=0, Size=0) |
| Calls class 'Group'. More... | |
| def | selectIndividual (self) |
| random selection of an individual in the population More... | |
| def | lottery (self) |
| random selection of an individual by number in the population More... | |
| def | season (self) |
| increments 'year' and calls Oberver's season and groups' season More... | |
| def | migration (self) |
| migration between groups of some percentage of individuals More... | |
| def | group_splitting (self) |
| groups that are too big are split in two, and groups that are too small are dispersed More... | |
Public Attributes | |
| Scenario | |
| popSize | |
| groupMaxSize | |
| groups | |
| year | |
| Observer | |
| best_score | |
List of Groups Minimal version
Definition at line 33 of file Population.py.
| def Evolife.Ecology.Population.Population.__init__ | ( | self, | |
| Scenario, | |||
| Observer | |||
| ) |
Creation of the groups - calls createGroup.
Reimplemented in Evolife.Ecology.Population.EvolifePopulation.
Definition at line 38 of file Population.py.
| def Evolife.Ecology.Population.Population.createGroup | ( | self, | |
ID = 0, |
|||
Size = 0 |
|||
| ) |
Calls class 'Group'.
Reimplemented in Evolife.Ecology.Population.EvolifePopulation, and Evolife.Scenarii.CustomScenario.Population.
Definition at line 56 of file Population.py.
| def Evolife.Ecology.Population.Population.group_splitting | ( | self | ) |
groups that are too big are split in two, and groups that are too small are dispersed
Definition at line 95 of file Population.py.
| def Evolife.Ecology.Population.Population.lottery | ( | self | ) |
random selection of an individual by number in the population
Definition at line 67 of file Population.py.
| def Evolife.Ecology.Population.Population.migration | ( | self | ) |
migration between groups of some percentage of individuals
Definition at line 83 of file Population.py.
| def Evolife.Ecology.Population.Population.season | ( | self | ) |
increments 'year' and calls Oberver's season and groups' season
Definition at line 76 of file Population.py.
| def Evolife.Ecology.Population.Population.selectIndividual | ( | self | ) |
random selection of an individual in the population
Definition at line 61 of file Population.py.
| Evolife.Ecology.Population.Population.best_score |
Definition at line 47 of file Population.py.
| Evolife.Ecology.Population.Population.groupMaxSize |
Definition at line 43 of file Population.py.
| Evolife.Ecology.Population.Population.groups |
Definition at line 44 of file Population.py.
| Evolife.Ecology.Population.Population.Observer |
Definition at line 46 of file Population.py.
| Evolife.Ecology.Population.Population.popSize |
Definition at line 42 of file Population.py.
| Evolife.Ecology.Population.Population.Scenario |
Definition at line 41 of file Population.py.
| Evolife.Ecology.Population.Population.year |
Definition at line 45 of file Population.py.