Google OR-Tools v9.11
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 ()
 
- Public Member Functions inherited from com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder

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 15 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 273 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 154 of file MPModelDeltaProto.java.

◆ equals()

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

Definition at line 419 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 81 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 101 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 256 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 300 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 318 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 341 of file MPModelDeltaProto.java.

◆ getDefaultInstance()

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

Definition at line 1320 of file MPModelDeltaProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 1356 of file MPModelDeltaProto.java.

◆ getDescriptor()

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

Definition at line 38 of file MPModelDeltaProto.java.

◆ getParserForType()

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

Definition at line 1351 of file MPModelDeltaProto.java.

◆ getSerializedSize()

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

Definition at line 385 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 137 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 181 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 199 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 222 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 73 of file MPModelDeltaProto.java.

◆ hashCode()

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

Definition at line 442 of file MPModelDeltaProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 58 of file MPModelDeltaProto.java.

◆ internalGetMapFieldReflection()

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

Definition at line 44 of file MPModelDeltaProto.java.

◆ isInitialized()

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

Definition at line 354 of file MPModelDeltaProto.java.

◆ newBuilder() [1/2]

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

Definition at line 539 of file MPModelDeltaProto.java.

◆ newBuilder() [2/2]

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

Definition at line 542 of file MPModelDeltaProto.java.

◆ newBuilderForType() [1/2]

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

Definition at line 538 of file MPModelDeltaProto.java.

◆ newBuilderForType() [2/2]

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

Definition at line 552 of file MPModelDeltaProto.java.

◆ parseDelimitedFrom() [1/2]

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

Definition at line 510 of file MPModelDeltaProto.java.

◆ parseDelimitedFrom() [2/2]

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

◆ parseFrom() [1/10]

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

Definition at line 487 of file MPModelDeltaProto.java.

◆ parseFrom() [2/10]

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

◆ parseFrom() [3/10]

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

◆ parseFrom() [4/10]

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

◆ parseFrom() [5/10]

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

Definition at line 523 of file MPModelDeltaProto.java.

◆ parseFrom() [6/10]

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

◆ parseFrom() [7/10]

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

Definition at line 497 of file MPModelDeltaProto.java.

◆ parseFrom() [8/10]

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

◆ parseFrom() [9/10]

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

Definition at line 465 of file MPModelDeltaProto.java.

◆ parseFrom() [10/10]

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

◆ parser()

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

Definition at line 1346 of file MPModelDeltaProto.java.

◆ toBuilder()

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

Definition at line 546 of file MPModelDeltaProto.java.

◆ writeTo()

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

Definition at line 364 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 65 of file MPModelDeltaProto.java.

◆ CONSTRAINT_OVERRIDES_FIELD_NUMBER

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

Definition at line 233 of file MPModelDeltaProto.java.

◆ VARIABLE_OVERRIDES_FIELD_NUMBER

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

Definition at line 114 of file MPModelDeltaProto.java.


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