Click or drag to resize

SystemPerformanceOptimizationContextStopExecution 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 override sealed 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.
Exceptions
ExceptionCondition
ArgumentNullExceptionlevels is null.
-or-
parameters is null.
Remarks

In the SystemPerformanceOptimizationContext class, this method is implemented as follows.

An iteration is defined as intermediate for a SystemPerformanceOptimizationContext if it is greater than MinimumNumberOfIterations, and less than MaximumNumberOfIterations.

A SystemPerformanceOptimizationContext never stops if iteration is less than or equal to MinimumNumberOfIterations, and always stops if iteration is greater than or equal to MaximumNumberOfIterations.

For intermediate iterations, overridable method StopAtIntermediateIteration(Int32, LinkedListDouble, LinkedListDoubleMatrix) is called to check if a Cross-Entropy program executing in this context should stop or not after completing an intermediate iteration.

See Also