Click or drag to resize

CrossEntropyContextStopExecution Method

Specifies conditions under which a CrossEntropyProgram executing in this context should be considered as terminated.

Namespace:  Novacta.Analytics.Advanced
Assembly:  Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax
protected abstract bool StopExecution(
	int iteration,
	LinkedList<double> levels,
	LinkedList<DoubleMatrix> parameters
)

Parameters

iteration
Type: SystemInt32
The current iteration identifier.
levels
Type: System.Collections.GenericLinkedListDouble
The performance levels achieved by the program in previous iterations.
parameters
Type: System.Collections.GenericLinkedListDoubleMatrix
The sampling parameters applied by the program in previous iterations.

Return Value

Type: Boolean
true to stop the program; false otherwise.
Remarks

Each iteration executed by the Run method of a CrossEntropyProgram ends with a call to method StopExecution, and the program stops iterating if it returns true. By overriding the method in a derived context class, it determines at what conditions the Cross-Entropy program should stop at iteration completion.

See Also