|  | Google OR-Tools v9.14
    a fast and portable software suite for combinatorial optimization | 
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 17 of file MPModelDeltaProto.java.
 
  
| 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) | 
| 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 275 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 156 of file MPModelDeltaProto.java.
| boolean com.google.ortools.linearsolver.MPModelDeltaProto.equals | ( | final java.lang.Object | obj | ) | 
Definition at line 421 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 83 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 103 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 285 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 258 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 302 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 320 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 343 of file MPModelDeltaProto.java.
| 
 | static | 
Definition at line 1322 of file MPModelDeltaProto.java.
| com.google.ortools.linearsolver.MPModelDeltaProto com.google.ortools.linearsolver.MPModelDeltaProto.getDefaultInstanceForType | ( | ) | 
Definition at line 1358 of file MPModelDeltaProto.java.
| 
 | static | 
Definition at line 40 of file MPModelDeltaProto.java.
| com.google.protobuf.Parser< MPModelDeltaProto > com.google.ortools.linearsolver.MPModelDeltaProto.getParserForType | ( | ) | 
Definition at line 1353 of file MPModelDeltaProto.java.
| int com.google.ortools.linearsolver.MPModelDeltaProto.getSerializedSize | ( | ) | 
Definition at line 387 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 166 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 139 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 183 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 201 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 224 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 75 of file MPModelDeltaProto.java.
| int com.google.ortools.linearsolver.MPModelDeltaProto.hashCode | ( | ) | 
Definition at line 444 of file MPModelDeltaProto.java.
| 
 | protected | 
Definition at line 60 of file MPModelDeltaProto.java.
| 
 | protected | 
Definition at line 46 of file MPModelDeltaProto.java.
| final boolean com.google.ortools.linearsolver.MPModelDeltaProto.isInitialized | ( | ) | 
Definition at line 356 of file MPModelDeltaProto.java.
| 
 | static | 
Definition at line 541 of file MPModelDeltaProto.java.
| 
 | static | 
Definition at line 544 of file MPModelDeltaProto.java.
| Builder com.google.ortools.linearsolver.MPModelDeltaProto.newBuilderForType | ( | ) | 
Definition at line 540 of file MPModelDeltaProto.java.
| 
 | protected | 
Definition at line 554 of file MPModelDeltaProto.java.
| 
 | static | 
Definition at line 512 of file MPModelDeltaProto.java.
| 
 | static | 
Definition at line 518 of file MPModelDeltaProto.java.
| 
 | static | 
Definition at line 489 of file MPModelDeltaProto.java.
| 
 | static | 
Definition at line 493 of file MPModelDeltaProto.java.
| 
 | static | 
Definition at line 478 of file MPModelDeltaProto.java.
| 
 | static | 
Definition at line 483 of file MPModelDeltaProto.java.
| 
 | static | 
Definition at line 525 of file MPModelDeltaProto.java.
| 
 | static | 
Definition at line 531 of file MPModelDeltaProto.java.
| 
 | static | 
Definition at line 499 of file MPModelDeltaProto.java.
| 
 | static | 
Definition at line 504 of file MPModelDeltaProto.java.
| 
 | static | 
Definition at line 467 of file MPModelDeltaProto.java.
| 
 | static | 
Definition at line 472 of file MPModelDeltaProto.java.
| 
 | static | 
Definition at line 1348 of file MPModelDeltaProto.java.
| Builder com.google.ortools.linearsolver.MPModelDeltaProto.toBuilder | ( | ) | 
Definition at line 548 of file MPModelDeltaProto.java.
| void com.google.ortools.linearsolver.MPModelDeltaProto.writeTo | ( | com.google.protobuf.CodedOutputStream | output | ) | throws java.io.IOException | 
Definition at line 366 of file MPModelDeltaProto.java.
| 
 | static | 
Definition at line 67 of file MPModelDeltaProto.java.
| 
 | static | 
Definition at line 235 of file MPModelDeltaProto.java.
| 
 | static | 
Definition at line 116 of file MPModelDeltaProto.java.