Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.sat.MultipleCircuitConstraint Class Reference
Inheritance diagram for com.google.ortools.sat.MultipleCircuitConstraint:
com.google.ortools.sat.Constraint com.google.ortools.sat.Constraint

Public Member Functions

 MultipleCircuitConstraint (CpModelProto.Builder builder)
 
MultipleCircuitConstraint addArc (int tail, int head, Literal literal)
 
 MultipleCircuitConstraint (CpModelProto.Builder builder)
 
MultipleCircuitConstraint 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 ()
 

Detailed Description

Specialized multiple circuit constraint.

This constraint allows adding arcs to the multiple circuit constraint incrementally.

Definition at line 24 of file MultipleCircuitConstraint.java.

Constructor & Destructor Documentation

◆ MultipleCircuitConstraint() [1/2]

com.google.ortools.sat.MultipleCircuitConstraint.MultipleCircuitConstraint ( CpModelProto.Builder builder)

Definition at line 25 of file MultipleCircuitConstraint.java.

◆ MultipleCircuitConstraint() [2/2]

com.google.ortools.sat.MultipleCircuitConstraint.MultipleCircuitConstraint ( CpModelProto.Builder builder)

Definition at line 25 of file MultipleCircuitConstraint.java.

Member Function Documentation

◆ addArc() [1/2]

MultipleCircuitConstraint com.google.ortools.sat.MultipleCircuitConstraint.addArc ( int tail,
int head,
Literal literal )

Add an arc to the graph of the multiple circuit constraint.

Parameters
tailthe index of the tail node.
headthe index of the head node.
literalit will be set to true if the arc is selected.

Definition at line 36 of file MultipleCircuitConstraint.java.

◆ addArc() [2/2]

MultipleCircuitConstraint com.google.ortools.sat.MultipleCircuitConstraint.addArc ( int tail,
int head,
Literal literal )

Add an arc to the graph of the multiple circuit constraint.

Parameters
tailthe index of the tail node.
headthe index of the head node.
literalit will be set to true if the arc is selected.

Definition at line 36 of file MultipleCircuitConstraint.java.


The documentation for this class was generated from the following files: