Class ConstructionHeuristicDecider<Solution_>
java.lang.Object
org.optaplanner.core.impl.constructionheuristic.decider.ConstructionHeuristicDecider<Solution_>
- Type Parameters:
Solution_- the solution type, the class with thePlanningSolutionannotation
- Direct Known Subclasses:
MultiThreadedConstructionHeuristicDecider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected final ConstructionHeuristicForager<Solution_>protected final org.slf4j.Loggerprotected final Stringprotected final Termination<Solution_> -
Constructor Summary
ConstructorsConstructorDescriptionConstructionHeuristicDecider(String logIndentation, Termination<Solution_> termination, ConstructionHeuristicForager<Solution_> forager) -
Method Summary
Modifier and TypeMethodDescriptionvoiddecideNextStep(ConstructionHeuristicStepScope<Solution_> stepScope, Placement<Solution_> placement) protected <Score_ extends Score<Score_>>
voiddoMove(ConstructionHeuristicMoveScope<Solution_> moveScope) voidphaseEnded(ConstructionHeuristicPhaseScope<Solution_> phaseScope) voidphaseStarted(ConstructionHeuristicPhaseScope<Solution_> phaseScope) protected voidpickMove(ConstructionHeuristicStepScope<Solution_> stepScope) voidsetAssertExpectedUndoMoveScore(boolean assertExpectedUndoMoveScore) voidsetAssertMoveScoreFromScratch(boolean assertMoveScoreFromScratch) 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, Termination<Solution_> termination, ConstructionHeuristicForager<Solution_> forager)
-
-
Method Details
-
getForager
-
setAssertMoveScoreFromScratch
public void setAssertMoveScoreFromScratch(boolean assertMoveScoreFromScratch) -
setAssertExpectedUndoMoveScore
public void setAssertExpectedUndoMoveScore(boolean assertExpectedUndoMoveScore) -
solvingStarted
-
phaseStarted
-
stepStarted
-
stepEnded
-
phaseEnded
-
solvingEnded
-
solvingError
-
decideNextStep
public void decideNextStep(ConstructionHeuristicStepScope<Solution_> stepScope, Placement<Solution_> placement) -
pickMove
-
doMove
protected <Score_ extends Score<Score_>> void doMove(ConstructionHeuristicMoveScope<Solution_> moveScope)
-