public class Suggestion extends NeighbourSelectionWithSuggestions
NeighbourSelectionWithSuggestions
,
only triggering when there is an unassigned class. The selection picks a random unassigned
class and tries to do a limited-depth search up to the Neighbour.SuggestionDepth
depth. If successful, the returned suggestion is always considered improving as
it finds an assignment that increases the number of assigned classes.
NeighbourSelectionWithSuggestions.NeighbourSelectionWithSuggestionsContext
iSuggestionDepth, iSuggestionTimeout
iSolver, iStat, sLogger
Constructor and Description |
---|
Suggestion(DataProperties properties) |
Modifier and Type | Method and Description |
---|---|
Neighbour<Lecture,Placement> |
selectNeighbour(Solution<Lecture,Placement> solution)
Select neighbour.
|
init, selectNeighbourWithSuggestions
getValueSelection, getVariableSelection, selectValue, selectVariable, setValueSelection, setVariableSelection
public Suggestion(DataProperties properties) throws Exception
Exception
public Neighbour<Lecture,Placement> selectNeighbour(Solution<Lecture,Placement> solution)
StandardNeighbourSelection
selectNeighbour
in interface NeighbourSelection<Lecture,Placement>
selectNeighbour
in class NeighbourSelectionWithSuggestions
solution
- given solution