public class TimetableModel extends ConstantModel<Lecture,Placement>
iAssignedVariables, iPerturbVariables, iUnassignedVariables, sPercentageFormat, sTimeFormat| Constructor and Description |
|---|
TimetableModel(DataProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConstraint(Constraint<Lecture,Placement> constraint)
Adds a constraint to the model
|
void |
addStudent(Student student) |
Set<Placement> |
conflictValuesSkipWeakeningConstraints(Placement value)
Returns the set of conflicting variables with this value, if it is
assigned to its variable.
|
Set<Student> |
getAllStudents() |
Map<String,String> |
getBounds() |
List<ClassLimitConstraint> |
getClassLimitConstraints() |
List<DepartmentSpreadConstraint> |
getDepartmentSpreadConstraints()
The list of all departmental spread constraints
|
DistanceMetric |
getDistanceMetric() |
List<FlexibleConstraint> |
getFlexibleConstraints() |
List<GroupConstraint> |
getGroupConstraints()
The list of all group constraints
|
Map<String,String> |
getInfo()
Global info
|
Map<String,String> |
getInfo(Collection<Lecture> variables)
Returns information about the current solution.
|
List<InstructorConstraint> |
getInstructorConstraints()
The list of all instructor constraints
|
List<JenrlConstraint> |
getJenrlConstraints()
The list of all jenrl constraints
|
static String |
getMem()
Returns amount of allocated memory.
|
DataProperties |
getProperties() |
List<RoomConstraint> |
getRoomConstraints()
The list of all room constraints
|
List<SpreadConstraint> |
getSpreadConstraints() |
StudentSectioning |
getStudentSectioning()
Returns interface to the student sectioning functions needed during course timetabling.
|
double |
getTotalValue()
Value of the current solution.
|
double |
getTotalValue(Collection<Lecture> variables)
Value of the current solution.
|
List<BitSet> |
getWeeks()
The method creates date patterns (bitsets) which represent the weeks of a
semester.
|
int |
getYear() |
void |
removeConstraint(Constraint<Lecture,Placement> constraint)
Removes a constraint from the model
|
void |
removeStudent(Student student) |
void |
setYear(int year) |
void |
switchStudents()
Student final sectioning (switching students between sections of the same
class in order to minimize overall number of student conflicts)
|
String |
toString()
String representation -- returns a list of values of objective criteria
|
addVariable, afterAssigned, afterUnassigned, beforeAssigned, beforeUnassigned, constantVariables, hasConstantVariables, isConstant, removeVariableaddCriterion, addGlobalConstraint, addModelListener, assignedVariables, bestUnassignedVariables, clearBest, conflictConstraints, conflictValues, constraints, countConstraints, countGlobalConstraints, countVariables, getBestPerturbations, getBestUnassignedVariables, getCriteria, getCriterion, getExtendedInfo, getInfoProviders, getModelListeners, getPerc, getPercRev, globalConstraints, inConflict, init, invalidateVariablesWithInitialValueCache, modelListenerOfType, nrAssignedVariables, nrUnassignedVariables, perturbVariables, perturbVariables, removeCriterion, removeCriterion, removeGlobalConstraint, removeModelListener, restoreBest, restoreBest, saveBest, unassignedHardConstraints, unassignedVariables, variables, variablesWithInitialValue, weakenpublic TimetableModel(DataProperties properties)
public DistanceMetric getDistanceMetric()
public StudentSectioning getStudentSectioning()
DefaultStudentSectioning, can be changed using the StudentSectioning.Class parameter.public DataProperties getProperties()
public void switchStudents()
public String toString()
public Map<String,String> getInfo(Collection<Lecture> variables)
Modelpublic void addConstraint(Constraint<Lecture,Placement> constraint)
ModeladdConstraint in class Model<Lecture,Placement>public void removeConstraint(Constraint<Lecture,Placement> constraint)
ModelremoveConstraint in class Model<Lecture,Placement>public List<InstructorConstraint> getInstructorConstraints()
public List<GroupConstraint> getGroupConstraints()
public List<JenrlConstraint> getJenrlConstraints()
public List<RoomConstraint> getRoomConstraints()
public List<DepartmentSpreadConstraint> getDepartmentSpreadConstraints()
public List<SpreadConstraint> getSpreadConstraints()
public List<ClassLimitConstraint> getClassLimitConstraints()
public List<FlexibleConstraint> getFlexibleConstraints()
public double getTotalValue()
ModelValue.toDouble().getTotalValue in class Model<Lecture,Placement>public double getTotalValue(Collection<Lecture> variables)
ModelValue.toDouble(). Only variables from the given set are
considered.getTotalValue in class Model<Lecture,Placement>public int getYear()
public void setYear(int year)
public Set<Student> getAllStudents()
public void addStudent(Student student)
public void removeStudent(Student student)
public static String getMem()
public Set<Placement> conflictValuesSkipWeakeningConstraints(Placement value)
WeakeningConstraint are ignored.