savi.alg
Class SimAnnealingStepSolver

java.lang.Object
  extended by savi.alg.SimAnnealingSkeleton
      extended by savi.alg.SimAnnealingBasicSolver
          extended by savi.alg.SimAnnealingStepSolver

public class SimAnnealingStepSolver
extends SimAnnealingBasicSolver

Instance of SimAnnealingSkeleton, basic class for solving with simulated annealing algorithm. Solving can be stepped.


Nested Class Summary
protected static class SimAnnealingStepSolver.Steps
          State type enumeration, currently imlemented are EQUILIBRIUM and COOL.
 
Field Summary
protected  SimAnnealingStepSolver.Steps nextStep
          State variable
 
Fields inherited from class savi.alg.SimAnnealingSkeleton
coolFactor, finalTemp, state, temp
 
Constructor Summary
SimAnnealingStepSolver(StateSkeleton s, double temp, double finalTemp, double coolFactor, int equilibSteps)
          Creates a new instance of SimAnnealingStepSolver, initialize startup variables.
 
Method Summary
 boolean isEnd()
          Used for end recognition.
 void makeStep()
          This method makes one step of SA algorithm.
 
Methods inherited from class savi.alg.SimAnnealingBasicSolver
cool, equilibrium, findOptimalStartTemp, frozen, solve
 
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
 

Field Detail

nextStep

protected SimAnnealingStepSolver.Steps nextStep
State variable

Constructor Detail

SimAnnealingStepSolver

public SimAnnealingStepSolver(StateSkeleton s,
                              double temp,
                              double finalTemp,
                              double coolFactor,
                              int equilibSteps)
Creates a new instance of SimAnnealingStepSolver, initialize startup variables.

Parameters:
s - Initial state
temp - Starting temperature value
finalTemp - Final temperature value
coolFactor - Cooling factor
Method Detail

makeStep

public void makeStep()
This method makes one step of SA algorithm.


isEnd

public boolean isEnd()
Used for end recognition.

Returns:
returns true if algorthm finished, else return false.