V - VariableT - Valuepublic class RandomMove<V extends Variable<V,T>,T extends Value<V,T>> extends Object implements NeighbourSelection<V,T>, HillClimberSelection
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
iHC |
| Constructor and Description |
|---|
RandomMove(DataProperties config) |
| Modifier and Type | Method and Description |
|---|---|
void |
init(Solver<V,T> solver)
Criterion initialization
|
Neighbour<V,T> |
selectNeighbour(Solution<V,T> solution)
select a neighbour of a given solution
|
void |
setHcMode(boolean hcMode)
True if employed by a hill climber, e.g., worsening moves may be skipped.
|
protected boolean iHC
public RandomMove(DataProperties config)
public void setHcMode(boolean hcMode)
HillClimberSelectionsetHcMode in interface HillClimberSelectionhcMode - true if used by a hill climber (worsening moves are automatically discarded)public void init(Solver<V,T> solver)
NeighbourSelectionpublic Neighbour<V,T> selectNeighbour(Solution<V,T> solution)
NeighbourSelectionselectNeighbour in interface NeighbourSelection<V extends Variable<V,T>,T extends Value<V,T>>solution - given solution