Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Public Member Functions | |
CircuitConstraint (CpModelProto.Builder builder) | |
CircuitConstraint | addArc (int tail, int head, Literal literal) |
CircuitConstraint (CpModelProto.Builder builder) | |
CircuitConstraint | addArc (int tail, int head, Literal literal) |
Public Member Functions inherited from com.google.ortools.sat.Constraint | |
Constraint (CpModelProto.Builder builder) | |
void | onlyEnforceIf (Literal lit) |
void | onlyEnforceIf (Literal[] lits) |
int | getIndex () |
ConstraintProto.Builder | getBuilder () |
Constraint (CpModelProto.Builder builder) | |
void | onlyEnforceIf (Literal lit) |
void | onlyEnforceIf (Literal[] lits) |
int | getIndex () |
ConstraintProto.Builder | getBuilder () |
Specialized circuit constraint.
This constraint allows adding arcs to the circuit constraint incrementally.
Definition at line 24 of file CircuitConstraint.java.
com.google.ortools.sat.CircuitConstraint.CircuitConstraint | ( | CpModelProto.Builder | builder | ) |
Definition at line 25 of file CircuitConstraint.java.
com.google.ortools.sat.CircuitConstraint.CircuitConstraint | ( | CpModelProto.Builder | builder | ) |
Definition at line 25 of file CircuitConstraint.java.
CircuitConstraint com.google.ortools.sat.CircuitConstraint.addArc | ( | int | tail, |
int | head, | ||
Literal | literal ) |
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 36 of file CircuitConstraint.java.
CircuitConstraint com.google.ortools.sat.CircuitConstraint.addArc | ( | int | tail, |
int | head, | ||
Literal | literal ) |
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 36 of file CircuitConstraint.java.