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

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 ()
 

Detailed Description

Definition at line 7 of file MPIndicatorConstraintOrBuilder.java.

Member Function Documentation

◆ getConstraint()

com.google.ortools.linearsolver.MPConstraintProto com.google.ortools.linearsolver.MPIndicatorConstraintOrBuilder.getConstraint ( )
The constraint activated by the indicator variable.

optional .operations_research.MPConstraintProto constraint = 3;

Returns
The constraint.

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

◆ getConstraintOrBuilder()

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, and com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.

◆ getVarIndex()

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;

Returns
The varIndex.

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

◆ getVarValue()

int com.google.ortools.linearsolver.MPIndicatorConstraintOrBuilder.getVarValue ( )
Value the above variable should take. Must be 0 or 1.

optional int32 var_value = 2;

Returns
The varValue.

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

◆ hasConstraint()

boolean com.google.ortools.linearsolver.MPIndicatorConstraintOrBuilder.hasConstraint ( )
The constraint activated by the indicator variable.

optional .operations_research.MPConstraintProto constraint = 3;

Returns
Whether the constraint field is set.

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

◆ hasVarIndex()

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;

Returns
Whether the varIndex field is set.

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

◆ hasVarValue()

boolean com.google.ortools.linearsolver.MPIndicatorConstraintOrBuilder.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 com.google.ortools.linearsolver.MPIndicatorConstraint, and com.google.ortools.linearsolver.MPIndicatorConstraint.Builder.


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