Hide Comments
Hide Comments

Comments (0)

expandingProperties

 

Name

Description

public property

AsBoolean[Integer]

Provides access to this gene's value from the chromosome of the indexed individual ( RSGeneticAlgorithm.TRSGAIndividual ) in the genetic     Population. The property allows read and write access to the gene as boolean values. The AsBoolean access property will attempt to translate the chromosome bits of this gene to a boolean, irregardless of the type specified in     GeneType. In other words, the gene does not enforce types, it just helps you to translate bits into a type. You should use the GeneType property to determine the type of the gene before using the accessor functions.

Index specifies the position of the individual in the Population, from 0 to Population.Count - 1.

Note: The TRSGAGene class automatically stores and retrieves the appropriate value from the correct place in the RSGeneticAlgorithm.TRSGAIndividual.Bits chromosome using the     Offset and     Size properties.
 
 

public property

AsDouble[Integer]

Provides access to this gene's value from the chromosome of the indexed individual ( RSGeneticAlgorithm.TRSGAIndividual ) in the genetic     Population. The property allows read and write access to the gene as double precision floating point values. The AsDouble access property will attempt to translate the chromosome bits of this gene to a double, irregardless of the type specified in     GeneType. In other words, the gene does not enforce types, it just helps you to translate bits into a type. You should use the GeneType property to determine the type of the gene before using the accessor functions.

Index specifies the position of the individual in the Population, from 0 to Population.Count - 1.

Note: The TRSGAGene class automatically stores and retrieves the appropriate value from the correct place in the RSGeneticAlgorithm.TRSGAIndividual.Bits chromosome using the     Offset and     Size properties.
 
 

public property

AsEnumeration[Integer]

Provides access to this gene's value from the chromosome of the indexed individual ( RSGeneticAlgorithm.TRSGAIndividual ) in the genetic     Population. The property allows read and write access to the gene as enumerated values. The AsEnumeration access property will attempt to translate the chromosome bits of this gene to an enumerated value from the Enumerations property, irregardless of the type specified in     GeneType. In other words, the gene does not enforce types, it just helps you to translate bits into a type. You should use the GeneType property to determine the type of the gene before using the accessor functions.

The AsEnumeration property translates the enumerated values from their strings into an integer index and encodes the index (and vice versa). So if Enumerations contains 4 enumerated values, you only need 2 bits for the encoding. If the Enumerations property is empty or, when writing, the string does not equal a string in the Enumerations property, you will get an exception.

Index specifies the position of the individual in the Population, from 0 to Population.Count - 1.

Note: The TRSGAGene class automatically stores and retrieves the appropriate value from the correct place in the RSGeneticAlgorithm.TRSGAIndividual.Bits chromosome using the     Offset and     Size properties.
 
 

public property

AsFloat[Integer]

Provides access to this gene's value from the chromosome of the indexed individual ( RSGeneticAlgorithm.TRSGAIndividual ) in the genetic     Population. The property allows read and write access to the gene as single precision floating point values. The AsFloat access property will attempt to translate the chromosome bits of this gene to a single, irregardless of the type specified in     GeneType. In other words, the gene does not enforce types, it just helps you to translate bits into a type. You should use the GeneType property to determine the type of the gene before using the accessor functions.

Index specifies the position of the individual in the Population, from 0 to Population.Count - 1.

Note: The TRSGAGene class automatically stores and retrieves the appropriate value from the correct place in the RSGeneticAlgorithm.TRSGAIndividual.Bits chromosome using the     Offset and     Size properties.
 
 

public property

AsInt64[Integer]

Provides access to this gene's value from the chromosome of the indexed individual ( RSGeneticAlgorithm.TRSGAIndividual ) in the genetic     Population. The property allows read and write access to the gene as 64-bit integer values. The AsInt64 access property will attempt to translate the chromosome bits of this gene to a 64-bit integer, irregardless of the type specified in     GeneType. In other words, the gene does not enforce types, it just helps you to translate bits into a type. You should use the GeneType property to determine the type of the gene before using the accessor functions.

Index specifies the position of the individual in the Population, from 0 to Population.Count - 1.

Note: The TRSGAGene class automatically stores and retrieves the appropriate value from the correct place in the RSGeneticAlgorithm.TRSGAIndividual.Bits chromosome using the     Offset and     Size properties.
 
 

public property

AsInteger[Integer]

Provides access to this gene's value from the chromosome of the indexed individual ( RSGeneticAlgorithm.TRSGAIndividual ) in the genetic     Population. The property allows read and write access to the gene as integer values. The AsInteger access property will attempt to translate the chromosome bits of this gene to a integer, irregardless of the type specified in     GeneType. In other words, the gene does not enforce types, it just helps you to translate bits into a type. You should use the GeneType property to determine the type of the gene before using the accessor functions.

Index specifies the position of the individual in the Population, from 0 to Population.Count - 1.

Note: The TRSGAGene class automatically stores and retrieves the appropriate value from the correct place in the RSGeneticAlgorithm.TRSGAIndividual.Bits chromosome using the     Offset and     Size properties.
 
 

public property

Collection

Returns the RSGeneticAlgorithm.TRSGAGenes collection that owns this gene item.
 

published property

Enumerations

Defines the string labels or enumerated values for an gtEnumeration gene ( GeneType ). Use the AsEnumeration property to read and write the enumerated values into the bits of the chromosome. When you change the number of strings that are in the Enumerations string list, the TRSGAGene class automatically recalculates the   Size (number of bits) of the gene in order to properly store all enumerated values

published property

GeneType

Defines the simple type (e.g., integer, floating point number, etc) for this gene in the population's chromosomes. Use the GeneType property to know how to access the bits of the chromosomes using the AsXXX property accessors (e.g.,   AsInteger for gtInteger GeneType,   AsBoolean for gtBoolean, etc). For the gtEnumeration Gene Type, you also need to define the   Enumerations for the gene before accessing it.

published property

MaxValue

Constrain the floating point, integer, and enumerations gene types (see GeneType ) to a valid range. The TRSGAGene class uses these properties to ensure that when you are writing a numeric value to a RSGeneticAlgorithm.TRSGAIndividual 's chromosome, the value is in a valid range. Note that this won't stop mutations or anything else that operates on the bits directly from giving invalid values.

published property

MinValue

Constrain the floating point, integer, and enumerations gene types (see GeneType ) to a valid range. The TRSGAGene class uses these properties to ensure that when you are writing a numeric value to a RSGeneticAlgorithm.TRSGAIndividual 's chromosome, the value is in a valid range. Note that this won't stop mutations or anything else that operates on the bits directly from giving invalid values.

published property

Name

Allows you to specify a name for this gene

public property

Offset

Defines the starting bit for this gene within the   Population's Chromosome bits. Using both the   Offset and the   Size, the gene is able to read and write into a specific area of the bits. You cannot directly change the offset - instead it is calculated by taking the size of the genes before it within the   Genes collection.
 

published property

PreserveSignBit

The PreserveSignBit property controls whether the gene class should reserve one bit of the   Size as the sign bit for numeric values

published property

Size

Defines the number of bits that are used by this gene in the   Population's Chromosome bits. Use this property to create 6-bit integer genes, 24-bit floating point genes, etc. The TRSGAGene class automatically adjusts the size for you when the   GeneType is gtBoolean (1-bit) or gtEnumerations (minimum number of bits to hold all indices into the Enumerations string list), though you are allowed to change this later. Using both the   Offset and the   Size, the gene is able to read and write into a specific area of the bits.

Top

Comments (0)