public class BrokenTimePatterns extends TimetablingCriterion
AbstractCriterion.ValueUpdateTypeiBest, iDebug, iValue, iValueUpdateType, iWeight, sDoubleFormat, sPercentFormat| Constructor and Description |
|---|
BrokenTimePatterns() |
| Modifier and Type | Method and Description |
|---|---|
protected double[] |
computeBounds()
Compute bounds (bounds are being cached by default).
|
static int |
countUselessSlotsBrokenTimePatterns(RoomConstraint rc)
Number of useless slots for this room
|
protected static int |
countUselessSlotsBrokenTimePatterns(RoomConstraint rc,
Placement placement)
Number of broken time patterns for this room
|
double[] |
getBounds(Collection<Lecture> variables)
Value bounds (minimum and maximum) of the criterion on a part of the problem
|
String |
getPlacementSelectionWeightName() |
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)
|
double |
getWeightDefault(DataProperties config)
Defines default weight (when
AbstractCriterion.getWeightName() parameter is not present in the criterion). |
protected double |
penalty(Placement value) |
protected double |
penalty(RoomConstraint rc) |
protected double |
penalty(RoomConstraint rc,
Placement value) |
getAbbreviation, getPlacementSelectionWeight, getPlacementSelectionWeightDefault, init, toStringafterAssigned, afterUnassigned, beforeAssigned, beforeUnassigned, bestRestored, bestSaved, clearCache, constraintAdded, constraintRemoved, getBest, getBounds, getInfo, getInfo, getModel, getName, getPerc, getPercRev, getValue, getWeight, getWeightedBest, getWeightedValue, getWeightedValue, getWeightedValue, getWeightName, inc, variableAdded, variableRemovedpublic BrokenTimePatterns()
public double getWeightDefault(DataProperties config)
AbstractCriterionAbstractCriterion.getWeightName() parameter is not present in the criterion).getWeightDefault in class AbstractCriterion<Lecture,Placement>public String getPlacementSelectionWeightName()
getPlacementSelectionWeightName in class TimetablingCriterionprotected double penalty(RoomConstraint rc)
protected double penalty(RoomConstraint rc, Placement value)
public double getValue(Placement value, Set<Placement> conflicts)
Criterionpublic double getValue(Collection<Lecture> variables)
Criterionprotected double[] computeBounds()
AbstractCriterioncomputeBounds in class AbstractCriterion<Lecture,Placement>public double[] getBounds(Collection<Lecture> variables)
Criterionprotected static int countUselessSlotsBrokenTimePatterns(RoomConstraint rc, Placement placement)
public static int countUselessSlotsBrokenTimePatterns(RoomConstraint rc)