public class AssignedValue<V extends Variable<V,T>,T extends Value<V,T>> extends AbstractCriterion<V,T>
Value.toDouble(). Value.toDouble()) of the assigned variables.
It is an alternative to the default Model.getTotalValue().AbstractCriterion.ValueUpdateTypeiBest, iDebug, iValue, iValueUpdateType, iWeight, sDoubleFormat, sPercentFormat| Constructor and Description |
|---|
AssignedValue() |
| Modifier and Type | Method and Description |
|---|---|
double |
getValue(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, constraintAdded, constraintRemoved, getBest, getBounds, getBounds, getInfo, getInfo, getModel, getName, getPerc, getPercRev, getValue, getValue, getWeight, getWeightedBest, getWeightedValue, getWeightedValue, getWeightedValue, getWeightName, inc, init, 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>>