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 638 of file MPModelDeltaProto.java.
|
| .lang.Override Builder | clear () |
| |
| .lang.Override com.google.protobuf.Descriptors.Descriptor | getDescriptorForType () |
| |
| .lang.Override com.google.ortools.linearsolver.MPModelDeltaProto | getDefaultInstanceForType () |
| |
| .lang.Override com.google.ortools.linearsolver.MPModelDeltaProto | build () |
| |
| .lang.Override com.google.ortools.linearsolver.MPModelDeltaProto | buildPartial () |
| |
| .lang.Override Builder | clone () |
| |
| .lang.Override Builder | setField (com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) |
| |
| .lang.Override Builder | clearField (com.google.protobuf.Descriptors.FieldDescriptor field) |
| |
| .lang.Override Builder | clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof) |
| |
| .lang.Override Builder | setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) |
| |
| .lang.Override Builder | addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) |
| |
| .lang.Override Builder | mergeFrom (com.google.protobuf.Message other) |
| |
| Builder | mergeFrom (com.google.ortools.linearsolver.MPModelDeltaProto other) |
| |
| .lang.Override final boolean | isInitialized () |
| |
| .lang.Override Builder | mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
| |
| boolean | hasBaselineModelFilePath () |
| | optional string baseline_model_file_path = 1; More...
|
| |
| java.lang.String | getBaselineModelFilePath () |
| | optional string baseline_model_file_path = 1; More...
|
| |
| com.google.protobuf.ByteString | getBaselineModelFilePathBytes () |
| | optional string baseline_model_file_path = 1; More...
|
| |
| Builder | setBaselineModelFilePath (java.lang.String value) |
| | optional string baseline_model_file_path = 1; More...
|
| |
| Builder | clearBaselineModelFilePath () |
| | optional string baseline_model_file_path = 1; More...
|
| |
| Builder | setBaselineModelFilePathBytes (com.google.protobuf.ByteString value) |
| | 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) |
| |
| Builder | clearVariableOverrides () |
| |
| Builder | removeVariableOverrides (int key) |
| |
| .lang.Deprecated java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto > | getMutableVariableOverrides () |
| | Use alternate mutation accessors instead. More...
|
| |
| Builder | putVariableOverrides (int key, com.google.ortools.linearsolver.MPVariableProto value) |
| |
| Builder | putAllVariableOverrides (java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto > values) |
| |
| 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) |
| |
| Builder | clearConstraintOverrides () |
| |
| Builder | removeConstraintOverrides (int key) |
| |
| .lang.Deprecated java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto > | getMutableConstraintOverrides () |
| | Use alternate mutation accessors instead. More...
|
| |
| Builder | putConstraintOverrides (int key, com.google.ortools.linearsolver.MPConstraintProto value) |
| |
| Builder | putAllConstraintOverrides (java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto > values) |
| |
| .lang.Override final Builder | setUnknownFields (final com.google.protobuf.UnknownFieldSet unknownFields) |
| |
| .lang.Override final Builder | mergeUnknownFields (final com.google.protobuf.UnknownFieldSet unknownFields) |
| |
| .lang.Override boolean containsConstraintOverrides |
( |
int |
key | ) |
|
|
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 1150 of file MPModelDeltaProto.java.
| .lang.Override boolean containsVariableOverrides |
( |
int |
key | ) |
|
|
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 952 of file MPModelDeltaProto.java.
| int 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 1132 of file MPModelDeltaProto.java.
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 1178 of file MPModelDeltaProto.java.
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 1219 of file MPModelDeltaProto.java.
| int 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 934 of file MPModelDeltaProto.java.
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 980 of file MPModelDeltaProto.java.
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 998 of file MPModelDeltaProto.java.
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 1021 of file MPModelDeltaProto.java.
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;
Definition at line 1102 of file MPModelDeltaProto.java.
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;
Definition at line 1079 of file MPModelDeltaProto.java.
| Builder removeConstraintOverrides |
( |
int |
key | ) |
|
|
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;
Definition at line 1249 of file MPModelDeltaProto.java.
| Builder removeVariableOverrides |
( |
int |
key | ) |
|
|
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;
Definition at line 1051 of file MPModelDeltaProto.java.