|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlio.search.LiOSearch
lio.search.local.greedy.GRASP
public class GRASP
This class implements the Greedy Randomized Adaptative Search Procedure. Tasks must implement LiOGreedyTask in order to be solved with this algorithm. The algorithm makes use of the object GreedyConstructor, so it only allows working with problems in which the first complete solution can not be expanded. That is the case of TSP or Strip Packing problems.
GreedyConstructor
Field Summary | |
---|---|
(package private) Individual |
currentIndividual
|
Fields inherited from class lio.search.LiOSearch |
---|
listenerList, searchOutput, stopCondition, stopFlag |
Constructor Summary | |
---|---|
GRASP()
Creates a new instance of HillClimbing |
Method Summary | |
---|---|
LiOResourceDefinition |
getDefinition()
Return a LiOResDescription object which holds the name and all parameters that describe the resource. |
GreedyConstructor |
getGreedyConstructor()
Getter for property greedyConstructor. |
HillClimbing |
getHillClimbing()
Getter for property hillClimbing. |
int |
getNumIterations()
Getter for property numIterations. |
static void |
main(java.lang.String[] args)
|
void |
run()
|
void |
setGreedyConstructor(GreedyConstructor greedyConstructor)
Setter for property greedyConstructor. |
void |
setHillClimbing(HillClimbing hillClimbing)
Setter for property hillClimbing. |
void |
setNumIterations(int numIterations)
Setter for property numIterations. |
protected boolean |
stopCondition()
Extends the stopCondition method from LiOSearch. |
boolean |
worksWith(LiOTask kindOfTask)
Overloads stopCondition function of LiOSearch. |
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 |
Field Detail |
---|
Individual currentIndividual
Constructor Detail |
---|
public GRASP()
Method Detail |
---|
public void run()
protected boolean stopCondition()
stopCondition
in class LiOSearch
public boolean worksWith(LiOTask kindOfTask)
worksWith
in class LiOSearch
public LiOResourceDefinition getDefinition()
public static void main(java.lang.String[] args)
public int getNumIterations()
public void setNumIterations(int numIterations)
numIterations
- New value of property numIterations.public HillClimbing getHillClimbing()
public void setHillClimbing(HillClimbing hillClimbing)
hillClimbing
- New value of property hillClimbing.public GreedyConstructor getGreedyConstructor()
public void setGreedyConstructor(GreedyConstructor greedyConstructor)
greedyConstructor
- New value of property greedyConstructor.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |