Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Classes | |
class | Builder |
Public Member Functions | |
java.util.List< java.lang.Integer > | getTailsList () |
int | getTailsCount () |
int | getTails (int index) |
java.util.List< java.lang.Integer > | getHeadsList () |
int | getHeadsCount () |
int | getHeads (int index) |
java.util.List< java.lang.Integer > | getLiteralsList () |
int | getLiteralsCount () |
int | getLiterals (int index) |
final boolean | isInitialized () |
void | writeTo (com.google.protobuf.CodedOutputStream output) throws java.io.IOException |
int | getSerializedSize () |
boolean | equals (final java.lang.Object obj) |
int | hashCode () |
Builder | newBuilderForType () |
Builder | toBuilder () |
com.google.protobuf.Parser< CircuitConstraintProto > | getParserForType () |
com.google.ortools.sat.CircuitConstraintProto | getDefaultInstanceForType () |
Public Member Functions inherited from com.google.ortools.sat.CircuitConstraintProtoOrBuilder |
Static Public Member Functions | |
static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
static com.google.ortools.sat.CircuitConstraintProto | parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.CircuitConstraintProto | parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.CircuitConstraintProto | parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.CircuitConstraintProto | parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.CircuitConstraintProto | parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.CircuitConstraintProto | parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.CircuitConstraintProto | parseFrom (java.io.InputStream input) throws java.io.IOException |
static com.google.ortools.sat.CircuitConstraintProto | parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static com.google.ortools.sat.CircuitConstraintProto | parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException |
static com.google.ortools.sat.CircuitConstraintProto | parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static com.google.ortools.sat.CircuitConstraintProto | parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException |
static com.google.ortools.sat.CircuitConstraintProto | parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static Builder | newBuilder () |
static Builder | newBuilder (com.google.ortools.sat.CircuitConstraintProto prototype) |
static com.google.ortools.sat.CircuitConstraintProto | getDefaultInstance () |
static com.google.protobuf.Parser< CircuitConstraintProto > | parser () |
Static Public Attributes | |
static final int | TAILS_FIELD_NUMBER = 3 |
static final int | HEADS_FIELD_NUMBER = 4 |
static final int | LITERALS_FIELD_NUMBER = 5 |
Protected Member Functions | |
com.google.protobuf.GeneratedMessage.FieldAccessorTable | internalGetFieldAccessorTable () |
Builder | newBuilderForType (com.google.protobuf.GeneratedMessage.BuilderParent parent) |
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.
Protobuf type operations_research.sat.CircuitConstraintProto
Definition at line 22 of file CircuitConstraintProto.java.
boolean com.google.ortools.sat.CircuitConstraintProto.equals | ( | final java.lang.Object | obj | ) |
Definition at line 242 of file CircuitConstraintProto.java.
|
static |
Definition at line 870 of file CircuitConstraintProto.java.
com.google.ortools.sat.CircuitConstraintProto com.google.ortools.sat.CircuitConstraintProto.getDefaultInstanceForType | ( | ) |
Definition at line 906 of file CircuitConstraintProto.java.
|
static |
Definition at line 47 of file CircuitConstraintProto.java.
int com.google.ortools.sat.CircuitConstraintProto.getHeads | ( | int | index | ) |
repeated int32 heads = 4;
index | The index of the element to return. |
Implements com.google.ortools.sat.CircuitConstraintProtoOrBuilder.
Definition at line 114 of file CircuitConstraintProto.java.
int com.google.ortools.sat.CircuitConstraintProto.getHeadsCount | ( | ) |
repeated int32 heads = 4;
Implements com.google.ortools.sat.CircuitConstraintProtoOrBuilder.
Definition at line 106 of file CircuitConstraintProto.java.
java.util.List< java.lang.Integer > com.google.ortools.sat.CircuitConstraintProto.getHeadsList | ( | ) |
repeated int32 heads = 4;
Implements com.google.ortools.sat.CircuitConstraintProtoOrBuilder.
Definition at line 99 of file CircuitConstraintProto.java.
int com.google.ortools.sat.CircuitConstraintProto.getLiterals | ( | int | index | ) |
repeated int32 literals = 5;
index | The index of the element to return. |
Implements com.google.ortools.sat.CircuitConstraintProtoOrBuilder.
Definition at line 144 of file CircuitConstraintProto.java.
int com.google.ortools.sat.CircuitConstraintProto.getLiteralsCount | ( | ) |
repeated int32 literals = 5;
Implements com.google.ortools.sat.CircuitConstraintProtoOrBuilder.
Definition at line 136 of file CircuitConstraintProto.java.
java.util.List< java.lang.Integer > com.google.ortools.sat.CircuitConstraintProto.getLiteralsList | ( | ) |
repeated int32 literals = 5;
Implements com.google.ortools.sat.CircuitConstraintProtoOrBuilder.
Definition at line 129 of file CircuitConstraintProto.java.
com.google.protobuf.Parser< CircuitConstraintProto > com.google.ortools.sat.CircuitConstraintProto.getParserForType | ( | ) |
Definition at line 901 of file CircuitConstraintProto.java.
int com.google.ortools.sat.CircuitConstraintProto.getSerializedSize | ( | ) |
Definition at line 189 of file CircuitConstraintProto.java.
int com.google.ortools.sat.CircuitConstraintProto.getTails | ( | int | index | ) |
repeated int32 tails = 3;
index | The index of the element to return. |
Implements com.google.ortools.sat.CircuitConstraintProtoOrBuilder.
Definition at line 84 of file CircuitConstraintProto.java.
int com.google.ortools.sat.CircuitConstraintProto.getTailsCount | ( | ) |
repeated int32 tails = 3;
Implements com.google.ortools.sat.CircuitConstraintProtoOrBuilder.
Definition at line 76 of file CircuitConstraintProto.java.
java.util.List< java.lang.Integer > com.google.ortools.sat.CircuitConstraintProto.getTailsList | ( | ) |
repeated int32 tails = 3;
Implements com.google.ortools.sat.CircuitConstraintProtoOrBuilder.
Definition at line 69 of file CircuitConstraintProto.java.
int com.google.ortools.sat.CircuitConstraintProto.hashCode | ( | ) |
Definition at line 262 of file CircuitConstraintProto.java.
|
protected |
Definition at line 53 of file CircuitConstraintProto.java.
final boolean com.google.ortools.sat.CircuitConstraintProto.isInitialized | ( | ) |
Definition at line 151 of file CircuitConstraintProto.java.
|
static |
Definition at line 359 of file CircuitConstraintProto.java.
|
static |
Definition at line 362 of file CircuitConstraintProto.java.
Builder com.google.ortools.sat.CircuitConstraintProto.newBuilderForType | ( | ) |
Definition at line 358 of file CircuitConstraintProto.java.
|
protected |
Definition at line 372 of file CircuitConstraintProto.java.
|
static |
Definition at line 330 of file CircuitConstraintProto.java.
|
static |
Definition at line 336 of file CircuitConstraintProto.java.
|
static |
Definition at line 307 of file CircuitConstraintProto.java.
|
static |
Definition at line 311 of file CircuitConstraintProto.java.
|
static |
Definition at line 296 of file CircuitConstraintProto.java.
|
static |
Definition at line 301 of file CircuitConstraintProto.java.
|
static |
Definition at line 343 of file CircuitConstraintProto.java.
|
static |
Definition at line 349 of file CircuitConstraintProto.java.
|
static |
Definition at line 317 of file CircuitConstraintProto.java.
|
static |
Definition at line 322 of file CircuitConstraintProto.java.
|
static |
Definition at line 285 of file CircuitConstraintProto.java.
|
static |
Definition at line 290 of file CircuitConstraintProto.java.
|
static |
Definition at line 896 of file CircuitConstraintProto.java.
Builder com.google.ortools.sat.CircuitConstraintProto.toBuilder | ( | ) |
Definition at line 366 of file CircuitConstraintProto.java.
void com.google.ortools.sat.CircuitConstraintProto.writeTo | ( | com.google.protobuf.CodedOutputStream | output | ) | throws java.io.IOException |
Definition at line 161 of file CircuitConstraintProto.java.
|
static |
Definition at line 89 of file CircuitConstraintProto.java.
|
static |
Definition at line 119 of file CircuitConstraintProto.java.
|
static |
Definition at line 59 of file CircuitConstraintProto.java.