Click or drag to resize

CombinationOptimizationContextStopAtIntermediateIteration 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 override 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

At intermediate iterations, the algorithm will stop under the following conditions.

A CombinationOptimizationContext never stops before executing a number of iterations less than MinimumNumberOfIterations, and always stops if such number is greater than or equal to 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.

In a CombinationOptimizationContext, the method analyzes the currently updated reference parameter, say LaTeX equation as follows. Let LaTeX equation be MinimumNumberOfIterations, and defines LaTeX equation as the set of indexes in LaTeX equation corresponding to its LaTeX equation largest probabilities, where LaTeX equation is CombinationDimension. If condition

LaTeX equation

can be verified, the method returns true; otherwise false is returned. The algorithm thus converges if the indexes of the largest LaTeX equation probabilities coincide LaTeX equation times in a row of iterations.

See Also