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

Public Member Functions

Builder clear ()
 
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
 
com.google.ortools.linearsolver.MPGeneralConstraintProto getDefaultInstanceForType ()
 
com.google.ortools.linearsolver.MPGeneralConstraintProto build ()
 
com.google.ortools.linearsolver.MPGeneralConstraintProto buildPartial ()
 
Builder mergeFrom (com.google.protobuf.Message other)
 
Builder mergeFrom (com.google.ortools.linearsolver.MPGeneralConstraintProto other)
 
final boolean isInitialized ()
 
Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
GeneralConstraintCase getGeneralConstraintCase ()
 
Builder clearGeneralConstraint ()
 
boolean hasName ()
 
java.lang.String getName ()
 
com.google.protobuf.ByteString getNameBytes ()
 
Builder setName (java.lang.String value)
 
Builder clearName ()
 
Builder setNameBytes (com.google.protobuf.ByteString value)
 
boolean hasIndicatorConstraint ()
 
com.google.ortools.linearsolver.MPIndicatorConstraint getIndicatorConstraint ()
 
Builder setIndicatorConstraint (com.google.ortools.linearsolver.MPIndicatorConstraint value)
 
Builder setIndicatorConstraint (com.google.ortools.linearsolver.MPIndicatorConstraint.Builder builderForValue)
 
Builder mergeIndicatorConstraint (com.google.ortools.linearsolver.MPIndicatorConstraint value)
 
Builder clearIndicatorConstraint ()
 
com.google.ortools.linearsolver.MPIndicatorConstraint.Builder getIndicatorConstraintBuilder ()
 
com.google.ortools.linearsolver.MPIndicatorConstraintOrBuilder getIndicatorConstraintOrBuilder ()
 
boolean hasSosConstraint ()
 
com.google.ortools.linearsolver.MPSosConstraint getSosConstraint ()
 
Builder setSosConstraint (com.google.ortools.linearsolver.MPSosConstraint value)
 
Builder setSosConstraint (com.google.ortools.linearsolver.MPSosConstraint.Builder builderForValue)
 
Builder mergeSosConstraint (com.google.ortools.linearsolver.MPSosConstraint value)
 
Builder clearSosConstraint ()
 
com.google.ortools.linearsolver.MPSosConstraint.Builder getSosConstraintBuilder ()
 
com.google.ortools.linearsolver.MPSosConstraintOrBuilder getSosConstraintOrBuilder ()
 
boolean hasQuadraticConstraint ()
 
com.google.ortools.linearsolver.MPQuadraticConstraint getQuadraticConstraint ()
 
Builder setQuadraticConstraint (com.google.ortools.linearsolver.MPQuadraticConstraint value)
 
Builder setQuadraticConstraint (com.google.ortools.linearsolver.MPQuadraticConstraint.Builder builderForValue)
 
Builder mergeQuadraticConstraint (com.google.ortools.linearsolver.MPQuadraticConstraint value)
 
Builder clearQuadraticConstraint ()
 
com.google.ortools.linearsolver.MPQuadraticConstraint.Builder getQuadraticConstraintBuilder ()
 
com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder getQuadraticConstraintOrBuilder ()
 
boolean hasAbsConstraint ()
 
com.google.ortools.linearsolver.MPAbsConstraint getAbsConstraint ()
 
Builder setAbsConstraint (com.google.ortools.linearsolver.MPAbsConstraint value)
 
Builder setAbsConstraint (com.google.ortools.linearsolver.MPAbsConstraint.Builder builderForValue)
 
Builder mergeAbsConstraint (com.google.ortools.linearsolver.MPAbsConstraint value)
 
Builder clearAbsConstraint ()
 
com.google.ortools.linearsolver.MPAbsConstraint.Builder getAbsConstraintBuilder ()
 
com.google.ortools.linearsolver.MPAbsConstraintOrBuilder getAbsConstraintOrBuilder ()
 
boolean hasAndConstraint ()
 
com.google.ortools.linearsolver.MPArrayConstraint getAndConstraint ()
 
Builder setAndConstraint (com.google.ortools.linearsolver.MPArrayConstraint value)
 
Builder setAndConstraint (com.google.ortools.linearsolver.MPArrayConstraint.Builder builderForValue)
 
Builder mergeAndConstraint (com.google.ortools.linearsolver.MPArrayConstraint value)
 
Builder clearAndConstraint ()
 
com.google.ortools.linearsolver.MPArrayConstraint.Builder getAndConstraintBuilder ()
 
com.google.ortools.linearsolver.MPArrayConstraintOrBuilder getAndConstraintOrBuilder ()
 
boolean hasOrConstraint ()
 
com.google.ortools.linearsolver.MPArrayConstraint getOrConstraint ()
 
Builder setOrConstraint (com.google.ortools.linearsolver.MPArrayConstraint value)
 
Builder setOrConstraint (com.google.ortools.linearsolver.MPArrayConstraint.Builder builderForValue)
 
Builder mergeOrConstraint (com.google.ortools.linearsolver.MPArrayConstraint value)
 
Builder clearOrConstraint ()
 
com.google.ortools.linearsolver.MPArrayConstraint.Builder getOrConstraintBuilder ()
 
com.google.ortools.linearsolver.MPArrayConstraintOrBuilder getOrConstraintOrBuilder ()
 
boolean hasMinConstraint ()
 
com.google.ortools.linearsolver.MPArrayWithConstantConstraint getMinConstraint ()
 
Builder setMinConstraint (com.google.ortools.linearsolver.MPArrayWithConstantConstraint value)
 
Builder setMinConstraint (com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder builderForValue)
 
Builder mergeMinConstraint (com.google.ortools.linearsolver.MPArrayWithConstantConstraint value)
 
Builder clearMinConstraint ()
 
com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder getMinConstraintBuilder ()
 
com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder getMinConstraintOrBuilder ()
 
boolean hasMaxConstraint ()
 
com.google.ortools.linearsolver.MPArrayWithConstantConstraint getMaxConstraint ()
 
Builder setMaxConstraint (com.google.ortools.linearsolver.MPArrayWithConstantConstraint value)
 
Builder setMaxConstraint (com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder builderForValue)
 
Builder mergeMaxConstraint (com.google.ortools.linearsolver.MPArrayWithConstantConstraint value)
 
Builder clearMaxConstraint ()
 
com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder getMaxConstraintBuilder ()
 
com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder getMaxConstraintOrBuilder ()
 
- Public Member Functions inherited from com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder

Static Public Member Functions

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

Protected Member Functions

com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable ()
 

Detailed Description

General constraints. See each individual proto type for more information.

Protobuf type operations_research.MPGeneralConstraintProto

Definition at line 764 of file MPGeneralConstraintProto.java.

Member Function Documentation

◆ build()

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

Definition at line 837 of file MPGeneralConstraintProto.java.

◆ buildPartial()

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

Definition at line 846 of file MPGeneralConstraintProto.java.

◆ clear()

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

Definition at line 792 of file MPGeneralConstraintProto.java.

◆ clearAbsConstraint()

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.clearAbsConstraint ( )

.operations_research.MPAbsConstraint abs_constraint = 5;

Definition at line 1688 of file MPGeneralConstraintProto.java.

◆ clearAndConstraint()

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.clearAndConstraint ( )
All variables in "and" constraints must be Boolean.
resultant_var = and(var_1, var_2... var_n)

.operations_research.MPArrayConstraint and_constraint = 6;

Definition at line 1860 of file MPGeneralConstraintProto.java.

◆ clearGeneralConstraint()

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.clearGeneralConstraint ( )

Definition at line 1065 of file MPGeneralConstraintProto.java.

◆ clearIndicatorConstraint()

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.clearIndicatorConstraint ( )

.operations_research.MPIndicatorConstraint indicator_constraint = 2;

Definition at line 1262 of file MPGeneralConstraintProto.java.

◆ clearMaxConstraint()

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.clearMaxConstraint ( )
resultant_var = max(var_1, var_2, ..., constant)

.operations_research.MPArrayWithConstantConstraint max_constraint = 9;

Definition at line 2406 of file MPGeneralConstraintProto.java.

◆ clearMinConstraint()

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.clearMinConstraint ( )
resultant_var = min(var_1, var_2, ..., constant)

.operations_research.MPArrayWithConstantConstraint min_constraint = 8;

Definition at line 2228 of file MPGeneralConstraintProto.java.

