Trees | Indices | Help |
---|
|
Deal with an Organism in a Genetic Algorithm population.
|
|||
Organism Represent a single individual in a population. |
|
|||
|
|||
|
|
|||
__package__ =
|
|
Generate a population given a function to create genomes Arguments: o new_genome - A function or callable object that will return a genome that can be used for a new organism. This new genome should be a MutableSeq object with a specified alphabet. o num_organisms - The number of individuals we want in the population. o fitness_calculator -- A funtion that will calculate the fitness of the organism when given the organisms genome. |
Generate a population of individuals with randomly set genomes. Arguments: o genome_alphabet -- An Alphabet object describing all of the possible letters that could potentially be in the genome of an organism. o genome_size -- The size of each organisms genome. o num_organism -- The number of organisms we want in the population. o fitness_calculator -- A funtion that will calculate the fitness of the organism when given the organisms genome. |
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Wed Dec 16 11:25:17 2009 | http://epydoc.sourceforge.net |