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 > | getVarsList () |
int | getVarsCount () |
int | getVars (int index) |
java.util.List< java.lang.Long > | getCoeffsList () |
int | getCoeffsCount () |
long | getCoeffs (int index) |
java.util.List< java.lang.Long > | getDomainList () |
int | getDomainCount () |
long | getDomain (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< LinearConstraintProto > | getParserForType () |
com.google.ortools.sat.LinearConstraintProto | getDefaultInstanceForType () |
Public Member Functions inherited from com.google.ortools.sat.LinearConstraintProtoOrBuilder |
Static Public Member Functions | |
static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
static com.google.ortools.sat.LinearConstraintProto | parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.LinearConstraintProto | parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.LinearConstraintProto | parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.LinearConstraintProto | parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.LinearConstraintProto | parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.LinearConstraintProto | parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.LinearConstraintProto | parseFrom (java.io.InputStream input) throws java.io.IOException |
static com.google.ortools.sat.LinearConstraintProto | parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static com.google.ortools.sat.LinearConstraintProto | parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException |
static com.google.ortools.sat.LinearConstraintProto | parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static com.google.ortools.sat.LinearConstraintProto | parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException |
static com.google.ortools.sat.LinearConstraintProto | 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.LinearConstraintProto prototype) |
static com.google.ortools.sat.LinearConstraintProto | getDefaultInstance () |
static com.google.protobuf.Parser< LinearConstraintProto > | parser () |
Static Public Attributes | |
static final int | VARS_FIELD_NUMBER = 1 |
static final int | COEFFS_FIELD_NUMBER = 2 |
static final int | DOMAIN_FIELD_NUMBER = 3 |
Protected Member Functions | |
com.google.protobuf.GeneratedMessage.FieldAccessorTable | internalGetFieldAccessorTable () |
Builder | newBuilderForType (com.google.protobuf.GeneratedMessage.BuilderParent parent) |
The linear sum vars[i] * coeffs[i] must fall in the given domain. The domain has the same format as the one in IntegerVariableProto. Note that the validation code currently checks using the domain of the involved variables that the sum can always be computed without integer overflow and throws an error otherwise.
Protobuf type operations_research.sat.LinearConstraintProto
Definition at line 19 of file LinearConstraintProto.java.
boolean com.google.ortools.sat.LinearConstraintProto.equals | ( | final java.lang.Object | obj | ) |
Definition at line 251 of file LinearConstraintProto.java.
long com.google.ortools.sat.LinearConstraintProto.getCoeffs | ( | int | index | ) |
Same size as vars.
repeated int64 coeffs = 2;
index | The index of the element to return. |
Implements com.google.ortools.sat.LinearConstraintProtoOrBuilder.
Definition at line 123 of file LinearConstraintProto.java.
int com.google.ortools.sat.LinearConstraintProto.getCoeffsCount | ( | ) |
Same size as vars.
repeated int64 coeffs = 2;
Implements com.google.ortools.sat.LinearConstraintProtoOrBuilder.
Definition at line 111 of file LinearConstraintProto.java.
java.util.List< java.lang.Long > com.google.ortools.sat.LinearConstraintProto.getCoeffsList | ( | ) |
Same size as vars.
repeated int64 coeffs = 2;
Implements com.google.ortools.sat.LinearConstraintProtoOrBuilder.
Definition at line 100 of file LinearConstraintProto.java.
|
static |
Definition at line 904 of file LinearConstraintProto.java.
com.google.ortools.sat.LinearConstraintProto com.google.ortools.sat.LinearConstraintProto.getDefaultInstanceForType | ( | ) |
Definition at line 940 of file LinearConstraintProto.java.
|
static |
Definition at line 44 of file LinearConstraintProto.java.
long com.google.ortools.sat.LinearConstraintProto.getDomain | ( | int | index | ) |
repeated int64 domain = 3;
index | The index of the element to return. |
Implements com.google.ortools.sat.LinearConstraintProtoOrBuilder.
Definition at line 153 of file LinearConstraintProto.java.
int com.google.ortools.sat.LinearConstraintProto.getDomainCount | ( | ) |
repeated int64 domain = 3;
Implements com.google.ortools.sat.LinearConstraintProtoOrBuilder.
Definition at line 145 of file LinearConstraintProto.java.
java.util.List< java.lang.Long > com.google.ortools.sat.LinearConstraintProto.getDomainList | ( | ) |
repeated int64 domain = 3;
Implements com.google.ortools.sat.LinearConstraintProtoOrBuilder.
Definition at line 138 of file LinearConstraintProto.java.
com.google.protobuf.Parser< LinearConstraintProto > com.google.ortools.sat.LinearConstraintProto.getParserForType | ( | ) |
Definition at line 935 of file LinearConstraintProto.java.
int com.google.ortools.sat.LinearConstraintProto.getSerializedSize | ( | ) |
Definition at line 198 of file LinearConstraintProto.java.
int com.google.ortools.sat.LinearConstraintProto.getVars | ( | int | index | ) |
repeated int32 vars = 1;
index | The index of the element to return. |
Implements com.google.ortools.sat.LinearConstraintProtoOrBuilder.
Definition at line 81 of file LinearConstraintProto.java.
int com.google.ortools.sat.LinearConstraintProto.getVarsCount | ( | ) |
repeated int32 vars = 1;
Implements com.google.ortools.sat.LinearConstraintProtoOrBuilder.
Definition at line 73 of file LinearConstraintProto.java.
java.util.List< java.lang.Integer > com.google.ortools.sat.LinearConstraintProto.getVarsList | ( | ) |
repeated int32 vars = 1;
Implements com.google.ortools.sat.LinearConstraintProtoOrBuilder.
Definition at line 66 of file LinearConstraintProto.java.
int com.google.ortools.sat.LinearConstraintProto.hashCode | ( | ) |
Definition at line 271 of file LinearConstraintProto.java.
|
protected |
Definition at line 50 of file LinearConstraintProto.java.
final boolean com.google.ortools.sat.LinearConstraintProto.isInitialized | ( | ) |
Definition at line 160 of file LinearConstraintProto.java.
|
static |
Definition at line 368 of file LinearConstraintProto.java.
|
static |
Definition at line 371 of file LinearConstraintProto.java.
Builder com.google.ortools.sat.LinearConstraintProto.newBuilderForType | ( | ) |
Definition at line 367 of file LinearConstraintProto.java.
|
protected |
Definition at line 381 of file LinearConstraintProto.java.
|
static |
Definition at line 339 of file LinearConstraintProto.java.
|
static |
Definition at line 345 of file LinearConstraintProto.java.
|
static |
Definition at line 316 of file LinearConstraintProto.java.
|
static |
Definition at line 320 of file LinearConstraintProto.java.
|
static |
Definition at line 305 of file LinearConstraintProto.java.
|
static |
Definition at line 310 of file LinearConstraintProto.java.
|
static |
Definition at line 352 of file LinearConstraintProto.java.
|
static |
Definition at line 358 of file LinearConstraintProto.java.
|
static |
Definition at line 326 of file LinearConstraintProto.java.
|
static |
Definition at line 331 of file LinearConstraintProto.java.
|
static |
Definition at line 294 of file LinearConstraintProto.java.
|
static |
Definition at line 299 of file LinearConstraintProto.java.
|
static |
Definition at line 930 of file LinearConstraintProto.java.
Builder com.google.ortools.sat.LinearConstraintProto.toBuilder | ( | ) |
Definition at line 375 of file LinearConstraintProto.java.
void com.google.ortools.sat.LinearConstraintProto.writeTo | ( | com.google.protobuf.CodedOutputStream | output | ) | throws java.io.IOException |
Definition at line 170 of file LinearConstraintProto.java.
|
static |
Definition at line 86 of file LinearConstraintProto.java.
|
static |
Definition at line 128 of file LinearConstraintProto.java.
|
static |
Definition at line 56 of file LinearConstraintProto.java.