|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlio.search.LiOSearch
lio.search.local.simulatedannealing.SA
public class SA
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 |
---|
public SA()
Method Detail |
---|
public void run()
protected boolean stopCondition()
LiOSearch
stopCondition
in class LiOSearch
public boolean worksWith(LiOTask kindOfTask)
LiOSearch
worksWith
in class LiOSearch
public LiOResourceDefinition getDefinition()
LiOResource
public static void main(java.lang.String[] args)
public double getFactorA()
public void setFactorA(double factorA)
factorA
- New value of property factorA.public double getInitialTemp()
public void setInitialTemp(double initialTemp)
intialTemp
- New value of property initialTemp.public double getFinalTemp()
public void setFinalTemp(double finalTemp)
finalTemp
- New value of property finalTemp.public int getMaxIntIter()
public void setMaxIntIter(int maxIntIter)
maxIntIter
- New value of property maxIntIter.public Generator getGenerator()
public void setGenerator(Generator generator)
generator
- New value of property generator.public SimulAnnealing getSimulatedAnnealing()
public void setSimulatedAnnealing(SimulAnnealing simulatedAnnealing)
simulatedAnnealing
- New value of property simulatedAnnealing.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |