JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.simulatedAnnealing
Class Accepter

java.lang.Object
  extended bygov.nasa.javaGenes.hillClimbing.Accepter
      extended bygov.nasa.javaGenes.simulatedAnnealing.Accepter
All Implemented Interfaces:
java.io.Serializable

public class Accepter
extends Accepter

See Also:
Serialized Form

Field Summary
protected  int callsAtThisTemperature
           
protected  int callsPerStaticTemperature
           
protected  double currentTemperature
           
static int DELTA_REDUCE
           
static int FACTOR_REDUCE
           
protected  double reduceBy
           
protected  int whichReduction
           
 
Constructor Summary
Accepter(double initialTemperature, double inReduceBy, int inCallsPerStaticTemperature)
           
Accepter(double initialTemperature, double inReduceBy, int inCallsPerStaticTemperature, int inWhichReduction)
           
 
Method Summary
 boolean accept(Fitness kid, Fitness parent)
           
 double getCurrentTemperature()
           
 double probabilityToBeat(double deltaFitness)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

reduceBy

protected double reduceBy

currentTemperature

protected double currentTemperature

callsPerStaticTemperature

protected int callsPerStaticTemperature

callsAtThisTemperature

protected int callsAtThisTemperature

DELTA_REDUCE

public static final int DELTA_REDUCE
See Also:
Constant Field Values

FACTOR_REDUCE

public static final int FACTOR_REDUCE
See Also:
Constant Field Values

whichReduction

protected int whichReduction
Constructor Detail

Accepter

public Accepter(double initialTemperature,
                double inReduceBy,
                int inCallsPerStaticTemperature)

Accepter

public Accepter(double initialTemperature,
                double inReduceBy,
                int inCallsPerStaticTemperature,
                int inWhichReduction)
Method Detail

accept

public boolean accept(Fitness kid,
                      Fitness parent)
Specified by:
accept in class Accepter

probabilityToBeat

public double probabilityToBeat(double deltaFitness)

getCurrentTemperature

public double getCurrentTemperature()

toString

public java.lang.String toString()

JavaGenes, NASA Ames. Written largely by Al Globus