Modulus Evo2 ™The GeneticAlgorithm type exposes the following members.
Back to Top
Methods
Name | Description | |
---|---|---|
Add |
Adds the specified Genome. All Genomes must contain exactly the same number and
type of chromosomes and genes and must be added in the same order for each genome.
The initial population of genomes must contain multiple xy genome pairs with
different surnames to prevent inbreeding, which would cause a lack of variation.
| |
CreateGenomes |
Overridable function creates the population of Genomes.
| |
Equals | (Inherited from Object.) | |
Evaluate |
Evaluates the specified genome using a client-supplied custom fitness function.
| |
Evolve |
Evolves the genomes based on the error summation caused by the genes in each chromosome.
Unlike other algorithms, this version evolves based on the fitness of the entire genome.
This function should be called once after each evaluation of the genomes.
The stop condition may be when the error reaches a pre-defined optimum, or after a
certain number of iterations without any improvement, or a combination thereof.
| |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
FittestGenomes |
Returns the top n fittest genomes.
| |
FromString |
Creates a new GeneticAlgorithm object from a string created by ToString.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Load |
Loads the specified genetic algorithm from a file.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Mutate |
Ages the individual by performing mutations.
| |
Run |
Code goes here to loop through and run the GA
| |
Save |
Saves this genetic algorithm to a file.
| |
ToString |
Returns a String that represents this instance.
(Overrides Object ToString .) |
See Also