lio.search.local.simulatedannealing
Class SA

java.lang.Object
  extended by lio.search.LiOSearch
      extended by lio.search.local.simulatedannealing.SA
All Implemented Interfaces:
java.lang.Runnable, LiOResource

public class SA
extends LiOSearch

This class implements a multiple restart hill climbing. It is important to point that the number of starting points must be lower than the maximum number of iterations allowed by the stopping condition.


Field Summary
 
Fields inherited from class lio.search.LiOSearch
listenerList, searchOutput, stopCondition, stopFlag
 
Constructor Summary
SA()
          Creates a new instance of Simulated Annealing
 
Method Summary
 LiOResourceDefinition getDefinition()
          Return a LiOResDescription object which holds the name and all parameters that describe the resource.
 double getFactorA()
          Getter for property parameters.
 double getFinalTemp()
          Getter for property parameters.
 Generator getGenerator()
          Getter for property generator.
 double getInitialTemp()
          Getter for property parameters.
 int getMaxIntIter()
          Getter for property parameters.
 SimulAnnealing getSimulatedAnnealing()
          Getter for property simulatedAnnealing.
static void main(java.lang.String[] args)
           
 void run()
           
 void setFactorA(double factorA)
          Setter for property factorA.
 void setFinalTemp(double finalTemp)
          Setter for property finalTemp.
 void setGenerator(Generator generator)
          Setter for property generator.
 void setInitialTemp(double initialTemp)
          Setter for property initialTemp.
 void setMaxIntIter(int maxIntIter)
          Setter for property maxIntIter.
 void setSimulatedAnnealing(SimulAnnealing simulatedAnnealing)
          Setter for property simulatedAnnealing.
protected  boolean stopCondition()
          This method tells whether the algorithm's execution is due to end.
 boolean worksWith(LiOTask kindOfTask)
          Allows knowing if the specified algorithm is able to process the task.
 
Methods inherited from class lio.search.LiOSearch
addLiOEventListener, build, cleanExecution, execute, fireFinishEvent, getSearchOutput, getStopCondition, initialize, initialize, loadSearchOutput, loadStatistics, loadStopCondition, removeLiOEventListener, setOptions, setSearchOutput, setStopCondition, setTask, showOptions, stopSearching, updateTaskDependentResources
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SA

public SA()
Creates a new instance of Simulated Annealing

Method Detail

run

public void run()

stopCondition

protected boolean stopCondition()
Description copied from class: LiOSearch
This method tells whether the algorithm's execution is due to end.
Every algorithm can override this method to do all action related with this issue.

Overrides:
stopCondition in class LiOSearch
Returns:
true if search progress must be halted.

worksWith

public boolean worksWith(LiOTask kindOfTask)
Description copied from class: LiOSearch
Allows knowing if the specified algorithm is able to process the task.

Specified by:
worksWith in class LiOSearch
Returns:
true if the search algorithm can deal with this kind of task and the corresponding data-type

getDefinition

public LiOResourceDefinition getDefinition()
Description copied from interface: LiOResource
Return a LiOResDescription object which holds the name and all parameters that describe the resource.

Returns:
A definition of the resource.

main

public static void main(java.lang.String[] args)

getFactorA

public double getFactorA()
Getter for property parameters.

Returns:
Value of property factorA.

setFactorA

public void setFactorA(double factorA)
Setter for property factorA.

Parameters:
factorA - New value of property factorA.

getInitialTemp

public double getInitialTemp()
Getter for property parameters.

Returns:
Value of property initialTemp.

setInitialTemp

public void setInitialTemp(double initialTemp)
Setter for property initialTemp.

Parameters:
intialTemp - New value of property initialTemp.

getFinalTemp

public double getFinalTemp()
Getter for property parameters.

Returns:
Value of property finalTemp.

setFinalTemp

public void setFinalTemp(double finalTemp)
Setter for property finalTemp.

Parameters:
finalTemp - New value of property finalTemp.

getMaxIntIter

public int getMaxIntIter()
Getter for property parameters.

Returns:
Value of property maxIntIter.

setMaxIntIter

public void setMaxIntIter(int maxIntIter)
Setter for property maxIntIter.

Parameters:
maxIntIter - New value of property maxIntIter.

getGenerator

public Generator getGenerator()
Getter for property generator.

Returns:
Value of property generator.

setGenerator

public void setGenerator(Generator generator)
Setter for property generator.

Parameters:
generator - New value of property generator.

getSimulatedAnnealing

public SimulAnnealing getSimulatedAnnealing()
Getter for property simulatedAnnealing.

Returns:
Value of property simulatedAnnealing.

setSimulatedAnnealing

public void setSimulatedAnnealing(SimulAnnealing simulatedAnnealing)
Setter for property simulatedAnnealing.

Parameters:
simulatedAnnealing - New value of property simulatedAnnealing.