Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.linearsolver.MPModelDeltaProto Class Reference
Inheritance diagram for com.google.ortools.linearsolver.MPModelDeltaProto:
com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder

Classes

class  Builder

Public Member Functions

boolean hasBaselineModelFilePath ()
java.lang.String getBaselineModelFilePath ()
com.google.protobuf.ByteString getBaselineModelFilePathBytes ()
int getVariableOverridesCount ()
boolean containsVariableOverrides (int key)
java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPVariableProtogetVariableOverrides ()
java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPVariableProtogetVariableOverridesMap ()
com.google.ortools.linearsolver.MPVariableProto getVariableOverridesOrDefault (int key, com.google.ortools.linearsolver.MPVariableProto defaultValue)
com.google.ortools.linearsolver.MPVariableProto getVariableOverridesOrThrow (int key)
int getConstraintOverridesCount ()
boolean containsConstraintOverrides (int key)
java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProtogetConstraintOverrides ()
java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProtogetConstraintOverridesMap ()
com.google.ortools.linearsolver.MPConstraintProto getConstraintOverridesOrDefault (int key, com.google.ortools.linearsolver.MPConstraintProto defaultValue)
com.google.ortools.linearsolver.MPConstraintProto getConstraintOverridesOrThrow (int key)
final boolean isInitialized ()
void writeTo (com.google.protobuf.CodedOutputStream output) throws java.io.IOException
int getSerializedSize ()
boolean equals (final java.lang.Object obj)
int hashCode ()
Builder newBuilderForType ()
Builder toBuilder ()
com.google.protobuf.Parser< MPModelDeltaProtogetParserForType ()
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

Protected Member Functions

com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection (int number)
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable ()
Builder newBuilderForType (com.google.protobuf.GeneratedMessage.BuilderParent parent)

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

Member Function Documentation

◆ containsConstraintOverrides()

boolean com.google.ortools.linearsolver.MPModelDeltaProto.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 275 of file MPModelDeltaProto.java.

◆ containsVariableOverrides()

boolean com.google.ortools.linearsolver.MPModelDeltaProto.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 156 of file MPModelDeltaProto.java.

◆ equals()

boolean com.google.ortools.linearsolver.MPModelDeltaProto.equals ( final java.lang.Object obj)

Definition at line 421 of file MPModelDeltaProto.java.

◆ getBaselineModelFilePath()

java.lang.String com.google.ortools.linearsolver.MPModelDeltaProto.getBaselineModelFilePath ( )

optional string baseline_model_file_path = 1;

Returns
The baselineModelFilePath.

Implements com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.

Definition at line 83 of file MPModelDeltaProto.java.

◆ getBaselineModelFilePathBytes()

com.google.protobuf.ByteString com.google.ortools.linearsolver.MPModelDeltaProto.getBaselineModelFilePathBytes ( )

optional string baseline_model_file_path = 1;

Returns
The bytes for baselineModelFilePath.

Implements com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.

Definition at line 103 of file MPModelDeltaProto.java.

◆ getConstraintOverrides()

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

◆ getConstraintOverridesCount()

int com.google.ortools.linearsolver.MPModelDeltaProto.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 258 of file MPModelDeltaProto.java.

◆ getConstraintOverridesMap()

java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto > com.google.ortools.linearsolver.MPModelDeltaProto.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 302 of file MPModelDeltaProto.java.

◆ getConstraintOverridesOrDefault()

com.google.ortools.linearsolver.MPConstraintProto com.google.ortools.linearsolver.MPModelDeltaProto.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 320 of file MPModelDeltaProto.java.

◆ getConstraintOverridesOrThrow()

com.google.ortools.linearsolver.MPConstraintProto com.google.ortools.linearsolver.MPModelDeltaProto.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 343 of file MPModelDeltaProto.java.

◆ getDefaultInstance()

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

Definition at line 1322 of file MPModelDeltaProto.java.

◆ getDefaultInstanceForType()

com.google.ortools.linearsolver.MPModelDeltaProto com.google.ortools.linearsolver.MPModelDeltaProto.getDefaultInstanceForType ( )

Definition at line 1358 of file MPModelDeltaProto.java.

◆ getDescriptor()

final com.google.protobuf.Descriptors.Descriptor com.google.ortools.linearsolver.MPModelDeltaProto.getDescriptor ( )
static

Definition at line 40 of file MPModelDeltaProto.java.

◆ getParserForType()

com.google.protobuf.Parser< MPModelDeltaProto > com.google.ortools.linearsolver.MPModelDeltaProto.getParserForType ( )

Definition at line 1353 of file MPModelDeltaProto.java.

◆ getSerializedSize()

int com.google.ortools.linearsolver.MPModelDeltaProto.getSerializedSize ( )

Definition at line 387 of file MPModelDeltaProto.java.

◆ getVariableOverrides()

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

◆ getVariableOverridesCount()

int com.google.ortools.linearsolver.MPModelDeltaProto.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 139 of file MPModelDeltaProto.java.

◆ getVariableOverridesMap()

