Class ConstructionHeuristicDecider<Solution_>
java.lang.Object
org.optaplanner.core.impl.constructionheuristic.decider.ConstructionHeuristicDecider<Solution_>
- Type Parameters:
Solution_
- the solution type, the class with thePlanningSolution
annotation
- Direct Known Subclasses:
MultiThreadedConstructionHeuristicDecider
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected boolean
protected final ConstructionHeuristicForager<Solution_>
protected final org.slf4j.Logger
protected final String
protected final Termination<Solution_>
-
Constructor Summary
ConstructorDescriptionConstructionHeuristicDecider
(String logIndentation, Termination<Solution_> termination, ConstructionHeuristicForager<Solution_> forager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
decideNextStep
(ConstructionHeuristicStepScope<Solution_> stepScope, Placement<Solution_> placement) protected <Score_ extends Score<Score_>>
voiddoMove
(ConstructionHeuristicMoveScope<Solution_> moveScope) void
phaseEnded
(ConstructionHeuristicPhaseScope<Solution_> phaseScope) void
phaseStarted
(ConstructionHeuristicPhaseScope<Solution_> phaseScope) protected void
pickMove
(ConstructionHeuristicStepScope<Solution_> stepScope) void
setAssertExpectedUndoMoveScore
(boolean assertExpectedUndoMoveScore) void
setAssertMoveScoreFromScratch
(boolean assertMoveScoreFromScratch) void
solvingEnded
(SolverScope<Solution_> solverScope) void
solvingError
(SolverScope<Solution_> solverScope, Exception exception) void
solvingStarted
(SolverScope<Solution_> solverScope) void
stepEnded
(ConstructionHeuristicStepScope<Solution_> stepScope) void
stepStarted
(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)
-