Hide Comments
Hide Comments

TRSGAGene.SetGeneAsInt64(TRSEncodedBits,Int64) Method

Comments (0)

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.
 

Namespace: RSGeneticAlgorithm

expandingSyntax

Delphi

public 
  procedure SetGeneAsInt64(Bits: TRSEncodedBits; const Value: Int64); overload; 
 

Parameters

Bits

Type: TRSEncodedBits

Value

Type: Int64

expandingSee Also

Comments (0)