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.LinearExpressionProto | getDefaultInstanceForType () |
com.google.ortools.sat.LinearExpressionProto | build () |
com.google.ortools.sat.LinearExpressionProto | buildPartial () |
Builder | mergeFrom (com.google.protobuf.Message other) |
Builder | mergeFrom (com.google.ortools.sat.LinearExpressionProto 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 () |
long | getOffset () |
Builder | setOffset (long value) |
Builder | clearOffset () |
Public Member Functions inherited from com.google.ortools.sat.LinearExpressionProtoOrBuilder |
Static Public Member Functions | |
static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
Protected Member Functions | |
com.google.protobuf.GeneratedMessage.FieldAccessorTable | internalGetFieldAccessorTable () |
Some constraints supports linear expression instead of just using a reference to a variable. This is especially useful during presolve to reduce the model size.
Protobuf type operations_research.sat.LinearExpressionProto
Definition at line 345 of file LinearExpressionProto.java.
Builder com.google.ortools.sat.LinearExpressionProto.Builder.addAllCoeffs | ( | java.lang.Iterable<? extends java.lang.Long > | values | ) |
repeated int64 coeffs = 2;
values | The coeffs to add. |
Definition at line 690 of file LinearExpressionProto.java.
Builder com.google.ortools.sat.LinearExpressionProto.Builder.addAllVars | ( | java.lang.Iterable<? extends java.lang.Integer > | values | ) |
repeated int32 vars = 1;
values | The vars to add. |
Definition at line 606 of file LinearExpressionProto.java.
Builder com.google.ortools.sat.LinearExpressionProto.Builder.addCoeffs | ( | long | value | ) |
repeated int64 coeffs = 2;
value | The coeffs to add. |
Definition at line 677 of file LinearExpressionProto.java.
Builder com.google.ortools.sat.LinearExpressionProto.Builder.addVars | ( | int | value | ) |
repeated int32 vars = 1;
value | The vars to add. |
Definition at line 593 of file LinearExpressionProto.java.
com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.LinearExpressionProto.Builder.build | ( | ) |
Definition at line 394 of file LinearExpressionProto.java.
com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.LinearExpressionProto.Builder.buildPartial | ( | ) |
Definition at line 403 of file LinearExpressionProto.java.
Builder com.google.ortools.sat.LinearExpressionProto.Builder.clear | ( | ) |
Definition at line 373 of file LinearExpressionProto.java.
Builder com.google.ortools.sat.LinearExpressionProto.Builder.clearCoeffs | ( | ) |
repeated int64 coeffs = 2;
Definition at line 703 of file LinearExpressionProto.java.
Builder com.google.ortools.sat.LinearExpressionProto.Builder.clearOffset | ( | ) |
int64 offset = 3;
Definition at line 735 of file LinearExpressionProto.java.
Builder com.google.ortools.sat.LinearExpressionProto.Builder.clearVars | ( | ) |
repeated int32 vars = 1;
Definition at line 619 of file LinearExpressionProto.java.
long com.google.ortools.sat.LinearExpressionProto.Builder.getCoeffs | ( | int | index | ) |
repeated int64 coeffs = 2;
index | The index of the element to return. |
Implements com.google.ortools.sat.LinearExpressionProtoOrBuilder.
Definition at line 654 of file LinearExpressionProto.java.
int com.google.ortools.sat.LinearExpressionProto.Builder.getCoeffsCount | ( | ) |
repeated int64 coeffs = 2;
Implements com.google.ortools.sat.LinearExpressionProtoOrBuilder.
Definition at line 646 of file LinearExpressionProto.java.
java.util.List< java.lang.Long > com.google.ortools.sat.LinearExpressionProto.Builder.getCoeffsList | ( | ) |
repeated int64 coeffs = 2;
Implements com.google.ortools.sat.LinearExpressionProtoOrBuilder.
Definition at line 638 of file LinearExpressionProto.java.
com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.LinearExpressionProto.Builder.getDefaultInstanceForType | ( | ) |
Definition at line 389 of file LinearExpressionProto.java.
|
static |
Definition at line 350 of file LinearExpressionProto.java.
com.google.protobuf.Descriptors.Descriptor com.google.ortools.sat.LinearExpressionProto.Builder.getDescriptorForType | ( | ) |
Definition at line 384 of file LinearExpressionProto.java.
long com.google.ortools.sat.LinearExpressionProto.Builder.getOffset | ( | ) |
int64 offset = 3;
Implements com.google.ortools.sat.LinearExpressionProtoOrBuilder.
Definition at line 716 of file LinearExpressionProto.java.
int com.google.ortools.sat.LinearExpressionProto.Builder.getVars | ( | int | index | ) |
repeated int32 vars = 1;
index | The index of the element to return. |
Implements com.google.ortools.sat.LinearExpressionProtoOrBuilder.
Definition at line 570 of file LinearExpressionProto.java.
int com.google.ortools.sat.LinearExpressionProto.Builder.getVarsCount | ( | ) |
repeated int32 vars = 1;
Implements com.google.ortools.sat.LinearExpressionProtoOrBuilder.
Definition at line 562 of file LinearExpressionProto.java.
java.util.List< java.lang.Integer > com.google.ortools.sat.LinearExpressionProto.Builder.getVarsList | ( | ) |
repeated int32 vars = 1;
Implements com.google.ortools.sat.LinearExpressionProtoOrBuilder.
Definition at line 554 of file LinearExpressionProto.java.
|
protected |
Definition at line 356 of file LinearExpressionProto.java.
final boolean com.google.ortools.sat.LinearExpressionProto.Builder.isInitialized | ( | ) |
Definition at line 468 of file LinearExpressionProto.java.
Builder com.google.ortools.sat.LinearExpressionProto.Builder.mergeFrom | ( | com.google.ortools.sat.LinearExpressionProto | other | ) |
Definition at line 435 of file LinearExpressionProto.java.
Builder com.google.ortools.sat.LinearExpressionProto.Builder.mergeFrom | ( | com.google.protobuf.CodedInputStream | input, |
com.google.protobuf.ExtensionRegistryLite | extensionRegistry ) throws java.io.IOException |
Definition at line 473 of file LinearExpressionProto.java.
Builder com.google.ortools.sat.LinearExpressionProto.Builder.mergeFrom | ( | com.google.protobuf.Message | other | ) |
Definition at line 426 of file LinearExpressionProto.java.
Builder com.google.ortools.sat.LinearExpressionProto.Builder.setCoeffs | ( | int | index, |
long | value ) |
repeated int64 coeffs = 2;
index | The index to set the value at. |
value | The coeffs to set. |
Definition at line 663 of file LinearExpressionProto.java.
Builder com.google.ortools.sat.LinearExpressionProto.Builder.setOffset | ( | long | value | ) |
int64 offset = 3;
value | The offset to set. |
Definition at line 724 of file LinearExpressionProto.java.
Builder com.google.ortools.sat.LinearExpressionProto.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 579 of file LinearExpressionProto.java.