![]() |
Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
|
Static Public Member Functions | |
static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
Protected Member Functions | |
com.google.protobuf.GeneratedMessage.FieldAccessorTable | internalGetFieldAccessorTable () |
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 434 of file TableConstraintProto.java.
Builder com.google.ortools.sat.TableConstraintProto.Builder.addAllExprs | ( | java.lang.Iterable<? extends com.google.ortools.sat.LinearExpressionProto > | values | ) |
repeated .operations_research.sat.LinearExpressionProto exprs = 4;
Definition at line 1023 of file TableConstraintProto.java.
Builder com.google.ortools.sat.TableConstraintProto.Builder.addAllValues | ( | java.lang.Iterable<? extends java.lang.Long > | values | ) |
repeated int64 values = 2;
values | The values to add. |
Definition at line 866 of file TableConstraintProto.java.
Builder com.google.ortools.sat.TableConstraintProto.Builder.addAllVars | ( | java.lang.Iterable<? extends java.lang.Integer > | values | ) |
Legacy field.
repeated int32 vars = 1;
values | The vars to add. |
Definition at line 778 of file TableConstraintProto.java.
Builder com.google.ortools.sat.TableConstraintProto.Builder.addExprs | ( | com.google.ortools.sat.LinearExpressionProto | value | ) |
repeated .operations_research.sat.LinearExpressionProto exprs = 4;
Definition at line 962 of file TableConstraintProto.java.
Builder com.google.ortools.sat.TableConstraintProto.Builder.addExprs | ( | com.google.ortools.sat.LinearExpressionProto.Builder | builderForValue | ) |
repeated .operations_research.sat.LinearExpressionProto exprs = 4;
Definition at line 995 of file TableConstraintProto.java.
Builder com.google.ortools.sat.TableConstraintProto.Builder.addExprs | ( | int | index, |
com.google.ortools.sat.LinearExpressionProto | value ) |
repeated .operations_research.sat.LinearExpressionProto exprs = 4;
Definition at line 978 of file TableConstraintProto.java.
Builder com.google.ortools.sat.TableConstraintProto.Builder.addExprs | ( | int | index, |
com.google.ortools.sat.LinearExpressionProto.Builder | builderForValue ) |
repeated .operations_research.sat.LinearExpressionProto exprs = 4;
Definition at line 1009 of file TableConstraintProto.java.
com.google.ortools.sat.LinearExpressionProto.Builder com.google.ortools.sat.TableConstraintProto.Builder.addExprsBuilder | ( | ) |
repeated .operations_research.sat.LinearExpressionProto exprs = 4;
Definition at line 1092 of file TableConstraintProto.java.
com.google.ortools.sat.LinearExpressionProto.Builder com.google.ortools.sat.TableConstraintProto.Builder.addExprsBuilder | ( | int | index | ) |
repeated .operations_research.sat.LinearExpressionProto exprs = 4;
Definition at line 1099 of file TableConstraintProto.java.
Builder com.google.ortools.sat.TableConstraintProto.Builder.addValues | ( | long | value | ) |
repeated int64 values = 2;
value | The values to add. |
Definition at line 853 of file TableConstraintProto.java.
Builder com.google.ortools.sat.TableConstraintProto.Builder.addVars | ( | int | value | ) |
Legacy field.
repeated int32 vars = 1;
value | The vars to add. |
Definition at line 761 of file TableConstraintProto.java.
com.google.ortools.sat.TableConstraintProto com.google.ortools.sat.TableConstraintProto.Builder.build | ( | ) |
Definition at line 490 of file TableConstraintProto.java.
com.google.ortools.sat.TableConstraintProto com.google.ortools.sat.TableConstraintProto.Builder.buildPartial | ( | ) |
Definition at line 499 of file TableConstraintProto.java.
Builder com.google.ortools.sat.TableConstraintProto.Builder.clear | ( | ) |
Definition at line 462 of file TableConstraintProto.java.
Builder com.google.ortools.sat.TableConstraintProto.Builder.clearExprs | ( | ) |
repeated .operations_research.sat.LinearExpressionProto exprs = 4;
Definition at line 1038 of file TableConstraintProto.java.
Builder com.google.ortools.sat.TableConstraintProto.Builder.clearNegated | ( | ) |
If true, the meaning is "negated", that is we forbid any of the given tuple from a feasible assignment.
bool negated = 3;
Definition at line 1166 of file TableConstraintProto.java.
Builder com.google.ortools.sat.TableConstraintProto.Builder.clearValues | ( | ) |
repeated int64 values = 2;
Definition at line 879 of file TableConstraintProto.java.
Builder com.google.ortools.sat.TableConstraintProto.Builder.clearVars | ( | ) |
Legacy field.
repeated int32 vars = 1;
Definition at line 795 of file TableConstraintProto.java.
com.google.ortools.sat.TableConstraintProto com.google.ortools.sat.TableConstraintProto.Builder.getDefaultInstanceForType | ( | ) |
Definition at line 485 of file TableConstraintProto.java.
|
static |
Definition at line 439 of file TableConstraintProto.java.
com.google.protobuf.Descriptors.Descriptor com.google.ortools.sat.TableConstraintProto.Builder.getDescriptorForType | ( | ) |
Definition at line 480 of file TableConstraintProto.java.
com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.TableConstraintProto.Builder.getExprs | ( | int | index | ) |
repeated .operations_research.sat.LinearExpressionProto exprs = 4;
Implements com.google.ortools.sat.TableConstraintProtoOrBuilder.
Definition at line 921 of file TableConstraintProto.java.
com.google.ortools.sat.LinearExpressionProto.Builder com.google.ortools.sat.TableConstraintProto.Builder.getExprsBuilder | ( | int | index | ) |
repeated .operations_research.sat.LinearExpressionProto exprs = 4;
Definition at line 1064 of file TableConstraintProto.java.
java.util.List< com.google.ortools.sat.LinearExpressionProto.Builder > com.google.ortools.sat.TableConstraintProto.Builder.getExprsBuilderList | ( | ) |
repeated .operations_research.sat.LinearExpressionProto exprs = 4;
Definition at line 1108 of file TableConstraintProto.java.
int com.google.ortools.sat.TableConstraintProto.Builder.getExprsCount | ( | ) |
repeated .operations_research.sat.LinearExpressionProto exprs = 4;
Implements com.google.ortools.sat.TableConstraintProtoOrBuilder.
Definition at line 911 of file TableConstraintProto.java.
java.util.List< com.google.ortools.sat.LinearExpressionProto > com.google.ortools.sat.TableConstraintProto.Builder.getExprsList | ( | ) |
repeated .operations_research.sat.LinearExpressionProto exprs = 4;
Implements com.google.ortools.sat.TableConstraintProtoOrBuilder.
Definition at line 901 of file TableConstraintProto.java.
com.google.ortools.sat.LinearExpressionProtoOrBuilder com.google.ortools.sat.TableConstraintProto.Builder.getExprsOrBuilder | ( | int | index | ) |
repeated .operations_research.sat.LinearExpressionProto exprs = 4;
Implements com.google.ortools.sat.TableConstraintProtoOrBuilder.
Definition at line 1071 of file TableConstraintProto.java.
java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuilder > com.google.ortools.sat.TableConstraintProto.Builder.getExprsOrBuilderList | ( | ) |
repeated .operations_research.sat.LinearExpressionProto exprs = 4;
Implements com.google.ortools.sat.TableConstraintProtoOrBuilder.
Definition at line 1082 of file TableConstraintProto.java.
boolean com.google.ortools.sat.TableConstraintProto.Builder.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 1137 of file TableConstraintProto.java.
long com.google.ortools.sat.TableConstraintProto.Builder.getValues | ( | int | index | ) |
repeated int64 values = 2;
index | The index of the element to return. |
Implements com.google.ortools.sat.TableConstraintProtoOrBuilder.
Definition at line 830 of file TableConstraintProto.java.
int com.google.ortools.sat.TableConstraintProto.Builder.getValuesCount | ( | ) |
repeated int64 values = 2;
Implements com.google.ortools.sat.TableConstraintProtoOrBuilder.
Definition at line 822 of file TableConstraintProto.java.
java.util.List< java.lang.Long > com.google.ortools.sat.TableConstraintProto.Builder.getValuesList | ( | ) |
repeated int64 values = 2;
Implements com.google.ortools.sat.TableConstraintProtoOrBuilder.
Definition at line 814 of file TableConstraintProto.java.
int com.google.ortools.sat.TableConstraintProto.Builder.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 730 of file TableConstraintProto.java.
int com.google.ortools.sat.TableConstraintProto.Builder.getVarsCount | ( | ) |
Legacy field.
repeated int32 vars = 1;
Implements com.google.ortools.sat.TableConstraintProtoOrBuilder.
Definition at line 718 of file TableConstraintProto.java.
java.util.List< java.lang.Integer > com.google.ortools.sat.TableConstraintProto.Builder.getVarsList | ( | ) |
Legacy field.
repeated int32 vars = 1;
Implements com.google.ortools.sat.TableConstraintProtoOrBuilder.
Definition at line 706 of file TableConstraintProto.java.
|
protected |
Definition at line 445 of file TableConstraintProto.java.
final boolean com.google.ortools.sat.TableConstraintProto.Builder.isInitialized | ( | ) |
Definition at line 603 of file TableConstraintProto.java.
Builder com.google.ortools.sat.TableConstraintProto.Builder.mergeFrom | ( | com.google.ortools.sat.TableConstraintProto | other | ) |
Definition at line 544 of file TableConstraintProto.java.
Builder com.google.ortools.sat.TableConstraintProto.Builder.mergeFrom | ( | com.google.protobuf.CodedInputStream | input, |
com.google.protobuf.ExtensionRegistryLite | extensionRegistry ) throws java.io.IOException |
Definition at line 608 of file TableConstraintProto.java.
Builder com.google.ortools.sat.TableConstraintProto.Builder.mergeFrom | ( | com.google.protobuf.Message | other | ) |
Definition at line 535 of file TableConstraintProto.java.
Builder com.google.ortools.sat.TableConstraintProto.Builder.removeExprs | ( | int | index | ) |
repeated .operations_research.sat.LinearExpressionProto exprs = 4;
Definition at line 1051 of file TableConstraintProto.java.
Builder com.google.ortools.sat.TableConstraintProto.Builder.setExprs | ( | int | index, |
com.google.ortools.sat.LinearExpressionProto | value ) |
repeated .operations_research.sat.LinearExpressionProto exprs = 4;
Definition at line 931 of file TableConstraintProto.java.
Builder com.google.ortools.sat.TableConstraintProto.Builder.setExprs | ( | int | index, |
com.google.ortools.sat.LinearExpressionProto.Builder | builderForValue ) |
repeated .operations_research.sat.LinearExpressionProto exprs = 4;
Definition at line 948 of file TableConstraintProto.java.
Builder com.google.ortools.sat.TableConstraintProto.Builder.setNegated | ( | boolean | value | ) |
If true, the meaning is "negated", that is we forbid any of the given tuple from a feasible assignment.
bool negated = 3;
value | The negated to set. |
Definition at line 1150 of file TableConstraintProto.java.
Builder com.google.ortools.sat.TableConstraintProto.Builder.setValues | ( | int | index, |
long | value ) |
repeated int64 values = 2;
index | The index to set the value at. |
value | The values to set. |
Definition at line 839 of file TableConstraintProto.java.
Builder com.google.ortools.sat.TableConstraintProto.Builder.setVars | ( | int | index, |
int | value ) |
Legacy field.
repeated int32 vars = 1;
index | The index to set the value at. |
value | The vars to set. |
Definition at line 743 of file TableConstraintProto.java.