Package pal.algorithmics
Interface StoppingCriteria
-
- All Superinterfaces:
java.io.Serializable
public interface StoppingCriteria extends java.io.Serializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
StoppingCriteria.Factory
static class
StoppingCriteria.Utils
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
getRelativeStoppingRatio()
Get an indication of how close to stopping we currently areboolean
isTimeToStop()
void
newIteration(double currentScore, double bestScore, boolean maximising, boolean externalStablized, AlgorithmCallback callback)
void
reset()
-
-
-
Method Detail
-
isTimeToStop
boolean isTimeToStop()
-
getRelativeStoppingRatio
double getRelativeStoppingRatio()
Get an indication of how close to stopping we currently are- Returns:
- a value between 0 and 1 where zero means not likely to stop soon, and a value of one means likely to stop very soon
-
newIteration
void newIteration(double currentScore, double bestScore, boolean maximising, boolean externalStablized, AlgorithmCallback callback)
- Parameters:
externalStablized
- if true than other factors have stablized
-
reset
void reset()
-
-