Method | Description | |
---|---|---|
BasicGenome ( GeneticAlgorithm geneticAlgorithm ) : System |
Construct a basic genome.
|
|
CalculateGeneCount ( ) : int |
The number of genes in this genome.
|
|
CompareTo ( IGenome other ) : int |
Used to compare two chromosomes. Used to sort by score.
|
|
Decode ( ) : void |
Use the genes to update the organism.
|
|
Encode ( ) : void |
Use the organism to update the genes.
|
|
Mate ( IGenome father, IGenome child1, IGenome child2 ) : void |
Mate two genomes. Will loop over all chromosomes.
|
|
ToString ( ) : String |
Convert the chromosome to a string.
|
public BasicGenome ( GeneticAlgorithm geneticAlgorithm ) : System | ||
geneticAlgorithm | GeneticAlgorithm | The GA this genome belongs to. |
return | System |
public CompareTo ( IGenome other ) : int | ||
other | IGenome | The other chromosome to compare. |
return | int |
public Mate ( IGenome father, IGenome child1, IGenome child2 ) : void | ||
father | IGenome | The father. |
child1 | IGenome | The first child. |
child2 | IGenome | The second child. |
return | void |