Package com.artelys.kalis
Class KNumNearestRelaxedValue
- java.lang.Object
-
- com.artelys.kalis.KNumValueSelector
-
- com.artelys.kalis.KNumNearestRelaxedValue
-
public class KNumNearestRelaxedValue extends KNumValueSelector
This value selector chooses the value closest to the relaxed solution
contained in the provided solver.
If the relaxed value for a KFloatVar variable is within its bounds, the
selected value is simply the relaxed value. Otherwise, it is the upper or
lower bound of the KFloatVar.
- Since:
- 2016.1
-
-
Field Summary
-
Fields inherited from class com.artelys.kalis.KNumValueSelector
swigCMemOwn
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
KNumNearestRelaxedValue(long cPtr, boolean cMemoryOwn)
KNumNearestRelaxedValue(KLinearRelaxationSolver arg0)
ConstructorKNumNearestRelaxedValue(KNumNearestRelaxedValue 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(KNumNearestRelaxedValue obj)
-
Methods inherited from class com.artelys.kalis.KNumValueSelector
getCPtr, getInstanceCopyPtr, getName, getProblem, printName, selectNextValue, swigDirectorDisconnect, swigReleaseOwnership, swigTakeOwnership
-
-
-
-
Constructor Detail
-
KNumNearestRelaxedValue
protected KNumNearestRelaxedValue(long cPtr, boolean cMemoryOwn)
-
KNumNearestRelaxedValue
public KNumNearestRelaxedValue(KLinearRelaxationSolver arg0)
Constructor
-
KNumNearestRelaxedValue
public KNumNearestRelaxedValue(KNumNearestRelaxedValue middleToCopy)
Copy constructor
-
-
Method Detail
-
getCPtr
protected static long getCPtr(KNumNearestRelaxedValue obj)
-
finalize
protected void finalize()
- Overrides:
finalize
in classKNumValueSelector
-
delete
public void delete()
- Overrides:
delete
in classKNumValueSelector
-
getCopyPtr
public KNumValueSelector getCopyPtr()
- Overrides:
getCopyPtr
in classKNumValueSelector
-
-