org.optaplanner.core.impl.solver.recaller
Class BestSolutionRecaller
java.lang.Object
org.optaplanner.core.impl.solver.event.SolverLifecycleListenerAdapter
org.optaplanner.core.impl.phase.event.PhaseLifecycleListenerAdapter
org.optaplanner.core.impl.solver.recaller.BestSolutionRecaller
- All Implemented Interfaces:
- EventListener, PhaseLifecycleListener, SolverLifecycleListener
public class BestSolutionRecaller
- extends PhaseLifecycleListenerAdapter
A BestSolutionRecaller remembers the best solution that a Solver
encounters.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final transient org.slf4j.Logger logger
assertInitialScoreFromScratch
protected boolean assertInitialScoreFromScratch
assertBestScoreIsUnmodified
protected boolean assertBestScoreIsUnmodified
solverEventSupport
protected SolverEventSupport solverEventSupport
BestSolutionRecaller
public BestSolutionRecaller()
setAssertInitialScoreFromScratch
public void setAssertInitialScoreFromScratch(boolean assertInitialScoreFromScratch)
setAssertBestScoreIsUnmodified
public void setAssertBestScoreIsUnmodified(boolean assertBestScoreIsUnmodified)
setSolverEventSupport
public void setSolverEventSupport(SolverEventSupport solverEventSupport)
solvingStarted
public void solvingStarted(DefaultSolverScope solverScope)
- Specified by:
solvingStarted
in interface SolverLifecycleListener
- Overrides:
solvingStarted
in class SolverLifecycleListenerAdapter
processWorkingSolutionDuringStep
public void processWorkingSolutionDuringStep(AbstractStepScope stepScope)
processWorkingSolutionDuringMove
public void processWorkingSolutionDuringMove(int uninitializedVariableCount,
Score score,
AbstractStepScope stepScope)
updateBestSolution
public void updateBestSolution(DefaultSolverScope solverScope,
Solution solution,
int uninitializedVariableCount)
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.