GetEnumChromosomeParm

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

GetEnumChromosomeParm

Return to chapter overview

 

GetEnumChromosomeParm(Population As Integer, EnumChromosome As Integer, EnumChromoRange As Integer, EnumChromoLength As Integer)

 

Purpose: This function returns the range and the length of a specified enumerated chromosome in the population currently evolving in the memory.  See MakeEnumChromosome for a definition of length and range.

 

Arguments:

Population is the number of the population which you are testing.

EnumChromosome is the number of the enumerated chromosome whose length you want to get.

EnumChromoRange is the integer variable where the range of the enumerated chromosome will be stored.

EnumChromoLength is the integer variable where the length of the enumerated chromosome will be stored.

 

Example: i = GetEnumChromosomeParm(PopNo, 0, EnumChromoRange, EnumChromoLength)

 

This example retrieves the range and the length of the chromosome 0 in the population, whose number is stored in the PopNo variable.  The chromosome range and length are stored in EnumChromoRange and EnumChromoLength by GeneHunter.

 

Related Functions: GetEnumChromosome, PutEnumChromosome