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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashFields, toString
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.GeneratedMessage
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public boolean hasBaselineModelFilePath()
optional string baseline_model_file_path = 1;
hasBaselineModelFilePath
in interface MPModelDeltaProtoOrBuilder
public java.lang.String getBaselineModelFilePath()
optional string baseline_model_file_path = 1;
getBaselineModelFilePath
in interface MPModelDeltaProtoOrBuilder
public com.google.protobuf.ByteString getBaselineModelFilePathBytes()
optional string baseline_model_file_path = 1;
getBaselineModelFilePathBytes
in interface MPModelDeltaProtoOrBuilder
public int getVariableOverridesCount()
MPModelDeltaProtoOrBuilder
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;
getVariableOverridesCount
in interface MPModelDeltaProtoOrBuilder
public 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 MPModelDeltaProtoOrBuilder
public 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 MPModelDeltaProtoOrBuilder
public 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 MPModelDeltaProtoOrBuilder
public 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 MPModelDeltaProtoOrBuilder
public int getConstraintOverridesCount()
MPModelDeltaProtoOrBuilder
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;
getConstraintOverridesCount
in interface MPModelDeltaProtoOrBuilder
public 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 MPModelDeltaProtoOrBuilder
public 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 MPModelDeltaProtoOrBuilder
public 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 MPModelDeltaProtoOrBuilder
public 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 MPModelDeltaProtoOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessage
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessage
public boolean equals(java.lang.Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static MPModelDeltaProto parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static MPModelDeltaProto parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static MPModelDeltaProto parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static MPModelDeltaProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static MPModelDeltaProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static MPModelDeltaProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static MPModelDeltaProto parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static MPModelDeltaProto parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static MPModelDeltaProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static MPModelDeltaProto parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static MPModelDeltaProto parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static MPModelDeltaProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public MPModelDeltaProto.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static MPModelDeltaProto.Builder newBuilder()
public static MPModelDeltaProto.Builder newBuilder(MPModelDeltaProto prototype)
public MPModelDeltaProto.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected MPModelDeltaProto.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.AbstractMessage
public static MPModelDeltaProto getDefaultInstance()
public static com.google.protobuf.Parser<MPModelDeltaProto> parser()
public com.google.protobuf.Parser<MPModelDeltaProto> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public MPModelDeltaProto getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2025. All rights reserved.