![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
Definition at line 9 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 () |
| com.google.ortools.linearsolver.MPConstraintProto com.google.ortools.linearsolver.MPIndicatorConstraintOrBuilder.getConstraint | ( | ) |
The constraint activated by the indicator variable.
optional .operations_research.MPConstraintProto constraint = 3;
Implemented in com.google.ortools.linearsolver.MPIndicatorConstraint.Builder, and com.google.ortools.linearsolver.MPIndicatorConstraint.
| com.google.ortools.linearsolver.MPConstraintProtoOrBuilder com.google.ortools.linearsolver.MPIndicatorConstraintOrBuilder.getConstraintOrBuilder | ( | ) |
The constraint activated by the indicator variable.
optional .operations_research.MPConstraintProto constraint = 3;
Implemented in com.google.ortools.linearsolver.MPIndicatorConstraint.Builder, and com.google.ortools.linearsolver.MPIndicatorConstraint.
| int com.google.ortools.linearsolver.MPIndicatorConstraintOrBuilder.getVarIndex | ( | ) |
Variable index (w.r.t. the "variable" field of MPModelProto) of the Boolean variable used as indicator.
optional int32 var_index = 1;
Implemented in com.google.ortools.linearsolver.MPIndicatorConstraint.Builder, and com.google.ortools.linearsolver.MPIndicatorConstraint.
| int com.google.ortools.linearsolver.MPIndicatorConstraintOrBuilder.getVarValue | ( | ) |
Value the above variable should take. Must be 0 or 1.
optional int32 var_value = 2;
Implemented in com.google.ortools.linearsolver.MPIndicatorConstraint.Builder, and com.google.ortools.linearsolver.MPIndicatorConstraint.
| boolean com.google.ortools.linearsolver.MPIndicatorConstraintOrBuilder.hasConstraint | ( | ) |
The constraint activated by the indicator variable.
optional .operations_research.MPConstraintProto constraint = 3;
Implemented in com.google.ortools.linearsolver.MPIndicatorConstraint.Builder, and com.google.ortools.linearsolver.MPIndicatorConstraint.
| boolean com.google.ortools.linearsolver.MPIndicatorConstraintOrBuilder.hasVarIndex | ( | ) |
Variable index (w.r.t. the "variable" field of MPModelProto) of the Boolean variable used as indicator.
optional int32 var_index = 1;
Implemented in com.google.ortools.linearsolver.MPIndicatorConstraint.Builder, and com.google.ortools.linearsolver.MPIndicatorConstraint.
| boolean com.google.ortools.linearsolver.MPIndicatorConstraintOrBuilder.hasVarValue | ( | ) |
Value the above variable should take. Must be 0 or 1.
optional int32 var_value = 2;
Implemented in com.google.ortools.linearsolver.MPIndicatorConstraint.Builder, and com.google.ortools.linearsolver.MPIndicatorConstraint.