Module org.maxicp

Class IsOr

All Implemented Interfaces:
CPConstraint, ConcreteConstraint<ConcreteCPModel>

public class IsOr extends AbstractCPConstraint
Reified logical or constraint
  • Constructor Details

    • IsOr

      public IsOr(CPBoolVar b, CPBoolVar[] x)
      Creates a constraint such that the boolean b is true if and only if at least variable in x is true.
      Parameters:
      b - the boolean that is true if at least one variable in x is true
      x - an non empty array of variables
  • Method Details