◆ clearName()

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.clearName ( )
The name of the constraint.

optional string name = 1 [default = ""];

Returns
This builder for chaining.

Definition at line 1154 of file MPGeneralConstraintProto.java.

◆ clearOrConstraint()

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.clearOrConstraint ( )
All variables in "or" constraints must be Boolean.
resultant_var = or(var_1, var_2... var_n)

.operations_research.MPArrayConstraint or_constraint = 7;

Definition at line 2047 of file MPGeneralConstraintProto.java.

◆ clearQuadraticConstraint()

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.clearQuadraticConstraint ( )

.operations_research.MPQuadraticConstraint quadratic_constraint = 4;

Definition at line 1546 of file MPGeneralConstraintProto.java.

◆ clearSosConstraint()

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.clearSosConstraint ( )

.operations_research.MPSosConstraint sos_constraint = 3;

Definition at line 1404 of file MPGeneralConstraintProto.java.

◆ getAbsConstraint()

com.google.ortools.linearsolver.MPAbsConstraint com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.getAbsConstraint ( )

.operations_research.MPAbsConstraint abs_constraint = 5;

Returns
The absConstraint.

Implements com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.

Definition at line 1619 of file MPGeneralConstraintProto.java.

◆ getAbsConstraintBuilder()

com.google.ortools.linearsolver.MPAbsConstraint.Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.getAbsConstraintBuilder ( )

.operations_research.MPAbsConstraint abs_constraint = 5;

Definition at line 1707 of file MPGeneralConstraintProto.java.

◆ getAbsConstraintOrBuilder()

com.google.ortools.linearsolver.MPAbsConstraintOrBuilder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.getAbsConstraintOrBuilder ( )

.operations_research.MPAbsConstraint abs_constraint = 5;

Implements com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.

Definition at line 1714 of file MPGeneralConstraintProto.java.

◆ getAndConstraint()

com.google.ortools.linearsolver.MPArrayConstraint com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.getAndConstraint ( )
All variables in "and" constraints must be Boolean.
resultant_var = and(var_1, var_2... var_n)

.operations_research.MPArrayConstraint and_constraint = 6;

Returns
The andConstraint.

Implements com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.

Definition at line 1771 of file MPGeneralConstraintProto.java.

◆ getAndConstraintBuilder()

com.google.ortools.linearsolver.MPArrayConstraint.Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.getAndConstraintBuilder ( )
All variables in "and" constraints must be Boolean.
resultant_var = and(var_1, var_2... var_n)

.operations_research.MPArrayConstraint and_constraint = 6;

Definition at line 1884 of file MPGeneralConstraintProto.java.

◆ getAndConstraintOrBuilder()

com.google.ortools.linearsolver.MPArrayConstraintOrBuilder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.getAndConstraintOrBuilder ( )
All variables in "and" constraints must be Boolean.
resultant_var = and(var_1, var_2... var_n)

.operations_research.MPArrayConstraint and_constraint = 6;

Implements com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.

Definition at line 1896 of file MPGeneralConstraintProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 832 of file MPGeneralConstraintProto.java.

◆ getDescriptor()

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

Definition at line 769 of file MPGeneralConstraintProto.java.

◆ getDescriptorForType()

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

Definition at line 827 of file MPGeneralConstraintProto.java.

◆ getGeneralConstraintCase()

GeneralConstraintCase com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.getGeneralConstraintCase ( )

◆ getIndicatorConstraint()

com.google.ortools.linearsolver.MPIndicatorConstraint com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.getIndicatorConstraint ( )

.operations_research.MPIndicatorConstraint indicator_constraint = 2;

Returns
The indicatorConstraint.

Implements com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.

Definition at line 1193 of file MPGeneralConstraintProto.java.

◆ getIndicatorConstraintBuilder()

com.google.ortools.linearsolver.MPIndicatorConstraint.Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.getIndicatorConstraintBuilder ( )

.operations_research.MPIndicatorConstraint indicator_constraint = 2;

Definition at line 1281 of file MPGeneralConstraintProto.java.

◆ getIndicatorConstraintOrBuilder()

com.google.ortools.linearsolver.MPIndicatorConstraintOrBuilder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.getIndicatorConstraintOrBuilder ( )

.operations_research.MPIndicatorConstraint indicator_constraint = 2;

