Package com.artelys.kalis
Class KMinMaxConflict
- java.lang.Object
-
- com.artelys.kalis.KValueSelector
-
- com.artelys.kalis.KMinMaxConflict
-
public class KMinMaxConflict extends KValueSelector
Value selector that selects the value of a variable that implies the best
problem size reduction when instantiated.
For each possible value of the domain of the variable, the variable is
instantiated and the problem size reduction is evaluated.
-
-
Field Summary
-
Fields inherited from class com.artelys.kalis.KValueSelector
swigCMemOwn
-
-
Constructor Summary
Constructors Modifier Constructor Description KMinMaxConflict()
Primary Constructor
KMinMaxConflict(boolean minconflict)
Primary Constructor
protected
KMinMaxConflict(long cPtr, boolean cMemoryOwn)
KMinMaxConflict(KMinMaxConflict 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(KMinMaxConflict obj)
int
selectNextValue(KIntVar intVar)
Selects the value of the given variable that induces the best problem
size once instantiated to this value.-
Methods inherited from class com.artelys.kalis.KValueSelector
getCPtr, getInstanceCopyPtr, getName, getProblem, printName, swigDirectorDisconnect, swigReleaseOwnership, swigTakeOwnership
-
-
-
-
Constructor Detail
-
KMinMaxConflict
protected KMinMaxConflict(long cPtr, boolean cMemoryOwn)
-
KMinMaxConflict
public KMinMaxConflict(boolean minconflict)
Primary Constructor
- Parameters:
minconflict
- : true for minimizing the induced problem size, false
for maximizing.
-
KMinMaxConflict
public KMinMaxConflict()
Primary Constructor
-
KMinMaxConflict
public KMinMaxConflict(KMinMaxConflict toCopy)
Copy constructor
-
-
Method Detail
-
getCPtr
protected static long getCPtr(KMinMaxConflict 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 value of the given variable that induces the best problem
size once instantiated to this value.- 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
-
-