public class DistributionPreferences extends TimetablingCriterion
GroupConstraint.getPreference()
of all soft distribution
(group) constraints.
AbstractCriterion.ValueUpdateType
iBest, iDebug, iValue, iValueUpdateType, iWeight, sDoubleFormat, sPercentFormat
Constructor and Description |
---|
DistributionPreferences() |
Modifier and Type | Method and Description |
---|---|
protected double[] |
computeBounds()
Compute bounds (bounds are being cached by default).
|
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). |
getAbbreviation, getPlacementSelectionWeight, getPlacementSelectionWeightDefault, init, toString
afterAssigned, 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, variableRemoved
public DistributionPreferences()
public double getWeightDefault(DataProperties config)
AbstractCriterion
AbstractCriterion.getWeightName()
parameter is not present in the criterion).getWeightDefault
in class AbstractCriterion<Lecture,Placement>
public String getPlacementSelectionWeightName()
getPlacementSelectionWeightName
in class TimetablingCriterion
public double getValue(Placement value, Set<Placement> conflicts)
Criterion
public double getValue(Collection<Lecture> variables)
Criterion
protected double[] computeBounds()
AbstractCriterion
computeBounds
in class AbstractCriterion<Lecture,Placement>
public double[] getBounds(Collection<Lecture> variables)
Criterion