Reproduce

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

Reproduce

Return to chapter overview

 

Reproduce(Population As Integer)

 

Purpose: This function makes a new generation in the specified population.  After a call to this function, the values of the chromosomes of individuals change, and previous values of fitness functions stored by PutFitness have no meaning.  After a call to Reproduce, the user must immediately set the fitness values of all individuals in the population.  Refer to the examples in Chapters 6 and 7 to see how this is done.

 

Arguments:

Population is the number of the population for which you are going to make a new generation.

 

Example: i = Reproduce(PopNum)

 

This example creates a new generation in a population whose number is stored in the PopNum variable.

 

Related Functions:  None