Java Reference

Java Reference

MPModelDeltaProto

Detailed Description

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 14 of file MPModelDeltaProto.java.

Classes

class  Builder
 

Public Member Functions

.lang.Override final com.google.protobuf.UnknownFieldSet getUnknownFields ()
 
.lang.Override boolean hasBaselineModelFilePath ()
 optional string baseline_model_file_path = 1; More...
 
.lang.Override java.lang.String getBaselineModelFilePath ()
 optional string baseline_model_file_path = 1; More...
 
.lang.Override com.google.protobuf.ByteString getBaselineModelFilePathBytes ()
 optional string baseline_model_file_path = 1; More...
 
int getVariableOverridesCount ()
 
.lang.Override boolean containsVariableOverrides (int key)
 
.lang.Override.lang.Deprecated java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPVariableProtogetVariableOverrides ()
 Use getVariableOverridesMap() instead. More...
 
.lang.Override java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPVariableProtogetVariableOverridesMap ()
 
.lang.Override com.google.ortools.linearsolver.MPVariableProto getVariableOverridesOrDefault (int key, com.google.ortools.linearsolver.MPVariableProto defaultValue)
 
.lang.Override com.google.ortools.linearsolver.MPVariableProto getVariableOverridesOrThrow (int key)
 
int getConstraintOverridesCount ()
 
.lang.Override boolean containsConstraintOverrides (int key)
 
.lang.Override.lang.Deprecated java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProtogetConstraintOverrides ()
 Use getConstraintOverridesMap() instead. More...
 
.lang.Override java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProtogetConstraintOverridesMap ()
 
.lang.Override com.google.ortools.linearsolver.MPConstraintProto getConstraintOverridesOrDefault (int key, com.google.ortools.linearsolver.MPConstraintProto defaultValue)
 
.lang.Override com.google.ortools.linearsolver.MPConstraintProto getConstraintOverridesOrThrow (int key)
 
.lang.Override final boolean isInitialized ()
 
.lang.Override void writeTo (com.google.protobuf.CodedOutputStream output) throws java.io.IOException
 
.lang.Override int getSerializedSize ()
 
.lang.Override boolean equals (final java.lang.Object obj)
 
.lang.Override int hashCode ()
 
.lang.Override Builder newBuilderForType ()
 
.lang.Override Builder toBuilder ()
 
.lang.Override com.google.protobuf.Parser< MPModelDeltaProtogetParserForType ()
 
.lang.Override com.google.ortools.linearsolver.MPModelDeltaProto getDefaultInstanceForType ()
 

Static Public Member Functions

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
 
static com.google.ortools.linearsolver.MPModelDeltaProto parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPModelDeltaProto parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPModelDeltaProto parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPModelDeltaProto parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPModelDeltaProto parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPModelDeltaProto parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPModelDeltaProto parseFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.linearsolver.MPModelDeltaProto parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.linearsolver.MPModelDeltaProto parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.linearsolver.MPModelDeltaProto parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.linearsolver.MPModelDeltaProto parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException
 
static com.google.ortools.linearsolver.MPModelDeltaProto parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static Builder newBuilder ()
 
static Builder newBuilder (com.google.ortools.linearsolver.MPModelDeltaProto prototype)
 
static com.google.ortools.linearsolver.MPModelDeltaProto getDefaultInstance ()
 
static com.google.protobuf.Parser< MPModelDeltaProtoparser ()
 

Static Public Attributes

static final int BASELINE_MODEL_FILE_PATH_FIELD_NUMBER = 1
 
static final int VARIABLE_OVERRIDES_FIELD_NUMBER = 2
 
static final int CONSTRAINT_OVERRIDES_FIELD_NUMBER = 3
 
.lang.Deprecated static final com.google.protobuf.Parser< MPModelDeltaProtoPARSER
 

Protected Member Functions

.lang.Override java.lang.Object newInstance (UnusedPrivateParameter unused)
 
.lang.Override com.google.protobuf.MapField internalGetMapField (int number)
 
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable ()
 
