V
- VariableT
- Valuepublic class SimpleSearch<V extends Variable<V,T>,T extends Value<V,T>> extends NeighbourSelectionWithContext<V,T,SimpleSearch.SimpleSearchContext>
StandardNeighbourSelection
until all variables are assigned)
HillClimber
until the given number if idle iterations)
SimulatedAnnealing
until timeout is reached)
GreatDeluge
until timeout is reached)
Modifier and Type | Class and Description |
---|---|
class |
SimpleSearch.SimpleSearchContext |
iContextOverride
sMaxSize
Constructor and Description |
---|
SimpleSearch(DataProperties properties)
Constructor
|
Modifier and Type | Method and Description |
---|---|
SimpleSearch.SimpleSearchContext |
createAssignmentContext(Assignment<V,T> assignment)
Create a new assignment context for the given assignment.
|
void |
init(Solver<V,T> solver)
Initialization
|
Neighbour<V,T> |
selectNeighbour(Solution<V,T> solution)
Neighbour selection.
|
protected void |
updateProgress(int phase,
Solution<V,T> solution) |
getAssignmentContextReference, getContext, getContext, hasContextOverride, isSingleContextSolver, setAssignmentContextReference
public SimpleSearch(DataProperties properties) throws Exception
properties
- problem configurationException
- thrown when initialization fails (e.g., a given class is not found)protected void updateProgress(int phase, Solution<V,T> solution)
public Neighbour<V,T> selectNeighbour(Solution<V,T> solution)
StandardNeighbourSelection
until all variables are assigned)
HillClimber
until the given number if idle iterations)
SimulatedAnnealing
until timeout is reached)
solution
- given solutionpublic SimpleSearch.SimpleSearchContext createAssignmentContext(Assignment<V,T> assignment)
HasAssignmentContext
assignment
- an assignment for which there needs to be an assignment context