|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsavi.alg.SimAnnealingSkeleton
savi.alg.SimAnnealingBasicSolver
public class SimAnnealingBasicSolver
First instance of SimAnnealingSkeleton, basic class for solving with simulated annealing algorithm. Solving cannot be stepped.
Field Summary |
---|
Fields inherited from class savi.alg.SimAnnealingSkeleton |
---|
coolFactor, finalTemp, state, temp |
Constructor Summary | |
---|---|
SimAnnealingBasicSolver(StateSkeleton s,
double temp,
double finalTemp,
double coolFactor,
int equilibSteps)
Standard constructor for simulated annealing algorithm with all needed parameters, creates a new instance of SimAnnealingBasicSolver. |
Method Summary | |
---|---|
protected void |
cool()
Call this function lowers current temperature. |
protected void |
equilibrium()
Do iteration of equilibrium cycle with constant temperature. |
static double |
findOptimalStartTemp(StateSkeleton s,
int equilibSteps)
This method is able to find and return starting temp. |
protected boolean |
frozen()
This function can be called to recognition end of algorithm run. |
StateSkeleton |
solve()
Finish and solve the problem. |
Methods inherited from class savi.alg.SimAnnealingSkeleton |
---|
getState, getTemp |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimAnnealingBasicSolver(StateSkeleton s, double temp, double finalTemp, double coolFactor, int equilibSteps)
s
- Initial statetemp
- Starting temperature valuefinalTemp
- Final temperature value.coolFactor
- Cooling factorequilibSteps
- Number of steps in equilibrium.Method Detail |
---|
public static double findOptimalStartTemp(StateSkeleton s, int equilibSteps)
s
- StateequilibSteps
- Number of steps in equilibrium.
protected void cool()
cool
in class SimAnnealingSkeleton
protected void equilibrium()
equilibrium
in class SimAnnealingSkeleton
protected boolean frozen()
frozen
in class SimAnnealingSkeleton
public StateSkeleton solve()
solve
in class SimAnnealingSkeleton
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |