MainIterativeProcess

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
protected open override fun checkStoppingCondition()

This function is called after each iteration (step) is completed. The number of iterations is automatically checked. This function allows for the inclusion of additional stopping criteria through the implementation of the isStoppingCriteriaSatisfied() function, which subclasses can provide.

Link copied to clipboard
protected open override fun endIterations()
Link copied to clipboard
open override fun hasNextStep(): Boolean

This method should check to see if another step is necessary for the iterative process. True means that the process has another step to be executed. False, means that no more steps are available for execution.

Link copied to clipboard
protected open override fun initializeIterations()
Link copied to clipboard
protected open override fun nextStep(): Solver.MainIterativeProcess?

This method should return the next step to be executed in the iterative process or null if no more steps can be executed. It should advance the current step to the next step if it is available

Link copied to clipboard
protected open override fun runStep()

This method tells the iterative process to execute the current step. Typical usage is to call this after calling next() to advance to the next step. This method should throw a NoSuchStepException if there are no more steps to run, and it is told to run the step.