A Genetic Programming Framework for .NET

GenerationHistory Constructor (Int32, String[], Boolean)

Creates a new instance of the GenerationHistory class with the specified Generation number, IIndividual names.

public GenerationHistory(
   int generation,
   string[] individuals,
   bool maximizeFitness
);

Parameters

generation
The generation number of this GenerationHistory.
individuals
Names of the IIndividuals from this Generation.
maximizeFitness
true if fitness should be maximized; otherwise, false.

Exceptions

Exception Type Condition
ArgumentOutOfRangeException Thrown when generation is less than zero.
ArgumentNullException Thrown when individuals is null.
ArgumentException Thrown when individuals is empty.

See Also

GenerationHistory Class | GeneticProgrammingEngine.Internal Namespace | GenerationHistory Constructor Overload List | Population Class | Generation Term