|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectifs.model.Model
ttsolver.TimetableModel
public class TimetableModel
Timetable model.
| Constructor Summary | |
|---|---|
TimetableModel(DataProperties properties)
|
|
| Method Summary | |
|---|---|
void |
addConstraint(Constraint constraint)
Adds a constraint to the model |
void |
afterAssigned(long iteration,
Value value)
When a value is assigned to a variable -- update gloval preferences |
void |
afterUnassigned(long iteration,
Value value)
When a value is unassigned from a variable -- update gloval preferences |
int |
bestDepartmentSpreadPenalty()
Overall departmental spread penalty of the best solution ever found |
long |
bestGlobalGroupConstraintPreference()
Overall group constraint preference of the best solution ever found |
long |
bestGlobalRoomPreference()
Overall room preference of the best solution ever found |
double |
bestGlobalTimePreference()
Overall time preference of the best solution ever found |
long |
bestHardStudentConflicts()
Overall number of student conflicts between single section classes of the best solution ever found |
long |
bestInstructorDistancePreference()
Overall instructor distance preference of the best solution ever found |
int |
bestTooBigRooms()
Overall number of too big rooms of the best solution ever found |
long |
bestUselessSlots()
Overall number of useless slots of the best solution ever found |
long |
bestViolatedStudentConflicts()
Overall number of student conflicts of the best solution ever found |
void |
checkJenrl()
Check validity of JENRL constraints from student enrollments |
int |
countTooBigRooms()
Overall number of too big rooms (rooms with more than 3/2 seats than needed) |
long |
countViolatedStudentConflicts()
Number of student conflicts |
long |
getBestRoomPreference()
Overall room preference of the best solution ever found |
double |
getBestTimePreference()
Overall time preference of the best solution ever found |
Vector |
getDepartmentSpreadConstraints()
The list of all departmental spread constraints |
int |
getDepartmentSpreadPenalty()
Overall departmental spread penalty |
long |
getGlobalGroupConstraintPreference()
Overall group constraint preference |
Counter |
getGlobalGroupConstraintPreferenceCounter()
Overall group constraint preference |
long |
getGlobalRoomPreference()
Overall room preference |
double |
getGlobalTimePreference()
Overall time preference |
Vector |
getGroupConstraints()
The list of all group constraints |
long |
getHardStudentConflicts()
Overall hard student conflicts (student conflict between single section classes) |
Hashtable |
getInfo()
Global info |
Vector |
getInstructorConstraints()
The list of all instructor constraints |
long |
getInstructorDistancePreference()
Overall instructor distance (back-to-back) preference |
long |
getInstructorWorstDistancePreference()
The worst instructor distance (back-to-back) preference |
Vector |
getJenrlConstraints()
The list of all jenrl constraints |
static long |
getMaxCapacity(long nrStudents)
Max capacity for too big rooms (3/2 of the number of students) |
DataProperties |
getProperties()
|
Vector |
getRoomConstraints()
The list of all room constraints |
long |
getStudentDistanceConflicts()
Overall number of student conflicts caused by distancies (back-to-back classes are too far) |
long |
getUselessSlots()
Overall number of useless time slots |
long |
getViolatedStudentConflicts()
Number of student conflicts |
Counter |
getViolatedStudentConflictsCounter()
Number of student conflicts |
Vector |
ignoredClasses()
For MPP generator |
void |
removeConstraint(Constraint constraint)
Removes a constraint from the model |
void |
saveBest()
Save the current assignment as the best ever found assignment |
void |
setBestRoomPreference(long bestRoomPreference)
Sets overall room preference of the best solution ever found |
void |
setBestTimePreference(double bestTimePreference)
Sets overall time preference of the best solution ever found |
void |
switchStudents()
Student final sectioning (switching students between sections of the same class in order to minimize overall number of student conflicts) |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TimetableModel(DataProperties properties)
| Method Detail |
|---|
public Vector ignoredClasses()
public DataProperties getProperties()
public void checkJenrl()
public long getGlobalRoomPreference()
public double getGlobalTimePreference()
public long getViolatedStudentConflicts()
public long countViolatedStudentConflicts()
public Counter getViolatedStudentConflictsCounter()
public long getGlobalGroupConstraintPreference()
public Counter getGlobalGroupConstraintPreferenceCounter()
public long getBestRoomPreference()
public double getBestTimePreference()
public void setBestRoomPreference(long bestRoomPreference)
public void setBestTimePreference(double bestTimePreference)
public long getInstructorDistancePreference()
public long getInstructorWorstDistancePreference()
public long getUselessSlots()
public long getStudentDistanceConflicts()
public long getHardStudentConflicts()
public void afterAssigned(long iteration,
Value value)
afterAssigned in class Model
public void afterUnassigned(long iteration,
Value value)
afterUnassigned in class Modelpublic void switchStudents()
public String toString()
toString in class Modelpublic int countTooBigRooms()
public int getDepartmentSpreadPenalty()
public Hashtable getInfo()
getInfo in class Modelpublic int bestTooBigRooms()
public long bestUselessSlots()
public double bestGlobalTimePreference()
public long bestGlobalRoomPreference()
public long bestGlobalGroupConstraintPreference()
public long bestViolatedStudentConflicts()
public long bestHardStudentConflicts()
public long bestInstructorDistancePreference()
public int bestDepartmentSpreadPenalty()
public void saveBest()
Model
saveBest in class Modelpublic void addConstraint(Constraint constraint)
Model
addConstraint in class Modelpublic void removeConstraint(Constraint constraint)
Model
removeConstraint in class Modelpublic Vector getInstructorConstraints()
public Vector getGroupConstraints()
public Vector getJenrlConstraints()
public Vector getRoomConstraints()
public Vector getDepartmentSpreadConstraints()
public static long getMaxCapacity(long nrStudents)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||