|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlio.memetic.HillClimbing
public class HillClimbing
This objects perform local search to solutions. It is implemented as an operator so that it can be used as a part in some other search algorithms. Notice that it is necessary to have a neighbourhood operator implemented for the kind of data used.
Neighbourhood
Constructor Summary | |
---|---|
HillClimbing()
Creates a new instance of HillClimbing |
Method Summary | |
---|---|
Individual |
doHillClimbing(Individual individual)
Given an individual, performs a local search and returns the result. |
LiOResourceDefinition |
getDefinition()
Return a LiOResDescription object with the information of each object. |
int |
getMaxNoImprove()
Getter for property maxNoImprove. |
int |
getMaxSteps()
Getter for property maxSteps. |
Neighbourhood |
getNeighbourhood()
Getter for property neighbourhood. |
int |
getNumCandidates()
Getter for property numCandidates. |
static void |
main(java.lang.String[] args)
Main class to test the class. |
void |
setMaxNoImprove(int maxNoImprove)
Setter for property maxNoImprove. |
void |
setMaxSteps(int maxSteps)
Setter for property maxSteps. |
void |
setNeighbourhood(Neighbourhood neighbourhood)
Setter for property neighbourhood. |
void |
setNumCandidates(int numCandidates)
Setter for property numCandidates. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HillClimbing()
Method Detail |
---|
public Individual doHillClimbing(Individual individual)
individual
- Starting solution.
public LiOResourceDefinition getDefinition()
getDefinition
in interface LiOResource
public static void main(java.lang.String[] args)
public int getMaxNoImprove()
public void setMaxNoImprove(int maxNoImprove)
maxNoImprove
- New value of property maxNoImprove.public int getNumCandidates()
public void setNumCandidates(int numCandidates)
numCandidates
- New value of property numCandidates.public int getMaxSteps()
public void setMaxSteps(int maxSteps)
maxSteps
- New value of property maxSteps.public Neighbourhood getNeighbourhood()
public void setNeighbourhood(Neighbourhood neighbourhood)
neighbourhood
- New value of property neighbourhood.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |