Class SimulatedAnnealingAcceptor<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.simulatedannealing.SimulatedAnnealingAcceptor<Solution_>
- All Implemented Interfaces:
Acceptor<Solution_>,LocalSearchPhaseLifecycleListener<Solution_>,SolverLifecycleListener<Solution_>,EventListener
The time gradient implementation of simulated annealing.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected Scoreprotected double[]protected double[]protected doubleFields 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) voidsetStartingTemperature(Score startingTemperature) voidstepStarted(LocalSearchStepScope<Solution_> stepScope) Methods inherited from class ai.timefold.solver.core.impl.localsearch.event.LocalSearchPhaseLifecycleListenerAdapter
stepEndedMethods 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
stepEndedMethods inherited from interface ai.timefold.solver.core.impl.solver.event.SolverLifecycleListener
solvingEnded, solvingError, solvingStarted
-
Field Details
-
startingTemperature
-
levelsLength
protected int levelsLength -
startingTemperatureLevels
protected double[] startingTemperatureLevels -
temperatureLevels
protected double[] temperatureLevels -
temperatureMinimum
protected double temperatureMinimum
-
-
Constructor Details
-
SimulatedAnnealingAcceptor
public SimulatedAnnealingAcceptor()
-
-
Method Details
-
setStartingTemperature
-
phaseStarted
- Specified by:
phaseStartedin interfaceLocalSearchPhaseLifecycleListener<Solution_>- Overrides:
phaseStartedin classLocalSearchPhaseLifecycleListenerAdapter<Solution_>
-
phaseEnded
- Specified by:
phaseEndedin interfaceLocalSearchPhaseLifecycleListener<Solution_>- Overrides:
phaseEndedin classLocalSearchPhaseLifecycleListenerAdapter<Solution_>
-
isAccepted
- Parameters:
moveScope- not null- Returns:
- true if accepted
-
stepStarted
- Specified by:
stepStartedin interfaceLocalSearchPhaseLifecycleListener<Solution_>- Overrides:
stepStartedin classLocalSearchPhaseLifecycleListenerAdapter<Solution_>
-