Package com.artelys.kalis
Class KVariableSelector
- java.lang.Object
-
- com.artelys.kalis.KVariableSelector
-
- Direct Known Subclasses:
KFloatVarSelector
,KInputOrder
,KLargestDomain
,KLargestMax
,KLargestMin
,KLargestReducedCost
,KMaxDegree
,KMaxRegretOnLowerBound
,KMaxRegretOnUpperBound
,KMostFractional
,KPathOrder
,KRandomVariable
,KSmallestDomain
,KSmallestDomDegRatio
,KSmallestMax
,KSmallestMin
public class KVariableSelector extends java.lang.Object
Abstract interface class for variable selection heuristic
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
swigCMemOwn
-
Constructor Summary
Constructors Modifier Constructor Description KVariableSelector()
Constructorprotected
KVariableSelector(long cPtr, boolean cMemoryOwn)
KVariableSelector(KProblem problem)
Constructor with KProblemKVariableSelector(KVariableSelector toCopy)
Copy constructorKVariableSelector(com.artelys.kalis.SWIGTYPE_p_KVariableSelector_I variableSelector)
Constructor with KVariableSelector_I*KVariableSelector(com.artelys.kalis.SWIGTYPE_p_KVariableSelector_I variableSelector, boolean manage)
Constructor with KVariableSelector_I*
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
protected void
finalize()
KVariableSelector
getCopyPtr()
protected static long
getCPtr(KVariableSelector obj)
KVariableSelector
getInstanceCopyPtr(KProblem problem)
java.lang.String
getName()
KProblem
getProblem()
double
getVariableRank(KIntVar varToRank, com.artelys.kalis.SWIGTYPE_p_double best, com.artelys.kalis.SWIGTYPE_p_p_KIntVar varResult, boolean first)
void
printName()
KIntVar
selectNextVariable(KIntVarArray intVarArray)
virtual interface method to overload for definition of your own variable selection heuristicsprotected void
swigDirectorDisconnect()
void
swigReleaseOwnership()
void
swigTakeOwnership()
-
-
-
Constructor Detail
-
KVariableSelector
protected KVariableSelector(long cPtr, boolean cMemoryOwn)
-
KVariableSelector
public KVariableSelector()
Constructor
-
KVariableSelector
public KVariableSelector(KProblem problem)
Constructor with KProblem
-
KVariableSelector
public KVariableSelector(com.artelys.kalis.SWIGTYPE_p_KVariableSelector_I variableSelector, boolean manage)
Constructor with KVariableSelector_I*
-
KVariableSelector
public KVariableSelector(com.artelys.kalis.SWIGTYPE_p_KVariableSelector_I variableSelector)
Constructor with KVariableSelector_I*
-
KVariableSelector
public KVariableSelector(KVariableSelector toCopy)
Copy constructor
-
-
Method Detail
-
getCPtr
protected static long getCPtr(KVariableSelector obj)
-
finalize
protected void finalize()
- Overrides:
finalize
in classjava.lang.Object
-
delete
public void delete()
-
swigDirectorDisconnect
protected void swigDirectorDisconnect()
-
swigReleaseOwnership
public void swigReleaseOwnership()
-
swigTakeOwnership
public void swigTakeOwnership()
-
getProblem
public KProblem getProblem()
-
selectNextVariable
public KIntVar selectNextVariable(KIntVarArray intVarArray)
virtual interface method to overload for definition of your own variable selection heuristics- Parameters:
intVarArray
- Array of variable from wich selecting a variable
-
getVariableRank
public double getVariableRank(KIntVar varToRank, com.artelys.kalis.SWIGTYPE_p_double best, com.artelys.kalis.SWIGTYPE_p_p_KIntVar varResult, boolean first)
-
getCopyPtr
public KVariableSelector getCopyPtr()
-
getInstanceCopyPtr
public KVariableSelector getInstanceCopyPtr(KProblem problem)
-
printName
public void printName()
-
getName
public java.lang.String getName()
-
-