public class DistributionPreferences extends TimetablingCriterion
GroupConstraint.getPreference() of all soft distribution
(group) constraints.
AbstractCriterion.ValueContext, AbstractCriterion.ValueUpdateTypeiBest, iDebug, iWeight, sDoubleFormat, sPercentFormatsMaxSize| Constructor and Description |
|---|
DistributionPreferences() |
| Modifier and Type | Method and Description |
|---|---|
protected double[] |
computeBounds(Assignment<Lecture,Placement> assignment)
Compute bounds (bounds are being cached by default).
|
double[] |
getBounds(Assignment<Lecture,Placement> assignment,
Collection<Lecture> variables)
Value bounds (minimum and maximum) of the criterion on a part of the problem
|
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)
|
double |
getWeightDefault(DataProperties config)
Defines default weight (when
AbstractCriterion.getWeightName() parameter is not present in the criterion). |
configure, getPlacementSelectionAdjustmentsName, getPlacementSelectionWeight, getPlacementSelectionWeightDefaultafterAssigned, afterUnassigned, beforeAssigned, beforeUnassigned, bestRestored, bestSaved, clearCache, constraintAdded, constraintRemoved, createAssignmentContext, getAbbreviation, getAssignmentContextReference, getBest, getBounds, getBounds, getBounds, getContext, getContext, getExtendedInfo, getInfo, getInfo, getModel, getName, getPerc, getPercentage, getPercRev, getValue, getValue, getValue, getValueUpdateType, getWeight, getWeightedBest, getWeightedValue, getWeightedValue, getWeightedValue, getWeightedValue, getWeightedValue, getWeightedValue, getWeightName, inc, inc, init, setAssignmentContextReference, setModel, setValueUpdateType, toString, variableAdded, variableRemovedpublic DistributionPreferences()
public double getWeightDefault(DataProperties config)
AbstractCriterionAbstractCriterion.getWeightName() parameter is not present in the criterion).getWeightDefault in class AbstractCriterion<Lecture,Placement>config - solver configurationpublic String getPlacementSelectionWeightName()
getPlacementSelectionWeightName in class TimetablingCriterionpublic double getValue(Assignment<Lecture,Placement> assignment, Placement value, Set<Placement> conflicts)
Criterionassignment - current assignmentvalue - given valueconflicts - values conflicting with the given valuepublic double getValue(Assignment<Lecture,Placement> assignment, Collection<Lecture> variables)
Criterionprotected double[] computeBounds(Assignment<Lecture,Placement> assignment)
AbstractCriterioncomputeBounds in class AbstractCriterion<Lecture,Placement>assignment - current assignmentpublic double[] getBounds(Assignment<Lecture,Placement> assignment, Collection<Lecture> variables)
Criterion