.lang.Override Builder newBuilderForType (com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
 

Member Function Documentation

◆ containsConstraintOverrides()

.lang.Override boolean containsConstraintOverrides ( int  key)
inline
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 MPModelDeltaProtoOrBuilder.

Definition at line 347 of file MPModelDeltaProto.java.

◆ containsVariableOverrides()

.lang.Override boolean containsVariableOverrides ( int  key)
inline
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 MPModelDeltaProtoOrBuilder.

Definition at line 226 of file MPModelDeltaProto.java.

◆ equals()

.lang.Override boolean equals ( final java.lang.Object  obj)
inline

Definition at line 494 of file MPModelDeltaProto.java.

◆ getBaselineModelFilePath()

.lang.Override java.lang.String getBaselineModelFilePath ( )
inline

optional string baseline_model_file_path = 1;

Returns
The baselineModelFilePath.

Implements MPModelDeltaProtoOrBuilder.

Definition at line 152 of file MPModelDeltaProto.java.

◆ getBaselineModelFilePathBytes()

.lang.Override com.google.protobuf.ByteString getBaselineModelFilePathBytes ( )
inline

optional string baseline_model_file_path = 1;

Returns
The bytes for baselineModelFilePath.

Implements MPModelDeltaProtoOrBuilder.

Definition at line 172 of file MPModelDeltaProto.java.

◆ getConstraintOverrides()

.lang.Override.lang.Deprecated java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto> getConstraintOverrides ( )
inline

Use getConstraintOverridesMap() instead.

Implements MPModelDeltaProtoOrBuilder.

Definition at line 357 of file MPModelDeltaProto.java.

◆ getConstraintOverridesCount()

int getConstraintOverridesCount ( )
inline
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 MPModelDeltaProtoOrBuilder.

Definition at line 329 of file MPModelDeltaProto.java.

◆ getConstraintOverridesMap()

.lang.Override java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto> getConstraintOverridesMap ( )
inline
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 MPModelDeltaProtoOrBuilder.

Definition at line 375 of file MPModelDeltaProto.java.

◆ getConstraintOverridesOrDefault()

.lang.Override com.google.ortools.linearsolver.MPConstraintProto getConstraintOverridesOrDefault ( int  key,
com.google.ortools.linearsolver.MPConstraintProto  defaultValue 
)
inline
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 MPModelDeltaProtoOrBuilder.

Definition at line 393 of file MPModelDeltaProto.java.

◆ getConstraintOverridesOrThrow()

.lang.Override com.google.ortools.linearsolver.MPConstraintProto getConstraintOverridesOrThrow ( int  key)
inline
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 MPModelDeltaProtoOrBuilder.

Definition at line 416 of file MPModelDeltaProto.java.

◆ getDefaultInstance()

static com.google.ortools.linearsolver.MPModelDeltaProto getDefaultInstance ( )
inlinestatic

Definition at line 1328 of file MPModelDeltaProto.java.

◆ getDefaultInstanceForType()

.lang.Override com.google.ortools.linearsolver.MPModelDeltaProto getDefaultInstanceForType ( )
inline

Definition at line 1353 of file MPModelDeltaProto.java.

◆ getDescriptor()

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ( )
inlinestatic

Definition at line 110 of file MPModelDeltaProto.java.

◆ getParserForType()

.lang.Override com.google.protobuf.Parser<MPModelDeltaProto> getParserForType ( )
inline

Definition at line 1348 of file MPModelDeltaProto.java.

◆ getSerializedSize()

.lang.Override int getSerializedSize ( )
inline

Definition at line 460 of file MPModelDeltaProto.java.

◆ getUnknownFields()

.lang.Override final com.google.protobuf.UnknownFieldSet getUnknownFields ( )
inline

Definition at line 36 of file MPModelDeltaProto.java.

◆ getVariableOverrides()

.lang.Override.lang.Deprecated java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto> getVariableOverrides ( )
inline

Use getVariableOverridesMap() instead.

Implements MPModelDeltaProtoOrBuilder.

Definition at line 236 of file MPModelDeltaProto.java.

◆ getVariableOverridesCount()

int getVariableOverridesCount ( )
inline
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 MPModelDeltaProtoOrBuilder.

Definition at line 208 of file MPModelDeltaProto.java.

◆ getVariableOverridesMap()

.lang.Override java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto> getVariableOverridesMap ( )
inline
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 MPModelDeltaProtoOrBuilder.

Definition at line 254 of file MPModelDeltaProto.java.

◆ getVariableOverridesOrDefault()

.lang.Override com.google.ortools.linearsolver.MPVariableProto getVariableOverridesOrDefault ( int  key,
com.google.ortools.linearsolver.MPVariableProto  defaultValue 
)
inline
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 MPModelDeltaProtoOrBuilder.

Definition at line 272 of file MPModelDeltaProto.java.

◆ getVariableOverridesOrThrow()

.lang.Override com.google.ortools.linearsolver.MPVariableProto getVariableOverridesOrThrow ( int  key)
inline
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 MPModelDeltaProtoOrBuilder.

Definition at line 295 of file MPModelDeltaProto.java.

◆ hasBaselineModelFilePath()

.lang.Override boolean hasBaselineModelFilePath ( )
inline

optional string baseline_model_file_path = 1;

Returns
Whether the baselineModelFilePath field is set.

Implements MPModelDeltaProtoOrBuilder.

Definition at line 144 of file MPModelDeltaProto.java.

◆ hashCode()

.lang.Override int hashCode ( )
inline

Definition at line 517 of file MPModelDeltaProto.java.

◆ internalGetFieldAccessorTable()

.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable ( )
inlineprotected

Definition at line 130 of file MPModelDeltaProto.java.

◆ internalGetMapField()

.lang.Override com.google.protobuf.MapField internalGetMapField ( int  number)
inlineprotected

Definition at line 116 of file MPModelDeltaProto.java.

◆ isInitialized()

.lang.Override final boolean isInitialized ( )
inline

Definition at line 429 of file MPModelDeltaProto.java.

◆ newBuilder() [1/2]

static Builder newBuilder ( )
inlinestatic

Definition at line 612 of file MPModelDeltaProto.java.

◆ newBuilder() [2/2]

static Builder newBuilder ( com.google.ortools.linearsolver.MPModelDeltaProto  prototype)
inlinestatic

Definition at line 615 of file MPModelDeltaProto.java.

◆ newBuilderForType() [1/2]

.lang.Override Builder newBuilderForType ( )
inline

Definition at line 611 of file MPModelDeltaProto.java.

◆ newBuilderForType() [2/2]

.lang.Override Builder newBuilderForType ( com.google.protobuf.GeneratedMessageV3.BuilderParent  parent)
inlineprotected

Definition at line 625 of file MPModelDeltaProto.java.

◆ newInstance()

.lang.Override java.lang.Object newInstance ( UnusedPrivateParameter  unused)
inlineprotected

Definition at line 29 of file MPModelDeltaProto.java.

◆ parseDelimitedFrom() [1/2]

static com.google.ortools.linearsolver.MPModelDeltaProto parseDelimitedFrom ( java.io.InputStream  input) throws java.io.IOException
inlinestatic

Definition at line 584 of file MPModelDeltaProto.java.

◆ parseDelimitedFrom() [2/2]

static com.google.ortools.linearsolver.MPModelDeltaProto parseDelimitedFrom ( java.io.InputStream  input,
com.google.protobuf.ExtensionRegistryLite  extensionRegistry 
) throws java.io.IOException
inlinestatic

Definition at line 589 of file MPModelDeltaProto.java.

◆ parseFrom() [1/10]

static com.google.ortools.linearsolver.MPModelDeltaProto parseFrom ( byte[]  data) throws com.google.protobuf.InvalidProtocolBufferException
inlinestatic

Definition at line 562 of file MPModelDeltaProto.java.

◆ parseFrom() [2/10]

static com.google.ortools.linearsolver.MPModelDeltaProto parseFrom ( byte[]  data,
com.google.protobuf.ExtensionRegistryLite  extensionRegistry 
) throws com.google.protobuf.InvalidProtocolBufferException
inlinestatic

Definition at line 566 of file MPModelDeltaProto.java.

◆ parseFrom() [3/10]

static com.google.ortools.linearsolver.MPModelDeltaProto parseFrom ( com.google.protobuf.ByteString  data) throws com.google.protobuf.InvalidProtocolBufferException
inlinestatic

Definition at line 551 of file MPModelDeltaProto.java.

◆ parseFrom() [4/10]

static com.google.ortools.linearsolver.MPModelDeltaProto parseFrom ( com.google.protobuf.ByteString  data,
com.google.protobuf.ExtensionRegistryLite  extensionRegistry 
) throws com.google.protobuf.InvalidProtocolBufferException
inlinestatic

Definition at line 556 of file MPModelDeltaProto.java.

◆ parseFrom() [5/10]

static com.google.ortools.linearsolver.MPModelDeltaProto parseFrom ( com.google.protobuf.CodedInputStream  input) throws java.io.IOException
inlinestatic

Definition at line 596 of file MPModelDeltaProto.java.

◆ parseFrom() [6/10]

static com.google.ortools.linearsolver.MPModelDeltaProto parseFrom ( com.google.protobuf.CodedInputStream  input,
com.google.protobuf.ExtensionRegistryLite  extensionRegistry 
) throws java.io.IOException
inlinestatic

Definition at line 602 of file MPModelDeltaProto.java.

◆ parseFrom() [7/10]

static com.google.ortools.linearsolver.MPModelDeltaProto parseFrom ( java.io.InputStream  input) throws java.io.IOException
inlinestatic

Definition at line 572 of file MPModelDeltaProto.java.

◆ parseFrom() [8/10]

static com.google.ortools.linearsolver.MPModelDeltaProto parseFrom ( java.io.InputStream  input,
com.google.protobuf.ExtensionRegistryLite  extensionRegistry 
) throws java.io.IOException
inlinestatic

Definition at line 577 of file MPModelDeltaProto.java.

◆ parseFrom() [9/10]

static com.google.ortools.linearsolver.MPModelDeltaProto parseFrom ( java.nio.ByteBuffer  data) throws com.google.protobuf.InvalidProtocolBufferException
inlinestatic

Definition at line 540 of file MPModelDeltaProto.java.

◆ parseFrom() [10/10]

static com.google.ortools.linearsolver.MPModelDeltaProto parseFrom ( java.nio.ByteBuffer  data,
com.google.protobuf.ExtensionRegistryLite  extensionRegistry 
) throws com.google.protobuf.InvalidProtocolBufferException
inlinestatic

Definition at line 545 of file MPModelDeltaProto.java.

◆ parser()

static com.google.protobuf.Parser<MPModelDeltaProto> parser ( )
inlinestatic

Definition at line 1343 of file MPModelDeltaProto.java.

◆ toBuilder()

.lang.Override Builder toBuilder ( )
inline

Definition at line 619 of file MPModelDeltaProto.java.

◆ writeTo()

.lang.Override void writeTo ( com.google.protobuf.CodedOutputStream  output) throws java.io.IOException
inline

Definition at line 439 of file MPModelDeltaProto.java.

Member Data Documentation

◆ BASELINE_MODEL_FILE_PATH_FIELD_NUMBER

final int BASELINE_MODEL_FILE_PATH_FIELD_NUMBER = 1
static

Definition at line 137 of file MPModelDeltaProto.java.

◆ CONSTRAINT_OVERRIDES_FIELD_NUMBER

final int CONSTRAINT_OVERRIDES_FIELD_NUMBER = 3
static

Definition at line 306 of file MPModelDeltaProto.java.

◆ PARSER

.lang.Deprecated static final com.google.protobuf.Parser<MPModelDeltaProto> PARSER
static
Initial value:
= new com.google.protobuf.AbstractParser<MPModelDeltaProto>() {
@java.lang.Override
public MPModelDeltaProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MPModelDeltaProto(input, extensionRegistry);
}
}

Definition at line 1333 of file MPModelDeltaProto.java.

◆ VARIABLE_OVERRIDES_FIELD_NUMBER

final int VARIABLE_OVERRIDES_FIELD_NUMBER = 2
static

Definition at line 185 of file MPModelDeltaProto.java.


The documentation for this class was generated from the following file: