Table of Contents

Class Offspring<TIndividual>

Namespace
Evolutionary
Assembly
Evolutionary.dll

The offspring class.

public class Offspring<TIndividual>

Type Parameters

TIndividual

The individuals type.

Inheritance
Offspring<TIndividual>
Inherited Members
Extension Methods

Constructors

Offspring(Population<TIndividual>, Random, IEnumerable<TIndividual>, IEnumerable<TIndividual>)

Creates a new offspring.

public Offspring(Population<TIndividual> parentPopulation, Random random, IEnumerable<TIndividual> randomParents, IEnumerable<TIndividual> children)

Parameters

parentPopulation Population<TIndividual>

The parent population.

random Random

The random generator that is used by the operators.

randomParents IEnumerable<TIndividual>

A never ending random enumeration over the parents.

children IEnumerable<TIndividual>

The children.

Properties

Children

The list of children of the generation.

public IEnumerable<TIndividual> Children { get; }

Property Value

IEnumerable<TIndividual>

ParentPopulation

The parent population.

public Population<TIndividual> ParentPopulation { get; }

Property Value

Population<TIndividual>

Random

Gets the random number generator that is used by the operators.

public Random Random { get; }

Property Value

Random

RandomParents

A never ending enumeration of a random selection of the parents.

public IEnumerable<TIndividual> RandomParents { get; }

Property Value

IEnumerable<TIndividual>