Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
The circuit constraint is defined on a graph where the arc presence are controlled by literals. Each arc is given by an index in the tails/heads/literals lists that must have the same size. More...
Public Member Functions | |
CircuitConstraintProto () | |
CircuitConstraintProto (CircuitConstraintProto other) | |
CircuitConstraintProto | Clone () |
override bool | Equals (object other) |
bool | Equals (CircuitConstraintProto other) |
override int | GetHashCode () |
override string | ToString () |
void | WriteTo (pb::CodedOutputStream output) |
int | CalculateSize () |
void | MergeFrom (CircuitConstraintProto other) |
void | MergeFrom (pb::CodedInputStream input) |
Static Public Attributes | |
const int | TailsFieldNumber = 3 |
Field number for the "tails" field. | |
const int | HeadsFieldNumber = 4 |
Field number for the "heads" field. | |
const int | LiteralsFieldNumber = 5 |
Field number for the "literals" field. | |
Properties | |
static pb::MessageParser< CircuitConstraintProto > | Parser [get] |
static pbr::MessageDescriptor | Descriptor [get] |
pbc::RepeatedField< int > | Tails [get] |
pbc::RepeatedField< int > | Heads [get] |
pbc::RepeatedField< int > | Literals [get] |
The circuit constraint is defined on a graph where the arc presence are controlled by literals. Each arc is given by an index in the tails/heads/literals lists that must have the same size.
For now, we ignore node indices with no incident arc. All the other nodes must have exactly one incoming and one outgoing selected arc (i.e. literal at true). All the selected arcs that are not self-loops must form a single circuit. Note that multi-arcs are allowed, but only one of them will be true at the same time. Multi-self loop are disallowed though.
Definition at line 3198 of file CpModel.pb.cs.
|
inline |
Definition at line 3223 of file CpModel.pb.cs.
|
inline |
Definition at line 3231 of file CpModel.pb.cs.
|
inline |
Definition at line 3347 of file CpModel.pb.cs.
|
inline |
Definition at line 3240 of file CpModel.pb.cs.
|
inline |
Definition at line 3285 of file CpModel.pb.cs.
|
inline |
Definition at line 3279 of file CpModel.pb.cs.
|
inline |
Definition at line 3300 of file CpModel.pb.cs.
|
inline |
Definition at line 3360 of file CpModel.pb.cs.
|
inline |
Definition at line 3372 of file CpModel.pb.cs.
|
inline |
Definition at line 3313 of file CpModel.pb.cs.
|
inline |
Definition at line 3319 of file CpModel.pb.cs.
|
static |
Field number for the "heads" field.
Definition at line 3256 of file CpModel.pb.cs.
|
static |
Field number for the "literals" field.
Definition at line 3267 of file CpModel.pb.cs.
|
static |
Field number for the "tails" field.
Definition at line 3245 of file CpModel.pb.cs.
|
staticget |
Definition at line 3211 of file CpModel.pb.cs.
|
get |
Definition at line 3262 of file CpModel.pb.cs.
|
get |
Definition at line 3273 of file CpModel.pb.cs.
|
staticget |
Definition at line 3207 of file CpModel.pb.cs.
|
get |
Definition at line 3251 of file CpModel.pb.cs.