|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sourceforge.jannealer.AnnealingScheme
Implements downhill simplex simulated annealing algorithm
Field Summary | |
static double |
DEFAULTCOOLINGRATE
|
static int |
DEFAULTITERATIONS
|
static double |
DEFAULTOLERANCE
|
static double |
DEFAULTTEMP
default temperature |
Constructor Summary | |
AnnealingScheme()
|
Method Summary | |
void |
anneal()
runs an annealing, call getOffset() to get result |
double[] |
getSolution()
|
void |
setCoolingRate(double coolingRate)
Sets the CoolingRate attribute of the AnnealingScheme object |
void |
setFunction(ObjectiveFunction function)
|
void |
setIterations(int nIterations)
Number of iterations before cooling is applied |
void |
setSolution(double[] offset)
Sets a starting point for searching for a solution |
void |
setTemperature(double temperature)
Sets the Temperature attribute of the AnnealingScheme object |
void |
setTolerance(double tolerance)
Sets the Tolerance attribute of the AnnealingScheme object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final double DEFAULTTEMP
public static final double DEFAULTCOOLINGRATE
public static final int DEFAULTITERATIONS
public static final double DEFAULTOLERANCE
Constructor Detail |
public AnnealingScheme()
Method Detail |
public void setTemperature(double temperature)
temperature
- The new Temperature valuepublic void setTolerance(double tolerance)
tolerance
- The new Tolerance valuepublic void setSolution(double[] offset)
offset
- The new Offset value. To reduce API tripwires,
the offset is duplicated, i.e. the caller can safely modify
the passed in offset it afterwards.public void setCoolingRate(double coolingRate)
coolingRate
- The new CoolingRate valuepublic void setIterations(int nIterations)
nIterations
- The new NIterations valuepublic double[] getSolution()
public void setFunction(ObjectiveFunction function)
function
- public void anneal()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |