OptaPlanner core 6.2.0.Beta1

org.optaplanner.core.impl.localsearch.decider.acceptor.simulatedannealing
Class SimulatedAnnealingAcceptor

java.lang.Object
  extended by org.optaplanner.core.impl.solver.event.SolverLifecycleListenerAdapter
      extended by org.optaplanner.core.impl.localsearch.event.LocalSearchPhaseLifecycleListenerAdapter
          extended by org.optaplanner.core.impl.localsearch.decider.acceptor.AbstractAcceptor
              extended by 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.


Field Summary
protected  int levelsLength
           
protected  Score startingTemperature
           
protected  double[] startingTemperatureLevels
           
protected  double[] temperatureLevels
           
protected  double temperatureMinimum
           
 
Fields inherited from class org.optaplanner.core.impl.localsearch.decider.acceptor.AbstractAcceptor
logger
 
Constructor Summary
SimulatedAnnealingAcceptor()
           
 
Method Summary
 boolean isAccepted(LocalSearchMoveScope moveScope)
           
 void phaseEnded(LocalSearchPhaseScope phaseScope)
           
 void phaseStarted(LocalSearchPhaseScope phaseScope)
           
 void setStartingTemperature(Score startingTemperature)
           
 void stepStarted(LocalSearchStepScope 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, solvingStarted
 

Field Detail

startingTemperature

protected Score startingTemperature

levelsLength

protected int levelsLength

startingTemperatureLevels

protected double[] startingTemperatureLevels

temperatureLevels

protected double[] temperatureLevels

temperatureMinimum

protected double temperatureMinimum
Constructor Detail

SimulatedAnnealingAcceptor

public SimulatedAnnealingAcceptor()
Method Detail

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

OptaPlanner core 6.2.0.Beta1

Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.