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

Public Member Functions

Builder clear ()
 
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
 
com.google.ortools.linearsolver.MPModelDeltaProto getDefaultInstanceForType ()
 
com.google.ortools.linearsolver.MPModelDeltaProto build ()
 
com.google.ortools.linearsolver.MPModelDeltaProto buildPartial ()
 
Builder clone ()
 
Builder setField (com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
 
Builder clearField (com.google.protobuf.Descriptors.FieldDescriptor field)
 
Builder clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)
 
Builder setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
 
Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
 
Builder mergeFrom (com.google.protobuf.Message other)
 
Builder mergeFrom (com.google.ortools.linearsolver.MPModelDeltaProto other)
 
final boolean isInitialized ()
 
Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
boolean hasBaselineModelFilePath ()
 
java.lang.String getBaselineModelFilePath ()
 
com.google.protobuf.ByteString getBaselineModelFilePathBytes ()
 
Builder setBaselineModelFilePath (java.lang.String value)
 
Builder clearBaselineModelFilePath ()
 
Builder setBaselineModelFilePathBytes (com.google.protobuf.ByteString value)
 
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)
 
Builder clearVariableOverrides ()
 
Builder removeVariableOverrides (int key)
 
java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPVariableProtogetMutableVariableOverrides ()
 
Builder putVariableOverrides (int key, com.google.ortools.linearsolver.MPVariableProto value)
 
Builder putAllVariableOverrides (java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto > values)
 
com.google.ortools.linearsolver.MPVariableProto.Builder putVariableOverridesBuilderIfAbsent (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)
 
Builder clearConstraintOverrides ()
 
Builder removeConstraintOverrides (int key)
 
java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProtogetMutableConstraintOverrides ()
 
Builder putConstraintOverrides (int key, com.google.ortools.linearsolver.MPConstraintProto value)
 
Builder putAllConstraintOverrides (java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto > values)
 
com.google.ortools.linearsolver.MPConstraintProto.Builder putConstraintOverridesBuilderIfAbsent (int key)
 
final Builder setUnknownFields (final com.google.protobuf.UnknownFieldSet unknownFields)
 
final Builder mergeUnknownFields (final com.google.protobuf.UnknownFieldSet unknownFields)
 

Static Public Member Functions

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

Protected Member Functions

com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection (int number)
 
com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection (int number)
 
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable ()
 

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

Member Function Documentation

◆ addRepeatedField()

Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.addRepeatedField ( com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value )

Definition at line 697 of file MPModelDeltaProto.java.

◆ build()

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

Definition at line 638 of file MPModelDeltaProto.java.

◆ buildPartial()

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

Definition at line 647 of file MPModelDeltaProto.java.

◆ clear()

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

Definition at line 617 of file MPModelDeltaProto.java.

◆ clearBaselineModelFilePath()

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

optional string baseline_model_file_path = 1;

Returns
This builder for chaining.

Definition at line 851 of file MPModelDeltaProto.java.

◆ clearConstraintOverrides()

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

Definition at line 1231 of file MPModelDeltaProto.java.

◆ clearField()

Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.clearField ( com.google.protobuf.Descriptors.FieldDescriptor field)

Definition at line 681 of file MPModelDeltaProto.java.

◆ clearOneof()

Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.clearOneof ( com.google.protobuf.Descriptors.OneofDescriptor oneof)

Definition at line 686 of file MPModelDeltaProto.java.

◆ clearVariableOverrides()

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

Definition at line 996 of file MPModelDeltaProto.java.

◆ clone()

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

Definition at line 671 of file MPModelDeltaProto.java.

◆ containsConstraintOverrides()

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

◆ containsVariableOverrides()

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

◆ getBaselineModelFilePath()

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

optional string baseline_model_file_path = 1;

Returns
The baselineModelFilePath.

Implements com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.

Definition at line 803 of file MPModelDeltaProto.java.

◆ getBaselineModelFilePathBytes()

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

optional string baseline_model_file_path = 1;

Returns
The bytes for baselineModelFilePath.

Implements com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.

Definition at line 822 of file MPModelDeltaProto.java.

◆ getConstraintOverrides()

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

◆ getConstraintOverridesCount()

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

◆ getConstraintOverridesMap()

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

◆ getConstraintOverridesOrDefault()

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

◆ getConstraintOverridesOrThrow()

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

◆ getDefaultInstanceForType()

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

Definition at line 633 of file MPModelDeltaProto.java.

◆ getDescriptor()

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

Definition at line 568 of file MPModelDeltaProto.java.

◆ getDescriptorForType()

