Package com.artelys.kalis
Class KNumNearestValue
- java.lang.Object
-
- com.artelys.kalis.KNumValueSelector
-
- com.artelys.kalis.KNumNearestValue
-
public class KNumNearestValue extends KNumValueSelector
This class implements a value selector that selects the nearest value from target in the domain of the variable .
Example :
KBranchingSchemeArray myBranchingSchemeArray; myBranchingSchemeArray += KSplitDomain(KWidestDomain(), KNumNearestValue());
- Since:
- 2016.1
- See Also:
KValueSelector
-
-
Field Summary
-
Fields inherited from class com.artelys.kalis.KNumValueSelector
swigCMemOwn
-
-
Constructor Summary
Constructors Modifier Constructor Description KNumNearestValue()
protected
KNumNearestValue(long cPtr, boolean cMemoryOwn)
KNumNearestValue(KNumNearestValue nearestToCopy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
protected void
finalize()
KNumValueSelector
getCopyPtr()
protected static long
getCPtr(KNumNearestValue obj)
java.lang.String
getName()
double
selectNextValue(KNumVar intVar)
virtual method to overload with your own value selection heuristic-
Methods inherited from class com.artelys.kalis.KNumValueSelector
getCPtr, getInstanceCopyPtr, getProblem, printName, swigDirectorDisconnect, swigReleaseOwnership, swigTakeOwnership
-
-
-
-
Constructor Detail
-
KNumNearestValue
protected KNumNearestValue(long cPtr, boolean cMemoryOwn)
-
KNumNearestValue
public KNumNearestValue()
-
KNumNearestValue
public KNumNearestValue(KNumNearestValue nearestToCopy)
-
-
Method Detail
-
getCPtr
protected static long getCPtr(KNumNearestValue obj)
-
finalize
protected void finalize()
- Overrides:
finalize
in classKNumValueSelector
-
delete
public void delete()
- Overrides:
delete
in classKNumValueSelector
-
selectNextValue
public double selectNextValue(KNumVar intVar)
Description copied from class:KNumValueSelector
virtual method to overload with your own value selection heuristic- Overrides:
selectNextValue
in classKNumValueSelector
- Parameters:
intVar
- the variable to selects a value for
-
getCopyPtr
public KNumValueSelector getCopyPtr()
- Overrides:
getCopyPtr
in classKNumValueSelector
-
getName
public java.lang.String getName()
- Overrides:
getName
in classKNumValueSelector
-
-