Implements com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.

Definition at line 1288 of file MPGeneralConstraintProto.java.

◆ getMaxConstraint()

com.google.ortools.linearsolver.MPArrayWithConstantConstraint com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.getMaxConstraint ( )
resultant_var = max(var_1, var_2, ..., constant)

.operations_research.MPArrayWithConstantConstraint max_constraint = 9;

Returns
The maxConstraint.

Implements com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.

Definition at line 2321 of file MPGeneralConstraintProto.java.

◆ getMaxConstraintBuilder()

com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.getMaxConstraintBuilder ( )
resultant_var = max(var_1, var_2, ..., constant)

.operations_research.MPArrayWithConstantConstraint max_constraint = 9;

Definition at line 2429 of file MPGeneralConstraintProto.java.

◆ getMaxConstraintOrBuilder()

com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.getMaxConstraintOrBuilder ( )
resultant_var = max(var_1, var_2, ..., constant)

.operations_research.MPArrayWithConstantConstraint max_constraint = 9;

Implements com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.

Definition at line 2440 of file MPGeneralConstraintProto.java.

◆ getMinConstraint()

com.google.ortools.linearsolver.MPArrayWithConstantConstraint com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.getMinConstraint ( )
resultant_var = min(var_1, var_2, ..., constant)

.operations_research.MPArrayWithConstantConstraint min_constraint = 8;

Returns
The minConstraint.

Implements com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.

Definition at line 2143 of file MPGeneralConstraintProto.java.

◆ getMinConstraintBuilder()

com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.getMinConstraintBuilder ( )
resultant_var = min(var_1, var_2, ..., constant)

.operations_research.MPArrayWithConstantConstraint min_constraint = 8;

Definition at line 2251 of file MPGeneralConstraintProto.java.

◆ getMinConstraintOrBuilder()

com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.getMinConstraintOrBuilder ( )
resultant_var = min(var_1, var_2, ..., constant)

.operations_research.MPArrayWithConstantConstraint min_constraint = 8;

Implements com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.

Definition at line 2262 of file MPGeneralConstraintProto.java.

◆ getName()

java.lang.String com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.getName ( )
The name of the constraint.

optional string name = 1 [default = ""];

Returns
The name.

Implements com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.

Definition at line 1094 of file MPGeneralConstraintProto.java.

◆ getNameBytes()

com.google.protobuf.ByteString com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.getNameBytes ( )
The name of the constraint.

optional string name = 1 [default = ""];

Returns
The bytes for name.

Implements com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.

Definition at line 1117 of file MPGeneralConstraintProto.java.

◆ getOrConstraint()

com.google.ortools.linearsolver.MPArrayConstraint com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.getOrConstraint ( )
All variables in "or" constraints must be Boolean.
resultant_var = or(var_1, var_2... var_n)

.operations_research.MPArrayConstraint or_constraint = 7;

Returns
The orConstraint.

Implements com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.

Definition at line 1958 of file MPGeneralConstraintProto.java.

◆ getOrConstraintBuilder()

com.google.ortools.linearsolver.MPArrayConstraint.Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.getOrConstraintBuilder ( )
All variables in "or" constraints must be Boolean.
resultant_var = or(var_1, var_2... var_n)

.operations_research.MPArrayConstraint or_constraint = 7;

Definition at line 2071 of file MPGeneralConstraintProto.java.

◆ getOrConstraintOrBuilder()

com.google.ortools.linearsolver.MPArrayConstraintOrBuilder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.getOrConstraintOrBuilder ( )
All variables in "or" constraints must be Boolean.
resultant_var = or(var_1, var_2... var_n)

.operations_research.MPArrayConstraint or_constraint = 7;

Implements com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.

Definition at line 2083 of file MPGeneralConstraintProto.java.

◆ getQuadraticConstraint()

com.google.ortools.linearsolver.MPQuadraticConstraint com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.getQuadraticConstraint ( )

.operations_research.MPQuadraticConstraint quadratic_constraint = 4;

Returns
The quadraticConstraint.

Implements com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.

Definition at line 1477 of file MPGeneralConstraintProto.java.

◆ getQuadraticConstraintBuilder()

com.google.ortools.linearsolver.MPQuadraticConstraint.Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.getQuadraticConstraintBuilder ( )

.operations_research.MPQuadraticConstraint quadratic_constraint = 4;

Definition at line 1565 of file MPGeneralConstraintProto.java.

◆ getQuadraticConstraintOrBuilder()

com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.getQuadraticConstraintOrBuilder ( )

.operations_research.MPQuadraticConstraint quadratic_constraint = 4;

Implements com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.

Definition at line 1572 of file MPGeneralConstraintProto.java.

◆ getSosConstraint()

com.google.ortools.linearsolver.MPSosConstraint com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.getSosConstraint ( )

.operations_research.MPSosConstraint sos_constraint = 3;

Returns
The sosConstraint.

Implements com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.

Definition at line 1335 of file MPGeneralConstraintProto.java.

◆ getSosConstraintBuilder()

com.google.ortools.linearsolver.MPSosConstraint.Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.getSosConstraintBuilder ( )

.operations_research.MPSosConstraint sos_constraint = 3;

Definition at line 1423 of file MPGeneralConstraintProto.java.

◆ getSosConstraintOrBuilder()

com.google.ortools.linearsolver.MPSosConstraintOrBuilder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.getSosConstraintOrBuilder ( )

.operations_research.MPSosConstraint sos_constraint = 3;

Implements com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.

Definition at line 1430 of file MPGeneralConstraintProto.java.

◆ hasAbsConstraint()

boolean com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.hasAbsConstraint ( )

.operations_research.MPAbsConstraint abs_constraint = 5;

Returns
Whether the absConstraint field is set.

Implements com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.

Definition at line 1611 of file MPGeneralConstraintProto.java.

◆ hasAndConstraint()

boolean com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.hasAndConstraint ( )
All variables in "and" constraints must be Boolean.
resultant_var = and(var_1, var_2... var_n)

.operations_research.MPArrayConstraint and_constraint = 6;

Returns
Whether the andConstraint field is set.

Implements com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.

Definition at line 1758 of file MPGeneralConstraintProto.java.

◆ hasIndicatorConstraint()

boolean com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.hasIndicatorConstraint ( )

.operations_research.MPIndicatorConstraint indicator_constraint = 2;

Returns
Whether the indicatorConstraint field is set.

Implements com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.

Definition at line 1185 of file MPGeneralConstraintProto.java.

◆ hasMaxConstraint()

boolean com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.hasMaxConstraint ( )
resultant_var = max(var_1, var_2, ..., constant)

.operations_research.MPArrayWithConstantConstraint max_constraint = 9;

Returns
Whether the maxConstraint field is set.

Implements com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.

Definition at line 2309 of file MPGeneralConstraintProto.java.

◆ hasMinConstraint()

boolean com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.hasMinConstraint ( )
resultant_var = min(var_1, var_2, ..., constant)

.operations_research.MPArrayWithConstantConstraint min_constraint = 8;

Returns
Whether the minConstraint field is set.

Implements com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.

Definition at line 2131 of file MPGeneralConstraintProto.java.

◆ hasName()

boolean com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.hasName ( )
The name of the constraint.

optional string name = 1 [default = ""];

Returns
Whether the name field is set.

Implements com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.

Definition at line 1083 of file MPGeneralConstraintProto.java.

◆ hasOrConstraint()

boolean com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.hasOrConstraint ( )
All variables in "or" constraints must be Boolean.
resultant_var = or(var_1, var_2... var_n)

.operations_research.MPArrayConstraint or_constraint = 7;

Returns
Whether the orConstraint field is set.

Implements com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.

Definition at line 1945 of file MPGeneralConstraintProto.java.

◆ hasQuadraticConstraint()

boolean com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.hasQuadraticConstraint ( )

.operations_research.MPQuadraticConstraint quadratic_constraint = 4;

Returns
Whether the quadraticConstraint field is set.

Implements com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.

Definition at line 1469 of file MPGeneralConstraintProto.java.

◆ hasSosConstraint()

boolean com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.hasSosConstraint ( )

.operations_research.MPSosConstraint sos_constraint = 3;

Returns
Whether the sosConstraint field is set.

Implements com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.

Definition at line 1327 of file MPGeneralConstraintProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 775 of file MPGeneralConstraintProto.java.

◆ isInitialized()

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

