![]() |
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.MapFieldReflectionAccessor | internalGetMapFieldReflection (int number) |
com.google.protobuf.MapFieldReflectionAccessor | internalGetMutableMapFieldReflection (int number) |
com.google.protobuf.GeneratedMessage.FieldAccessorTable | internalGetFieldAccessorTable () |
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 566 of file MPModelDeltaProto.java.
com.google.ortools.linearsolver.MPModelDeltaProto com.google.ortools.linearsolver.MPModelDeltaProto.Builder.build | ( | ) |
Definition at line 641 of file MPModelDeltaProto.java.
com.google.ortools.linearsolver.MPModelDeltaProto com.google.ortools.linearsolver.MPModelDeltaProto.Builder.buildPartial | ( | ) |
Definition at line 650 of file MPModelDeltaProto.java.
Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.clear | ( | ) |
Definition at line 620 of file MPModelDeltaProto.java.
Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.clearBaselineModelFilePath | ( | ) |
optional string baseline_model_file_path = 1;
Definition at line 822 of file MPModelDeltaProto.java.
Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.clearConstraintOverrides | ( | ) |
Definition at line 1202 of file MPModelDeltaProto.java.
Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.clearVariableOverrides | ( | ) |
Definition at line 967 of file MPModelDeltaProto.java.
boolean com.google.ortools.linearsolver.MPModelDeltaProto.Builder.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 1126 of file MPModelDeltaProto.java.
boolean com.google.ortools.linearsolver.MPModelDeltaProto.Builder.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 891 of file MPModelDeltaProto.java.
java.lang.String com.google.ortools.linearsolver.MPModelDeltaProto.Builder.getBaselineModelFilePath | ( | ) |
optional string baseline_model_file_path = 1;
Implements com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.
Definition at line 774 of file MPModelDeltaProto.java.
com.google.protobuf.ByteString com.google.ortools.linearsolver.MPModelDeltaProto.Builder.getBaselineModelFilePathBytes | ( | ) |
optional string baseline_model_file_path = 1;
Implements com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.
Definition at line 793 of file MPModelDeltaProto.java.
java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto > com.google.ortools.linearsolver.MPModelDeltaProto.Builder.getConstraintOverrides | ( | ) |
Use getConstraintOverridesMap()
instead.
Implements com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.
Definition at line 1136 of file MPModelDeltaProto.java.
int com.google.ortools.linearsolver.MPModelDeltaProto.Builder.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 1109 of file MPModelDeltaProto.java.
java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto > com.google.ortools.linearsolver.MPModelDeltaProto.Builder.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 1153 of file MPModelDeltaProto.java.
com.google.ortools.linearsolver.MPConstraintProto com.google.ortools.linearsolver.MPModelDeltaProto.Builder.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 1171 of file MPModelDeltaProto.java.
com.google.ortools.linearsolver.MPConstraintProto com.google.ortools.linearsolver.MPModelDeltaProto.Builder.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 1193 of file MPModelDeltaProto.java.
com.google.ortools.linearsolver.MPModelDeltaProto com.google.ortools.linearsolver.MPModelDeltaProto.Builder.getDefaultInstanceForType | ( | ) |
Definition at line 636 of file MPModelDeltaProto.java.
|
static |
Definition at line 571 of file MPModelDeltaProto.java.
com.google.protobuf.Descriptors.Descriptor com.google.ortools.linearsolver.MPModelDeltaProto.Builder.getDescriptorForType | ( | ) |
Definition at line 631 of file MPModelDeltaProto.java.
java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto > com.google.ortools.linearsolver.MPModelDeltaProto.Builder.getMutableConstraintOverrides | ( | ) |
Use alternate mutation accessors instead.
Definition at line 1232 of file MPModelDeltaProto.java.
java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto > com.google.ortools.linearsolver.MPModelDeltaProto.Builder.getMutableVariableOverrides | ( | ) |
Use alternate mutation accessors instead.
Definition at line 997 of file MPModelDeltaProto.java.
java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto > com.google.ortools.linearsolver.MPModelDeltaProto.Builder.getVariableOverrides | ( | ) |
Use getVariableOverridesMap()
instead.
Implements com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.
Definition at line 901 of file MPModelDeltaProto.java.
int com.google.ortools.linearsolver.MPModelDeltaProto.Builder.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 874 of file MPModelDeltaProto.java.
java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto > com.google.ortools.linearsolver.MPModelDeltaProto.Builder.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 918 of file MPModelDeltaProto.java.
com.google.ortools.linearsolver.MPVariableProto com.google.ortools.linearsolver.MPModelDeltaProto.Builder.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 936 of file MPModelDeltaProto.java.
com.google.ortools.linearsolver.MPVariableProto com.google.ortools.linearsolver.MPModelDeltaProto.Builder.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 958 of file MPModelDeltaProto.java.
boolean com.google.ortools.linearsolver.MPModelDeltaProto.Builder.hasBaselineModelFilePath | ( | ) |
optional string baseline_model_file_path = 1;
Implements com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.
Definition at line 767 of file MPModelDeltaProto.java.
|
protected |
Definition at line 603 of file MPModelDeltaProto.java.
|
protected |
Definition at line 576 of file MPModelDeltaProto.java.
|
protected |
Definition at line 589 of file MPModelDeltaProto.java.
final boolean com.google.ortools.linearsolver.MPModelDeltaProto.Builder.isInitialized | ( | ) |
Definition at line 702 of file MPModelDeltaProto.java.
Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.mergeFrom | ( | com.google.ortools.linearsolver.MPModelDeltaProto | other | ) |
Definition at line 683 of file MPModelDeltaProto.java.
Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.mergeFrom | ( | com.google.protobuf.CodedInputStream | input, |
com.google.protobuf.ExtensionRegistryLite | extensionRegistry ) throws java.io.IOException |
Definition at line 707 of file MPModelDeltaProto.java.
Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.mergeFrom | ( | com.google.protobuf.Message | other | ) |
Definition at line 674 of file MPModelDeltaProto.java.
Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.putAllConstraintOverrides | ( | java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto > | values | ) |
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 1272 of file MPModelDeltaProto.java.
Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.putAllVariableOverrides | ( | java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto > | values | ) |
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 1037 of file MPModelDeltaProto.java.
Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.putConstraintOverrides | ( | int | key, |
com.google.ortools.linearsolver.MPConstraintProto | value ) |
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.
com.google.ortools.linearsolver.MPConstraintProto.Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.putConstraintOverridesBuilderIfAbsent | ( | 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;
Definition at line 1297 of file MPModelDeltaProto.java.
Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.putVariableOverrides | ( | int | key, |
com.google.ortools.linearsolver.MPVariableProto | value ) |
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 1014 of file MPModelDeltaProto.java.
com.google.ortools.linearsolver.MPVariableProto.Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.putVariableOverridesBuilderIfAbsent | ( | 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;
Definition at line 1062 of file MPModelDeltaProto.java.
Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.removeConstraintOverrides | ( | 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;
Definition at line 1220 of file MPModelDeltaProto.java.
Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.removeVariableOverrides | ( | 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;
Definition at line 985 of file MPModelDeltaProto.java.
Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.setBaselineModelFilePath | ( | java.lang.String | value | ) |
optional string baseline_model_file_path = 1;
value | The baselineModelFilePath to set. |
Definition at line 810 of file MPModelDeltaProto.java.
Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.setBaselineModelFilePathBytes | ( | com.google.protobuf.ByteString | value | ) |
optional string baseline_model_file_path = 1;
value | The bytes for baselineModelFilePath to set. |
Definition at line 833 of file MPModelDeltaProto.java.