Package com.artelys.kalis
Class KBestBoundValue
- java.lang.Object
-
- com.artelys.kalis.KValueSelector
-
- com.artelys.kalis.KBestBoundValue
-
public class KBestBoundValue extends KValueSelector
Value selector that selects the value of a variable that implies the best
bound for the objective.
For each possible value in the domain of a given variable, the variable
is instantiated on this value and the propagation is launched. The selected
value will be the value that impacted the objective in the best way.
If the lower bound is used, the best value will be the value that induces the
minimal lower bound on the objective. If the upper bound is used, the
best value will be the value that induces the maximal upper bound on the
objective.
-
-
Field Summary
-
Fields inherited from class com.artelys.kalis.KValueSelector
swigCMemOwn
-
-
Constructor Summary
Constructors Modifier Constructor Description KBestBoundValue(boolean lowerbound)
Primary Constructor
protected
KBestBoundValue(long cPtr, boolean cMemoryOwn)
KBestBoundValue(KBestBoundValue 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()
Return an allocated copy of the selectorprotected static long
getCPtr(KBestBoundValue obj)
int
selectNextValue(KIntVar intVar)
Selects the next objective best bound value for the given variable.-
Methods inherited from class com.artelys.kalis.KValueSelector
getCPtr, getInstanceCopyPtr, getName, getProblem, printName, swigDirectorDisconnect, swigReleaseOwnership, swigTakeOwnership
-
-
-
-
Constructor Detail
-
KBestBoundValue
protected KBestBoundValue(long cPtr, boolean cMemoryOwn)
-
KBestBoundValue
public KBestBoundValue(boolean lowerbound)
Primary Constructor
- Parameters:
lowerbound
- : True for bound value on lower bound, False for bound value on upper bound
-
KBestBoundValue
public KBestBoundValue(KBestBoundValue toCopy)
Copy constructor
-
-
Method Detail
-
getCPtr
protected static long getCPtr(KBestBoundValue obj)
-
finalize
protected void finalize()
- Overrides:
finalize
in classKValueSelector
-
delete
public void delete()
- Overrides:
delete
in classKValueSelector
-
selectNextValue
public int selectNextValue(KIntVar intVar)
Selects the next objective best bound value for the given variable.- Overrides:
selectNextValue
in classKValueSelector
- Parameters:
intVar
- the variable to selects a value for
-
getCopyPtr
public KValueSelector getCopyPtr()
Return an allocated copy of the selector- Overrides:
getCopyPtr
in classKValueSelector
-
-