Definition at line 961 of file MPGeneralConstraintProto.java.

◆ mergeAbsConstraint()

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.mergeAbsConstraint ( com.google.ortools.linearsolver.MPAbsConstraint value)

.operations_research.MPAbsConstraint abs_constraint = 5;

Definition at line 1665 of file MPGeneralConstraintProto.java.

◆ mergeAndConstraint()

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.mergeAndConstraint ( com.google.ortools.linearsolver.MPArrayConstraint value)
All variables in "and" constraints must be Boolean.
resultant_var = and(var_1, var_2... var_n)

.operations_research.MPArrayConstraint and_constraint = 6;

Definition at line 1832 of file MPGeneralConstraintProto.java.

◆ mergeFrom() [1/3]

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

Definition at line 911 of file MPGeneralConstraintProto.java.

◆ mergeFrom() [2/3]

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

Definition at line 966 of file MPGeneralConstraintProto.java.

◆ mergeFrom() [3/3]

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

Definition at line 902 of file MPGeneralConstraintProto.java.

◆ mergeIndicatorConstraint()

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.mergeIndicatorConstraint ( com.google.ortools.linearsolver.MPIndicatorConstraint value)

.operations_research.MPIndicatorConstraint indicator_constraint = 2;

Definition at line 1239 of file MPGeneralConstraintProto.java.

◆ mergeMaxConstraint()

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.mergeMaxConstraint ( com.google.ortools.linearsolver.MPArrayWithConstantConstraint value)
resultant_var = max(var_1, var_2, ..., constant)

.operations_research.MPArrayWithConstantConstraint max_constraint = 9;

Definition at line 2379 of file MPGeneralConstraintProto.java.

◆ mergeMinConstraint()

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.mergeMinConstraint ( com.google.ortools.linearsolver.MPArrayWithConstantConstraint value)
resultant_var = min(var_1, var_2, ..., constant)

.operations_research.MPArrayWithConstantConstraint min_constraint = 8;

Definition at line 2201 of file MPGeneralConstraintProto.java.

◆ mergeOrConstraint()

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.mergeOrConstraint ( com.google.ortools.linearsolver.MPArrayConstraint value)
All variables in "or" constraints must be Boolean.
resultant_var = or(var_1, var_2... var_n)

.operations_research.MPArrayConstraint or_constraint = 7;

Definition at line 2019 of file MPGeneralConstraintProto.java.

◆ mergeQuadraticConstraint()

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.mergeQuadraticConstraint ( com.google.ortools.linearsolver.MPQuadraticConstraint value)

.operations_research.MPQuadraticConstraint quadratic_constraint = 4;

Definition at line 1523 of file MPGeneralConstraintProto.java.

◆ mergeSosConstraint()

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.mergeSosConstraint ( com.google.ortools.linearsolver.MPSosConstraint value)

.operations_research.MPSosConstraint sos_constraint = 3;

Definition at line 1381 of file MPGeneralConstraintProto.java.

◆ setAbsConstraint() [1/2]

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.setAbsConstraint ( com.google.ortools.linearsolver.MPAbsConstraint value)

.operations_research.MPAbsConstraint abs_constraint = 5;

Definition at line 1635 of file MPGeneralConstraintProto.java.

◆ setAbsConstraint() [2/2]

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.setAbsConstraint ( com.google.ortools.linearsolver.MPAbsConstraint.Builder builderForValue)

.operations_research.MPAbsConstraint abs_constraint = 5;

Definition at line 1651 of file MPGeneralConstraintProto.java.

◆ setAndConstraint() [1/2]

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.setAndConstraint ( com.google.ortools.linearsolver.MPArrayConstraint value)
All variables in "and" constraints must be Boolean.
resultant_var = and(var_1, var_2... var_n)

.operations_research.MPArrayConstraint and_constraint = 6;

Definition at line 1792 of file MPGeneralConstraintProto.java.

◆ setAndConstraint() [2/2]

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.setAndConstraint ( com.google.ortools.linearsolver.MPArrayConstraint.Builder builderForValue)
All variables in "and" constraints must be Boolean.
resultant_var = and(var_1, var_2... var_n)

.operations_research.MPArrayConstraint and_constraint = 6;

Definition at line 1813 of file MPGeneralConstraintProto.java.

