T - it specifies the class of the variable being used in this variable selection method.public class LargestDomain<T extends Var> extends Object implements ComparatorVariable<T>
| Constructor and Description |
|---|
LargestDomain()
It constructs variable comparator based on the largest domain priority.
|
| 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 var)
It returns the metric of the variable given according to the comparator.
|
public LargestDomain()
public int compare(double left,
T var)
ComparatorVariablecompare in interface ComparatorVariable<T extends Var>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 Var>leftVar - left variablerightVar - right variablepublic double metric(T var)
ComparatorVariablemetric in interface ComparatorVariable<T extends Var>var - variable for which metric is computed.Copyright © 2022. All rights reserved.