Module org.maxicp

Class IsEqual

java.lang.Object
org.maxicp.cp.engine.core.AbstractCPConstraint
org.maxicp.cp.engine.constraints.IsEqual
All Implemented Interfaces:
CPConstraint, ConcreteConstraint<ConcreteCPModel>

public class IsEqual extends AbstractCPConstraint
Reified equality constraint
See Also:
  • Constructor Details

    • IsEqual

      public IsEqual(CPBoolVar b, CPIntVar x, int v)
      Returns a boolean variable representing whether one variable is equal to the given constant.
      Parameters:
      b - the boolean variable that is set to true if and only if x takes the value v
      x - the variable
      v - the constant
      See Also:
  • Method Details