Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
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 () |
Definition at line 7 of file MPIndicatorConstraintOrBuilder.java.
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.