|
||||||||||
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.GreedyConstruction
public class GreedyConstruction
This class encapsulates the greedy construction to implement it as a search procedure. Thus, it is designed to construct solutions in problems in which the first valid solution can not be expanded such as TSP or Strip Packing. For simplicity, it uses the methods provided by lio.generators.GreedyConstructor instead of accessing the task methods directly.
GreedyConstructor
Field Summary |
---|
Fields inherited from class lio.search.LiOSearch |
---|
listenerList, searchOutput, stopCondition, stopFlag |
Constructor Summary | |
---|---|
GreedyConstruction()
Constructor |
Method Summary | |
---|---|
LiOResourceDefinition |
getDefinition()
Return a LiOResDescription object which holds the name and all parameters that describe the resource. |
int |
getNumCandidates()
Getter for property numCandidates. |
static void |
main(java.lang.String[] args)
Main class that allows testing the class. |
void |
run()
Main cycle |
void |
setNumCandidates(int numCandidates)
Setter for property numCandidates. |
protected boolean |
stopCondition()
Overloads stopCondition function of LiOSearch. |
boolean |
worksWith(LiOTask kindOfTask)
Checks the compatibility of the algorithm with the task that is going to be solved. |
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 GreedyConstruction()
Method Detail |
---|
public void run()
protected boolean stopCondition()
stopCondition
in class LiOSearch
public boolean worksWith(LiOTask kindOfTask)
worksWith
in class LiOSearch
LiOTask
- task that the algorithm must work with.
public LiOResourceDefinition getDefinition()
public static void main(java.lang.String[] args)
args
- Arguments passed by command linepublic int getNumCandidates()
public void setNumCandidates(int numCandidates)
numCandidates
- New value of property numCandidates.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |