Class KMin


public class KMin extends KConstraint
This class creates a vMin = min(X1,X2,...,Xn) constraint

Example :

KIntVarArray X(...);
KIntVar minOfX(...);
problem.post(KMin("minOfX=max(X)",minOfX,X));


Since:
2016.1
See Also:
KConstraint

  • Constructor Details

    • KMin

      protected KMin(long cPtr, boolean cMemoryOwn)
    • KMin

      public KMin(String name, KIntVar vMin, KIntVarArray vars, boolean boundConsistency)
      Primary constructor of vMin = min(X1,X2,...,Xn)
      Parameters:
      vMin - variable to be the max of vars
      vars - variable array whose maximum is seeked
    • KMin

      public KMin(String name, KIntVar vMin, KIntVarArray vars)
      Primary constructor of vMin = min(X1,X2,...,Xn)
      Parameters:
      vMin - variable to be the max of vars
      vars - variable array whose maximum is seeked
    • KMin

      public KMin(String name, KNumVar vMin, KNumVarArray vars)
      Primary constructor of vMin = min(X1,X2,...,Xn)
      Parameters:
      vMin - variable to be the max of vars
      vars - variable array whose maximum is seeked
    • KMin

      public KMin(KMin toCopy)
      Copy Constructor
  • Method Details

    • getCPtr

      protected static long getCPtr(KMin obj)
    • finalize

      protected void finalize()
      Overrides:
      finalize in class KConstraint
    • delete

      public void delete()
      Overrides:
      delete in class KConstraint
    • getConstraintIPtr

      public com.artelys.kalis.SWIGTYPE_p_void getConstraintIPtr()