Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Classes | |
class | Builder |
Static Public Member Functions | |
static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
static com.google.ortools.linearsolver.MPModelDeltaProto | parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.linearsolver.MPModelDeltaProto | parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.linearsolver.MPModelDeltaProto | parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.linearsolver.MPModelDeltaProto | parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.linearsolver.MPModelDeltaProto | parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.linearsolver.MPModelDeltaProto | parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.linearsolver.MPModelDeltaProto | parseFrom (java.io.InputStream input) throws java.io.IOException |
static com.google.ortools.linearsolver.MPModelDeltaProto | parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static com.google.ortools.linearsolver.MPModelDeltaProto | parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException |
static com.google.ortools.linearsolver.MPModelDeltaProto | parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static com.google.ortools.linearsolver.MPModelDeltaProto | parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException |
static com.google.ortools.linearsolver.MPModelDeltaProto | parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static Builder | newBuilder () |
static Builder | newBuilder (com.google.ortools.linearsolver.MPModelDeltaProto prototype) |
static com.google.ortools.linearsolver.MPModelDeltaProto | getDefaultInstance () |
static com.google.protobuf.Parser< MPModelDeltaProto > | parser () |
Static Public Attributes | |
static final int | BASELINE_MODEL_FILE_PATH_FIELD_NUMBER = 1 |
static final int | VARIABLE_OVERRIDES_FIELD_NUMBER = 2 |
static final int | CONSTRAINT_OVERRIDES_FIELD_NUMBER = 3 |
Protected Member Functions | |
com.google.protobuf.MapFieldReflectionAccessor | internalGetMapFieldReflection (int number) |
com.google.protobuf.GeneratedMessage.FieldAccessorTable | internalGetFieldAccessorTable () |
Builder | newBuilderForType (com.google.protobuf.GeneratedMessage.BuilderParent parent) |
Encodes a full MPModelProto by way of referencing to a "baseline" MPModelProto stored in a file, and a "delta" to apply to this model.
Protobuf type operations_research.MPModelDeltaProto
Definition at line 15 of file MPModelDeltaProto.java.
boolean com.google.ortools.linearsolver.MPModelDeltaProto.containsConstraintOverrides | ( | int | key | ) |
Constraints can be changed (or added) in the same way as variables, see above. It's mostly like applying MergeFrom(), except that: - the "var_index" and "coefficient" fields will be overridden like a map: if a key pre-exists, we overwrite its value, otherwise we add it. - if you set the lower bound to -inf and the upper bound to +inf, thus effectively neutralizing the constraint, the solver will implicitly remove all of the constraint's terms.
map<int32, .operations_research.MPConstraintProto> constraint_overrides = 3;
Implements com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.
Definition at line 273 of file MPModelDeltaProto.java.
boolean com.google.ortools.linearsolver.MPModelDeltaProto.containsVariableOverrides | ( | int | key | ) |
The variable protos listed here will override (via MergeFrom()) the ones in the baseline model: you only need to specify the fields that change. To add a new variable, add it with a new variable index (variable indices still need to span a dense integer interval). You can't "delete" a variable but you can "neutralize" it by fixing its value, setting its objective coefficient to zero, and by nullifying all the terms involving it in the constraints.
map<int32, .operations_research.MPVariableProto> variable_overrides = 2;
Implements com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.
Definition at line 154 of file MPModelDeltaProto.java.
boolean com.google.ortools.linearsolver.MPModelDeltaProto.equals | ( | final java.lang.Object | obj | ) |
Definition at line 419 of file MPModelDeltaProto.java.
java.lang.String com.google.ortools.linearsolver.MPModelDeltaProto.getBaselineModelFilePath | ( | ) |
optional string baseline_model_file_path = 1;
Implements com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.
Definition at line 81 of file MPModelDeltaProto.java.
com.google.protobuf.ByteString com.google.ortools.linearsolver.MPModelDeltaProto.getBaselineModelFilePathBytes | ( | ) |
optional string baseline_model_file_path = 1;
Implements com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.
Definition at line 101 of file MPModelDeltaProto.java.
java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto > com.google.ortools.linearsolver.MPModelDeltaProto.getConstraintOverrides | ( | ) |
Use getConstraintOverridesMap()
instead.
Implements com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.
Definition at line 283 of file MPModelDeltaProto.java.
int com.google.ortools.linearsolver.MPModelDeltaProto.getConstraintOverridesCount | ( | ) |
Constraints can be changed (or added) in the same way as variables, see above. It's mostly like applying MergeFrom(), except that: - the "var_index" and "coefficient" fields will be overridden like a map: if a key pre-exists, we overwrite its value, otherwise we add it. - if you set the lower bound to -inf and the upper bound to +inf, thus effectively neutralizing the constraint, the solver will implicitly remove all of the constraint's terms.
map<int32, .operations_research.MPConstraintProto> constraint_overrides = 3;
Implements com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.
Definition at line 256 of file MPModelDeltaProto.java.
java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto > com.google.ortools.linearsolver.MPModelDeltaProto.getConstraintOverridesMap | ( | ) |
Constraints can be changed (or added) in the same way as variables, see above. It's mostly like applying MergeFrom(), except that: - the "var_index" and "coefficient" fields will be overridden like a map: if a key pre-exists, we overwrite its value, otherwise we add it. - if you set the lower bound to -inf and the upper bound to +inf, thus effectively neutralizing the constraint, the solver will implicitly remove all of the constraint's terms.
map<int32, .operations_research.MPConstraintProto> constraint_overrides = 3;
Implements com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.
Definition at line 300 of file MPModelDeltaProto.java.
com.google.ortools.linearsolver.MPConstraintProto com.google.ortools.linearsolver.MPModelDeltaProto.getConstraintOverridesOrDefault | ( | int | key, |
com.google.ortools.linearsolver.MPConstraintProto | defaultValue ) |
Constraints can be changed (or added) in the same way as variables, see above. It's mostly like applying MergeFrom(), except that: - the "var_index" and "coefficient" fields will be overridden like a map: if a key pre-exists, we overwrite its value, otherwise we add it. - if you set the lower bound to -inf and the upper bound to +inf, thus effectively neutralizing the constraint, the solver will implicitly remove all of the constraint's terms.
map<int32, .operations_research.MPConstraintProto> constraint_overrides = 3;
Implements com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.
Definition at line 318 of file MPModelDeltaProto.java.
com.google.ortools.linearsolver.MPConstraintProto com.google.ortools.linearsolver.MPModelDeltaProto.getConstraintOverridesOrThrow | ( | int | key | ) |
Constraints can be changed (or added) in the same way as variables, see above. It's mostly like applying MergeFrom(), except that: - the "var_index" and "coefficient" fields will be overridden like a map: if a key pre-exists, we overwrite its value, otherwise we add it. - if you set the lower bound to -inf and the upper bound to +inf, thus effectively neutralizing the constraint, the solver will implicitly remove all of the constraint's terms.
map<int32, .operations_research.MPConstraintProto> constraint_overrides = 3;
Implements com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.
Definition at line 341 of file MPModelDeltaProto.java.
|
static |
Definition at line 1320 of file MPModelDeltaProto.java.
com.google.ortools.linearsolver.MPModelDeltaProto com.google.ortools.linearsolver.MPModelDeltaProto.getDefaultInstanceForType | ( | ) |
Definition at line 1356 of file MPModelDeltaProto.java.
|
static |
Definition at line 38 of file MPModelDeltaProto.java.
com.google.protobuf.Parser< MPModelDeltaProto > com.google.ortools.linearsolver.MPModelDeltaProto.getParserForType | ( | ) |
Definition at line 1351 of file MPModelDeltaProto.java.
int com.google.ortools.linearsolver.MPModelDeltaProto.getSerializedSize | ( | ) |
Definition at line 385 of file MPModelDeltaProto.java.
java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto > com.google.ortools.linearsolver.MPModelDeltaProto.getVariableOverrides | ( | ) |
Use getVariableOverridesMap()
instead.
Implements com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.
Definition at line 164 of file MPModelDeltaProto.java.
int com.google.ortools.linearsolver.MPModelDeltaProto.getVariableOverridesCount | ( | ) |
The variable protos listed here will override (via MergeFrom()) the ones in the baseline model: you only need to specify the fields that change. To add a new variable, add it with a new variable index (variable indices still need to span a dense integer interval). You can't "delete" a variable but you can "neutralize" it by fixing its value, setting its objective coefficient to zero, and by nullifying all the terms involving it in the constraints.
map<int32, .operations_research.MPVariableProto> variable_overrides = 2;
Implements com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.
Definition at line 137 of file MPModelDeltaProto.java.
java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto > com.google.ortools.linearsolver.MPModelDeltaProto.getVariableOverridesMap | ( | ) |
The variable protos listed here will override (via MergeFrom()) the ones in the baseline model: you only need to specify the fields that change. To add a new variable, add it with a new variable index (variable indices still need to span a dense integer interval). You can't "delete" a variable but you can "neutralize" it by fixing its value, setting its objective coefficient to zero, and by nullifying all the terms involving it in the constraints.
map<int32, .operations_research.MPVariableProto> variable_overrides = 2;
Implements com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.
Definition at line 181 of file MPModelDeltaProto.java.
com.google.ortools.linearsolver.MPVariableProto com.google.ortools.linearsolver.MPModelDeltaProto.getVariableOverridesOrDefault | ( | int | key, |
com.google.ortools.linearsolver.MPVariableProto | defaultValue ) |
The variable protos listed here will override (via MergeFrom()) the ones in the baseline model: you only need to specify the fields that change. To add a new variable, add it with a new variable index (variable indices still need to span a dense integer interval). You can't "delete" a variable but you can "neutralize" it by fixing its value, setting its objective coefficient to zero, and by nullifying all the terms involving it in the constraints.
map<int32, .operations_research.MPVariableProto> variable_overrides = 2;
Implements com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.
Definition at line 199 of file MPModelDeltaProto.java.
com.google.ortools.linearsolver.MPVariableProto com.google.ortools.linearsolver.MPModelDeltaProto.getVariableOverridesOrThrow | ( | int | key | ) |
The variable protos listed here will override (via MergeFrom()) the ones in the baseline model: you only need to specify the fields that change. To add a new variable, add it with a new variable index (variable indices still need to span a dense integer interval). You can't "delete" a variable but you can "neutralize" it by fixing its value, setting its objective coefficient to zero, and by nullifying all the terms involving it in the constraints.
map<int32, .operations_research.MPVariableProto> variable_overrides = 2;
Implements com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.
Definition at line 222 of file MPModelDeltaProto.java.
boolean com.google.ortools.linearsolver.MPModelDeltaProto.hasBaselineModelFilePath | ( | ) |
optional string baseline_model_file_path = 1;
Implements com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.
Definition at line 73 of file MPModelDeltaProto.java.
int com.google.ortools.linearsolver.MPModelDeltaProto.hashCode | ( | ) |
Definition at line 442 of file MPModelDeltaProto.java.
|
protected |
Definition at line 58 of file MPModelDeltaProto.java.
|
protected |
Definition at line 44 of file MPModelDeltaProto.java.
final boolean com.google.ortools.linearsolver.MPModelDeltaProto.isInitialized | ( | ) |
Definition at line 354 of file MPModelDeltaProto.java.
|
static |
Definition at line 539 of file MPModelDeltaProto.java.
|
static |
Definition at line 542 of file MPModelDeltaProto.java.
Builder com.google.ortools.linearsolver.MPModelDeltaProto.newBuilderForType | ( | ) |
Definition at line 538 of file MPModelDeltaProto.java.
|
protected |
Definition at line 552 of file MPModelDeltaProto.java.
|
static |
Definition at line 510 of file MPModelDeltaProto.java.
|
static |
Definition at line 516 of file MPModelDeltaProto.java.
|
static |
Definition at line 487 of file MPModelDeltaProto.java.
|
static |
Definition at line 491 of file MPModelDeltaProto.java.
|
static |
Definition at line 476 of file MPModelDeltaProto.java.
|
static |
Definition at line 481 of file MPModelDeltaProto.java.
|
static |
Definition at line 523 of file MPModelDeltaProto.java.
|
static |
Definition at line 529 of file MPModelDeltaProto.java.
|
static |
Definition at line 497 of file MPModelDeltaProto.java.
|
static |
Definition at line 502 of file MPModelDeltaProto.java.
|
static |
Definition at line 465 of file MPModelDeltaProto.java.
|
static |
Definition at line 470 of file MPModelDeltaProto.java.
|
static |
Definition at line 1346 of file MPModelDeltaProto.java.
Builder com.google.ortools.linearsolver.MPModelDeltaProto.toBuilder | ( | ) |
Definition at line 546 of file MPModelDeltaProto.java.
void com.google.ortools.linearsolver.MPModelDeltaProto.writeTo | ( | com.google.protobuf.CodedOutputStream | output | ) | throws java.io.IOException |
Definition at line 364 of file MPModelDeltaProto.java.
|
static |
Definition at line 65 of file MPModelDeltaProto.java.
|
static |
Definition at line 233 of file MPModelDeltaProto.java.
|
static |
Definition at line 114 of file MPModelDeltaProto.java.