Click or drag to resize

BaseOptimizerStopDelegateType Delegate

The delegate to the function that determines stopping criterion.

Namespace:  FinMath.MachineLearning.EvolutionaryAlgorithms
Assembly:  FinMath (in FinMath.dll) Version: 2.4.7-0a995bd0ea1854c2c868ec3f8dae606c5777e170
Syntax
C#
public delegate bool StopDelegateType(
	int step,
	TimeSpan elapsedTime,
	double solutionValue,
	Vector solutionPoint
)

Parameters

step
Type: SystemInt32
The optimization step number.
elapsedTime
Type: SystemTimeSpan
The optimization time elapsed.
solutionValue
Type: SystemDouble
The current found solution value.
Remarks
The solutionPoint and solutionValue variables contains the current (last) optimization solution. This solution can be worse than previously found.
solutionPoint
Type: FinMath.LinearAlgebraVector
The current found solution point.

Return Value

Type: Boolean
Returns true for the minimization next step.
See Also