Class ConstructionHeuristicDecider<Solution_>
java.lang.Object
ai.timefold.solver.core.impl.constructionheuristic.decider.ConstructionHeuristicDecider<Solution_>
- Type Parameters:
Solution_- the solution type, the class with thePlanningSolutionannotation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected final ConstructionHeuristicForager<Solution_>protected final org.slf4j.Loggerprotected final Stringprotected final PhaseTermination<Solution_> -
Constructor Summary
ConstructorsConstructorDescriptionConstructionHeuristicDecider(String logIndentation, PhaseTermination<Solution_> termination, ConstructionHeuristicForager<Solution_> forager) -
Method Summary
Modifier and TypeMethodDescriptionvoiddecideNextStep(ConstructionHeuristicStepScope<Solution_> stepScope, Iterator<Move<Solution_>> moveIterator) protected voiddoMove(ConstructionHeuristicMoveScope<Solution_> moveScope) voidenableAssertions(EnvironmentMode environmentMode) booleanvoidphaseEnded(ConstructionHeuristicPhaseScope<Solution_> phaseScope) voidphaseStarted(ConstructionHeuristicPhaseScope<Solution_> phaseScope) protected voidpickMove(ConstructionHeuristicStepScope<Solution_> stepScope) voidsolvingEnded(SolverScope<Solution_> solverScope) voidsolvingError(SolverScope<Solution_> solverScope, Exception exception) voidsolvingStarted(SolverScope<Solution_> solverScope) voidstepEnded(ConstructionHeuristicStepScope<Solution_> stepScope) voidstepStarted(ConstructionHeuristicStepScope<Solution_> stepScope)
-
Field Details
-
logger
protected final transient org.slf4j.Logger logger -
logIndentation
-
termination
-
forager
-
assertMoveScoreFromScratch
protected boolean assertMoveScoreFromScratch -
assertExpectedUndoMoveScore
protected boolean assertExpectedUndoMoveScore
-
-
Constructor Details
-
ConstructionHeuristicDecider
public ConstructionHeuristicDecider(String logIndentation, PhaseTermination<Solution_> termination, ConstructionHeuristicForager<Solution_> forager)
-
-
Method Details
-
isLoggingEnabled
public boolean isLoggingEnabled() -
getForager
-
enableAssertions
-
solvingStarted
-
phaseStarted
-
stepStarted
-
stepEnded
-
phaseEnded
-
solvingEnded
-
solvingError
-
decideNextStep
public void decideNextStep(ConstructionHeuristicStepScope<Solution_> stepScope, Iterator<Move<Solution_>> moveIterator) -
pickMove
-
doMove
-