public interface Criterion<V extends Variable<V,T>,T extends Value<V,T>> extends ModelListener<V,T>, InfoProvider<V>
Modifier and Type | Method and Description |
---|---|
void |
bestRestored()
Notification that the current solution has been restored from the best.
|
void |
bestSaved()
Notification that the current solution has been saved to the best.
|
double |
getBest()
Best value (value of the criterion in the best solution)
|
double[] |
getBounds()
Bounds (minimum and maximum) estimate for the value
|
double[] |
getBounds(Collection<V> variables)
Value bounds (minimum and maximum) of the criterion on a part of the problem
|
String |
getName()
Criterion name
|
double |
getValue()
Current value of the criterion (optimization objective)
|
double |
getValue(Collection<V> variables)
Value of a part of the problem (given by the collection of variables)
|
double |
getValue(T value,
Set<T> conflicts)
Value of a proposed assignment (including hard conflicts)
|
double |
getWeight()
Weight of the criterion
|
double |
getWeightedBest()
Weighted best value of the objective (value in the best solution).
|
double |
getWeightedValue()
Weighted value of the objectives
|
double |
getWeightedValue(Collection<V> variables)
Weighted value of a part of the problem (given by the collection of variables)
|
double |
getWeightedValue(T value,
Set<T> conflicts)
Weighted value of a proposed assignment (including hard conflicts)
|
void |
inc(double value)
Outside update of the criterion (usefull when the criterion is driven by a set of constraints).
|
afterAssigned, afterUnassigned, beforeAssigned, beforeUnassigned, constraintAdded, constraintRemoved, init, variableAdded, variableRemoved
getInfo, getInfo
double getValue()
double getWeightedValue()
double[] getBounds()
double getWeightedBest()
double getBest()
double getWeight()
double getWeightedValue(T value, Set<T> conflicts)
double getValue(T value, Set<T> conflicts)
double getWeightedValue(Collection<V> variables)
double getValue(Collection<V> variables)
double[] getBounds(Collection<V> variables)
void inc(double value)
void bestSaved()
void bestRestored()