Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Public Member Functions | |
Builder | clear () |
com.google.protobuf.Descriptors.Descriptor | getDescriptorForType () |
com.google.ortools.sat.LinearConstraintProto | getDefaultInstanceForType () |
com.google.ortools.sat.LinearConstraintProto | build () |
com.google.ortools.sat.LinearConstraintProto | buildPartial () |
Builder | mergeFrom (com.google.protobuf.Message other) |
Builder | mergeFrom (com.google.ortools.sat.LinearConstraintProto other) |
final boolean | isInitialized () |
Builder | mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
java.util.List< java.lang.Integer > | getVarsList () |
int | getVarsCount () |
int | getVars (int index) |
Builder | setVars (int index, int value) |
Builder | addVars (int value) |
Builder | addAllVars (java.lang.Iterable<? extends java.lang.Integer > values) |
Builder | clearVars () |
java.util.List< java.lang.Long > | getCoeffsList () |
int | getCoeffsCount () |
long | getCoeffs (int index) |
Builder | setCoeffs (int index, long value) |
Builder | addCoeffs (long value) |
Builder | addAllCoeffs (java.lang.Iterable<? extends java.lang.Long > values) |
Builder | clearCoeffs () |
java.util.List< java.lang.Long > | getDomainList () |
int | getDomainCount () |
long | getDomain (int index) |
Builder | setDomain (int index, long value) |
Builder | addDomain (long value) |
Builder | addAllDomain (java.lang.Iterable<? extends java.lang.Long > values) |
Builder | clearDomain () |
Public Member Functions inherited from com.google.ortools.sat.LinearConstraintProtoOrBuilder |
Static Public Member Functions | |
static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
Protected Member Functions | |
com.google.protobuf.GeneratedMessage.FieldAccessorTable | internalGetFieldAccessorTable () |
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 398 of file LinearConstraintProto.java.
Builder com.google.ortools.sat.LinearConstraintProto.Builder.addAllCoeffs | ( | java.lang.Iterable<? extends java.lang.Long > | values | ) |
Same size as vars.
repeated int64 coeffs = 2;
values | The coeffs to add. |
Definition at line 787 of file LinearConstraintProto.java.
Builder com.google.ortools.sat.LinearConstraintProto.Builder.addAllDomain | ( | java.lang.Iterable<? extends java.lang.Long > | values | ) |
repeated int64 domain = 3;
values | The domain to add. |
Definition at line 875 of file LinearConstraintProto.java.
Builder com.google.ortools.sat.LinearConstraintProto.Builder.addAllVars | ( | java.lang.Iterable<? extends java.lang.Integer > | values | ) |
repeated int32 vars = 1;
values | The vars to add. |
Definition at line 679 of file LinearConstraintProto.java.
Builder com.google.ortools.sat.LinearConstraintProto.Builder.addCoeffs | ( | long | value | ) |
Same size as vars.
repeated int64 coeffs = 2;
value | The coeffs to add. |
Definition at line 770 of file LinearConstraintProto.java.
Builder com.google.ortools.sat.LinearConstraintProto.Builder.addDomain | ( | long | value | ) |
repeated int64 domain = 3;
value | The domain to add. |
Definition at line 862 of file LinearConstraintProto.java.
Builder com.google.ortools.sat.LinearConstraintProto.Builder.addVars | ( | int | value | ) |
repeated int32 vars = 1;
value | The vars to add. |
Definition at line 666 of file LinearConstraintProto.java.
com.google.ortools.sat.LinearConstraintProto com.google.ortools.sat.LinearConstraintProto.Builder.build | ( | ) |
Definition at line 447 of file LinearConstraintProto.java.
com.google.ortools.sat.LinearConstraintProto com.google.ortools.sat.LinearConstraintProto.Builder.buildPartial | ( | ) |
Definition at line 456 of file LinearConstraintProto.java.
Builder com.google.ortools.sat.LinearConstraintProto.Builder.clear | ( | ) |
Definition at line 426 of file LinearConstraintProto.java.
Builder com.google.ortools.sat.LinearConstraintProto.Builder.clearCoeffs | ( | ) |
Same size as vars.
repeated int64 coeffs = 2;
Definition at line 804 of file LinearConstraintProto.java.
Builder com.google.ortools.sat.LinearConstraintProto.Builder.clearDomain | ( | ) |
repeated int64 domain = 3;
Definition at line 888 of file LinearConstraintProto.java.
Builder com.google.ortools.sat.LinearConstraintProto.Builder.clearVars | ( | ) |
repeated int32 vars = 1;
Definition at line 692 of file LinearConstraintProto.java.
long com.google.ortools.sat.LinearConstraintProto.Builder.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 739 of file LinearConstraintProto.java.
int com.google.ortools.sat.LinearConstraintProto.Builder.getCoeffsCount | ( | ) |
Same size as vars.
repeated int64 coeffs = 2;
Implements com.google.ortools.sat.LinearConstraintProtoOrBuilder.
Definition at line 727 of file LinearConstraintProto.java.
java.util.List< java.lang.Long > com.google.ortools.sat.LinearConstraintProto.Builder.getCoeffsList | ( | ) |
Same size as vars.
repeated int64 coeffs = 2;
Implements com.google.ortools.sat.LinearConstraintProtoOrBuilder.
Definition at line 715 of file LinearConstraintProto.java.
com.google.ortools.sat.LinearConstraintProto com.google.ortools.sat.LinearConstraintProto.Builder.getDefaultInstanceForType | ( | ) |
Definition at line 442 of file LinearConstraintProto.java.
|
static |
Definition at line 403 of file LinearConstraintProto.java.
com.google.protobuf.Descriptors.Descriptor com.google.ortools.sat.LinearConstraintProto.Builder.getDescriptorForType | ( | ) |
Definition at line 437 of file LinearConstraintProto.java.
long com.google.ortools.sat.LinearConstraintProto.Builder.getDomain | ( | int | index | ) |
repeated int64 domain = 3;
index | The index of the element to return. |
Implements com.google.ortools.sat.LinearConstraintProtoOrBuilder.
Definition at line 839 of file LinearConstraintProto.java.
int com.google.ortools.sat.LinearConstraintProto.Builder.getDomainCount | ( | ) |
repeated int64 domain = 3;
Implements com.google.ortools.sat.LinearConstraintProtoOrBuilder.
Definition at line 831 of file LinearConstraintProto.java.
java.util.List< java.lang.Long > com.google.ortools.sat.LinearConstraintProto.Builder.getDomainList | ( | ) |
repeated int64 domain = 3;
Implements com.google.ortools.sat.LinearConstraintProtoOrBuilder.
Definition at line 823 of file LinearConstraintProto.java.
int com.google.ortools.sat.LinearConstraintProto.Builder.getVars | ( | int | index | ) |
repeated int32 vars = 1;
index | The index of the element to return. |
Implements com.google.ortools.sat.LinearConstraintProtoOrBuilder.
Definition at line 643 of file LinearConstraintProto.java.
int com.google.ortools.sat.LinearConstraintProto.Builder.getVarsCount | ( | ) |
repeated int32 vars = 1;
Implements com.google.ortools.sat.LinearConstraintProtoOrBuilder.
Definition at line 635 of file LinearConstraintProto.java.
java.util.List< java.lang.Integer > com.google.ortools.sat.LinearConstraintProto.Builder.getVarsList | ( | ) |
repeated int32 vars = 1;
Implements com.google.ortools.sat.LinearConstraintProtoOrBuilder.
Definition at line 627 of file LinearConstraintProto.java.
|
protected |
Definition at line 409 of file LinearConstraintProto.java.
final boolean com.google.ortools.sat.LinearConstraintProto.Builder.isInitialized | ( | ) |
Definition at line 530 of file LinearConstraintProto.java.
Builder com.google.ortools.sat.LinearConstraintProto.Builder.mergeFrom | ( | com.google.ortools.sat.LinearConstraintProto | other | ) |
Definition at line 489 of file LinearConstraintProto.java.
Builder com.google.ortools.sat.LinearConstraintProto.Builder.mergeFrom | ( | com.google.protobuf.CodedInputStream | input, |
com.google.protobuf.ExtensionRegistryLite | extensionRegistry ) throws java.io.IOException |
Definition at line 535 of file LinearConstraintProto.java.
Builder com.google.ortools.sat.LinearConstraintProto.Builder.mergeFrom | ( | com.google.protobuf.Message | other | ) |
Definition at line 480 of file LinearConstraintProto.java.
Builder com.google.ortools.sat.LinearConstraintProto.Builder.setCoeffs | ( | int | index, |
long | value ) |
Same size as vars.
repeated int64 coeffs = 2;
index | The index to set the value at. |
value | The coeffs to set. |
Definition at line 752 of file LinearConstraintProto.java.
Builder com.google.ortools.sat.LinearConstraintProto.Builder.setDomain | ( | int | index, |
long | value ) |
repeated int64 domain = 3;
index | The index to set the value at. |
value | The domain to set. |
Definition at line 848 of file LinearConstraintProto.java.
Builder com.google.ortools.sat.LinearConstraintProto.Builder.setVars | ( | int | index, |
int | value ) |
repeated int32 vars = 1;
index | The index to set the value at. |
value | The vars to set. |
Definition at line 652 of file LinearConstraintProto.java.