|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.cpsolver.coursett.model.OnFlySectioning
public class OnFlySectioning
On fly student sectioning.
In this mode, students are resectioned after each iteration, but only between classes that are affected by the iteration.
This slows down the solver, but it can dramatically improve results in the case when there is more stress put on student conflicts (e.g., Woebegon College example).
Parameters:
| Parameter | Type | Comment |
|---|---|---|
| OnFlySectioning.Enabled | Boolean | Enable on fly sectioning (if enabled, students will be resectioned after each iteration) |
| OnFlySectioning.Recursive | Boolean | Recursively resection lectures affected by a student swap |
| OnFlySectioning.ConfigAsWell | Boolean | Resection students between configurations as well |
| Constructor Summary | |
|---|---|
OnFlySectioning(TimetableModel model)
Constructor |
|
| Method Summary | |
|---|---|
void |
afterAssigned(long iteration,
Value value)
FinalSectioning.resection(Lecture, boolean, boolean) is called when given iteration number
is greater than zero. |
void |
afterUnassigned(long iteration,
Value value)
Called after a value is unassigned from its variable ( Value.variable()). |
void |
beforeAssigned(long iteration,
Value value)
Called before a value is assigned to its variable ( Value.variable()). |
void |
beforeUnassigned(long iteration,
Value value)
Called before a value is unassigned from its variable ( Value.variable()). |
void |
constraintAdded(Constraint constraint)
Constraint is added to the model |
void |
constraintRemoved(Constraint constraint)
Constraint is removed from the model |
boolean |
init(Solver solver)
Initialization |
void |
variableAdded(Variable variable)
Variable is added to the model |
void |
variableRemoved(Variable variable)
Variable is removed from the model |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OnFlySectioning(TimetableModel model)
model - timetabling model| Method Detail |
|---|
public void variableAdded(Variable variable)
ModelListener
variableAdded in interface ModelListenervariable - added variablepublic void variableRemoved(Variable variable)
ModelListener
variableRemoved in interface ModelListenervariable - removed variablepublic void constraintAdded(Constraint constraint)
ModelListener
constraintAdded in interface ModelListenerconstraint - added constraintpublic void constraintRemoved(Constraint constraint)
ModelListener
constraintRemoved in interface ModelListenerconstraint - removed constraint
public void beforeAssigned(long iteration,
Value value)
ModelListenerValue.variable()).
beforeAssigned in interface ModelListeneriteration - current iterationvalue - value to be assigned
public void beforeUnassigned(long iteration,
Value value)
ModelListenerValue.variable()).
beforeUnassigned in interface ModelListeneriteration - current iterationvalue - value to be unassigned
public void afterAssigned(long iteration,
Value value)
FinalSectioning.resection(Lecture, boolean, boolean) is called when given iteration number
is greater than zero.
afterAssigned in interface ModelListeneriteration - current iterationvalue - value to be assigned
public void afterUnassigned(long iteration,
Value value)
ModelListenerValue.variable()).
afterUnassigned in interface ModelListeneriteration - current iterationvalue - value to be unassignedpublic boolean init(Solver solver)
init in interface ModelListenersolver - IFS solver
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||