Class KNotEqualXc

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

public class KNotEqualXc extends KConstraint
This class creates a X != C constraint

Example :

KIntVar X(...);
// ...
problem.post(X != 5);
// or
problem.post(KNotEqualXc(X,5));


Since:
2016.1
See Also:
KConstraint

  • Constructor Details

    • KNotEqualXc

      protected KNotEqualXc(long cPtr, boolean cMemoryOwn)
    • KNotEqualXc

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

      public KNotEqualXc(KNotEqualXc toCopy)
      Copy constructor
  • Method Details