PopulationBasedOptimizer<TSolution, TPopulation, TCandidate>.PopulationSize Property

Gets or sets the population size used in the algorithm.

Definition

Namespace: Numerics.NET.Optimization
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.1.0
C#
public int PopulationSize { get; set; }

Property Value

Int32

Remarks

The population size must be at least 4. The default value is max(10*Dimensions, 40).

Exceptions

ArgumentOutOfRangeException

The value is less than 4.

See Also