Java Reference
Java Reference
Detailed Description
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
Definition at line 14 of file MPModelDeltaProto.java.
Classes | |
| class | Builder |
Public Member Functions | |
| .lang.Override final com.google.protobuf.UnknownFieldSet | getUnknownFields () |
| .lang.Override boolean | hasBaselineModelFilePath () |
optional string baseline_model_file_path = 1; More... | |
| .lang.Override java.lang.String | getBaselineModelFilePath () |
optional string baseline_model_file_path = 1; More... | |
| .lang.Override com.google.protobuf.ByteString | getBaselineModelFilePathBytes () |
optional string baseline_model_file_path = 1; More... | |
| int | getVariableOverridesCount () |
| .lang.Override boolean | containsVariableOverrides (int key) |
| .lang.Override.lang.Deprecated java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto > | getVariableOverrides () |
| Use getVariableOverridesMap() instead. More... | |
| .lang.Override java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto > | getVariableOverridesMap () |
| .lang.Override com.google.ortools.linearsolver.MPVariableProto | getVariableOverridesOrDefault (int key, com.google.ortools.linearsolver.MPVariableProto defaultValue) |
| .lang.Override com.google.ortools.linearsolver.MPVariableProto | getVariableOverridesOrThrow (int key) |
| int | getConstraintOverridesCount () |
| .lang.Override boolean | containsConstraintOverrides (int key) |
| .lang.Override.lang.Deprecated java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto > | getConstraintOverrides () |
| Use getConstraintOverridesMap() instead. More... | |
| .lang.Override java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto > | getConstraintOverridesMap () |
| .lang.Override com.google.ortools.linearsolver.MPConstraintProto | getConstraintOverridesOrDefault (int key, com.google.ortools.linearsolver.MPConstraintProto defaultValue) |
| .lang.Override com.google.ortools.linearsolver.MPConstraintProto | getConstraintOverridesOrThrow (int key) |
| .lang.Override final boolean | isInitialized () |
| .lang.Override void | writeTo (com.google.protobuf.CodedOutputStream output) throws java.io.IOException |
| .lang.Override int | getSerializedSize () |
| .lang.Override boolean | equals (final java.lang.Object obj) |
| .lang.Override int | hashCode () |
| .lang.Override Builder | newBuilderForType () |
| .lang.Override Builder | toBuilder () |
| .lang.Override com.google.protobuf.Parser< MPModelDeltaProto > | getParserForType () |
| .lang.Override com.google.ortools.linearsolver.MPModelDeltaProto | getDefaultInstanceForType () |
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 |
| .lang.Deprecated static final com.google.protobuf.Parser< MPModelDeltaProto > | PARSER |
Protected Member Functions | |
| .lang.Override java.lang.Object | newInstance (UnusedPrivateParameter unused) |
| .lang.Override com.google.protobuf.MapField | internalGetMapField (int number) |
| .lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable | internalGetFieldAccessorTable () |
| .lang.Override Builder | newBuilderForType (com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
Member Function Documentation
◆ containsConstraintOverrides()
|
inline |
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 MPModelDeltaProtoOrBuilder.
Definition at line 347 of file MPModelDeltaProto.java.
◆ containsVariableOverrides()
|
inline |
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 MPModelDeltaProtoOrBuilder.
Definition at line 226 of file MPModelDeltaProto.java.
◆ equals()
|
inline |
Definition at line 494 of file MPModelDeltaProto.java.
◆ getBaselineModelFilePath()
|
inline |
optional string baseline_model_file_path = 1;
- Returns
- The baselineModelFilePath.
Implements MPModelDeltaProtoOrBuilder.
Definition at line 152 of file MPModelDeltaProto.java.
◆ getBaselineModelFilePathBytes()
|
inline |
optional string baseline_model_file_path = 1;
- Returns
- The bytes for baselineModelFilePath.
Implements MPModelDeltaProtoOrBuilder.
Definition at line 172 of file MPModelDeltaProto.java.
◆ getConstraintOverrides()
|
inline |
Use getConstraintOverridesMap() instead.
Implements MPModelDeltaProtoOrBuilder.
Definition at line 357 of file MPModelDeltaProto.java.
◆ getConstraintOverridesCount()
|
inline |
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 MPModelDeltaProtoOrBuilder.
Definition at line 329 of file MPModelDeltaProto.java.
◆ getConstraintOverridesMap()
|
inline |
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 MPModelDeltaProtoOrBuilder.
Definition at line 375 of file MPModelDeltaProto.java.
◆ getConstraintOverridesOrDefault()
|
inline |
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 MPModelDeltaProtoOrBuilder.
Definition at line 393 of file MPModelDeltaProto.java.
◆ getConstraintOverridesOrThrow()
|
inline |
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 MPModelDeltaProtoOrBuilder.
Definition at line 416 of file MPModelDeltaProto.java.
◆ getDefaultInstance()
|
inlinestatic |
Definition at line 1328 of file MPModelDeltaProto.java.
◆ getDefaultInstanceForType()
|
inline |
Definition at line 1353 of file MPModelDeltaProto.java.
◆ getDescriptor()
|
inlinestatic |
Definition at line 110 of file MPModelDeltaProto.java.
◆ getParserForType()
|
inline |
Definition at line 1348 of file MPModelDeltaProto.java.
◆ getSerializedSize()
|
inline |
Definition at line 460 of file MPModelDeltaProto.java.
◆ getUnknownFields()
|
inline |
Definition at line 36 of file MPModelDeltaProto.java.
◆ getVariableOverrides()
|
inline |
Use getVariableOverridesMap() instead.
Implements MPModelDeltaProtoOrBuilder.
Definition at line 236 of file MPModelDeltaProto.java.
◆ getVariableOverridesCount()
|
inline |
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 MPModelDeltaProtoOrBuilder.
Definition at line 208 of file MPModelDeltaProto.java.
◆ getVariableOverridesMap()
|
inline |
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 MPModelDeltaProtoOrBuilder.
Definition at line 254 of file MPModelDeltaProto.java.
◆ getVariableOverridesOrDefault()
|
inline |
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 MPModelDeltaProtoOrBuilder.
Definition at line 272 of file MPModelDeltaProto.java.
◆ getVariableOverridesOrThrow()
|
inline |
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 MPModelDeltaProtoOrBuilder.
Definition at line 295 of file MPModelDeltaProto.java.
◆ hasBaselineModelFilePath()
|
inline |
optional string baseline_model_file_path = 1;
- Returns
- Whether the baselineModelFilePath field is set.
Implements MPModelDeltaProtoOrBuilder.
Definition at line 144 of file MPModelDeltaProto.java.
◆ hashCode()
|
inline |
Definition at line 517 of file MPModelDeltaProto.java.
◆ internalGetFieldAccessorTable()
|
inlineprotected |
Definition at line 130 of file MPModelDeltaProto.java.
◆ internalGetMapField()
|
inlineprotected |
Definition at line 116 of file MPModelDeltaProto.java.
◆ isInitialized()
|
inline |
Definition at line 429 of file MPModelDeltaProto.java.
◆ newBuilder() [1/2]
|
inlinestatic |
Definition at line 612 of file MPModelDeltaProto.java.
◆ newBuilder() [2/2]
|
inlinestatic |
Definition at line 615 of file MPModelDeltaProto.java.
◆ newBuilderForType() [1/2]
|
inline |
Definition at line 611 of file MPModelDeltaProto.java.
◆ newBuilderForType() [2/2]
|
inlineprotected |
Definition at line 625 of file MPModelDeltaProto.java.
◆ newInstance()
|
inlineprotected |
Definition at line 29 of file MPModelDeltaProto.java.
◆ parseDelimitedFrom() [1/2]
|
inlinestatic |
Definition at line 584 of file MPModelDeltaProto.java.
◆ parseDelimitedFrom() [2/2]
|
inlinestatic |
Definition at line 589 of file MPModelDeltaProto.java.
◆ parseFrom() [1/10]
|
inlinestatic |
Definition at line 562 of file MPModelDeltaProto.java.
◆ parseFrom() [2/10]
|
inlinestatic |
Definition at line 566 of file MPModelDeltaProto.java.
◆ parseFrom() [3/10]
|
inlinestatic |
Definition at line 551 of file MPModelDeltaProto.java.
◆ parseFrom() [4/10]
|
inlinestatic |
Definition at line 556 of file MPModelDeltaProto.java.
◆ parseFrom() [5/10]
|
inlinestatic |
Definition at line 596 of file MPModelDeltaProto.java.
◆ parseFrom() [6/10]
|
inlinestatic |
Definition at line 602 of file MPModelDeltaProto.java.
◆ parseFrom() [7/10]
|
inlinestatic |
Definition at line 572 of file MPModelDeltaProto.java.
◆ parseFrom() [8/10]
|
inlinestatic |
Definition at line 577 of file MPModelDeltaProto.java.
◆ parseFrom() [9/10]
|
inlinestatic |
Definition at line 540 of file MPModelDeltaProto.java.
◆ parseFrom() [10/10]
|
inlinestatic |
Definition at line 545 of file MPModelDeltaProto.java.
◆ parser()
|
inlinestatic |
Definition at line 1343 of file MPModelDeltaProto.java.
◆ toBuilder()
|
inline |
Definition at line 619 of file MPModelDeltaProto.java.
◆ writeTo()
|
inline |
Definition at line 439 of file MPModelDeltaProto.java.
Member Data Documentation
◆ BASELINE_MODEL_FILE_PATH_FIELD_NUMBER
|
static |
Definition at line 137 of file MPModelDeltaProto.java.
◆ CONSTRAINT_OVERRIDES_FIELD_NUMBER
|
static |
Definition at line 306 of file MPModelDeltaProto.java.
◆ PARSER
|
static |
Definition at line 1333 of file MPModelDeltaProto.java.
◆ VARIABLE_OVERRIDES_FIELD_NUMBER
|
static |
Definition at line 185 of file MPModelDeltaProto.java.
The documentation for this class was generated from the following file: