| CrossEntropyContextStopExecution Method |
Specifies conditions
under which
a
CrossEntropyProgram executing in this
context should be considered
as terminated.
Namespace:
Novacta.Analytics.Advanced
Assembly:
Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax protected abstract bool StopExecution(
int iteration,
LinkedList<double> levels,
LinkedList<DoubleMatrix> parameters
)
Protected MustOverride Function StopExecution (
iteration As Integer,
levels As LinkedList(Of Double),
parameters As LinkedList(Of DoubleMatrix)
) As Boolean
protected:
virtual bool StopExecution(
int iteration,
LinkedList<double>^ levels,
LinkedList<DoubleMatrix^>^ parameters
) abstract
abstract StopExecution :
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 by the program
in previous iterations.
- parameters
- Type: System.Collections.GenericLinkedListDoubleMatrix
The sampling parameters applied by the program in
previous iterations.
Return Value
Type:
Booleantrue to stop the program;
false otherwise.
Remarks
Each iteration executed by the Run method
of a CrossEntropyProgram ends with a
call to method StopExecution, and
the program stops iterating if it returns
true.
By overriding the method in a derived context class, it determines
at what conditions the Cross-Entropy program should stop
at iteration completion.
See Also