![]() |
Google OR-Tools v9.14
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 567 of file MPModelDeltaProto.java.
com.google.ortools.linearsolver.MPModelDeltaProto com.google.ortools.linearsolver.MPModelDeltaProto.Builder.build | ( | ) |
Definition at line 642 of file MPModelDeltaProto.java.
com.google.ortools.linearsolver.MPModelDeltaProto com.google.ortools.linearsolver.MPModelDeltaProto.Builder.buildPartial | ( | ) |
Definition at line 651 of file MPModelDeltaProto.java.
Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.clear | ( | ) |
Definition at line 621 of file MPModelDeltaProto.java.
Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.clearBaselineModelFilePath | ( | ) |
optional string baseline_model_file_path = 1;
Definition at line 823 of file MPModelDeltaProto.java.
Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.clearConstraintOverrides | ( | ) |
Definition at line 1203 of file MPModelDeltaProto.java.
Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.clearVariableOverrides | ( | ) |
Definition at line 968 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 1127 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 892 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 775 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 794 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 1137 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 1110 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 1154 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 1172 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 1194 of file MPModelDeltaProto.java.
com.google.ortools.linearsolver.MPModelDeltaProto com.google.ortools.linearsolver.MPModelDeltaProto.Builder.getDefaultInstanceForType | ( | ) |
Definition at line 637 of file MPModelDeltaProto.java.
|
static |
Definition at line 572 of file MPModelDeltaProto.java.
com.google.protobuf.Descriptors.Descriptor com.google.ortools.linearsolver.MPModelDeltaProto.Builder.getDescriptorForType | ( | ) |
Definition at line 632 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 1233 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 998 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 902 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 875 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 919 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 937 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 959 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 768 of file MPModelDeltaProto.java.
|
protected |
Definition at line 604 of file MPModelDeltaProto.java.
|
protected |
Definition at line 577 of file MPModelDeltaProto.java.
|
protected |
Definition at line 590 of file MPModelDeltaProto.java.
final boolean com.google.ortools.linearsolver.MPModelDeltaProto.Builder.isInitialized | ( | ) |
Definition at line 703 of file MPModelDeltaProto.java.
Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.mergeFrom | ( | com.google.ortools.linearsolver.MPModelDeltaProto | other | ) |
Definition at line 684 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 708 of file MPModelDeltaProto.java.
Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.mergeFrom | ( | com.google.protobuf.Message | other | ) |
Definition at line 675 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 1273 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 1038 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 1250 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 1298 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 1015 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 1063 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 1221 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 986 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 811 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 834 of file MPModelDeltaProto.java.