java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto > com.google.ortools.linearsolver.MPModelDeltaProto.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 183 of file MPModelDeltaProto.java.

◆ getVariableOverridesOrDefault()

com.google.ortools.linearsolver.MPVariableProto com.google.ortools.linearsolver.MPModelDeltaProto.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 201 of file MPModelDeltaProto.java.

◆ getVariableOverridesOrThrow()

com.google.ortools.linearsolver.MPVariableProto com.google.ortools.linearsolver.MPModelDeltaProto.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 224 of file MPModelDeltaProto.java.

◆ hasBaselineModelFilePath()

boolean com.google.ortools.linearsolver.MPModelDeltaProto.hasBaselineModelFilePath ( )

optional string baseline_model_file_path = 1;

Returns
Whether the baselineModelFilePath field is set.

Implements com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.

Definition at line 75 of file MPModelDeltaProto.java.

◆ hashCode()

int com.google.ortools.linearsolver.MPModelDeltaProto.hashCode ( )

Definition at line 444 of file MPModelDeltaProto.java.

◆ internalGetFieldAccessorTable()

com.google.protobuf.GeneratedMessage.FieldAccessorTable com.google.ortools.linearsolver.MPModelDeltaProto.internalGetFieldAccessorTable ( )
protected

Definition at line 60 of file MPModelDeltaProto.java.

◆ internalGetMapFieldReflection()

com.google.protobuf.MapFieldReflectionAccessor com.google.ortools.linearsolver.MPModelDeltaProto.internalGetMapFieldReflection ( int number)
protected

Definition at line 46 of file MPModelDeltaProto.java.

◆ isInitialized()

final boolean com.google.ortools.linearsolver.MPModelDeltaProto.isInitialized ( )

Definition at line 356 of file MPModelDeltaProto.java.

◆ newBuilder() [1/2]

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

Definition at line 541 of file MPModelDeltaProto.java.

◆ newBuilder() [2/2]

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

Definition at line 544 of file MPModelDeltaProto.java.

◆ newBuilderForType() [1/2]

Builder com.google.ortools.linearsolver.MPModelDeltaProto.newBuilderForType ( )

Definition at line 540 of file MPModelDeltaProto.java.

◆ newBuilderForType() [2/2]

Builder com.google.ortools.linearsolver.MPModelDeltaProto.newBuilderForType ( com.google.protobuf.GeneratedMessage.BuilderParent parent)
protected

Definition at line 554 of file MPModelDeltaProto.java.

◆ parseDelimitedFrom() [1/2]

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

Definition at line 512 of file MPModelDeltaProto.java.

◆ parseDelimitedFrom() [2/2]

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

Definition at line 518 of file MPModelDeltaProto.java.

◆ parseFrom() [1/10]

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

Definition at line 489 of file MPModelDeltaProto.java.

◆ parseFrom() [2/10]

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

Definition at line 493 of file MPModelDeltaProto.java.

◆ parseFrom() [3/10]

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

Definition at line 478 of file MPModelDeltaProto.java.

◆ parseFrom() [4/10]

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

Definition at line 483 of file MPModelDeltaProto.java.

◆ parseFrom() [5/10]

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

Definition at line 525 of file MPModelDeltaProto.java.

◆ parseFrom() [6/10]

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

Definition at line 531 of file MPModelDeltaProto.java.

◆ parseFrom() [7/10]

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

Definition at line 499 of file MPModelDeltaProto.java.

◆ parseFrom() [8/10]

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

Definition at line 504 of file MPModelDeltaProto.java.

◆ parseFrom() [9/10]

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

Definition at line 467 of file MPModelDeltaProto.java.

◆ parseFrom() [10/10]

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

Definition at line 472 of file MPModelDeltaProto.java.

◆ parser()

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

Definition at line 1348 of file MPModelDeltaProto.java.

◆ toBuilder()

Builder com.google.ortools.linearsolver.MPModelDeltaProto.toBuilder ( )

Definition at line 548 of file MPModelDeltaProto.java.

◆ writeTo()

void com.google.ortools.linearsolver.MPModelDeltaProto.writeTo ( com.google.protobuf.CodedOutputStream output) throws java.io.IOException

Definition at line 366 of file MPModelDeltaProto.java.

Member Data Documentation

◆ BASELINE_MODEL_FILE_PATH_FIELD_NUMBER

final int com.google.ortools.linearsolver.MPModelDeltaProto.BASELINE_MODEL_FILE_PATH_FIELD_NUMBER = 1
static

Definition at line 67 of file MPModelDeltaProto.java.

◆ CONSTRAINT_OVERRIDES_FIELD_NUMBER

final int com.google.ortools.linearsolver.MPModelDeltaProto.CONSTRAINT_OVERRIDES_FIELD_NUMBER = 3
static

Definition at line 235 of file MPModelDeltaProto.java.

◆ VARIABLE_OVERRIDES_FIELD_NUMBER

final int com.google.ortools.linearsolver.MPModelDeltaProto.VARIABLE_OVERRIDES_FIELD_NUMBER = 2
static

Definition at line 116 of file MPModelDeltaProto.java.


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