public final class MPModelDeltaProto extends com.google.protobuf.GeneratedMessage implements MPModelDeltaProtoOrBuilder
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| Modifier and Type | Class and Description |
|---|---|
static class |
MPModelDeltaProto.Builder
Encodes a full MPModelProto by way of referencing to a "baseline"
MPModelProto stored in a file, and a "delta" to apply to this model.
|
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
BASELINE_MODEL_FILE_PATH_FIELD_NUMBER |
static int |
CONSTRAINT_OVERRIDES_FIELD_NUMBER |
static int |
VARIABLE_OVERRIDES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsConstraintOverrides(int key)
Constraints can be changed (or added) in the same way as variables, see
above.
|
boolean |
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.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getBaselineModelFilePath()
optional string baseline_model_file_path = 1; |
com.google.protobuf.ByteString |
getBaselineModelFilePathBytes()
optional string baseline_model_file_path = 1; |
java.util.Map<java.lang.Integer,MPConstraintProto> |
getConstraintOverrides()
Deprecated.
|
int |
getConstraintOverridesCount()
Constraints can be changed (or added) in the same way as variables, see
above.
|
java.util.Map<java.lang.Integer,MPConstraintProto> |
getConstraintOverridesMap()
Constraints can be changed (or added) in the same way as variables, see
above.
|
MPConstraintProto |
getConstraintOverridesOrDefault(int key,
MPConstraintProto defaultValue)
Constraints can be changed (or added) in the same way as variables, see
above.
|
MPConstraintProto |
getConstraintOverridesOrThrow(int key)
Constraints can be changed (or added) in the same way as variables, see
above.
|
static MPModelDeltaProto |
getDefaultInstance() |
MPModelDeltaProto |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<MPModelDeltaProto> |
getParserForType() |
int |
getSerializedSize() |
java.util.Map<java.lang.Integer,MPVariableProto> |
getVariableOverrides()
Deprecated.
|
int |
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.
|
java.util.Map<java.lang.Integer,MPVariableProto> |
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.
|
MPVariableProto |
getVariableOverridesOrDefault(int key,
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.
|
MPVariableProto |
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.
|
boolean |
hasBaselineModelFilePath()
optional string baseline_model_file_path = 1; |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
boolean |
isInitialized() |
static MPModelDeltaProto.Builder |
newBuilder() |
static MPModelDeltaProto.Builder |
newBuilder(MPModelDeltaProto prototype) |
MPModelDeltaProto.Builder |
newBuilderForType() |
protected MPModelDeltaProto.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static MPModelDeltaProto |
parseDelimitedFrom(java.io.InputStream input) |
static MPModelDeltaProto |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MPModelDeltaProto |
parseFrom(byte[] data) |
static MPModelDeltaProto |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MPModelDeltaProto |
parseFrom(java.nio.ByteBuffer data) |
static MPModelDeltaProto |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MPModelDeltaProto |
parseFrom(com.google.protobuf.ByteString data) |
static MPModelDeltaProto |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MPModelDeltaProto |
parseFrom(com.google.protobuf.CodedInputStream input) |
static MPModelDeltaProto |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MPModelDeltaProto |
parseFrom(java.io.InputStream input) |
static MPModelDeltaProto |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<MPModelDeltaProto> |
parser() |
MPModelDeltaProto.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashFields, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int BASELINE_MODEL_FILE_PATH_FIELD_NUMBER
public static final int VARIABLE_OVERRIDES_FIELD_NUMBER
public static final int CONSTRAINT_OVERRIDES_FIELD_NUMBER
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageprotected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic boolean hasBaselineModelFilePath()
optional string baseline_model_file_path = 1;hasBaselineModelFilePath in interface MPModelDeltaProtoOrBuilderpublic java.lang.String getBaselineModelFilePath()
optional string baseline_model_file_path = 1;getBaselineModelFilePath in interface MPModelDeltaProtoOrBuilderpublic com.google.protobuf.ByteString getBaselineModelFilePathBytes()
optional string baseline_model_file_path = 1;getBaselineModelFilePathBytes in interface MPModelDeltaProtoOrBuilderpublic int getVariableOverridesCount()
MPModelDeltaProtoOrBuilderThe 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;getVariableOverridesCount in interface MPModelDeltaProtoOrBuilderpublic boolean 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;containsVariableOverrides in interface MPModelDeltaProtoOrBuilder@Deprecated public java.util.Map<java.lang.Integer,MPVariableProto> getVariableOverrides()
getVariableOverridesMap() instead.getVariableOverrides in interface MPModelDeltaProtoOrBuilderpublic java.util.Map<java.lang.Integer,MPVariableProto> 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;getVariableOverridesMap in interface MPModelDeltaProtoOrBuilderpublic MPVariableProto getVariableOverridesOrDefault(int key, 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;getVariableOverridesOrDefault in interface MPModelDeltaProtoOrBuilderpublic MPVariableProto 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;getVariableOverridesOrThrow in interface MPModelDeltaProtoOrBuilderpublic int getConstraintOverridesCount()
MPModelDeltaProtoOrBuilderConstraints 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;getConstraintOverridesCount in interface MPModelDeltaProtoOrBuilderpublic boolean 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;containsConstraintOverrides in interface MPModelDeltaProtoOrBuilder@Deprecated public java.util.Map<java.lang.Integer,MPConstraintProto> getConstraintOverrides()
getConstraintOverridesMap() instead.getConstraintOverrides in interface MPModelDeltaProtoOrBuilderpublic java.util.Map<java.lang.Integer,MPConstraintProto> 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;getConstraintOverridesMap in interface MPModelDeltaProtoOrBuilderpublic MPConstraintProto getConstraintOverridesOrDefault(int key, 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;getConstraintOverridesOrDefault in interface MPModelDeltaProtoOrBuilderpublic MPConstraintProto 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;getConstraintOverridesOrThrow in interface MPModelDeltaProtoOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessagejava.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessagepublic boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static MPModelDeltaProto parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MPModelDeltaProto parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MPModelDeltaProto parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MPModelDeltaProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MPModelDeltaProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MPModelDeltaProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MPModelDeltaProto parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static MPModelDeltaProto parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static MPModelDeltaProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static MPModelDeltaProto parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static MPModelDeltaProto parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static MPModelDeltaProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic MPModelDeltaProto.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static MPModelDeltaProto.Builder newBuilder()
public static MPModelDeltaProto.Builder newBuilder(MPModelDeltaProto prototype)
public MPModelDeltaProto.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected MPModelDeltaProto.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.AbstractMessagepublic static MPModelDeltaProto getDefaultInstance()
public static com.google.protobuf.Parser<MPModelDeltaProto> parser()
public com.google.protobuf.Parser<MPModelDeltaProto> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic MPModelDeltaProto getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024. All rights reserved.