org.optaplanner.core.impl.localsearch.decider.acceptor.simulatedannealing
Class SimulatedAnnealingAcceptor
java.lang.Object
org.optaplanner.core.impl.solver.event.SolverLifecycleListenerAdapter
org.optaplanner.core.impl.localsearch.event.LocalSearchPhaseLifecycleListenerAdapter
org.optaplanner.core.impl.localsearch.decider.acceptor.AbstractAcceptor
org.optaplanner.core.impl.localsearch.decider.acceptor.simulatedannealing.SimulatedAnnealingAcceptor
- All Implemented Interfaces:
- EventListener, Acceptor, LocalSearchPhaseLifecycleListener, SolverLifecycleListener
public class SimulatedAnnealingAcceptor
- extends AbstractAcceptor
The time gradient implementation of simulated annealing.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
startingTemperature
protected Score startingTemperature
levelsLength
protected int levelsLength
startingTemperatureLevels
protected double[] startingTemperatureLevels
temperatureLevels
protected double[] temperatureLevels
temperatureMinimum
protected double temperatureMinimum
SimulatedAnnealingAcceptor
public SimulatedAnnealingAcceptor()
setStartingTemperature
public void setStartingTemperature(Score startingTemperature)
phaseStarted
public void phaseStarted(LocalSearchPhaseScope phaseScope)
- Specified by:
phaseStarted
in interface LocalSearchPhaseLifecycleListener
- Overrides:
phaseStarted
in class LocalSearchPhaseLifecycleListenerAdapter
phaseEnded
public void phaseEnded(LocalSearchPhaseScope phaseScope)
- Specified by:
phaseEnded
in interface LocalSearchPhaseLifecycleListener
- Overrides:
phaseEnded
in class LocalSearchPhaseLifecycleListenerAdapter
isAccepted
public boolean isAccepted(LocalSearchMoveScope moveScope)
- Parameters:
moveScope
- not null
- Returns:
- true if accepted
stepStarted
public void stepStarted(LocalSearchStepScope stepScope)
- Specified by:
stepStarted
in interface LocalSearchPhaseLifecycleListener
- Overrides:
stepStarted
in class LocalSearchPhaseLifecycleListenerAdapter
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.