GeneticAlgorithm MethodsModulus Evo2
OnlineModulus Evo2The GeneticAlgorithm type exposes the following members.

Public methodAdd
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.
Public methodCreateGenomes
Overridable function creates the population of Genomes.
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Public methodEvaluate
Evaluates the specified genome using a client-supplied custom fitness function.
Public methodEvolve
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.
Protected methodOnlineFinalize
Allows an OnlineObject to attempt to free resources and perform other cleanup operations before the OnlineObject is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodFittestGenomes
Returns the top n fittest genomes.
Public methodStatic memberFromString
Creates a new GeneticAlgorithm object from a string created by ToString.
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Public methodStatic memberLoad
Loads the specified genetic algorithm from a file.
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodMutate
Ages the individual by performing mutations.
Public methodRun
Code goes here to loop through and run the GA
Public methodSave
Saves this genetic algorithm to a file.
Public methodToString
Returns a OnlineString that represents this instance.
(Overrides OnlineObject ToString .)
Back to Top
See Also