public class MultipleCircuitConstraint extends Constraint
This constraint allows adding arcs to the multiple circuit constraint incrementally.
Constructor and Description |
---|
MultipleCircuitConstraint(CpModelProto.Builder builder) |
Modifier and Type | Method and Description |
---|---|
MultipleCircuitConstraint |
addArc(int tail,
int head,
Literal literal)
Add an arc to the graph of the multiple circuit constraint.
|
getBuilder, getIndex, onlyEnforceIf, onlyEnforceIf
public MultipleCircuitConstraint(CpModelProto.Builder builder)
public MultipleCircuitConstraint addArc(int tail, int head, Literal literal)
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.Copyright © 2025. All rights reserved.