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 Object
Abstract interface class for variable selection heuristic

Since:
2016.1
See Also:
KMaxDegree KSmallestMin KSmallestMax KLargestMin KLargestMax KRandomVariable KSmallestDomDegRatio KMaxRegretOnLowerBound KMaxRegretOnUpperBound
  • Field Details

    • swigCMemOwn

      protected transient boolean swigCMemOwn
  • Constructor Details

    • 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 Details

    • getCPtr

      protected static long getCPtr(KVariableSelector obj)
    • finalize

      protected void finalize()
      Overrides:
      finalize in class 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 String getName()