Java Reference
Java Reference
Detailed Description
Definition at line 6 of file MPIndicatorConstraintOrBuilder.java.
Public Member Functions | |
| boolean | hasVarIndex () |
| int | getVarIndex () |
| boolean | hasVarValue () |
| int | getVarValue () |
| boolean | hasConstraint () |
| com.google.ortools.linearsolver.MPConstraintProto | getConstraint () |
| com.google.ortools.linearsolver.MPConstraintProtoOrBuilder | getConstraintOrBuilder () |
Member Function Documentation
◆ getConstraint()
| com.google.ortools.linearsolver.MPConstraintProto getConstraint | ( | ) |
The constraint activated by the indicator variable.
optional .operations_research.MPConstraintProto constraint = 3;
- Returns
- The constraint.
Implemented in MPIndicatorConstraint.Builder, and MPIndicatorConstraint.
◆ getConstraintOrBuilder()
| com.google.ortools.linearsolver.MPConstraintProtoOrBuilder getConstraintOrBuilder | ( | ) |
The constraint activated by the indicator variable.
optional .operations_research.MPConstraintProto constraint = 3;
Implemented in MPIndicatorConstraint.Builder, and MPIndicatorConstraint.
◆ getVarIndex()
| int getVarIndex | ( | ) |
Variable index (w.r.t. the "variable" field of MPModelProto) of the Boolean variable used as indicator.
optional int32 var_index = 1;
- Returns
- The varIndex.
Implemented in MPIndicatorConstraint.Builder, and MPIndicatorConstraint.
◆ getVarValue()
| int getVarValue | ( | ) |
Value the above variable should take. Must be 0 or 1.
optional int32 var_value = 2;
- Returns
- The varValue.
Implemented in MPIndicatorConstraint.Builder, and MPIndicatorConstraint.
◆ hasConstraint()
| boolean hasConstraint | ( | ) |
The constraint activated by the indicator variable.
optional .operations_research.MPConstraintProto constraint = 3;
- Returns
- Whether the constraint field is set.
Implemented in MPIndicatorConstraint.Builder, and MPIndicatorConstraint.
◆ hasVarIndex()
| boolean hasVarIndex | ( | ) |
Variable index (w.r.t. the "variable" field of MPModelProto) of the Boolean variable used as indicator.
optional int32 var_index = 1;
- Returns
- Whether the varIndex field is set.
Implemented in MPIndicatorConstraint.Builder, and MPIndicatorConstraint.
◆ hasVarValue()
| boolean hasVarValue | ( | ) |
Value the above variable should take. Must be 0 or 1.
optional int32 var_value = 2;
- Returns
- Whether the varValue field is set.
Implemented in MPIndicatorConstraint.Builder, and MPIndicatorConstraint.
The documentation for this interface was generated from the following file: