Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: class MultipleCircuitConstraint
Note: This documentation is automatically generated.
Method |
AddArc | Return type: void Arguments: int tail, int head, BoolVar literal |
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\u003eMultipleCircuitConstraint\u003c/code\u003e class in C++ is used within the OR-Tools library, likely for constraint programming related to circuits or graphs.\u003c/p\u003e\n"],["\u003cp\u003eIt includes a method called \u003ccode\u003eAddArc\u003c/code\u003e which allows the user to define connections or relationships ("arcs") between elements represented by \u003ccode\u003etail\u003c/code\u003e and \u003ccode\u003ehead\u003c/code\u003e, with a \u003ccode\u003eBoolVar\u003c/code\u003e controlling the arc's presence.\u003c/p\u003e\n"]]],["The `MultipleCircuitConstraint` class in C++ provides functionality to define circuits within a model. The key action is adding arcs to the circuit using the `AddArc` method. This method takes three arguments: `tail` (int), `head` (int), and `literal` (BoolVar), to define a directed arc from the `tail` node to the `head` node, conditioned by the boolean variable `literal`.\n"],null,["# MultipleCircuitConstraint\n\nC++ Reference: class MultipleCircuitConstraint\n==============================================\n\n\nNote: This documentation is automatically generated.\n\n| Method ||\n|--------------------------------------------------------------------------------------|------------------------------------------------------------------------------|\n| [`AddArc`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cp_model.h#L598) | Return type: `void ` Arguments: `int tail, int head, BoolVar literal` \u003cbr /\u003e |"]]