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.ObjectAbstract interface class for variable selection heuristic
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanswigCMemOwn
-
Constructor Summary
Constructors Modifier Constructor Description KVariableSelector()ConstructorprotectedKVariableSelector(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 voiddelete()protected voidfinalize()KVariableSelectorgetCopyPtr()protected static longgetCPtr(KVariableSelector obj)KVariableSelectorgetInstanceCopyPtr(KProblem problem)java.lang.StringgetName()KProblemgetProblem()doublegetVariableRank(KIntVar varToRank, com.artelys.kalis.SWIGTYPE_p_double best, com.artelys.kalis.SWIGTYPE_p_p_KIntVar varResult, boolean first)voidprintName()KIntVarselectNextVariable(KIntVarArray intVarArray)virtual interface method to overload for definition of your own variable selection heuristicsprotected voidswigDirectorDisconnect()voidswigReleaseOwnership()voidswigTakeOwnership()
-
-
-
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:
finalizein 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()
-
-