| 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
)
Protected Overridable Function StopAtIntermediateIteration (
iteration As Integer,
levels As LinkedList(Of Double),
parameters As LinkedList(Of DoubleMatrix)
) As Boolean
protected:
virtual bool StopAtIntermediateIteration(
int iteration,
LinkedList<double>^ levels,
LinkedList<DoubleMatrix^>^ parameters
)
abstract StopAtIntermediateIteration :
iteration : int *
levels : LinkedList<float> *
parameters : LinkedList<DoubleMatrix> -> bool
override StopAtIntermediateIteration :
iteration : int *
levels : LinkedList<float> *
parameters : LinkedList<DoubleMatrix> -> bool
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:
Booleantrue if the optimization program must be stopped;
otherwise,
false.
Exceptions 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