![]() |
Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
|
Classes | |
class | Builder |
Public Member Functions | |
java.util.List< java.lang.Integer > | getVarsList () |
int | getVarsCount () |
int | getVars (int index) |
java.util.List< java.lang.Long > | getValuesList () |
int | getValuesCount () |
long | getValues (int index) |
java.util.List< com.google.ortools.sat.LinearExpressionProto > | getExprsList () |
java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuilder > | getExprsOrBuilderList () |
int | getExprsCount () |
com.google.ortools.sat.LinearExpressionProto | getExprs (int index) |
com.google.ortools.sat.LinearExpressionProtoOrBuilder | getExprsOrBuilder (int index) |
boolean | getNegated () |
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< TableConstraintProto > | getParserForType () |
com.google.ortools.sat.TableConstraintProto | getDefaultInstanceForType () |
Static Public Member Functions | |
static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
static com.google.ortools.sat.TableConstraintProto | parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.TableConstraintProto | parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.TableConstraintProto | parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.TableConstraintProto | parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.TableConstraintProto | parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.TableConstraintProto | parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.TableConstraintProto | parseFrom (java.io.InputStream input) throws java.io.IOException |
static com.google.ortools.sat.TableConstraintProto | parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static com.google.ortools.sat.TableConstraintProto | parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException |
static com.google.ortools.sat.TableConstraintProto | parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static com.google.ortools.sat.TableConstraintProto | parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException |
static com.google.ortools.sat.TableConstraintProto | 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.TableConstraintProto prototype) |
static com.google.ortools.sat.TableConstraintProto | getDefaultInstance () |
static com.google.protobuf.Parser< TableConstraintProto > | parser () |
Static Public Attributes | |
static final int | VARS_FIELD_NUMBER = 1 |
static final int | VALUES_FIELD_NUMBER = 2 |
static final int | EXPRS_FIELD_NUMBER = 4 |
static final int | NEGATED_FIELD_NUMBER = 3 |
Protected Member Functions | |
com.google.protobuf.GeneratedMessage.FieldAccessorTable | internalGetFieldAccessorTable () |
Builder | newBuilderForType (com.google.protobuf.GeneratedMessage.BuilderParent parent) |
The values of the n-tuple formed by the given expression can only be one of the listed n-tuples in values. The n-tuples are encoded in a flattened way: [tuple0_v0, tuple0_v1, ..., tuple0_v{n-1}, tuple1_v0, ...]. Expressions must be affine (a * var + b). Corner cases: - If all `vars`, `values` and `exprs` are empty, the constraint is trivially true, irrespective of the value of `negated`. - If `values` is empty but either vars or exprs is not, the constraint is trivially false if `negated` is false, and trivially true if `negated` is true. - If `vars` and `exprs` are empty but `values` is not, the model is invalid.
Protobuf type operations_research.sat.TableConstraintProto
Definition at line 25 of file TableConstraintProto.java.
boolean com.google.ortools.sat.TableConstraintProto.equals | ( | final java.lang.Object | obj | ) |
Definition at line 277 of file TableConstraintProto.java.
|
static |
Definition at line 1182 of file TableConstraintProto.java.
com.google.ortools.sat.TableConstraintProto com.google.ortools.sat.TableConstraintProto.getDefaultInstanceForType | ( | ) |
Definition at line 1218 of file TableConstraintProto.java.
|
static |
Definition at line 50 of file TableConstraintProto.java.
com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.TableConstraintProto.getExprs | ( | int | index | ) |
repeated .operations_research.sat.LinearExpressionProto exprs = 4;
Implements com.google.ortools.sat.TableConstraintProtoOrBuilder.
Definition at line 163 of file TableConstraintProto.java.
int com.google.ortools.sat.TableConstraintProto.getExprsCount | ( | ) |
repeated .operations_research.sat.LinearExpressionProto exprs = 4;
Implements com.google.ortools.sat.TableConstraintProtoOrBuilder.
Definition at line 156 of file TableConstraintProto.java.
java.util.List< com.google.ortools.sat.LinearExpressionProto > com.google.ortools.sat.TableConstraintProto.getExprsList | ( | ) |
repeated .operations_research.sat.LinearExpressionProto exprs = 4;
Implements com.google.ortools.sat.TableConstraintProtoOrBuilder.
Definition at line 141 of file TableConstraintProto.java.
com.google.ortools.sat.LinearExpressionProtoOrBuilder com.google.ortools.sat.TableConstraintProto.getExprsOrBuilder | ( | int | index | ) |
repeated .operations_research.sat.LinearExpressionProto exprs = 4;
Implements com.google.ortools.sat.TableConstraintProtoOrBuilder.
Definition at line 170 of file TableConstraintProto.java.
java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuilder > com.google.ortools.sat.TableConstraintProto.getExprsOrBuilderList | ( | ) |
repeated .operations_research.sat.LinearExpressionProto exprs = 4;
Implements com.google.ortools.sat.TableConstraintProtoOrBuilder.
Definition at line 149 of file TableConstraintProto.java.
boolean com.google.ortools.sat.TableConstraintProto.getNegated | ( | ) |
If true, the meaning is "negated", that is we forbid any of the given tuple from a feasible assignment.
bool negated = 3;
Implements com.google.ortools.sat.TableConstraintProtoOrBuilder.
Definition at line 187 of file TableConstraintProto.java.
com.google.protobuf.Parser< TableConstraintProto > com.google.ortools.sat.TableConstraintProto.getParserForType | ( | ) |
Definition at line 1213 of file TableConstraintProto.java.
int com.google.ortools.sat.TableConstraintProto.getSerializedSize | ( | ) |
Definition at line 230 of file TableConstraintProto.java.
long com.google.ortools.sat.TableConstraintProto.getValues | ( | int | index | ) |
repeated int64 values = 2;
index | The index of the element to return. |
Implements com.google.ortools.sat.TableConstraintProtoOrBuilder.
Definition at line 129 of file TableConstraintProto.java.
int com.google.ortools.sat.TableConstraintProto.getValuesCount | ( | ) |
repeated int64 values = 2;
Implements com.google.ortools.sat.TableConstraintProtoOrBuilder.
Definition at line 121 of file TableConstraintProto.java.
java.util.List< java.lang.Long > com.google.ortools.sat.TableConstraintProto.getValuesList | ( | ) |
repeated int64 values = 2;
Implements com.google.ortools.sat.TableConstraintProtoOrBuilder.
Definition at line 114 of file TableConstraintProto.java.
int com.google.ortools.sat.TableConstraintProto.getVars | ( | int | index | ) |
Legacy field.
repeated int32 vars = 1;
index | The index of the element to return. |
Implements com.google.ortools.sat.TableConstraintProtoOrBuilder.
Definition at line 99 of file TableConstraintProto.java.
int com.google.ortools.sat.TableConstraintProto.getVarsCount | ( | ) |
Legacy field.
repeated int32 vars = 1;
Implements com.google.ortools.sat.TableConstraintProtoOrBuilder.
Definition at line 87 of file TableConstraintProto.java.
java.util.List< java.lang.Integer > com.google.ortools.sat.TableConstraintProto.getVarsList | ( | ) |
Legacy field.
repeated int32 vars = 1;
Implements com.google.ortools.sat.TableConstraintProtoOrBuilder.
Definition at line 76 of file TableConstraintProto.java.
int com.google.ortools.sat.TableConstraintProto.hashCode | ( | ) |
Definition at line 299 of file TableConstraintProto.java.
|
protected |
Definition at line 56 of file TableConstraintProto.java.
final boolean com.google.ortools.sat.TableConstraintProto.isInitialized | ( | ) |
Definition at line 193 of file TableConstraintProto.java.
|
static |
Definition at line 399 of file TableConstraintProto.java.
|
static |
Definition at line 402 of file TableConstraintProto.java.
Builder com.google.ortools.sat.TableConstraintProto.newBuilderForType | ( | ) |
Definition at line 398 of file TableConstraintProto.java.
|
protected |
Definition at line 412 of file TableConstraintProto.java.
|
static |
Definition at line 370 of file TableConstraintProto.java.
|
static |
Definition at line 376 of file TableConstraintProto.java.
|
static |
Definition at line 347 of file TableConstraintProto.java.
|
static |
Definition at line 351 of file TableConstraintProto.java.
|
static |
Definition at line 336 of file TableConstraintProto.java.
|
static |
Definition at line 341 of file TableConstraintProto.java.
|
static |
Definition at line 383 of file TableConstraintProto.java.
|
static |
Definition at line 389 of file TableConstraintProto.java.
|
static |
Definition at line 357 of file TableConstraintProto.java.
|
static |
Definition at line 362 of file TableConstraintProto.java.
|
static |
Definition at line 325 of file TableConstraintProto.java.
|
static |
Definition at line 330 of file TableConstraintProto.java.
|
static |
Definition at line 1208 of file TableConstraintProto.java.
Builder com.google.ortools.sat.TableConstraintProto.toBuilder | ( | ) |
Definition at line 406 of file TableConstraintProto.java.
void com.google.ortools.sat.TableConstraintProto.writeTo | ( | com.google.protobuf.CodedOutputStream | output | ) | throws java.io.IOException |
Definition at line 203 of file TableConstraintProto.java.
|
static |
Definition at line 134 of file TableConstraintProto.java.
|
static |
Definition at line 175 of file TableConstraintProto.java.
|
static |
Definition at line 104 of file TableConstraintProto.java.
|
static |
Definition at line 62 of file TableConstraintProto.java.