gov.nasa.javaGenes.simulatedAnnealing
Class Accepter
java.lang.Object
gov.nasa.javaGenes.hillClimbing.Accepter
gov.nasa.javaGenes.simulatedAnnealing.Accepter
- All Implemented Interfaces:
- java.io.Serializable
- public class Accepter
- extends Accepter
- See Also:
- Serialized Form
Constructor Summary |
Accepter(double initialTemperature,
double inReduceBy,
int inCallsPerStaticTemperature)
|
Accepter(double initialTemperature,
double inReduceBy,
int inCallsPerStaticTemperature,
int inWhichReduction)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
Accepter
public Accepter(double initialTemperature,
double inReduceBy,
int inCallsPerStaticTemperature)
Accepter
public Accepter(double initialTemperature,
double inReduceBy,
int inCallsPerStaticTemperature,
int inWhichReduction)
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()