NAME
Algorithm::Genetic::Diploid::Individual - an individual that reproduces sexually
METHODS
- new
-
Constructor takes named arguments, sets a default, empty list of chromosomes and a default child count of zero
- child_count
-
Getter for the number of children
- chromosomes
-
Getter and setter for the list of chromosomes
- meiosis
-
Meiosis produces a gamete, i.e. n chromosomes that have mutated and recombined
- breed
-
Produces a new individual by mating the invocant with the argument
- phenotype
-
Expresses all the genes and weights them to produce a phenotype
- fitness
-
The fitness is the difference between the optimum and the phenotype