Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: class CircuitConstraint
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\u003eCircuitConstraint\u003c/code\u003e class in C++ is used to define constraints related to circuits or paths within a model.\u003c/p\u003e\n"],["\u003cp\u003eIt provides a method, \u003ccode\u003eAddArc\u003c/code\u003e, to specify an arc (directed edge) within the circuit, using a tail node, head node, and a Boolean variable controlling its presence.\u003c/p\u003e\n"]]],["The `CircuitConstraint` class in C++ includes a method called `AddArc`. This method is used to define arcs within a circuit. It accepts three arguments: `tail` and `head` (both integers), representing the start and end nodes of an arc, and `literal` (a `BoolVar`), which indicates whether the arc is present in the circuit. The method's return type is `void`, meaning it does not return any value.\n"],null,["# CircuitConstraint\n\nC++ Reference: class CircuitConstraint\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#L575) | Return type: `void ` Arguments: `int tail, int head, BoolVar literal` \u003cbr /\u003e |"]]