![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
Specialized circuit constraint. More...
Specialized circuit constraint.
This constraint allows adding arcs to the circuit constraint incrementally.
Definition at line 84 of file Constraints.cs.
Public Member Functions | |
| CircuitConstraint (CpModelProto model) | |
| CircuitConstraint | AddArc (int tail, int head, ILiteral literal) |
| Add an arc to the graph of the circuit constraint. | |
| Public Member Functions inherited from Google.OrTools.Sat.Constraint | |
| Constraint (CpModelProto model) | |
| void | OnlyEnforceIf (ILiteral lit) |
| Adds a literal to the constraint. | |
| void | OnlyEnforceIf (ILiteral[] lits) |
| Adds a list of literals to the constraint. | |
Additional Inherited Members | |
| Properties inherited from Google.OrTools.Sat.Constraint | |
| int | Index [get] |
| The index of the constraint in the model. | |
| ConstraintProto | Proto [get, set] |
| The underlying constraint proto. | |
|
inline |
Definition at line 86 of file Constraints.cs.
|
inline |
Add an arc to the graph of the circuit constraint.
| tail | the index of the tail node |
| head | the index of the head node |
| literal | it will be set to true if the arc is selected |
Definition at line 99 of file Constraints.cs.