Google OR-Tools v9.11
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 565 of file MPModelDeltaProto.java.
com.google.ortools.linearsolver.MPModelDeltaProto com.google.ortools.linearsolver.MPModelDeltaProto.Builder.build | ( | ) |
Definition at line 640 of file MPModelDeltaProto.java.
com.google.ortools.linearsolver.MPModelDeltaProto com.google.ortools.linearsolver.MPModelDeltaProto.Builder.buildPartial | ( | ) |
Definition at line 649 of file MPModelDeltaProto.java.
Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.clear | ( | ) |
Definition at line 619 of file MPModelDeltaProto.java.
Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.clearBaselineModelFilePath | ( | ) |
optional string baseline_model_file_path = 1;
Definition at line 821 of file MPModelDeltaProto.java.
Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.clearConstraintOverrides | ( | ) |
Definition at line 1201 of file MPModelDeltaProto.java.
Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.clearVariableOverrides | ( | ) |
Definition at line 966 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 1125 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 890 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 773 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 792 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 1135 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 1108 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 1152 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 1170 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 1192 of file MPModelDeltaProto.java.
com.google.ortools.linearsolver.MPModelDeltaProto com.google.ortools.linearsolver.MPModelDeltaProto.Builder.getDefaultInstanceForType | ( | ) |
Definition at line 635 of file MPModelDeltaProto.java.
|
static |
Definition at line 570 of file MPModelDeltaProto.java.
com.google.protobuf.Descriptors.Descriptor com.google.ortools.linearsolver.MPModelDeltaProto.Builder.getDescriptorForType | ( | ) |
Definition at line 630 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 1231 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 996 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 900 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 873 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 917 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 935 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 957 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 766 of file MPModelDeltaProto.java.
|
protected |
Definition at line 602 of file MPModelDeltaProto.java.
|
protected |
Definition at line 575 of file MPModelDeltaProto.java.
|
protected |
Definition at line 588 of file MPModelDeltaProto.java.
final boolean com.google.ortools.linearsolver.MPModelDeltaProto.Builder.isInitialized | ( | ) |
Definition at line 701 of file MPModelDeltaProto.java.
Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.mergeFrom | ( | com.google.ortools.linearsolver.MPModelDeltaProto | other | ) |
Definition at line 682 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 706 of file MPModelDeltaProto.java.
Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.mergeFrom | ( | com.google.protobuf.Message | other | ) |
Definition at line 673 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 1271 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 1036 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 1248 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 1296 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 1013 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 1061 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 1219 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 984 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 809 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 832 of file MPModelDeltaProto.java.