SystemPerformanceOptimizationContext.StopExecution Method

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

Definition

Namespace: Novacta.Analytics.Advanced
Assembly: Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.1.0+428f3840cfab98dda567bb0ed350b302533e273a
C#
protected override sealed bool StopExecution(
	int iteration,
	LinkedList<double> levels,
	LinkedList<DoubleMatrix> parameters
)

Parameters

iteration  Int32
The current iteration identifier.
levels  LinkedList<Double>
The performance levels achieved by the program in previous iterations.
parameters  LinkedList<DoubleMatrix>
The sampling parameters applied by the program in previous iterations.

Return Value

Boolean
true to stop the program; false otherwise.

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, LinkedList<Double>, LinkedList<DoubleMatrix>) is called to check if a Cross-Entropy program executing in this context should stop or not after completing an intermediate iteration.

Exceptions

ArgumentNullExceptionlevels is null.
-or-
parameters is null.

See Also