Module org.maxicp

Class Or

All Implemented Interfaces:
CPConstraint, ConcreteConstraint<ConcreteCPModel>

public class Or extends AbstractCPConstraint
Logical or constraint x1 or x2 or ... xn
  • Constructor Details

    • Or

      public Or(CPBoolVar[] x)
      Creates a logical or constraint: at least one variable is true: x1 or x2 or ... xn
      Parameters:
      x - the variables in the scope of the constraint
  • Method Details