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 protected
KNearestRelaxedValue(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 void
delete()
protected void
finalize()
KValueSelector
getCopyPtr()
protected static long
getCPtr(KNearestRelaxedValue obj)
java.lang.String
getName()
int
selectNextValue(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:
finalize
in classKValueSelector
-
delete
public void delete()
- Overrides:
delete
in classKValueSelector
-
selectNextValue
public int selectNextValue(KIntVar intVar)
get Next Value- 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
-
-