Modulus Evo2 ™The Gene type exposes the following members.
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
Gene |
Initializes a new instance of the Gene class.
| |
Gene(String) |
Initializes a new instance of the Gene class.
| |
Gene(Double, Double, Double) |
Initializes a new instance of the Gene class.
| |
Gene(Double, Double, Double, Double) |
Initializes a new instance of the Gene class.
| |
Gene(String, Double, Double, Double) |
Initializes a new instance of the Gene class.
| |
Gene(String, Double, Double, Double, Double) |
Initializes a new instance of the Gene class.
| |
Gene(String, Double, Double, Double, Double, Int32) |
Initializes a new instance of the Gene class.
|
Methods
Name | Description | |
---|---|---|
CloneGene |
Clones the gene.
| |
Equals |
For comparing two genes using .Equals()
Does not compare Tag or Value - only compares Max, Min, StepSize and EpigeneticCount
(Overrides Object Equals(Object).) | |
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.) | |
FromString |
Creates a new gene object from a string created by ToString.
| |
GetHashCode |
Returns a hash code for this instance.
(Overrides Object GetHashCode .) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString |
Returns a String that represents this instance.
(Overrides Object ToString .) |
Properties
Name | Description | |
---|---|---|
EpigeneticCount |
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.
| |
Max |
Maximum value for the gene.
| |
Min |
Minimum value for the gene.
| |
StepSize |
The step size for the gene value.
| |
Tag |
Helps identify the gene.
| |
Value |
The gene value.
|
See Also