Module org.maxicp

Class NoOpConstraint

java.lang.Object
org.maxicp.modeling.constraints.NoOpConstraint
All Implemented Interfaces:
Constraint

public class NoOpConstraint extends Object implements Constraint
A constraint that does nothing. This is supposed to be used to force a solver to trigger its fixpoint.
  • Field Details

  • Constructor Details

    • NoOpConstraint

      public NoOpConstraint()
  • Method Details

    • scope

      public Collection<? extends Expression> scope()
      Description copied from interface: Constraint
      Returns the scope of the constraint, preferably as an immutable, unique collection.
      Specified by:
      scope in interface Constraint
      Returns:
      the scope of the constraint, i.e. all the Expressions it uses. The collection should be immutable.
    • noOp

      public static NoOpConstraint noOp()