public class TestSimulatedAnnealer.TestConfiguration extends java.lang.Object implements Configuration
Constructor and Description |
---|
TestSimulatedAnnealer.TestConfiguration(double xval) |
Modifier and Type | Method and Description |
---|---|
double |
computeEnergy()
Computes the energy or fitness of the current configuration.
|
Configuration |
melt(double temperature,
double maxTemp,
double minTemp)
Randomly perturbs the current configuration in some way.
|
public TestSimulatedAnnealer.TestConfiguration(double xval)
public double computeEnergy()
Configuration
computeEnergy
in interface Configuration
double
value representing the computed energypublic Configuration melt(double temperature, double maxTemp, double minTemp)
Configuration
melt
in interface Configuration
temperature
- the current temperature of the systemmaxTemp
- the highest temperature the system can go tominTemp
- the lowest temperature the system can go to