Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: class TableConstraint
Note: This documentation is automatically generated.
Method |
AddTuple | Return type: void Arguments: absl::Span<const int64_t> tuple Adds a tuple of possible values to the constraint.
|
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."],[[["\u003cp\u003eThe \u003ccode\u003eTableConstraint\u003c/code\u003e class in C++ defines a constraint based on a set of allowed tuples.\u003c/p\u003e\n"],["\u003cp\u003eUsers can add allowed tuples to the constraint using the \u003ccode\u003eAddTuple\u003c/code\u003e method, providing the tuple values as an argument.\u003c/p\u003e\n"]]],["The `TableConstraint` class in C++ allows adding valid combinations of values via the `AddTuple` method. This method accepts a tuple (an ordered sequence) of `int64_t` values as input, represented by `absl::Span\u003cconst int64_t\u003e tuple`. Each call to `AddTuple` adds a new valid tuple to the constraint, specifying a set of acceptable values for the variables involved.\n"],null,["# TableConstraint\n\nC++ Reference: class TableConstraint\n====================================\n\n\nNote: This documentation is automatically generated.\n\n| Method ||\n|----------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------|\n| [`AddTuple`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cp_model.h#L615) | Return type: `void ` Arguments: `absl::Span\u003cconst int64_t\u003e tuple` Adds a tuple of possible values to the constraint. |"]]