Show/Hide Toolbars

RiverSoftAVG Products Help

Provides the mapping for one gene in the chromosome of the population of the RSGeneticAlgorithm.TRSCustomGeneticAlgorithm component and its descendants. The TRSCustomGeneticAlgorithm class contains a population of individuals ( RSGeneticAlgorithm.TRSGAPopulation ), which contain chromosomes (    Bits property). These chromosomes are used to abstractly represent the solution to the search problem. They represent through their bits the DNA of each candidate solution (or individual), represented by a RSGeneticAlgorithm.TRSGAIndividual class. 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 TRSGAGene provides a mapping that gives meaning to the bits in the individual.

The TRSGAGene class is a helper class (available through the    Genes property of the TRSGeneticAlgorithm component) 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. The TRSGAGenes collection maintains the list of all genes.

NOTE: Genes are optional (instead, you can use the    GeneSize property). 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.
 

Namespace: RSGeneticAlgorithm

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb