V
- VariableT
- Valuepublic class GeneralTerminationCondition<V extends Variable<V,T>,T extends Value<V,T>> extends Object implements TerminationCondition<V,T>
Parameter | Type | Comment |
---|---|---|
Termination.StopWhenComplete | Double |
if true, solver stops when a complete solution is found |
Termination.MaxIters | Integer |
if zero or positive, solver stops when the given number of iteration is reached |
Termination.TimeOut | Double |
if zero or positive, solver stops when the given timeout (given in seconds) is reached |
Solver
Modifier and Type | Field and Description |
---|---|
protected static org.apache.logging.log4j.Logger |
sLogger |
Constructor and Description |
---|
GeneralTerminationCondition(DataProperties properties) |
Modifier and Type | Method and Description |
---|---|
boolean |
canContinue(Solution<V,T> currentSolution)
Returns true when the solver can continue with the next iteration
|
protected static org.apache.logging.log4j.Logger sLogger
public GeneralTerminationCondition(DataProperties properties)
public boolean canContinue(Solution<V,T> currentSolution)
TerminationCondition
canContinue
in interface TerminationCondition<V extends Variable<V,T>,T extends Value<V,T>>
currentSolution
- current solution