Java Reference
Java Reference
Detailed Description
Definition at line 6 of file MPGeneralConstraintProtoOrBuilder.java.
Member Function Documentation
◆ getAbsConstraint()
| com.google.ortools.linearsolver.MPAbsConstraint getAbsConstraint | ( | ) |
.operations_research.MPAbsConstraint abs_constraint = 5;
- Returns
- The absConstraint.
Implemented in MPGeneralConstraintProto.Builder, and MPGeneralConstraintProto.
◆ getAbsConstraintOrBuilder()
| com.google.ortools.linearsolver.MPAbsConstraintOrBuilder getAbsConstraintOrBuilder | ( | ) |
.operations_research.MPAbsConstraint abs_constraint = 5;
Implemented in MPGeneralConstraintProto.Builder, and MPGeneralConstraintProto.
◆ getAndConstraint()
| com.google.ortools.linearsolver.MPArrayConstraint 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 MPGeneralConstraintProto.Builder, and MPGeneralConstraintProto.
◆ getAndConstraintOrBuilder()
| com.google.ortools.linearsolver.MPArrayConstraintOrBuilder 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 MPGeneralConstraintProto.Builder, and MPGeneralConstraintProto.
◆ getGeneralConstraintCase()
| com.google.ortools.linearsolver.MPGeneralConstraintProto.GeneralConstraintCase getGeneralConstraintCase | ( | ) |
Implemented in MPGeneralConstraintProto.Builder, and MPGeneralConstraintProto.
◆ getIndicatorConstraint()
| com.google.ortools.linearsolver.MPIndicatorConstraint getIndicatorConstraint | ( | ) |
.operations_research.MPIndicatorConstraint indicator_constraint = 2;
- Returns
- The indicatorConstraint.
Implemented in MPGeneralConstraintProto.Builder, and MPGeneralConstraintProto.
◆ getIndicatorConstraintOrBuilder()
| com.google.ortools.linearsolver.MPIndicatorConstraintOrBuilder getIndicatorConstraintOrBuilder | ( | ) |
.operations_research.MPIndicatorConstraint indicator_constraint = 2;
Implemented in MPGeneralConstraintProto.Builder, and MPGeneralConstraintProto.
◆ getMaxConstraint()
| com.google.ortools.linearsolver.MPArrayWithConstantConstraint getMaxConstraint | ( | ) |
resultant_var = max(var_1, var_2, ..., constant)
.operations_research.MPArrayWithConstantConstraint max_constraint = 9;
- Returns
- The maxConstraint.
Implemented in MPGeneralConstraintProto.Builder, and MPGeneralConstraintProto.
◆ getMaxConstraintOrBuilder()
| com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder getMaxConstraintOrBuilder | ( | ) |
resultant_var = max(var_1, var_2, ..., constant)
.operations_research.MPArrayWithConstantConstraint max_constraint = 9;
Implemented in MPGeneralConstraintProto.Builder, and MPGeneralConstraintProto.
◆ getMinConstraint()
| com.google.ortools.linearsolver.MPArrayWithConstantConstraint getMinConstraint | ( | ) |
resultant_var = min(var_1, var_2, ..., constant)
.operations_research.MPArrayWithConstantConstraint min_constraint = 8;
- Returns
- The minConstraint.
Implemented in MPGeneralConstraintProto.Builder, and MPGeneralConstraintProto.
◆ getMinConstraintOrBuilder()
| com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder getMinConstraintOrBuilder | ( | ) |
resultant_var = min(var_1, var_2, ..., constant)
.operations_research.MPArrayWithConstantConstraint min_constraint = 8;
Implemented in MPGeneralConstraintProto.Builder, and MPGeneralConstraintProto.
◆ getName()
| java.lang.String getName | ( | ) |
The name of the constraint.
optional string name = 1 [default = ""];
- Returns
- The name.
Implemented in MPGeneralConstraintProto.Builder, and MPGeneralConstraintProto.
◆ getNameBytes()
| com.google.protobuf.ByteString getNameBytes | ( | ) |
The name of the constraint.
optional string name = 1 [default = ""];
- Returns
- The bytes for name.
Implemented in MPGeneralConstraintProto.Builder, and MPGeneralConstraintProto.
◆ getOrConstraint()
| com.google.ortools.linearsolver.MPArrayConstraint 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 MPGeneralConstraintProto.Builder, and MPGeneralConstraintProto.
◆ getOrConstraintOrBuilder()
| com.google.ortools.linearsolver.MPArrayConstraintOrBuilder 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 MPGeneralConstraintProto.Builder, and MPGeneralConstraintProto.
◆ getQuadraticConstraint()
| com.google.ortools.linearsolver.MPQuadraticConstraint getQuadraticConstraint | ( | ) |
.operations_research.MPQuadraticConstraint quadratic_constraint = 4;
- Returns
- The quadraticConstraint.
Implemented in MPGeneralConstraintProto.Builder, and MPGeneralConstraintProto.
◆ getQuadraticConstraintOrBuilder()
| com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder getQuadraticConstraintOrBuilder | ( | ) |
.operations_research.MPQuadraticConstraint quadratic_constraint = 4;
Implemented in MPGeneralConstraintProto.Builder, and MPGeneralConstraintProto.
◆ getSosConstraint()
| com.google.ortools.linearsolver.MPSosConstraint getSosConstraint | ( | ) |
.operations_research.MPSosConstraint sos_constraint = 3;
- Returns
- The sosConstraint.
Implemented in MPGeneralConstraintProto.Builder, and MPGeneralConstraintProto.
◆ getSosConstraintOrBuilder()
| com.google.ortools.linearsolver.MPSosConstraintOrBuilder getSosConstraintOrBuilder | ( | ) |
.operations_research.MPSosConstraint sos_constraint = 3;
Implemented in MPGeneralConstraintProto.Builder, and MPGeneralConstraintProto.
◆ hasAbsConstraint()
| boolean hasAbsConstraint | ( | ) |
.operations_research.MPAbsConstraint abs_constraint = 5;
- Returns
- Whether the absConstraint field is set.
Implemented in MPGeneralConstraintProto.Builder, and MPGeneralConstraintProto.
◆ hasAndConstraint()
| boolean 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 MPGeneralConstraintProto.Builder, and MPGeneralConstraintProto.
◆ hasIndicatorConstraint()
| boolean hasIndicatorConstraint | ( | ) |
.operations_research.MPIndicatorConstraint indicator_constraint = 2;
- Returns
- Whether the indicatorConstraint field is set.
Implemented in MPGeneralConstraintProto.Builder, and MPGeneralConstraintProto.
◆ hasMaxConstraint()
| boolean hasMaxConstraint | ( | ) |
resultant_var = max(var_1, var_2, ..., constant)
.operations_research.MPArrayWithConstantConstraint max_constraint = 9;
- Returns
- Whether the maxConstraint field is set.
Implemented in MPGeneralConstraintProto.Builder, and MPGeneralConstraintProto.
◆ hasMinConstraint()
| boolean hasMinConstraint | ( | ) |
resultant_var = min(var_1, var_2, ..., constant)
.operations_research.MPArrayWithConstantConstraint min_constraint = 8;
- Returns
- Whether the minConstraint field is set.
Implemented in MPGeneralConstraintProto.Builder, and MPGeneralConstraintProto.
◆ hasName()
| boolean hasName | ( | ) |
The name of the constraint.
optional string name = 1 [default = ""];
- Returns
- Whether the name field is set.
Implemented in MPGeneralConstraintProto.Builder, and MPGeneralConstraintProto.
◆ hasOrConstraint()
| boolean 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 MPGeneralConstraintProto.Builder, and MPGeneralConstraintProto.
◆ hasQuadraticConstraint()
| boolean hasQuadraticConstraint | ( | ) |
.operations_research.MPQuadraticConstraint quadratic_constraint = 4;
- Returns
- Whether the quadraticConstraint field is set.
Implemented in MPGeneralConstraintProto.Builder, and MPGeneralConstraintProto.
◆ hasSosConstraint()
| boolean hasSosConstraint | ( | ) |
.operations_research.MPSosConstraint sos_constraint = 3;
- Returns
- Whether the sosConstraint field is set.
Implemented in MPGeneralConstraintProto.Builder, and MPGeneralConstraintProto.
The documentation for this interface was generated from the following file: