Class DiversifiedLateAcceptanceAcceptor<Solution_>
java.lang.Object
ai.timefold.solver.core.impl.solver.event.SolverLifecycleListenerAdapter<Solution_>
ai.timefold.solver.core.impl.localsearch.event.LocalSearchPhaseLifecycleListenerAdapter<Solution_>
ai.timefold.solver.core.impl.localsearch.decider.acceptor.AbstractAcceptor<Solution_>
ai.timefold.solver.core.impl.localsearch.decider.acceptor.lateacceptance.DiversifiedLateAcceptanceAcceptor<Solution_>
- All Implemented Interfaces:
Acceptor<Solution_>,LocalSearchPhaseLifecycleListener<Solution_>,SolverLifecycleListener<Solution_>,EventListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected intprotected InnerScore<?>protected InnerScore<?>[]Fields inherited from class ai.timefold.solver.core.impl.localsearch.decider.acceptor.AbstractAcceptor
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisAccepted(LocalSearchMoveScope<Solution_> moveScope) voidphaseEnded(LocalSearchPhaseScope<Solution_> phaseScope) voidphaseStarted(LocalSearchPhaseScope<Solution_> phaseScope) voidsetLateAcceptanceSize(int lateAcceptanceSize) Methods inherited from class ai.timefold.solver.core.impl.localsearch.event.LocalSearchPhaseLifecycleListenerAdapter
stepEnded, stepStartedMethods inherited from class ai.timefold.solver.core.impl.solver.event.SolverLifecycleListenerAdapter
solvingEnded, solvingStartedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ai.timefold.solver.core.impl.localsearch.event.LocalSearchPhaseLifecycleListener
stepEnded, stepStartedMethods inherited from interface ai.timefold.solver.core.impl.solver.event.SolverLifecycleListener
solvingEnded, solvingError, solvingStarted
-
Field Details
-
lateWorseScore
-
lateWorseOccurrences
protected int lateWorseOccurrences -
lateAcceptanceSize
protected int lateAcceptanceSize -
previousScores
-
lateScoreIndex
protected int lateScoreIndex
-
-
Constructor Details
-
DiversifiedLateAcceptanceAcceptor
public DiversifiedLateAcceptanceAcceptor()
-
-
Method Details
-
setLateAcceptanceSize
public void setLateAcceptanceSize(int lateAcceptanceSize) -
phaseStarted
- Specified by:
phaseStartedin interfaceLocalSearchPhaseLifecycleListener<Solution_>- Overrides:
phaseStartedin classLocalSearchPhaseLifecycleListenerAdapter<Solution_>
-
isAccepted
- Parameters:
moveScope- not null- Returns:
- true if accepted
-
phaseEnded
- Specified by:
phaseEndedin interfaceLocalSearchPhaseLifecycleListener<Solution_>- Overrides:
phaseEndedin classLocalSearchPhaseLifecycleListenerAdapter<Solution_>
-