public interface TerminationCondition extends Cloneable, InstantiableFromParameterSet, Storable
doNextIteration(int, double, double, double, double, double, Time)which method returns
falseif no further iteration of the algorithm should be computed and the algorithm should be stopped. If the method returns
trueanother iteration in the algorithm should be done.
|Modifier and Type||Method and Description|
This method allows to decide whether to do another iteration in an optimization or not.
This method returns
boolean doNextIteration(int iteration, double f_last, double f_current, double gradient, double direction, double alpha, Time t)
trueit is recommended to do another iteration, otherwise (the method returns
falseand) it is recommended to stop the algorithm.
iteration- the number of performed iterations
f_last- last value of the function
f_current- current value of the function
gradient- the gradient of the function
direction- the last direction of the optimization
alpha- the last step size
t- a time object measuring the time that has been elapsed in the optimization
trueif another iteration should be done