|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.cpsolver.studentsct.heuristics.selection.BranchBoundSelection.Selection net.sf.cpsolver.studentsct.heuristics.selection.OnlineSelection.EpsilonSelection
public class OnlineSelection.EpsilonSelection
Branch & bound selection for a student
Field Summary |
---|
Fields inherited from class net.sf.cpsolver.studentsct.heuristics.selection.BranchBoundSelection.Selection |
---|
iAssignment, iBestAssignment, iBestValue, iStudent, iT0, iT1, iTimeoutReached, iValues |
Constructor Summary | |
---|---|
OnlineSelection.EpsilonSelection(Student student,
BranchBoundSelection.Selection selection)
Constructor |
Method Summary | |
---|---|
Enrollment |
firstConflict(int idx,
Enrollment enrollment)
First conflicting enrollment |
protected double |
getAssignmentPenalty(int i)
Assignment penalty |
StudentPreferencePenalties |
getPenalties()
Student preference penalties |
boolean |
isAllowed(int idx,
Enrollment enrollment)
|
BranchBoundSelection.BranchBoundNeighbour |
select()
Execute branch & bound, return the best found schedule for the selected student. |
Methods inherited from class net.sf.cpsolver.studentsct.heuristics.selection.BranchBoundSelection.Selection |
---|
backTrack, canAssign, getBestAssignment, getBestNrAssigned, getBestValue, getBound, getNrAssigned, getNrAssignedBound, getNrDistanceConflicts, getPenalty, getPenaltyBound, getTime, getValue, isTimeoutReached, saveBest |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OnlineSelection.EpsilonSelection(Student student, BranchBoundSelection.Selection selection)
student
- selected studentMethod Detail |
---|
public BranchBoundSelection.BranchBoundNeighbour select()
select
in class BranchBoundSelection.Selection
protected double getAssignmentPenalty(int i)
getAssignmentPenalty
in class BranchBoundSelection.Selection
public boolean isAllowed(int idx, Enrollment enrollment)
public Enrollment firstConflict(int idx, Enrollment enrollment)
firstConflict
in class BranchBoundSelection.Selection
public StudentPreferencePenalties getPenalties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |