Show/Hide Toolbars

RiverSoftAVG Products Help

Allows you to define the genes that make up the DNA of the Population's chromosomes. The chromosomes are created by taking the parameters or factors (integers, booleans, floats, and enumerations) of your search problem and concatenating them together into a sequence of bits. The Genes property allows you to define the sequence of genes ( RSGeneticAlgorithm.TRSGAGene ) that make up these bits.

Each TRSGAGene provides a mapping that gives meaning to a certain number of bits in the individual. The TRSGAGene class is a helper class which helps you define and manipulate the genes of your population easily by defining n-bit integers, booleans, floats, etc. Each gene defines a characteristic of an individual. While the chromosomes are specific to an individual, the gene definition (TRSGAGene) defines the meaning of each gene for the entire population.


Genes are optional. These classes help you decode the bits of an individual but if you don't want to use them, you do not have to. If they are defined, the size of the chromosomes for every individual is the same.

As an alternative to defining the genes of your population, you can use the GeneSize property to just define the number of bits in the chromosome with no mapping.

Namespace: RSGeneticAlgorithm

Property Value

Type: TRSGAGenes

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb