Class MultipleCircuitConstraint
java.lang.Object
com.google.ortools.sat.Constraint
com.google.ortools.sat.MultipleCircuitConstraint
Specialized multiple circuit constraint.
This constraint allows adding arcs to the multiple circuit constraint incrementally.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd an arc to the graph of the multiple circuit constraint.Methods inherited from class com.google.ortools.sat.Constraint
getBuilder, getIndex, onlyEnforceIf, onlyEnforceIf
-
Constructor Details
-
MultipleCircuitConstraint
-
-
Method Details
-
addArc
Add an arc to the graph of the multiple circuit constraint.- Parameters:
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.
-