org.encog.ml.anneal
UNIT_TYPE
- What type of data makes up the solution.public abstract class SimulatedAnnealing<UNIT_TYPE> extends Object
Constructor and Description |
---|
SimulatedAnnealing() |
Modifier and Type | Method and Description |
---|---|
abstract double |
calculateScore()
Subclasses should provide a method that evaluates the score for the
current solution.
|
abstract UNIT_TYPE[] |
getArray()
Subclasses must provide access to an array that makes up the solution.
|
abstract UNIT_TYPE[] |
getArrayCopy()
Get a copy of the array.
|
int |
getCycles() |
double |
getScore() |
double |
getStartTemperature() |
double |
getStopTemperature() |
double |
getTemperature() |
boolean |
isShouldMinimize() |
void |
iteration()
Called to perform one cycle of the annealing process.
|
abstract void |
putArray(UNIT_TYPE[] array)
Store the array.
|
abstract void |
randomize()
Randomize the weight matrix.
|
void |
setCycles(int theCycles) |
void |
setScore(double theScore)
Set the score.
|
void |
setShouldMinimize(boolean theShouldMinimize)
Should the score be minimized.
|
void |
setStartTemperature(double theStartTemperature) |
void |
setStopTemperature(double theStopTemperature) |
void |
setTemperature(double theTemperature) |
public abstract double calculateScore()
public abstract UNIT_TYPE[] getArray()
public abstract UNIT_TYPE[] getArrayCopy()
public int getCycles()
public double getScore()
public double getStartTemperature()
public double getStopTemperature()
public double getTemperature()
public boolean isShouldMinimize()
public void iteration()
public abstract void putArray(UNIT_TYPE[] array)
array
- The array to be stored.public abstract void randomize()
public void setCycles(int theCycles)
theCycles
- the cycles to setpublic void setScore(double theScore)
theScore
- The score to set.public void setShouldMinimize(boolean theShouldMinimize)
theShouldMinimize
- True if the score should be minimized.public void setStartTemperature(double theStartTemperature)
theStartTemperature
- the startTemperature to setpublic void setStopTemperature(double theStopTemperature)
theStopTemperature
- the stopTemperature to setpublic void setTemperature(double theTemperature)
theTemperature
- the temperature to setCopyright © 2014. All Rights Reserved.