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, onlyEnforceIfpublic 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 © 2024. All rights reserved.