|
OptaPlanner core 6.0.0.Beta3 | |||||||||
| 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 SolverPhase should stop.
| Method Summary | |
|---|---|
double |
calculatePhaseTimeGradient(AbstractSolverPhaseScope phaseScope)
See calculateSolverTimeGradient(DefaultSolverScope). |
double |
calculateSolverTimeGradient(DefaultSolverScope solverScope)
A timeGradient is a relative estimate of how long the search will continue. |
boolean |
isPhaseTerminated(AbstractSolverPhaseScope phaseScope)
Called by the SolverPhase 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.SolverPhaseLifecycleListener |
|---|
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(AbstractSolverPhaseScope phaseScope)
SolverPhase 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(AbstractSolverPhaseScope phaseScope)
calculateSolverTimeGradient(DefaultSolverScope).
phaseScope - never null
|
OptaPlanner core 6.0.0.Beta3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||