Interface StopCondition
-
- All Known Implementing Classes:
AfterIterations
,AfterNoImprovement
,AndStopConditions
,AtThreshold
,OrStopConditions
public interface StopCondition
Defines when an algorithm stops (the iterations).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isStopped(Vector x, double... information)
This is called after each iteration to determine whether the termination conditions are met, e.g., convergence.
-
-
-
Method Detail
-
isStopped
boolean isStopped(Vector x, double... information)
This is called after each iteration to determine whether the termination conditions are met, e.g., convergence.- Parameters:
x
- the current state of the algorithminformation
- auxiliary information, e.g., the energy at a given state- Returns:
true
if the iteration should stop
-
-