V - VariableT - Valuepublic class AssignedValue<V extends Variable<V,T>,T extends Value<V,T>> extends AbstractCriterion<V,T>
Value.toDouble(Assignment). Value.toDouble(Assignment)) of the assigned variables.
It is an alternative to the default Model.getTotalValue(Assignment).AbstractCriterion.ValueContext, AbstractCriterion.ValueUpdateTypeiBest, iDebug, iWeight, sDoubleFormat, sPercentFormatsMaxSize| Constructor and Description |
|---|
AssignedValue() |
| Modifier and Type | Method and Description |
|---|---|
double |
getValue(Assignment<V,T> assignment,
T value,
Set<T> 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). |
afterAssigned, afterUnassigned, beforeAssigned, beforeUnassigned, bestRestored, bestSaved, clearCache, computeBounds, configure, constraintAdded, constraintRemoved, createAssignmentContext, getAbbreviation, getAssignmentContextReference, getBest, getBounds, getBounds, getBounds, getBounds, getContext, getContext, getExtendedInfo, getInfo, getInfo, getModel, getName, getPerc, getPercentage, getPercRev, getValue, getValue, getValue, getValue, getValueUpdateType, getWeight, getWeightedBest, getWeightedValue, getWeightedValue, getWeightedValue, getWeightedValue, getWeightedValue, getWeightedValue, getWeightName, inc, inc, init, setAssignmentContextReference, setModel, setValueUpdateType, toString, variableAdded, variableRemovedpublic AssignedValue()
public double getWeightDefault(DataProperties config)
AbstractCriterionAbstractCriterion.getWeightName() parameter is not present in the criterion).getWeightDefault in class AbstractCriterion<V extends Variable<V,T>,T extends Value<V,T>>config - solver configurationpublic double getValue(Assignment<V,T> assignment, T value, Set<T> conflicts)
Criterionassignment - current assignmentvalue - given valueconflicts - values conflicting with the given value