Google OR-Tools v9.12
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 16 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 274 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 155 of file MPModelDeltaProto.java.

◆ equals()

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

Definition at line 420 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 82 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 102 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 257 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 301 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 319 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 342 of file MPModelDeltaProto.java.

◆ getDefaultInstance()

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

Definition at line 1321 of file MPModelDeltaProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 1357 of file MPModelDeltaProto.java.

◆ getDescriptor()

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

Definition at line 39 of file MPModelDeltaProto.java.

◆ getParserForType()

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

Definition at line 1352 of file MPModelDeltaProto.java.

◆ getSerializedSize()

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

Definition at line 386 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 138 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 182 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 200 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 223 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 74 of file MPModelDeltaProto.java.

◆ hashCode()

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

Definition at line 443 of file MPModelDeltaProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 59 of file MPModelDeltaProto.java.

◆ internalGetMapFieldReflection()

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

Definition at line 45 of file MPModelDeltaProto.java.

◆ isInitialized()

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

Definition at line 355 of file MPModelDeltaProto.java.

◆ newBuilder() [1/2]

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

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

◆ newBuilderForType() [1/2]

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

Definition at line 539 of file MPModelDeltaProto.java.

◆ newBuilderForType() [2/2]

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

Definition at line 553 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 511 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 517 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 488 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 492 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 477 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 482 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 524 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 530 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 498 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 503 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 466 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 471 of file MPModelDeltaProto.java.

◆ parser()

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

Definition at line 1347 of file MPModelDeltaProto.java.

◆ toBuilder()

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

Definition at line 547 of file MPModelDeltaProto.java.

◆ writeTo()

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

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

◆ CONSTRAINT_OVERRIDES_FIELD_NUMBER

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

Definition at line 234 of file MPModelDeltaProto.java.

◆ VARIABLE_OVERRIDES_FIELD_NUMBER

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

Definition at line 115 of file MPModelDeltaProto.java.


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