Class StrategicOscillationByLevelFinalistPodium<Solution_>
java.lang.Object
org.optaplanner.core.impl.solver.event.SolverLifecycleListenerAdapter<Solution_>
org.optaplanner.core.impl.localsearch.event.LocalSearchPhaseLifecycleListenerAdapter<Solution_>
org.optaplanner.core.impl.localsearch.decider.forager.finalist.AbstractFinalistPodium<Solution_>
org.optaplanner.core.impl.localsearch.decider.forager.finalist.StrategicOscillationByLevelFinalistPodium<Solution_>
- All Implemented Interfaces:
EventListener
,FinalistPodium<Solution_>
,LocalSearchPhaseLifecycleListener<Solution_>
,SolverLifecycleListener<Solution_>
public final class StrategicOscillationByLevelFinalistPodium<Solution_>
extends AbstractFinalistPodium<Solution_>
Strategic oscillation, works well with Tabu search.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected Number[]
protected Score
protected final boolean
protected Number[]
protected Score
Fields inherited from class org.optaplanner.core.impl.localsearch.decider.forager.finalist.AbstractFinalistPodium
FINALIST_LIST_MAX_SIZE, finalistIsAccepted, finalistList
-
Constructor Summary
ConstructorDescriptionStrategicOscillationByLevelFinalistPodium
(boolean referenceBestScoreInsteadOfLastStepScore) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMove
(LocalSearchMoveScope<Solution_> moveScope) void
phaseEnded
(LocalSearchPhaseScope<Solution_> phaseScope) void
stepStarted
(LocalSearchStepScope<Solution_> stepScope) Methods inherited from class org.optaplanner.core.impl.localsearch.decider.forager.finalist.AbstractFinalistPodium
addFinalist, clearAndAddFinalist, getFinalistList
Methods inherited from class org.optaplanner.core.impl.localsearch.event.LocalSearchPhaseLifecycleListenerAdapter
phaseStarted, stepEnded
Methods inherited from class org.optaplanner.core.impl.solver.event.SolverLifecycleListenerAdapter
solvingEnded, solvingStarted
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.optaplanner.core.impl.localsearch.event.LocalSearchPhaseLifecycleListener
phaseStarted, stepEnded
Methods inherited from interface org.optaplanner.core.impl.solver.event.SolverLifecycleListener
solvingEnded, solvingError, solvingStarted
-
Field Details
-
referenceBestScoreInsteadOfLastStepScore
protected final boolean referenceBestScoreInsteadOfLastStepScore -
referenceScore
-
referenceLevelNumbers
-
finalistScore
-
finalistLevelNumbers
-
finalistImprovesUponReference
protected boolean finalistImprovesUponReference
-
-
Constructor Details
-
StrategicOscillationByLevelFinalistPodium
public StrategicOscillationByLevelFinalistPodium(boolean referenceBestScoreInsteadOfLastStepScore)
-
-
Method Details
-
stepStarted
- Specified by:
stepStarted
in interfaceLocalSearchPhaseLifecycleListener<Solution_>
- Overrides:
stepStarted
in classAbstractFinalistPodium<Solution_>
-
addMove
Description copied from interface:FinalistPodium
- Parameters:
moveScope
- never null
-
phaseEnded
- Specified by:
phaseEnded
in interfaceLocalSearchPhaseLifecycleListener<Solution_>
- Overrides:
phaseEnded
in classAbstractFinalistPodium<Solution_>
-