Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder Interface Reference
Inheritance diagram for com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder:
com.google.ortools.linearsolver.MPModelDeltaProto com.google.ortools.linearsolver.MPModelDeltaProto.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)
 

Detailed Description

Definition at line 7 of file MPModelDeltaProtoOrBuilder.java.

Member Function Documentation

◆ containsConstraintOverrides()

boolean com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.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;

Implemented in com.google.ortools.linearsolver.MPModelDeltaProto, and com.google.ortools.linearsolver.MPModelDeltaProto.Builder.

◆ containsVariableOverrides()

boolean com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.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;

Implemented in com.google.ortools.linearsolver.MPModelDeltaProto, and com.google.ortools.linearsolver.MPModelDeltaProto.Builder.

◆ getBaselineModelFilePath()

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

optional string baseline_model_file_path = 1;

Returns
The baselineModelFilePath.

Implemented in com.google.ortools.linearsolver.MPModelDeltaProto, and com.google.ortools.linearsolver.MPModelDeltaProto.Builder.

◆ getBaselineModelFilePathBytes()

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

optional string baseline_model_file_path = 1;

Returns
The bytes for baselineModelFilePath.

Implemented in com.google.ortools.linearsolver.MPModelDeltaProto, and com.google.ortools.linearsolver.MPModelDeltaProto.Builder.

◆ getConstraintOverrides()

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

◆ getConstraintOverridesCount()

int com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.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;

Implemented in com.google.ortools.linearsolver.MPModelDeltaProto, and com.google.ortools.linearsolver.MPModelDeltaProto.Builder.

◆ getConstraintOverridesMap()

java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto > com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.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;

Implemented in com.google.ortools.linearsolver.MPModelDeltaProto, and com.google.ortools.linearsolver.MPModelDeltaProto.Builder.

◆ getConstraintOverridesOrDefault()

com.google.ortools.linearsolver.MPConstraintProto com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.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;

Implemented in com.google.ortools.linearsolver.MPModelDeltaProto, and com.google.ortools.linearsolver.MPModelDeltaProto.Builder.

◆ getConstraintOverridesOrThrow()

com.google.ortools.linearsolver.MPConstraintProto com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.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;

Implemented in com.google.ortools.linearsolver.MPModelDeltaProto, and com.google.ortools.linearsolver.MPModelDeltaProto.Builder.

◆ getVariableOverrides()

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

◆ getVariableOverridesCount()

int com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.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;

Implemented in com.google.ortools.linearsolver.MPModelDeltaProto, and com.google.ortools.linearsolver.MPModelDeltaProto.Builder.

◆ getVariableOverridesMap()

java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto > com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.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;

Implemented in com.google.ortools.linearsolver.MPModelDeltaProto, and com.google.ortools.linearsolver.MPModelDeltaProto.Builder.

◆ getVariableOverridesOrDefault()

com.google.ortools.linearsolver.MPVariableProto com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.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;

Implemented in com.google.ortools.linearsolver.MPModelDeltaProto, and com.google.ortools.linearsolver.MPModelDeltaProto.Builder.

◆ getVariableOverridesOrThrow()

com.google.ortools.linearsolver.MPVariableProto com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.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;

Implemented in com.google.ortools.linearsolver.MPModelDeltaProto, and com.google.ortools.linearsolver.MPModelDeltaProto.Builder.

◆ hasBaselineModelFilePath()

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

optional string baseline_model_file_path = 1;

Returns
Whether the baselineModelFilePath field is set.

Implemented in com.google.ortools.linearsolver.MPModelDeltaProto, and com.google.ortools.linearsolver.MPModelDeltaProto.Builder.


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