|
OptaPlanner core 6.2.0.Beta2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Termination
A Termination determines when a Solver
or a Phase
should stop.
AbstractTermination
to ensure backwards compatibility in future versions.
AbstractTermination
Method Summary | |
---|---|
double |
calculatePhaseTimeGradient(AbstractPhaseScope phaseScope)
See calculateSolverTimeGradient(DefaultSolverScope) . |
double |
calculateSolverTimeGradient(DefaultSolverScope solverScope)
A timeGradient is a relative estimate of how long the search will continue. |
boolean |
isPhaseTerminated(AbstractPhaseScope phaseScope)
Called by the Phase after every step and every move to determine if the search should stop. |
boolean |
isSolverTerminated(DefaultSolverScope solverScope)
Called by the Solver after every phase to determine if the search should stop. |
Methods inherited from interface org.optaplanner.core.impl.phase.event.PhaseLifecycleListener |
---|
phaseEnded, phaseStarted, stepEnded, stepStarted |
Methods inherited from interface org.optaplanner.core.impl.solver.event.SolverLifecycleListener |
---|
solvingEnded, solvingStarted |
Method Detail |
---|
boolean isSolverTerminated(DefaultSolverScope solverScope)
Solver
after every phase to determine if the search should stop.
solverScope
- never null
boolean isPhaseTerminated(AbstractPhaseScope phaseScope)
Phase
after every step and every move to determine if the search should stop.
phaseScope
- never null
double calculateSolverTimeGradient(DefaultSolverScope solverScope)
SimulatedAnnealingAcceptor
) require a correctly implemented timeGradient.
A Termination's timeGradient can be requested after they are terminated, so implementations
should be careful not to return a timeGradient above 1.0.
solverScope
- never null
double calculatePhaseTimeGradient(AbstractPhaseScope phaseScope)
calculateSolverTimeGradient(DefaultSolverScope)
.
phaseScope
- never null
|
OptaPlanner core 6.2.0.Beta2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |