Evolife
Evolife has been developed to study Genetic algorithms, Natural evolution and behavioural ecology.
Public Member Functions | Public Attributes | List of all members
Evolife.Ecology.Population.Population Class Reference

List of Groups Minimal version
More...

Inheritance diagram for Evolife.Ecology.Population.Population:
Inheritance graph
[legend]

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
 

Detailed Description

List of Groups Minimal version

Definition at line 33 of file Population.py.

Constructor & Destructor Documentation

◆ __init__()

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.

Member Function Documentation

◆ createGroup()

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.

◆ group_splitting()

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.

◆ lottery()

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.

◆ migration()

def Evolife.Ecology.Population.Population.migration (   self)

migration between groups of some percentage of individuals

Definition at line 83 of file Population.py.

◆ season()

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.

◆ selectIndividual()

def Evolife.Ecology.Population.Population.selectIndividual (   self)

random selection of an individual in the population

Definition at line 61 of file Population.py.

Member Data Documentation

◆ best_score

Evolife.Ecology.Population.Population.best_score

Definition at line 47 of file Population.py.

◆ groupMaxSize

Evolife.Ecology.Population.Population.groupMaxSize

Definition at line 43 of file Population.py.

◆ groups

Evolife.Ecology.Population.Population.groups

Definition at line 44 of file Population.py.

◆ Observer

Evolife.Ecology.Population.Population.Observer

Definition at line 46 of file Population.py.

◆ popSize

Evolife.Ecology.Population.Population.popSize

Definition at line 42 of file Population.py.

◆ Scenario

Evolife.Ecology.Population.Population.Scenario

Definition at line 41 of file Population.py.

◆ year

Evolife.Ecology.Population.Population.year

Definition at line 45 of file Population.py.


The documentation for this class was generated from the following file: