public class Distributions extends InstructorSchedulingCriterion
GroupConstraintAbstractCriterion.ValueContext, AbstractCriterion.ValueUpdateTypeiBest, iDebug, iWeight, sDoubleFormat, sPercentFormatsMaxSize| Constructor and Description |
|---|
Distributions() |
| Modifier and Type | Method and Description |
|---|---|
protected double[] |
computeBounds(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment)
Compute bounds (bounds are being cached by default).
|
double[] |
getBounds(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment,
Collection<TeachingRequest.Variable> variables)
Value bounds (minimum and maximum) of the criterion on a part of the problem
|
double |
getValue(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment,
Collection<TeachingRequest.Variable> variables)
Value of a part of the problem (given by the collection of variables)
|
double |
getValue(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment,
TeachingAssignment value,
Set<TeachingAssignment> 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). |
getAssignedInstructors, getInfo, getInfo, getInstructorsafterAssigned, afterUnassigned, beforeAssigned, beforeUnassigned, bestRestored, bestSaved, clearCache, configure, constraintAdded, constraintRemoved, createAssignmentContext, getAbbreviation, getAssignmentContextReference, getBest, getBounds, getBounds, getBounds, getContext, getContext, getExtendedInfo, 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 Distributions()
public double getWeightDefault(DataProperties config)
AbstractCriterionAbstractCriterion.getWeightName() parameter is not present in the criterion).getWeightDefault in class AbstractCriterion<TeachingRequest.Variable,TeachingAssignment>config - solver configurationpublic double getValue(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment, TeachingAssignment value, Set<TeachingAssignment> conflicts)
Criterionassignment - current assignmentvalue - given valueconflicts - values conflicting with the given valuepublic double getValue(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment, Collection<TeachingRequest.Variable> variables)
CriteriongetValue in interface Criterion<TeachingRequest.Variable,TeachingAssignment>getValue in class AbstractCriterion<TeachingRequest.Variable,TeachingAssignment>assignment - current assignmentvariables - list of problem variablesprotected double[] computeBounds(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment)
AbstractCriterioncomputeBounds in class AbstractCriterion<TeachingRequest.Variable,TeachingAssignment>assignment - current assignmentpublic double[] getBounds(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment, Collection<TeachingRequest.Variable> variables)
CriteriongetBounds in interface Criterion<TeachingRequest.Variable,TeachingAssignment>getBounds in class AbstractCriterion<TeachingRequest.Variable,TeachingAssignment>assignment - current assignmentvariables - list of problem variables