Class SimulatedAnnealingAcceptor<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.acceptor.AbstractAcceptor<Solution_>
org.optaplanner.core.impl.localsearch.decider.acceptor.simulatedannealing.SimulatedAnnealingAcceptor<Solution_>
- All Implemented Interfaces:
EventListener
,Acceptor<Solution_>
,LocalSearchPhaseLifecycleListener<Solution_>
,SolverLifecycleListener<Solution_>
The time gradient implementation of simulated annealing.
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected Score
protected double[]
protected double[]
protected double
Fields inherited from class org.optaplanner.core.impl.localsearch.decider.acceptor.AbstractAcceptor
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isAccepted
(LocalSearchMoveScope<Solution_> moveScope) void
phaseEnded
(LocalSearchPhaseScope<Solution_> phaseScope) void
phaseStarted
(LocalSearchPhaseScope<Solution_> phaseScope) void
setStartingTemperature
(Score startingTemperature) void
stepStarted
(LocalSearchStepScope<Solution_> stepScope) Methods inherited from class org.optaplanner.core.impl.localsearch.event.LocalSearchPhaseLifecycleListenerAdapter
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
stepEnded
Methods inherited from interface org.optaplanner.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:
phaseStarted
in interfaceLocalSearchPhaseLifecycleListener<Solution_>
- Overrides:
phaseStarted
in classLocalSearchPhaseLifecycleListenerAdapter<Solution_>
-
phaseEnded
- Specified by:
phaseEnded
in interfaceLocalSearchPhaseLifecycleListener<Solution_>
- Overrides:
phaseEnded
in classLocalSearchPhaseLifecycleListenerAdapter<Solution_>
-
isAccepted
- Parameters:
moveScope
- not null- Returns:
- true if accepted
-
stepStarted
- Specified by:
stepStarted
in interfaceLocalSearchPhaseLifecycleListener<Solution_>
- Overrides:
stepStarted
in classLocalSearchPhaseLifecycleListenerAdapter<Solution_>
-