Click or drag to resize

SystemPerformanceOptimizationContextStopAtIntermediateIteration Method

Specifies conditions under which a SystemPerformanceOptimizer executing in this context should be considered as terminated after completing an intermediate iteration.

Namespace:  Novacta.Analytics.Advanced
Assembly:  Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax
protected virtual bool StopAtIntermediateIteration(
	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 in previous iterations by a SystemPerformanceOptimizer executing in this context.
parameters
Type: System.Collections.GenericLinkedListDoubleMatrix
The sampling parameters applied in previous iterations by a SystemPerformanceOptimizer executing in this context.

Return Value

Type: Boolean
true if the optimization program must be stopped; otherwise, false.
Exceptions
ExceptionCondition
ArgumentNullExceptionlevels is null.
-or-
parameters is null.
Remarks

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

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

By default, the method controls if, in the last MinimumNumberOfIterations iterations, the levels achieved by the program remain constant, and, if so, return true; otherwise returns false.

See Also