public class StudentConflict extends TimetablingCriterion
JenrlConstraint
.
AbstractCriterion.ValueContext, AbstractCriterion.ValueUpdateType
Modifier and Type | Field and Description |
---|---|
protected boolean |
iIncludeConflicts |
iBest, iDebug, iWeight, sDoubleFormat, sPercentFormat
sMaxSize
Constructor and Description |
---|
StudentConflict() |
Modifier and Type | Method and Description |
---|---|
static boolean |
applicable(Lecture l1,
Lecture l2) |
void |
bestRestored(Assignment<Lecture,Placement> assignment)
Notification that the current solution has been restored from the best.
|
static boolean |
committed(Lecture l1,
Lecture l2) |
void |
configure(DataProperties properties)
Configure the criterion if needed
|
static boolean |
distance(DistanceMetric m,
Placement p1,
Placement p2) |
double[] |
getBounds(Assignment<Lecture,Placement> assignment)
Bounds (minimum and maximum) estimate for the value
|
double[] |
getBounds(Assignment<Lecture,Placement> assignment,
Collection<Lecture> variables)
Value bounds (minimum and maximum) of the criterion on a part of the problem
|
DistanceMetric |
getMetrics() |
String |
getPlacementSelectionWeightName() |
double |
getValue(Assignment<Lecture,Placement> assignment,
Collection<Lecture> variables)
Value of a part of the problem (given by the collection of variables)
|
double |
getValue(Assignment<Lecture,Placement> assignment,
Placement value,
Set<Placement> conflicts)
Value of a proposed assignment (including hard conflicts)
|
static boolean |
hard(Lecture l1,
Lecture l2) |
static boolean |
ignore(Lecture l1,
Lecture l2) |
void |
incJenrl(Assignment<Lecture,Placement> assignment,
JenrlConstraint jenrl,
double studentWeight,
Double conflictPriority,
Student student) |
boolean |
inConflict(Placement p1,
Placement p2) |
boolean |
isApplicable(Lecture l1,
Lecture l2) |
boolean |
isApplicable(Student student,
Lecture l1,
Lecture l2) |
protected double |
jointEnrollment(JenrlConstraint jenrl) |
protected double |
jointEnrollment(JenrlConstraint jenrl,
Placement p1,
Placement p2) |
static boolean |
overlaps(Placement p1,
Placement p2) |
static int |
slots(Placement p1,
Placement p2) |
static boolean |
uncommitted(Lecture l1,
Lecture l2) |
static boolean |
workday(int slotsLimit,
Placement p1,
Placement p2) |
getPlacementSelectionAdjustmentsName, getPlacementSelectionWeight, getPlacementSelectionWeightDefault
afterAssigned, afterUnassigned, beforeAssigned, beforeUnassigned, bestSaved, clearCache, computeBounds, constraintAdded, constraintRemoved, createAssignmentContext, getAbbreviation, getAssignmentContextReference, getBest, getBounds, getBounds, getContext, getContext, getExtendedInfo, getInfo, getInfo, getModel, getName, getPerc, getPercentage, getPercRev, getValue, getValue, getValue, getValueUpdateType, getWeight, getWeightDefault, getWeightedBest, getWeightedValue, getWeightedValue, getWeightedValue, getWeightedValue, getWeightedValue, getWeightedValue, getWeightName, inc, inc, init, setAssignmentContextReference, setModel, setValueUpdateType, toString, variableAdded, variableRemoved
protected boolean iIncludeConflicts
public StudentConflict()
public void configure(DataProperties properties)
Criterion
public String getPlacementSelectionWeightName()
getPlacementSelectionWeightName
in class TimetablingCriterion
public DistanceMetric getMetrics()
protected double jointEnrollment(JenrlConstraint jenrl, Placement p1, Placement p2)
protected double jointEnrollment(JenrlConstraint jenrl)
public static boolean distance(DistanceMetric m, Placement p1, Placement p2)
public static boolean uncommitted(Lecture l1, Lecture l2)
public static boolean applicable(Lecture l1, Lecture l2)
public boolean isApplicable(Lecture l1, Lecture l2)
public boolean isApplicable(Student student, Lecture l1, Lecture l2)
public boolean inConflict(Placement p1, Placement p2)
public double getValue(Assignment<Lecture,Placement> assignment, Placement value, Set<Placement> conflicts)
Criterion
assignment
- current assignmentvalue
- given valueconflicts
- values conflicting with the given valuepublic double getValue(Assignment<Lecture,Placement> assignment, Collection<Lecture> variables)
Criterion
public double[] getBounds(Assignment<Lecture,Placement> assignment)
Criterion
public double[] getBounds(Assignment<Lecture,Placement> assignment, Collection<Lecture> variables)
Criterion
public void incJenrl(Assignment<Lecture,Placement> assignment, JenrlConstraint jenrl, double studentWeight, Double conflictPriority, Student student)
public void bestRestored(Assignment<Lecture,Placement> assignment)
Criterion
bestRestored
in interface Criterion<Lecture,Placement>
bestRestored
in class AbstractCriterion<Lecture,Placement>
assignment
- current assignment