Gene MembersModulus Evo2
OnlineModulus Evo2

The Gene type exposes the following members.
Constructors

  NameDescription
Public methodGene 
Initializes a new instance of the Gene class.
Public methodGene(String)
Initializes a new instance of the Gene class.
Public methodGene(Double, Double, Double)
Initializes a new instance of the Gene class.
Public methodGene(Double, Double, Double, Double)
Initializes a new instance of the Gene class.
Public methodGene(String, Double, Double, Double)
Initializes a new instance of the Gene class.
Public methodGene(String, Double, Double, Double, Double)
Initializes a new instance of the Gene class.
Public methodGene(String, Double, Double, Double, Double, Int32)
Initializes a new instance of the Gene class.
Back to Top
Methods

  NameDescription
Public methodCloneGene
Clones the gene.
Public methodEquals
For comparing two genes using .Equals() Does not compare Tag or Value - only compares Max, Min, StepSize and EpigeneticCount
(Overrides OnlineObject Equals(Object).)
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 methodStatic memberFromString
Creates a new gene object from a string created by ToString.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides OnlineObject GetHashCode .)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodToString
Returns a OnlineString that represents this instance.
(Overrides OnlineObject ToString .)
Back to Top
Properties

  NameDescription
Public propertyEpigeneticCount
The epigenetic generation count. If set to a non-zero value, will cause the genetic algorithm to not express this gene. Epigenetics allows for changes in gene expression caused by mechanisms other than changes in the underlying DNA sequence, temporarily or through multiple generations. For example if this gene codes for risk aversion and if the evaluation function evaluates the entire Genome to having been too risky, then the gene may be temporarily silenced within the evaluation function. This is done by setting EpigeneticCount to a positive value representing the number of generations to silence the gene before it is reactivated. The purpose of this feature is to provide momentum to overcome local optima.
Public propertyMax
Maximum value for the gene.
Public propertyMin
Minimum value for the gene.
Public propertyStepSize
The step size for the gene value.
Public propertyTag
Helps identify the gene.
Public propertyValue
The gene value.
Back to Top
See Also