Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: class DisjunctiveWithTwoItems
Note: This documentation is automatically generated.
This is an optimization for the case when we have a big number of such
pairwise constraints. This should be roughtly equivalent to what the general
disjunctive case is doing, but it dealt with variable size better and has a
lot less overhead.
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 `DisjunctiveWithTwoItems` class in C++ optimizes pairwise constraints, offering improved variable size handling and reduced overhead compared to general disjunctive cases. Key methods include: `DisjunctiveWithTwoItems`, which takes a `SchedulingConstraintHelper` pointer as an argument; `Propagate`, a boolean function; and `RegisterWith`, which accepts a `GenericLiteralWatcher` pointer and returns an integer. This class is designed for scenarios with numerous pairwise constraints, focusing on efficiency and resource management.\n"]]