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

Public Member Functions

boolean hasName ()
 
java.lang.String getName ()
 
com.google.protobuf.ByteString getNameBytes ()
 
boolean hasIndicatorConstraint ()
 
com.google.ortools.linearsolver.MPIndicatorConstraint getIndicatorConstraint ()
 
com.google.ortools.linearsolver.MPIndicatorConstraintOrBuilder getIndicatorConstraintOrBuilder ()
 
boolean hasSosConstraint ()
 
com.google.ortools.linearsolver.MPSosConstraint getSosConstraint ()
 
com.google.ortools.linearsolver.MPSosConstraintOrBuilder getSosConstraintOrBuilder ()
 
boolean hasQuadraticConstraint ()
 
com.google.ortools.linearsolver.MPQuadraticConstraint getQuadraticConstraint ()
 
com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder getQuadraticConstraintOrBuilder ()
 
boolean hasAbsConstraint ()
 
com.google.ortools.linearsolver.MPAbsConstraint getAbsConstraint ()
 
com.google.ortools.linearsolver.MPAbsConstraintOrBuilder getAbsConstraintOrBuilder ()
 
boolean hasAndConstraint ()
 
com.google.ortools.linearsolver.MPArrayConstraint getAndConstraint ()
 
com.google.ortools.linearsolver.MPArrayConstraintOrBuilder getAndConstraintOrBuilder ()
 
boolean hasOrConstraint ()
 
com.google.ortools.linearsolver.MPArrayConstraint getOrConstraint ()
 
com.google.ortools.linearsolver.MPArrayConstraintOrBuilder getOrConstraintOrBuilder ()
 
boolean hasMinConstraint ()
 
com.google.ortools.linearsolver.MPArrayWithConstantConstraint getMinConstraint ()
 
com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder getMinConstraintOrBuilder ()
 
boolean hasMaxConstraint ()
 
com.google.ortools.linearsolver.MPArrayWithConstantConstraint getMaxConstraint ()
 
com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder getMaxConstraintOrBuilder ()
 
com.google.ortools.linearsolver.MPGeneralConstraintProto.GeneralConstraintCase getGeneralConstraintCase ()
 

Detailed Description

Definition at line 7 of file MPGeneralConstraintProtoOrBuilder.java.

Member Function Documentation

◆ getAbsConstraint()

com.google.ortools.linearsolver.MPAbsConstraint com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.getAbsConstraint ( )

.operations_research.MPAbsConstraint abs_constraint = 5;

Returns
The absConstraint.

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

◆ getAbsConstraintOrBuilder()

com.google.ortools.linearsolver.MPAbsConstraintOrBuilder com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.getAbsConstraintOrBuilder ( )

.operations_research.MPAbsConstraint abs_constraint = 5;

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

◆ getAndConstraint()

com.google.ortools.linearsolver.MPArrayConstraint com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.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.

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

◆ getAndConstraintOrBuilder()

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

.operations_research.MPArrayConstraint and_constraint = 6;

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

◆ getGeneralConstraintCase()

◆ getIndicatorConstraint()

com.google.ortools.linearsolver.MPIndicatorConstraint com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.getIndicatorConstraint ( )

.operations_research.MPIndicatorConstraint indicator_constraint = 2;

Returns
The indicatorConstraint.

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

◆ getIndicatorConstraintOrBuilder()

com.google.ortools.linearsolver.MPIndicatorConstraintOrBuilder com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.getIndicatorConstraintOrBuilder ( )

.operations_research.MPIndicatorConstraint indicator_constraint = 2;

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

◆ getMaxConstraint()

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

.operations_research.MPArrayWithConstantConstraint max_constraint = 9;

Returns
The maxConstraint.

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

◆ getMaxConstraintOrBuilder()

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

.operations_research.MPArrayWithConstantConstraint max_constraint = 9;

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

◆ getMinConstraint()

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

.operations_research.MPArrayWithConstantConstraint min_constraint = 8;

Returns
The minConstraint.

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

◆ getMinConstraintOrBuilder()

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

.operations_research.MPArrayWithConstantConstraint min_constraint = 8;

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

◆ getName()

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

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

Returns
The name.

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

◆ getNameBytes()

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

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

Returns
The bytes for name.

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

◆ getOrConstraint()

com.google.ortools.linearsolver.MPArrayConstraint com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.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.

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

◆ getOrConstraintOrBuilder()

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

.operations_research.MPArrayConstraint or_constraint = 7;

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

◆ getQuadraticConstraint()

com.google.ortools.linearsolver.MPQuadraticConstraint com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.getQuadraticConstraint ( )

.operations_research.MPQuadraticConstraint quadratic_constraint = 4;

Returns
The quadraticConstraint.

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

◆ getQuadraticConstraintOrBuilder()

com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.getQuadraticConstraintOrBuilder ( )

.operations_research.MPQuadraticConstraint quadratic_constraint = 4;

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

◆ getSosConstraint()

com.google.ortools.linearsolver.MPSosConstraint com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.getSosConstraint ( )

.operations_research.MPSosConstraint sos_constraint = 3;

Returns
The sosConstraint.

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

◆ getSosConstraintOrBuilder()

com.google.ortools.linearsolver.MPSosConstraintOrBuilder com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.getSosConstraintOrBuilder ( )

.operations_research.MPSosConstraint sos_constraint = 3;

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

◆ hasAbsConstraint()

boolean com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.hasAbsConstraint ( )

.operations_research.MPAbsConstraint abs_constraint = 5;

Returns
Whether the absConstraint field is set.

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

◆ hasAndConstraint()

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

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

◆ hasIndicatorConstraint()

boolean com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.hasIndicatorConstraint ( )

.operations_research.MPIndicatorConstraint indicator_constraint = 2;

Returns
Whether the indicatorConstraint field is set.

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

◆ hasMaxConstraint()

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

.operations_research.MPArrayWithConstantConstraint max_constraint = 9;

Returns
Whether the maxConstraint field is set.

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

◆ hasMinConstraint()

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

.operations_research.MPArrayWithConstantConstraint min_constraint = 8;

Returns
Whether the minConstraint field is set.

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

◆ hasName()

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

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

Returns
Whether the name field is set.

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

◆ hasOrConstraint()

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

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

◆ hasQuadraticConstraint()

boolean com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.hasQuadraticConstraint ( )

.operations_research.MPQuadraticConstraint quadratic_constraint = 4;

Returns
Whether the quadraticConstraint field is set.

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

◆ hasSosConstraint()

boolean com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder.hasSosConstraint ( )

.operations_research.MPSosConstraint sos_constraint = 3;

Returns
Whether the sosConstraint field is set.

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


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