|
Name
|
Description
|
|
Assign(TPersistent)
|
Represents method Assign(TPersistent).
|
|
AsString(Integer)
|
Overloaded. Converts the genetic encoding of a RSGeneticAlgorithm.TRSGAIndividual 's Bits into a string representation based on GeneType. The AsString function extracts the gene's bits (using the Offset and Size properties to specify where) and then converts the bits into a string representation, e.g., for numeric types, you see the decimal representation of the number, for booleans, you see "True" or "False, and for enumerations, you see the correct string from the Enumerations property.
The Index parameter specifies the index of an individual in the Population and automatically extracts the RSGeneticAlgorithm.TRSGAIndividual.Bits chromosome property to call the overloaded AsString function.
|
|
AsString(TRSEncodedBits)
|
Overloaded. Converts the genetic encoding in the Bits into a string representation based on GeneType. The AsString function extracts the gene's bits (using the Offset and Size properties to specify where) and then converts the bits into a string representation, e.g., for numeric types, you see the decimal representation of the number, for booleans, you see "True" or "False, and for enumerations, you see the correct string from the Enumerations property.
The Bits parameter should be at least of the correct size for this gene and all preceding genes in the Genes collection (e.g., its size should be at least Offset + Size bits). The overloaded AsString function accepts an index of an individual in the Population and automatically extracts the RSGeneticAlgorithm.TRSGAIndividual.Bits chromosome property.
|
|
EnumerationsChange(TObject)
|
Represents method EnumerationsChange(TObject).
|
|
GeneAsBoolean(TRSEncodedBits)
|
Overloaded. Extracts this gene's value from the Bits chromosome parameter. The function allows read access to the gene as boolean values. The equivalent SetGeneAsBoolean method provides write access. The GeneAsBoolean function 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.
Note: The TRSGAGene class automatically retrieves the appropriate value from the correct place in the Bits chromosome using the Offset and Size properties. The overloaded GeneAsBoolean method allows you to change the offset into the bits you want to use.
|
|
GeneAsBoolean(TRSEncodedBits,Integer)
|
Overloaded. Extracts this gene's value from the Bits chromosome parameter. The function allows read access to the gene as boolean values. The equivalent SetGeneAsBoolean method provides write access. The GeneAsBoolean function 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.
Note: The TRSGAGene class automatically retrieves the appropriate value from the correct place in the Bits chromosome using the Offset and Size properties. The overloaded GeneAsBoolean method will also automatically use the Offset property.
|
|
GeneAsDouble(TRSEncodedBits)
|
Overloaded. Extracts this gene's value from the Bits chromosome parameter. The function allows read access to the gene as double floating-point values. The equivalent SetGeneAsDouble method provides write access. The GeneAsDouble function 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.
Note: The TRSGAGene class automatically retrieves the appropriate value from the correct place in the Bits chromosome using the Offset and Size properties. The overloaded GeneAsDouble method allows you to change the offset into the bits you want to use.
|
|
GeneAsDouble(TRSEncodedBits,Integer)
|
Overloaded. Extracts this gene's value from the Bits chromosome parameter. The function allows read access to the gene as double floating-point values. The equivalent SetGeneAsDouble method provides write access. The GeneAsDouble function 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.
Note: The TRSGAGene class automatically retrieves the appropriate value from the correct place in the Bits chromosome using the Offset and Size properties. The overloaded GeneAsDouble method will also automatically use the Offset property.
|
|
GeneAsEnumeration(TRSEncodedBits)
|
Overloaded. Extracts this gene's value from the Bits chromosome parameter. The function allows read access to the gene as enumerated values. The equivalent SetGeneAsEnumeration method provides write access. The GeneAsEnumeration 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 GeneAsEnumeration/SetGeneAsEnumeration methods translate the enumerated values from their strings into an integer index and encode 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.
Note: The TRSGAGene class automatically retrieves the appropriate value from the correct place in the Bits chromosome using the Offset and Size properties. The overloaded GeneAsEnumeration method allows you to change the offset into the bits you want to use.
|
|
GeneAsEnumeration(TRSEncodedBits,Integer)
|
Overloaded. Extracts this gene's value from the Bits chromosome parameter. The function allows read access to the gene as enumerated values. The equivalent SetGeneAsEnumeration method provides write access. The GeneAsEnumeration 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 GeneAsEnumeration/SetGeneAsEnumeration methods translate the enumerated values from their strings into an integer index and encode 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.
Note: The TRSGAGene class automatically retrieves the appropriate value from the correct place in the Bits chromosome using the Offset and Size properties. The overloaded GeneAsEnumeration method will also automatically use the Offset property.
|
|
GeneAsFloat(TRSEncodedBits)
|
Overloaded. Extracts this gene's value from the Bits chromosome parameter. The function allows read access to the gene as double floating-point values. The equivalent SetGeneAsDouble method provides write access. The GeneAsFloat function 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.
Note: The TRSGAGene class automatically retrieves the appropriate value from the correct place in the Bits chromosome using the Offset and Size properties. The overloaded GeneAsFloat method allows you to change the offset into the bits you want to use.
|
|
GeneAsFloat(TRSEncodedBits,Integer)
|
Overloaded. Extracts this gene's value from the Bits chromosome parameter. The function allows read access to the gene as double floating-point values. The equivalent SetGeneAsDouble method provides write access. The GeneAsFloat function 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.
Note: The TRSGAGene class automatically retrieves the appropriate value from the correct place in the Bits chromosome using the Offset and Size properties. The overloaded GeneAsDouble method will also automatically use the Offset property.
|
|
GeneAsInt64(TRSEncodedBits)
|
Overloaded. Extracts this gene's value from the Bits chromosome parameter. The function allows read access to the gene as 64-bit integer values. The equivalent SetGeneAsInt64 method provides write access. The GeneAsInt64 function 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.
Note: The TRSGAGene class automatically retrieves the appropriate value from the correct place in the Bits chromosome using the Offset and Size properties. The overloaded GeneAsInt64 method allows you to change the offset into the bits you want to use.
|
|
GeneAsInt64(TRSEncodedBits,Integer)
|
Overloaded. Extracts this gene's value from the Bits chromosome parameter. The function allows read access to the gene as 64-bit integer values. The equivalent SetGeneAsInt64 method provides write access. The GeneAsInt64 function 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.
Note: The TRSGAGene class automatically retrieves the appropriate value from the correct place in the Bits chromosome using the Offset and Size properties. The overloaded GeneAsInt64 method will also automatically use the Offset property.
|
|
GeneAsInteger(TRSEncodedBits)
|
Overloaded. Extracts this gene's value from the Bits chromosome parameter. The function allows read access to the gene as integer values. The equivalent SetGeneAsInteger method provides write access. The GeneAsInteger function will attempt to translate the chromosome bits of this gene to an 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.
Note: The TRSGAGene class automatically retrieves the appropriate value from the correct place in the Bits chromosome using the Offset and Size properties. The overloaded GeneAsInteger method allows you to change the offset into the bits you want to use.
|
|
GeneAsInteger(TRSEncodedBits,Integer)
|
Overloaded. Extracts this gene's value from the Bits chromosome parameter. The function allows read access to the gene as integer values. The equivalent SetGeneAsInteger method provides write access. The GeneAsInteger function will attempt to translate the chromosome bits of this gene to an 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.
Note: The TRSGAGene class automatically retrieves the appropriate value from the correct place in the Bits chromosome using the Offset and Size properties. The overloaded GeneAsInteger method will also automatically use the Offset property.
|
|
GetDisplayName
|
Represents method GetDisplayName.
|
|
RecalcMinMax
|
Represents method RecalcMinMax.
|
|
SetGeneAsBoolean(TRSEncodedBits,Boolean)
|
Overloaded. Writes the value into the Bits chromosome parameter. The function allows write access to the bits as boolean values. The equivalent GeneAsBoolean method provides read access. The SetGeneAsBoolean function will translate boolean into the chromosome bits, 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.
Note: The TRSGAGene class automatically stores the appropriate value into the correct place in the Bits chromosome using the Offset and Size properties. The overloaded SetGeneAsBoolean method allows you to change the offset into the bits you want to use.
|
|
SetGeneAsBoolean(TRSEncodedBits,Integer,Boolean)
|
Overloaded. Writes the value into the Bits chromosome parameter. The function allows write access to the bits as boolean values. The equivalent GeneAsBoolean method provides read access. The SetGeneAsBoolean function will translate boolean into the chromosome bits, 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.
Note: The TRSGAGene class automatically stores the appropriate value using the correct size in the Bits chromosome using the Size property but allows you to specify where in the bits the gene should be stored. The overloaded SetGeneAsBoolean method will also automatically use the Offset property.
|
|
SetGeneAsDouble(TRSEncodedBits,Double)
|
Overloaded. Writes the value into the Bits chromosome parameter. The function allows write access to the bits as double precision floating point values. The equivalent GeneAsDouble method provides read access. The SetGeneAsDouble function will translate double values into the chromosome bits, 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.
Note: The TRSGAGene class automatically stores the appropriate value into the correct place in the Bits chromosome using the Offset and Size properties. The overloaded SetGeneAsDouble method allows you to change the offset into the bits you want to use.
|
|
SetGeneAsDouble(TRSEncodedBits,Integer,Double)
|
Overloaded. Writes the value into the Bits chromosome parameter. The function allows write access to the bits as double precision floating point values. The equivalent GeneAsDouble method provides read access. The SetGeneAsDouble function will translate double values into the chromosome bits, 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.
Note: The TRSGAGene class automatically stores the appropriate value using the correct size in the Bits chromosome using the Size property but allows you to specify where in the bits the gene should be stored. The overloaded SetGeneAsDouble method will also automatically use the Offset property.
|
|
SetGeneAsEnumeration(TRSEncodedBits,Integer,String)
|
Overloaded. Writes the value into the Bits chromosome parameter at the specified Offset. The function allows write access to the bits as enumerated values. The equivalent GeneAsEnumeration method provides read access. The SetGeneAsEnumeration function attempts to translate string values into the chromosome bits representing the index of the 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 GeneAsEnumeration/SetGeneAsEnumeration methods translate the enumerated values from their strings into an integer index and encode 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.
Note: The TRSGAGene class automatically retrieves the appropriate value from the correct size in the Bits chromosome using the Size property but allows you to specify where in the bits the gene should be retrieved. The overloaded SetGeneAsEnumeration method will also automatically use the Offset property.
|
|
SetGeneAsEnumeration(TRSEncodedBits,String)
|
Overloaded. Writes the value into the Bits chromosome parameter. The function allows write access to the bits as enumerated values. The equivalent GeneAsEnumeration method provides read access. The SetGeneAsEnumeration function attempts to translate string values into the chromosome bits representing the index of the 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 GeneAsEnumeration/SetGeneAsEnumeration methods translate the enumerated values from their strings into an integer index and encode 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.
Note: The TRSGAGene class automatically retrieves the appropriate value from the correct place in the Bits chromosome using the Offset and Size properties. The overloaded SetGeneAsEnumeration method allows you to change the offset into the bits you want to use.
|
|
SetGeneAsFloat(TRSEncodedBits,Integer,Single)
|
Overloaded. Writes the value into the Bits chromosome parameter. The function allows write access to the bits as floating point values. The equivalent GeneAsFloat method provides read access. The SetGeneAsFloat function will translate floating point values into the chromosome bits, 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.
Note: The TRSGAGene class automatically stores the appropriate value using the correct size in the Bits chromosome using the Size property but allows you to specify where in the bits the gene should be stored. The overloaded SetGeneAsFloat method will also automatically use the Offset property.
|
|
SetGeneAsFloat(TRSEncodedBits,Single)
|
Overloaded. Writes the value into the Bits chromosome parameter. The function allows write access to the bits as floating point values. The equivalent GeneAsFloat method provides read access. The SetGeneAsFloat function will translate floating point values into the chromosome bits, 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.
Note: The TRSGAGene class automatically stores the appropriate value into the correct place in the Bits chromosome using the Offset and Size properties. The overloaded SetGeneAsFloat method allows you to change the offset into the bits you want to use.
|
|
SetGeneAsInt64(TRSEncodedBits,Int64)
|
Overloaded. Writes the value into the Bits chromosome parameter. The function allows write access to the bits as 64-bit integer values. The equivalent GeneAsInt64 method provides read access. The SetGeneAsInt64 function will translate 64-bit integer values into the chromosome bits, 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.
Note: The TRSGAGene class automatically stores the appropriate value into the correct place in the Bits chromosome using the Offset and Size properties. The overloaded SetGeneAsInt64 method allows you to change the offset into the bits you want to use.
|
|
SetGeneAsInt64(TRSEncodedBits,Integer,Int64)
|
Overloaded. Writes the value into the Bits chromosome parameter. The function allows write access to the bits as 64-bit integer values. The equivalent GeneAsInt64 method provides read access. The SetGeneAsInt64 function will translate 64-bit integer values into the chromosome bits, 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.
Note: The TRSGAGene class automatically stores the appropriate value using the correct size in the Bits chromosome using the Size property but allows you to specify where in the bits the gene should be stored. The overloaded SetGeneAsInt64 method will also automatically use the Offset property.
|
|
SetGeneAsInteger(TRSEncodedBits,Integer)
|
Overloaded. Writes the value into the Bits chromosome parameter. The function allows write access to the bits as integer values. The equivalent GeneAsInteger method provides read access. The SetGeneAsInteger function will translate integer values into the chromosome bits, 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.
Note: The TRSGAGene class automatically stores the appropriate value into the correct place in the Bits chromosome using the Offset and Size properties. The overloaded SetGeneAsInteger method allows you to change the offset into the bits you want to use.
|
|
SetGeneAsInteger(TRSEncodedBits,Integer,Integer)
|
Overloaded. Writes the value into the Bits chromosome parameter. The function allows write access to the bits as integer values. The equivalent GeneAsInteger method provides read access. The SetGeneAsInteger function will translate integer values into the chromosome bits, 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.
Note: The TRSGAGene class automatically stores the appropriate value using the correct size in the Bits chromosome using the Size property but allows you to specify where in the bits the gene should be stored. The overloaded SetGeneAsInteger method will also automatically use the Offset property.
|
|
SetOffset(Integer)
|
Represents method SetOffset(Integer).
|
|
SizeChange
|
Represents method SizeChange.
|