public class FixCompleteSolutionNeighbourSelection extends NeighbourSelectionWithContext<Lecture,Placement,FixCompleteSolutionNeighbourSelection.FixCompleteSolutionNeighbourContext>
Modifier and Type | Class and Description |
---|---|
class |
FixCompleteSolutionNeighbourSelection.FixCompleteSolutionNeighbourContext |
iContextOverride
sMaxSize
Constructor and Description |
---|
FixCompleteSolutionNeighbourSelection(DataProperties config) |
FixCompleteSolutionNeighbourSelection(DataProperties config,
NeighbourSelection<Lecture,Placement> parent) |
Modifier and Type | Method and Description |
---|---|
FixCompleteSolutionNeighbourSelection.FixCompleteSolutionNeighbourContext |
createAssignmentContext(Assignment<Lecture,Placement> assignment)
Create a new assignment context for the given assignment.
|
void |
init(Solver<Lecture,Placement> solver)
Criterion initialization
|
Neighbour<Lecture,Placement> |
selectNeighbour(Solution<Lecture,Placement> solution)
Try to improve existing solution by backtracking search of very limited
depth.
|
getAssignmentContextReference, getContext, getContext, hasContextOverride, isSingleContextSolver, setAssignmentContextReference
public FixCompleteSolutionNeighbourSelection(DataProperties config, NeighbourSelection<Lecture,Placement> parent) throws Exception
Exception
public FixCompleteSolutionNeighbourSelection(DataProperties config) throws Exception
Exception
public void init(Solver<Lecture,Placement> solver)
NeighbourSelection
init
in interface NeighbourSelection<Lecture,Placement>
init
in class NeighbourSelectionWithContext<Lecture,Placement,FixCompleteSolutionNeighbourSelection.FixCompleteSolutionNeighbourContext>
solver
- current solverpublic Neighbour<Lecture,Placement> selectNeighbour(Solution<Lecture,Placement> solution)
NeighbourSelectionWithSuggestions
for more details.solution
- given solutionpublic FixCompleteSolutionNeighbourSelection.FixCompleteSolutionNeighbourContext createAssignmentContext(Assignment<Lecture,Placement> assignment)
HasAssignmentContext
assignment
- an assignment for which there needs to be an assignment context