SystemPerformanceOptimizationContextStopExecution Method |
Namespace: Novacta.Analytics.Advanced
protected override sealed bool StopExecution( int iteration, LinkedList<double> levels, LinkedList<DoubleMatrix> parameters )
Exception | Condition |
---|---|
ArgumentNullException | levels is null. -or- parameters is null. |
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.