◆ setIndicatorConstraint() [1/2]

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.setIndicatorConstraint ( com.google.ortools.linearsolver.MPIndicatorConstraint value)

.operations_research.MPIndicatorConstraint indicator_constraint = 2;

Definition at line 1209 of file MPGeneralConstraintProto.java.

◆ setIndicatorConstraint() [2/2]

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.setIndicatorConstraint ( com.google.ortools.linearsolver.MPIndicatorConstraint.Builder builderForValue)

.operations_research.MPIndicatorConstraint indicator_constraint = 2;

Definition at line 1225 of file MPGeneralConstraintProto.java.

◆ setMaxConstraint() [1/2]

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.setMaxConstraint ( com.google.ortools.linearsolver.MPArrayWithConstantConstraint value)
resultant_var = max(var_1, var_2, ..., constant)

.operations_research.MPArrayWithConstantConstraint max_constraint = 9;

Definition at line 2341 of file MPGeneralConstraintProto.java.

◆ setMaxConstraint() [2/2]

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.setMaxConstraint ( com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder builderForValue)
resultant_var = max(var_1, var_2, ..., constant)

.operations_research.MPArrayWithConstantConstraint max_constraint = 9;

Definition at line 2361 of file MPGeneralConstraintProto.java.

◆ setMinConstraint() [1/2]

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.setMinConstraint ( com.google.ortools.linearsolver.MPArrayWithConstantConstraint value)
resultant_var = min(var_1, var_2, ..., constant)

.operations_research.MPArrayWithConstantConstraint min_constraint = 8;

Definition at line 2163 of file MPGeneralConstraintProto.java.

◆ setMinConstraint() [2/2]

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.setMinConstraint ( com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder builderForValue)
resultant_var = min(var_1, var_2, ..., constant)

.operations_research.MPArrayWithConstantConstraint min_constraint = 8;

Definition at line 2183 of file MPGeneralConstraintProto.java.

◆ setName()

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.setName ( java.lang.String value)
The name of the constraint.

optional string name = 1 [default = ""];

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

Definition at line 1138 of file MPGeneralConstraintProto.java.

◆ setNameBytes()

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.setNameBytes ( com.google.protobuf.ByteString value)
The name of the constraint.

optional string name = 1 [default = ""];

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

Definition at line 1169 of file MPGeneralConstraintProto.java.

◆ setOrConstraint() [1/2]

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.setOrConstraint ( com.google.ortools.linearsolver.MPArrayConstraint value)
All variables in "or" constraints must be Boolean.
resultant_var = or(var_1, var_2... var_n)

.operations_research.MPArrayConstraint or_constraint = 7;

Definition at line 1979 of file MPGeneralConstraintProto.java.

◆ setOrConstraint() [2/2]

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.setOrConstraint ( com.google.ortools.linearsolver.MPArrayConstraint.Builder builderForValue)
All variables in "or" constraints must be Boolean.
resultant_var = or(var_1, var_2... var_n)

.operations_research.MPArrayConstraint or_constraint = 7;

Definition at line 2000 of file MPGeneralConstraintProto.java.

◆ setQuadraticConstraint() [1/2]

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.setQuadraticConstraint ( com.google.ortools.linearsolver.MPQuadraticConstraint value)

.operations_research.MPQuadraticConstraint quadratic_constraint = 4;

Definition at line 1493 of file MPGeneralConstraintProto.java.

◆ setQuadraticConstraint() [2/2]

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.setQuadraticConstraint ( com.google.ortools.linearsolver.MPQuadraticConstraint.Builder builderForValue)

.operations_research.MPQuadraticConstraint quadratic_constraint = 4;

Definition at line 1509 of file MPGeneralConstraintProto.java.

◆ setSosConstraint() [1/2]

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.setSosConstraint ( com.google.ortools.linearsolver.MPSosConstraint value)

.operations_research.MPSosConstraint sos_constraint = 3;

Definition at line 1351 of file MPGeneralConstraintProto.java.

◆ setSosConstraint() [2/2]

Builder com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.setSosConstraint ( com.google.ortools.linearsolver.MPSosConstraint.Builder builderForValue)

.operations_research.MPSosConstraint sos_constraint = 3;

Definition at line 1367 of file MPGeneralConstraintProto.java.


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