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.NeighbourSelectionWithSuggestionsContextiSuggestionDepth, iSuggestionTimeoutiSolver, 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, selectNeighbourWithSuggestionsgetValueSelection, getVariableSelection, selectValue, selectVariable, setValueSelection, setVariableSelectionpublic Suggestion(DataProperties properties) throws Exception
Exceptionpublic Neighbour<Lecture,Placement> selectNeighbour(Solution<Lecture,Placement> solution)
StandardNeighbourSelectionselectNeighbour in interface NeighbourSelection<Lecture,Placement>selectNeighbour in class NeighbourSelectionWithSuggestionssolution - given solution