Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: class SquarePropagator
Note: This documentation is automatically generated.
Propagates x * x = s.
TODO(user): Only works for x nonnegative.
Method |
Propagate | Return type: bool |
RegisterWith | Return type: void Arguments: GenericLiteralWatcher* watcher |
SquarePropagator | Arguments: AffineExpression x, AffineExpression s,
IntegerTrail* integer_trail |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-06 UTC.
[null,null,["Last updated 2024-08-06 UTC."],[],["The `SquarePropagator` class in C++ propagates the constraint `x * x = s`, specifically for nonnegative `x`. It has a constructor `SquarePropagator` that takes affine expressions `x` and `s`, and an `IntegerTrail`. The class provides a `Propagate` method, which returns a boolean, and a `RegisterWith` method, which registers a `GenericLiteralWatcher`. These methods are used to manage and enforce the square constraint.\n"],null,[]]