|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.framework.CompoundLocalSearch
public class CompoundLocalSearch
This class represents a local search method made by the combination of several local search methods. The local search methods are applied in a cascade order of insertion. In other words, the input of the method is the input of the previous one, with the exception of the first.
Constructor Summary | |
---|---|
CompoundLocalSearch()
Default constructor. |
Method Summary | |
---|---|
void |
add(LocalSearch localSearch)
Adds the specified local search method. |
Trail |
explore(Trail trail)
Returns an improved trail based on the exploration of neighborhood trails. |
void |
remove(LocalSearch localSearch)
Removes the specified local search method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompoundLocalSearch()
Method Detail |
---|
public void add(LocalSearch localSearch)
localSearch
- the local search method to add.public void remove(LocalSearch localSearch)
localSearch
- the local search method to remove.public Trail explore(Trail trail)
LocalSearch
explore
in interface LocalSearch
trail
- the trail (solution) to explore.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |