Initializes a new instance of the Population
Accord.Genetic (in Accord.Genetic.dll) Version: 3.7.0
Syntax Request Example
Public Sub New (
size As Integer,
ancestor As IChromosome,
fitnessFunction As IFitnessFunction,
selectionMethod As ISelectionMethod
- Type: SystemInt32
Initial size of population.
- Type: Accord.GeneticIChromosome
Ancestor chromosome to use for population creatioin.
- Type: Accord.GeneticIFitnessFunction
Fitness function to use for calculating
chromosome's fitness values.
- Type: Accord.GeneticISelectionMethod
Selection algorithm to use for selection
chromosome's to new generation.
|ArgumentException||Too small population's size was specified. The
exception is thrown in the case if size is smaller than 2.|Remarks
Creates new population of specified size. The specified ancestor
becomes first member of the population and is used to create other members
with same parameters, which were used for ancestor's creation.