scratch.scott.optimization
Class TestSimulatedAnnealer.TestConfiguration

java.lang.Object
  extended by scratch.scott.optimization.TestSimulatedAnnealer.TestConfiguration
All Implemented Interfaces:
Configuration
Enclosing class:
TestSimulatedAnnealer

public class TestSimulatedAnnealer.TestConfiguration
extends Object
implements Configuration


Constructor Summary
TestSimulatedAnnealer.TestConfiguration(double xval)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestSimulatedAnnealer.TestConfiguration

public TestSimulatedAnnealer.TestConfiguration(double xval)
Method Detail

computeEnergy

public double computeEnergy()
Description copied from interface: Configuration
Computes the energy or fitness of the current configuration.

Specified by:
computeEnergy in interface Configuration
Returns:
double value representing the computed energy

melt

public Configuration melt(double temperature,
                          double maxTemp,
                          double minTemp)
Description copied from interface: Configuration
Randomly perturbs the current configuration in some way.

Specified by:
melt in interface Configuration
Parameters:
temperature - the current temperature of the system
maxTemp - the highest temperature the system can go to
minTemp - the lowest temperature the system can go to
Returns:
the newly perturbed configuration