Population<TCandidate>.Initialize Method

Definition

Namespace: Numerics.NET.Optimization
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0

Overload List

Initialize(Int32, PopulationInitializationMethod, Vector<Double>, Vector<Double>, Func<Vector<Double>, Double>, IRandomSource)

Initializes the population with the specified parameters.
C#
public void Initialize(
	int capacity,
	PopulationInitializationMethod initializationType,
	Vector<double> lowerBounds,
	Vector<double> upperBounds,
	Func<Vector<double>, double> evaluator,
	IRandomSource rng
)

Parameters

capacity  Int32
The capacity of the population.
initializationType  PopulationInitializationMethod
The type of initialization.
lowerBounds  Vector<Double>
The lower bounds of the search space.
upperBounds  Vector<Double>
The upper bounds of the search space.
evaluator  Func<Vector<Double>, Double>
The evaluator function.
rng  IRandomSource
The random number generator.

Initialize(Int32, PopulationInitializationMethod, Vector<Double>, Vector<Double>, Func<Vector<Double>, Double>, Random)

Initializes the population with the specified parameters.
C#
public void Initialize(
	int capacity,
	PopulationInitializationMethod initializationType,
	Vector<double> lowerBounds,
	Vector<double> upperBounds,
	Func<Vector<double>, double> evaluator,
	Random rng
)

Parameters

capacity  Int32
The capacity of the population.
initializationType  PopulationInitializationMethod
The type of initialization.
lowerBounds  Vector<Double>
The lower bounds of the search space.
upperBounds  Vector<Double>
The upper bounds of the search space.
evaluator  Func<Vector<Double>, Double>
The evaluator function.
rng  Random
The random number generator.

See Also