Evolife
Evolife has been developed to study Genetic algorithms, Natural evolution and behavioural ecology.
Classes | Functions | Variables
Evolife.Ecology.Population Namespace Reference

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
 

Detailed Description

A population is a set of semi-permeable groups.

Function Documentation

◆ display()

def Evolife.Ecology.Population.display (   self)

calling 'display' for all individuals in the population

Definition at line 200 of file Population.py.

◆ limit()

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.

◆ members()

def Evolife.Ecology.Population.members (   self)

iterates over all individuals in the population

Definition at line 193 of file Population.py.

◆ one_year()

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.

◆ statistics()

def Evolife.Ecology.Population.statistics (   self,
  Complete = True,
  Display = False 
)

Updates statistics about the population.

Definition at line 158 of file Population.py.

◆ update()

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.

Variable Documentation

◆ best_score

Evolife.Ecology.Population.best_score

Definition at line 155 of file Population.py.

◆ Obs

Evolife.Ecology.Population.Obs = Meta_Observer('PopObs')

Definition at line 278 of file Population.py.

◆ Pop

Evolife.Ecology.Population.Pop = Population(Obs)

Definition at line 279 of file Population.py.

◆ popSize

Evolife.Ecology.Population.popSize

Definition at line 146 of file Population.py.