Package com.artelys.kalis
Class KNearestRelaxedValue
- java.lang.Object
-
- com.artelys.kalis.KValueSelector
-
- com.artelys.kalis.KNearestRelaxedValue
-
public class KNearestRelaxedValue extends KValueSelector
This value selector chooses the value closest to the relaxed solution
contained in the provided solver.
- Since:
- 2016.1
-
-
Field Summary
-
Fields inherited from class com.artelys.kalis.KValueSelector
swigCMemOwn
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedKNearestRelaxedValue(long cPtr, boolean cMemoryOwn)KNearestRelaxedValue(KLinearRelaxationSolver arg0)Constructor.KNearestRelaxedValue(KNearestRelaxedValue toCopy)Copy constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()protected voidfinalize()KValueSelectorgetCopyPtr()protected static longgetCPtr(KNearestRelaxedValue obj)java.lang.StringgetName()intselectNextValue(KIntVar intVar)get Next Value-
Methods inherited from class com.artelys.kalis.KValueSelector
getCPtr, getInstanceCopyPtr, getProblem, printName, swigDirectorDisconnect, swigReleaseOwnership, swigTakeOwnership
-
-
-
-
Constructor Detail
-
KNearestRelaxedValue
protected KNearestRelaxedValue(long cPtr, boolean cMemoryOwn)
-
KNearestRelaxedValue
public KNearestRelaxedValue(KLinearRelaxationSolver arg0)
Constructor.
-
KNearestRelaxedValue
public KNearestRelaxedValue(KNearestRelaxedValue toCopy)
Copy constructor.
-
-
Method Detail
-
getCPtr
protected static long getCPtr(KNearestRelaxedValue obj)
-
finalize
protected void finalize()
- Overrides:
finalizein classKValueSelector
-
delete
public void delete()
- Overrides:
deletein classKValueSelector
-
selectNextValue
public int selectNextValue(KIntVar intVar)
get Next Value- Overrides:
selectNextValuein classKValueSelector- Parameters:
intVar- the variable to selects a value for
-
getCopyPtr
public KValueSelector getCopyPtr()
- Overrides:
getCopyPtrin classKValueSelector
-
getName
public java.lang.String getName()
- Overrides:
getNamein classKValueSelector
-
-