Package com.artelys.kalis
Class KNearestNeighbor
- java.lang.Object
-
- com.artelys.kalis.KValueSelector
-
- com.artelys.kalis.KNearestNeighbor
-
public class KNearestNeighbor extends KValueSelector
A nearest neighboor branching scheme based on a distance matrix.
-
-
Field Summary
-
Fields inherited from class com.artelys.kalis.KValueSelector
swigCMemOwn
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
KNearestNeighbor(long cPtr, boolean cMemoryOwn)
KNearestNeighbor(KIntVarArray successors, KIntMatrix distanceMatrix)
Default Constructor with successors variable and distance matrixKNearestNeighbor(KNearestNeighbor toCopy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
protected void
finalize()
KValueSelector
getCopyPtr()
protected static long
getCPtr(KNearestNeighbor obj)
java.lang.String
getName()
int
selectNextValue(KIntVar intVar)
Virtual method to overload with your own value selection heuristic.
-
Methods inherited from class com.artelys.kalis.KValueSelector
getCPtr, getInstanceCopyPtr, getProblem, printName, swigDirectorDisconnect, swigReleaseOwnership, swigTakeOwnership
-
-
-
-
Constructor Detail
-
KNearestNeighbor
protected KNearestNeighbor(long cPtr, boolean cMemoryOwn)
-
KNearestNeighbor
public KNearestNeighbor(KIntVarArray successors, KIntMatrix distanceMatrix)
Default Constructor with successors variable and distance matrix
-
KNearestNeighbor
public KNearestNeighbor(KNearestNeighbor toCopy)
-
-
Method Detail
-
getCPtr
protected static long getCPtr(KNearestNeighbor obj)
-
finalize
protected void finalize()
- Overrides:
finalize
in classKValueSelector
-
delete
public void delete()
- Overrides:
delete
in classKValueSelector
-
selectNextValue
public int selectNextValue(KIntVar intVar)
Description copied from class:KValueSelector
Virtual method to overload with your own value selection heuristic.
- Overrides:
selectNextValue
in classKValueSelector
- Parameters:
intVar
- the variable to selects a value for
-
getCopyPtr
public KValueSelector getCopyPtr()
- Overrides:
getCopyPtr
in classKValueSelector
-
getName
public java.lang.String getName()
- Overrides:
getName
in classKValueSelector
-
-