|
||||||||||
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
public class BranchBoundSelection
Section all students using incremental branch & bound (no unassignments).
All students are taken in a random order, for each student a branch & bound
algorithm is used to find his/her best schedule on top of all other existing
student schedules (no enrollment of a different student is unassigned).
Parameters:
Parameter | Type | Comment |
---|---|---|
Neighbour.BranchAndBoundTimeout | Integer | Timeout for each neighbour selection (in milliseconds). |
Neighbour.BranchAndBoundMinimizePenalty | Boolean | If true, section penalties (instead of section values) are minimized: overall penalty is minimized together with the maximization of the number of assigned requests and minimization of distance conflicts -- this variant is to better mimic the case when students can choose their sections (section times). |
Nested Class Summary | |
---|---|
static class |
BranchBoundSelection.BranchBoundNeighbour
Branch & bound neighbour -- a schedule of a student |
class |
BranchBoundSelection.Selection
Branch & bound selection for a student |
Field Summary | |
---|---|
protected DistanceConflict |
iDistanceConflict
|
protected double |
iDistConfWeight
|
protected boolean |
iMinimizePenalty
|
protected StudentOrder |
iOrder
|
protected Enumeration |
iStudentsEnumeration
|
protected int |
iTimeout
|
static boolean |
sDebug
|
Constructor Summary | |
---|---|
BranchBoundSelection(DataProperties properties)
Constructor |
Method Summary | |
---|---|
BranchBoundSelection.Selection |
getSelection(Student student)
Branch & bound selection for a student |
void |
init(Solver solver)
Criterion initialization |
void |
init(Solver solver,
String name)
Initialize |
Neighbour |
selectNeighbour(Solution solution)
Select neighbour. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int iTimeout
protected DistanceConflict iDistanceConflict
public static boolean sDebug
protected Enumeration iStudentsEnumeration
protected boolean iMinimizePenalty
protected StudentOrder iOrder
protected double iDistConfWeight
Constructor Detail |
---|
public BranchBoundSelection(DataProperties properties)
properties
- configurationMethod Detail |
---|
public void init(Solver solver, String name)
public void init(Solver solver)
NeighbourSelection
init
in interface NeighbourSelection
public Neighbour selectNeighbour(Solution solution)
selectNeighbour
in interface NeighbourSelection
solution
- given solution
public BranchBoundSelection.Selection getSelection(Student student)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |