Class KLessOrEqualXc

java.lang.Object
com.artelys.kalis.KConstraint
com.artelys.kalis.KLessOrEqualXc

public class KLessOrEqualXc extends KConstraint
This class creates a X <= C constraint.

Example :

KIntVar X(...);
// ...
problem.post(X <= 3);
// or
problem.post(KLessOrEqualXc(X,3));



Since:
2016.1
See Also:
KConstraint

  • Constructor Details

    • KLessOrEqualXc

      protected KLessOrEqualXc(long cPtr, boolean cMemoryOwn)
    • KLessOrEqualXc

      public KLessOrEqualXc(KIntVar v1, int c)
      Primary constructor of v1 <= C
      Parameters:
      v1 - the variable
      c - the constant
    • KLessOrEqualXc

      public KLessOrEqualXc(KLessOrEqualXc toCopy)
      Copy constructor
  • Method Details