Package com.artelys.kalis
Class KNumMiddle
- java.lang.Object
-
- com.artelys.kalis.KNumValueSelector
-
- com.artelys.kalis.KNumMiddle
-
public class KNumMiddle extends KNumValueSelector
This class implements a value selector that selects the nearest value from
the middle value in the domain of the variable.
Example :
KBranchingSchemeArray myBranchingSchemeArray; myBranchingSchemeArray += KAssignVar(KSmallestDomain(),KNumMiddle());
- Since:
- 2016.1
- See Also:
KValueSelector
-
-
Field Summary
-
Fields inherited from class com.artelys.kalis.KNumValueSelector
swigCMemOwn
-
-
Constructor Summary
Constructors Modifier Constructor Description KNumMiddle()
Constructorprotected
KNumMiddle(long cPtr, boolean cMemoryOwn)
KNumMiddle(KNumMiddle middleToCopy)
Copy constructor
-
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(KNumMiddle obj)
double
selectNextValue(KNumVar numVar)
virtual method to overload with your own value selection heuristic-
Methods inherited from class com.artelys.kalis.KNumValueSelector
getCPtr, getInstanceCopyPtr, getName, getProblem, printName, swigDirectorDisconnect, swigReleaseOwnership, swigTakeOwnership
-
-
-
-
Constructor Detail
-
KNumMiddle
protected KNumMiddle(long cPtr, boolean cMemoryOwn)
-
KNumMiddle
public KNumMiddle()
Constructor
-
KNumMiddle
public KNumMiddle(KNumMiddle middleToCopy)
Copy constructor
-
-
Method Detail
-
getCPtr
protected static long getCPtr(KNumMiddle obj)
-
finalize
protected void finalize()
- Overrides:
finalize
in classKNumValueSelector
-
delete
public void delete()
- Overrides:
delete
in classKNumValueSelector
-
selectNextValue
public double selectNextValue(KNumVar numVar)
Description copied from class:KNumValueSelector
virtual method to overload with your own value selection heuristic- Overrides:
selectNextValue
in classKNumValueSelector
- Parameters:
numVar
- the variable to selects a value for
-
getCopyPtr
public KNumValueSelector getCopyPtr()
- Overrides:
getCopyPtr
in classKNumValueSelector
-
-