public class SimulatedAnnealing.Temperature
extends java.lang.Object
Constructor and Description |
---|
SimulatedAnnealing.Temperature(java.util.List<PlacementFrame.PlacementNode> nodesToPlace)
Creates this temeperature object
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(double deltaE)
Decides whether to accept a new state or not
|
double |
getCurrentSwapDistance()
Returns the current maximal swapping distance based on the current
temperature.
|
double |
getTemperature()
Gets the temperature.
|
boolean |
nextIteration()
Decreases the temperature and checks for stop condition.
|
void |
reset()
Resets the temperature.
|
void |
setTemperature(double newTemperature)
Sets the temperature.
|
public SimulatedAnnealing.Temperature(java.util.List<PlacementFrame.PlacementNode> nodesToPlace)
nodesToPlace
- a list of all PlacementNode
s to be placed.public double getCurrentSwapDistance()
public void setTemperature(double newTemperature)
newTemperature
- the new temperature.public double getTemperature()
public void reset()
public boolean nextIteration()
public boolean accept(double deltaE)
deltaE
- the difference in score between new and old states.