public class StudentEnrollmentSwapSelection extends Object implements NeighbourSelection<Request,Enrollment>, InfoProvider<Request,Enrollment>
Enrollment.getPriority()
as well as
selection preferences Enrollment.percentSelected()
.
Modifier and Type | Field and Description |
---|---|
protected long |
iNbrIterations |
protected long |
iNbrNoSolution |
protected long |
iNbrTimeoutReached |
protected Queue<Request> |
iRequests |
protected long |
iTotalTime |
Constructor and Description |
---|
StudentEnrollmentSwapSelection(DataProperties properties) |
Modifier and Type | Method and Description |
---|---|
void |
addRequest(Request request) |
void |
getInfo(Assignment<Request,Enrollment> assignment,
Map<String,String> info)
Adds some information into the table with information about the solution
|
void |
getInfo(Assignment<Request,Enrollment> assignment,
Map<String,String> info,
Collection<Request> variables)
Adds some information into the table with information about the solution,
only consider variables from the given set
|
void |
init(Solver<Request,Enrollment> solver)
Criterion initialization
|
void |
init(Solver<Request,Enrollment> solver,
String name) |
protected Request |
nextRequest() |
Neighbour<Request,Enrollment> |
selectNeighbour(Solution<Request,Enrollment> solution)
select a neighbour of a given solution
|
protected long iNbrIterations
protected long iTotalTime
protected long iNbrTimeoutReached
protected long iNbrNoSolution
public StudentEnrollmentSwapSelection(DataProperties properties)
public void init(Solver<Request,Enrollment> solver, String name)
public void init(Solver<Request,Enrollment> solver)
NeighbourSelection
init
in interface NeighbourSelection<Request,Enrollment>
solver
- current solverprotected Request nextRequest()
public void addRequest(Request request)
public Neighbour<Request,Enrollment> selectNeighbour(Solution<Request,Enrollment> solution)
NeighbourSelection
selectNeighbour
in interface NeighbourSelection<Request,Enrollment>
solution
- given solutionpublic void getInfo(Assignment<Request,Enrollment> assignment, Map<String,String> info)
InfoProvider
getInfo
in interface InfoProvider<Request,Enrollment>
assignment
- current assignmentinfo
- info tablepublic void getInfo(Assignment<Request,Enrollment> assignment, Map<String,String> info, Collection<Request> variables)
InfoProvider
getInfo
in interface InfoProvider<Request,Enrollment>
assignment
- current assignmentinfo
- info tablevariables
- sub-problemCopyright © 2019 UniTime LLC. All Rights Reserved.