Module org.maxicp

Class Square

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

public class Square extends AbstractCPConstraint
Square Constraint x * x = y
Author:
Pierre Schaus
  • Constructor Details

    • Square

      public Square(CPIntVar x, CPIntVar y)
      Creates a square constraint x * x == y.
      Parameters:
      x - the input variable to be squared
      y - the variable equal to x * x
  • Method Details