com.google.protobuf.Descriptors.Descriptor com.google.ortools.linearsolver.MPModelDeltaProto.Builder.getDescriptorForType ( )

Definition at line 628 of file MPModelDeltaProto.java.

◆ getMutableConstraintOverrides()

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

Use alternate mutation accessors instead.

Definition at line 1261 of file MPModelDeltaProto.java.

◆ getMutableVariableOverrides()

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

Use alternate mutation accessors instead.

Definition at line 1026 of file MPModelDeltaProto.java.

◆ getVariableOverrides()

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

◆ getVariableOverridesCount()

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

◆ getVariableOverridesMap()

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

◆ getVariableOverridesOrDefault()

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

◆ getVariableOverridesOrThrow()

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

◆ hasBaselineModelFilePath()

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

optional string baseline_model_file_path = 1;

Returns
Whether the baselineModelFilePath field is set.

Implements com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder.

Definition at line 796 of file MPModelDeltaProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 600 of file MPModelDeltaProto.java.

◆ internalGetMapFieldReflection()

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

Definition at line 573 of file MPModelDeltaProto.java.

◆ internalGetMutableMapFieldReflection()

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

Definition at line 586 of file MPModelDeltaProto.java.

◆ isInitialized()

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

Definition at line 731 of file MPModelDeltaProto.java.

◆ mergeFrom() [1/3]

Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.mergeFrom ( com.google.ortools.linearsolver.MPModelDeltaProto other)

Definition at line 712 of file MPModelDeltaProto.java.

◆ mergeFrom() [2/3]

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

Definition at line 736 of file MPModelDeltaProto.java.

◆ mergeFrom() [3/3]

Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.mergeFrom ( com.google.protobuf.Message other)

Definition at line 703 of file MPModelDeltaProto.java.

◆ mergeUnknownFields()

final Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.mergeUnknownFields ( final com.google.protobuf.UnknownFieldSet unknownFields)

Definition at line 1347 of file MPModelDeltaProto.java.

◆ putAllConstraintOverrides()

Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.putAllConstraintOverrides ( java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto > values)
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;

Definition at line 1301 of file MPModelDeltaProto.java.

◆ putAllVariableOverrides()

Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.putAllVariableOverrides ( java.util.Map< java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto > values)
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;

Definition at line 1066 of file MPModelDeltaProto.java.

◆ putConstraintOverrides()

Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.putConstraintOverrides ( int key,
com.google.ortools.linearsolver.MPConstraintProto value )
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;

Definition at line 1278 of file MPModelDeltaProto.java.

◆ putConstraintOverridesBuilderIfAbsent()

com.google.ortools.linearsolver.MPConstraintProto.Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.putConstraintOverridesBuilderIfAbsent ( 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;

Definition at line 1326 of file MPModelDeltaProto.java.

◆ putVariableOverrides()

Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.putVariableOverrides ( int key,
com.google.ortools.linearsolver.MPVariableProto value )
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;

Definition at line 1043 of file MPModelDeltaProto.java.

◆ putVariableOverridesBuilderIfAbsent()

com.google.ortools.linearsolver.MPVariableProto.Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.putVariableOverridesBuilderIfAbsent ( 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;

Definition at line 1091 of file MPModelDeltaProto.java.

◆ removeConstraintOverrides()

Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.removeConstraintOverrides ( 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;

Definition at line 1249 of file MPModelDeltaProto.java.

◆ removeVariableOverrides()

Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.removeVariableOverrides ( 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;

Definition at line 1014 of file MPModelDeltaProto.java.

◆ setBaselineModelFilePath()

Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.setBaselineModelFilePath ( java.lang.String value)

optional string baseline_model_file_path = 1;

Parameters
valueThe baselineModelFilePath to set.
Returns
This builder for chaining.

Definition at line 839 of file MPModelDeltaProto.java.

◆ setBaselineModelFilePathBytes()

Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.setBaselineModelFilePathBytes ( com.google.protobuf.ByteString value)

optional string baseline_model_file_path = 1;

Parameters
valueThe bytes for baselineModelFilePath to set.
Returns
This builder for chaining.

Definition at line 862 of file MPModelDeltaProto.java.

◆ setField()

Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.setField ( com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value )

Definition at line 675 of file MPModelDeltaProto.java.

◆ setRepeatedField()

Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.setRepeatedField ( com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value )

Definition at line 691 of file MPModelDeltaProto.java.

◆ setUnknownFields()

final Builder com.google.ortools.linearsolver.MPModelDeltaProto.Builder.setUnknownFields ( final com.google.protobuf.UnknownFieldSet unknownFields)

Definition at line 1341 of file MPModelDeltaProto.java.


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