T - type of variable being used in the search.public class SmallestMin<T extends IntVar> extends Object implements ComparatorVariable<T>
| Constructor and Description |
|---|
SmallestMin()
It constructs SmallestMin Comparator.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(double left,
T var)
It compares the baseline metric to the variable metric.
|
int |
compare(T leftVar,
T rightVar)
It compares the metric of the left variable against the right one.
|
double |
metric(T o)
It returns the metric of the variable given according to the comparator.
|
public int compare(double left,
T var)
ComparatorVariablecompare in interface ComparatorVariable<T extends IntVar>left - the baseline for comparison.var - variable which is compared to baseline.public int compare(T leftVar, T rightVar)
ComparatorVariablecompare in interface ComparatorVariable<T extends IntVar>leftVar - left variablerightVar - right variablepublic double metric(T o)
ComparatorVariablemetric in interface ComparatorVariable<T extends IntVar>o - variable for which metric is computed.Copyright © 2022. All rights reserved.