|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.math3.genetics.FixedElapsedTime
public class FixedElapsedTime
Stops after a fixed amount of time has elapsed.
The first time isSatisfied(Population) is invoked, the end time of the evolution is determined based on the
provided maxTime value. Once the elapsed time reaches the configured maxTime value,
isSatisfied(Population) returns true.
| Constructor Summary | |
|---|---|
FixedElapsedTime(long maxTime)
Create a new FixedElapsedTime instance. |
|
FixedElapsedTime(long maxTime,
TimeUnit unit)
Create a new FixedElapsedTime instance. |
|
| Method Summary | |
|---|---|
boolean |
isSatisfied(Population population)
Determine whether or not the maximum allowed time has passed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FixedElapsedTime(long maxTime)
throws NumberIsTooSmallException
FixedElapsedTime instance.
maxTime - maximum number of seconds generations are allowed to evolve
NumberIsTooSmallException - if the provided time is < 0
public FixedElapsedTime(long maxTime,
TimeUnit unit)
throws NumberIsTooSmallException
FixedElapsedTime instance.
maxTime - maximum time generations are allowed to evolveunit - TimeUnit of the maxTime argument
NumberIsTooSmallException - if the provided time is < 0| Method Detail |
|---|
public boolean isSatisfied(Population population)
isSatisfied in interface StoppingConditionpopulation - ignored (no impact on result)
true IFF the maximum allowed time period has elapsed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||