Global Constants

<< Click to Display Table of Contents >>

Navigation:  Chapter 9 - Global Constants and Error Messages >

Global Constants

Previous pageReturn to chapter overviewNext page

The following constants are defined in GALIB32.BAS.  Programmers may use these symbols in their code instead of coding the associated numeric values.  You may find copies of GALIB32.BAS in each of the Visual Basic examples in your GeneHunter directory.  GALIB32.BAS should be included in your Visual Basic project.

 

Global Const REPEATING_GENES = 0 ' The enumerated chromosome will have duplicate genes

 

Global Const UNIQUE_GENES = 1    ' The enumerated chromosome will have genes without duplicates

 

Global Const SIMPLE_CONT_CROSS = 1 ' Simple 1-point crossover for

continuous chromosomes

 

Global Const REPEATING_GENES_CROSS = 0 ' Crossover that is applied to enumerated chromosomes with duplicates

 

Global Const UNIQUE_GENES_CROSS = 1    ' Crossover that is applied to enumerated chromosomes without duplicates

 

Global Const PURE_SELECTION = 0    ' Roulette wheel selection strategy

 

Global Const ELITIST_SELECTION = 1 ' Elitism selection strategy

 

Global Const BIT8 = 1   '   8-bit resolution for continuous chromosomes

 

Global Const BIT16 = 2  ' 16-bit resolution for continuous chromosomes

 

Global Const BIT32 = 3  ' 32-bit resolution for continuous chromosomes