public class StudentConflict extends TimetablingCriterion
JenrlConstraint
.
AbstractCriterion.ValueUpdateType
Modifier and Type | Field and Description |
---|---|
protected boolean |
iIncludeConflicts |
iBest, iDebug, iValue, iValueUpdateType, iWeight, sDoubleFormat, sPercentFormat
Constructor and Description |
---|
StudentConflict() |
Modifier and Type | Method and Description |
---|---|
static boolean |
applicable(Lecture l1,
Lecture l2) |
static boolean |
applicable(Placement p1,
Placement p2) |
void |
bestRestored()
Notification that the current solution has been restored from the best.
|
static boolean |
committed(Lecture l1,
Lecture l2) |
static boolean |
committed(Placement p1,
Placement p2) |
static boolean |
distance(DistanceMetric m,
Placement p1,
Placement p2) |
double[] |
getBounds()
Bounds (minimum and maximum) estimate for the value
|
double[] |
getBounds(Collection<Lecture> variables)
Value bounds (minimum and maximum) of the criterion on a part of the problem
|
DistanceMetric |
getMetrics() |
String |
getPlacementSelectionWeightName() |
double |
getValue()
Current value of the criterion (optimization objective)
|
double |
getValue(Collection<Lecture> variables)
Value of a part of the problem (given by the collection of variables)
|
double |
getValue(Placement value,
Set<Placement> conflicts)
Value of a proposed assignment (including hard conflicts)
|
static boolean |
hard(Lecture l1,
Lecture l2) |
static boolean |
hard(Placement p1,
Placement p2) |
static boolean |
ignore(Lecture l1,
Lecture l2) |
static boolean |
ignore(Placement p1,
Placement p2) |
void |
incJenrl(JenrlConstraint jenrl,
double studentWeight,
Double conflictPriority,
Student student) |
boolean |
inConflict(Placement p1,
Placement p2) |
boolean |
init(Solver<Lecture,Placement> solver)
Notification that the model was initialized by the solver.
|
boolean |
isApplicable(Lecture l1,
Lecture l2) |
protected double |
jointEnrollment(JenrlConstraint jenrl) |
static boolean |
overlaps(Placement p1,
Placement p2) |
getAbbreviation, getPlacementSelectionWeight, getPlacementSelectionWeightDefault, toString
afterAssigned, afterUnassigned, beforeAssigned, beforeUnassigned, bestSaved, clearCache, computeBounds, constraintAdded, constraintRemoved, getBest, getInfo, getInfo, getModel, getName, getPerc, getPercRev, getWeight, getWeightDefault, getWeightedBest, getWeightedValue, getWeightedValue, getWeightedValue, getWeightName, inc, variableAdded, variableRemoved
protected boolean iIncludeConflicts
public StudentConflict()
public boolean init(Solver<Lecture,Placement> solver)
ModelListener
init
in interface ModelListener<Lecture,Placement>
init
in class TimetablingCriterion
solver
- IFS solverpublic String getPlacementSelectionWeightName()
getPlacementSelectionWeightName
in class TimetablingCriterion
public double getValue()
Criterion
public DistanceMetric getMetrics()
protected double jointEnrollment(JenrlConstraint jenrl)
public static boolean distance(DistanceMetric m, Placement p1, Placement p2)
public static boolean applicable(Placement p1, Placement p2)
public static boolean applicable(Lecture l1, Lecture l2)
public boolean isApplicable(Lecture l1, Lecture l2)
public boolean inConflict(Placement p1, Placement p2)
public double getValue(Placement value, Set<Placement> conflicts)
Criterion
public double getValue(Collection<Lecture> variables)
Criterion
public double[] getBounds()
Criterion
public double[] getBounds(Collection<Lecture> variables)
Criterion
public void incJenrl(JenrlConstraint jenrl, double studentWeight, Double conflictPriority, Student student)
public void bestRestored()
Criterion
bestRestored
in interface Criterion<Lecture,Placement>
bestRestored
in class AbstractCriterion<Lecture,Placement>