![]() |
Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
|
The constraint linear_target = exprs[linear_index]. This enforces that index takes one of the value in [0, vars_size()).
Protobuf type operations_research.sat.ElementConstraintProto
Definition at line 17 of file ElementConstraintProto.java.
Classes | |
| class | Builder |
Static Public Member Functions | |
| static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
| static com.google.ortools.sat.ElementConstraintProto | parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException |
| static com.google.ortools.sat.ElementConstraintProto | parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
| static com.google.ortools.sat.ElementConstraintProto | parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException |
| static com.google.ortools.sat.ElementConstraintProto | parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
| static com.google.ortools.sat.ElementConstraintProto | parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException |
| static com.google.ortools.sat.ElementConstraintProto | parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
| static com.google.ortools.sat.ElementConstraintProto | parseFrom (java.io.InputStream input) throws java.io.IOException |
| static com.google.ortools.sat.ElementConstraintProto | parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
| static com.google.ortools.sat.ElementConstraintProto | parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException |
| static com.google.ortools.sat.ElementConstraintProto | parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
| static com.google.ortools.sat.ElementConstraintProto | parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException |
| static com.google.ortools.sat.ElementConstraintProto | 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.ElementConstraintProto prototype) |
| static com.google.ortools.sat.ElementConstraintProto | getDefaultInstance () |
| static com.google.protobuf.Parser< ElementConstraintProto > | parser () |
Static Public Attributes | |
| static final int | INDEX_FIELD_NUMBER = 1 |
| static final int | TARGET_FIELD_NUMBER = 2 |
| static final int | VARS_FIELD_NUMBER = 3 |
| static final int | LINEAR_INDEX_FIELD_NUMBER = 4 |
| static final int | LINEAR_TARGET_FIELD_NUMBER = 5 |
| static final int | EXPRS_FIELD_NUMBER = 6 |
Protected Member Functions | |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable | internalGetFieldAccessorTable () |
| Builder | newBuilderForType (com.google.protobuf.GeneratedMessage.BuilderParent parent) |
| boolean com.google.ortools.sat.ElementConstraintProto.equals | ( | final java.lang.Object | obj | ) |
Definition at line 305 of file ElementConstraintProto.java.
|
static |
Definition at line 1447 of file ElementConstraintProto.java.
| com.google.ortools.sat.ElementConstraintProto com.google.ortools.sat.ElementConstraintProto.getDefaultInstanceForType | ( | ) |
Definition at line 1483 of file ElementConstraintProto.java.
|
static |
Definition at line 41 of file ElementConstraintProto.java.
| com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.ElementConstraintProto.getExprs | ( | int | index | ) |
repeated .operations_research.sat.LinearExpressionProto exprs = 6;
Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.
Definition at line 207 of file ElementConstraintProto.java.
| int com.google.ortools.sat.ElementConstraintProto.getExprsCount | ( | ) |
repeated .operations_research.sat.LinearExpressionProto exprs = 6;
Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.
Definition at line 200 of file ElementConstraintProto.java.
| java.util.List< com.google.ortools.sat.LinearExpressionProto > com.google.ortools.sat.ElementConstraintProto.getExprsList | ( | ) |
repeated .operations_research.sat.LinearExpressionProto exprs = 6;
Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.
Definition at line 185 of file ElementConstraintProto.java.
| com.google.ortools.sat.LinearExpressionProtoOrBuilder com.google.ortools.sat.ElementConstraintProto.getExprsOrBuilder | ( | int | index | ) |
repeated .operations_research.sat.LinearExpressionProto exprs = 6;
Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.
Definition at line 214 of file ElementConstraintProto.java.
| java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuilder > com.google.ortools.sat.ElementConstraintProto.getExprsOrBuilderList | ( | ) |
repeated .operations_research.sat.LinearExpressionProto exprs = 6;
Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.
Definition at line 193 of file ElementConstraintProto.java.
| int com.google.ortools.sat.ElementConstraintProto.getIndex | ( | ) |
Legacy field.
int32 index = 1;
Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.
Definition at line 65 of file ElementConstraintProto.java.
| com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.ElementConstraintProto.getLinearIndex | ( | ) |
.operations_research.sat.LinearExpressionProto linear_index = 4;
Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.
Definition at line 141 of file ElementConstraintProto.java.
| com.google.ortools.sat.LinearExpressionProtoOrBuilder com.google.ortools.sat.ElementConstraintProto.getLinearIndexOrBuilder | ( | ) |
.operations_research.sat.LinearExpressionProto linear_index = 4;
Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.
Definition at line 148 of file ElementConstraintProto.java.
| com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.ElementConstraintProto.getLinearTarget | ( | ) |
.operations_research.sat.LinearExpressionProto linear_target = 5;
Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.
Definition at line 167 of file ElementConstraintProto.java.
| com.google.ortools.sat.LinearExpressionProtoOrBuilder com.google.ortools.sat.ElementConstraintProto.getLinearTargetOrBuilder | ( | ) |
.operations_research.sat.LinearExpressionProto linear_target = 5;
Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.
Definition at line 174 of file ElementConstraintProto.java.
| com.google.protobuf.Parser< ElementConstraintProto > com.google.ortools.sat.ElementConstraintProto.getParserForType | ( | ) |
Definition at line 1478 of file ElementConstraintProto.java.
| int com.google.ortools.sat.ElementConstraintProto.getSerializedSize | ( | ) |
Definition at line 260 of file ElementConstraintProto.java.
| int com.google.ortools.sat.ElementConstraintProto.getTarget | ( | ) |
Legacy field.
int32 target = 2;
Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.
Definition at line 80 of file ElementConstraintProto.java.
| int com.google.ortools.sat.ElementConstraintProto.getVars | ( | int | index | ) |
Legacy field.
repeated int32 vars = 3;
| index | The index of the element to return. |
Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.
Definition at line 121 of file ElementConstraintProto.java.
| int com.google.ortools.sat.ElementConstraintProto.getVarsCount | ( | ) |
Legacy field.
repeated int32 vars = 3;
Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.
Definition at line 109 of file ElementConstraintProto.java.
| java.util.List< java.lang.Integer > com.google.ortools.sat.ElementConstraintProto.getVarsList | ( | ) |
Legacy field.
repeated int32 vars = 3;
Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.
Definition at line 98 of file ElementConstraintProto.java.
| int com.google.ortools.sat.ElementConstraintProto.hashCode | ( | ) |
Definition at line 337 of file ElementConstraintProto.java.
| boolean com.google.ortools.sat.ElementConstraintProto.hasLinearIndex | ( | ) |
.operations_research.sat.LinearExpressionProto linear_index = 4;
Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.
Definition at line 133 of file ElementConstraintProto.java.
| boolean com.google.ortools.sat.ElementConstraintProto.hasLinearTarget | ( | ) |
.operations_research.sat.LinearExpressionProto linear_target = 5;
Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.
Definition at line 159 of file ElementConstraintProto.java.
|
protected |
Definition at line 47 of file ElementConstraintProto.java.
| final boolean com.google.ortools.sat.ElementConstraintProto.isInitialized | ( | ) |
Definition at line 221 of file ElementConstraintProto.java.
|
static |
Definition at line 442 of file ElementConstraintProto.java.
|
static |
Definition at line 445 of file ElementConstraintProto.java.
| Builder com.google.ortools.sat.ElementConstraintProto.newBuilderForType | ( | ) |
Definition at line 441 of file ElementConstraintProto.java.
|
protected |
Definition at line 455 of file ElementConstraintProto.java.
|
static |
Definition at line 413 of file ElementConstraintProto.java.
|
static |
Definition at line 419 of file ElementConstraintProto.java.
|
static |
Definition at line 390 of file ElementConstraintProto.java.
|
static |
Definition at line 394 of file ElementConstraintProto.java.
|
static |
Definition at line 379 of file ElementConstraintProto.java.
|
static |
Definition at line 384 of file ElementConstraintProto.java.
|
static |
Definition at line 426 of file ElementConstraintProto.java.
|
static |
Definition at line 432 of file ElementConstraintProto.java.
|
static |
Definition at line 400 of file ElementConstraintProto.java.
|
static |
Definition at line 405 of file ElementConstraintProto.java.
|
static |
Definition at line 368 of file ElementConstraintProto.java.
|
static |
Definition at line 373 of file ElementConstraintProto.java.
|
static |
Definition at line 1473 of file ElementConstraintProto.java.
| Builder com.google.ortools.sat.ElementConstraintProto.toBuilder | ( | ) |
Definition at line 449 of file ElementConstraintProto.java.
| void com.google.ortools.sat.ElementConstraintProto.writeTo | ( | com.google.protobuf.CodedOutputStream | output | ) | throws java.io.IOException |
Definition at line 231 of file ElementConstraintProto.java.
|
static |
Definition at line 178 of file ElementConstraintProto.java.
|
static |
Definition at line 54 of file ElementConstraintProto.java.
|
static |
Definition at line 126 of file ElementConstraintProto.java.
|
static |
Definition at line 152 of file ElementConstraintProto.java.
|
static |
Definition at line 69 of file ElementConstraintProto.java.
|
static |
Definition at line 84 of file ElementConstraintProto.java.