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

Public Member Functions

boolean hasVarIndex ()
 
int getVarIndex ()
 
boolean hasResultantVarIndex ()
 
int getResultantVarIndex ()
 

Detailed Description

Definition at line 7 of file MPAbsConstraintOrBuilder.java.

Member Function Documentation

◆ getResultantVarIndex()

int com.google.ortools.linearsolver.MPAbsConstraintOrBuilder.getResultantVarIndex ( )

optional int32 resultant_var_index = 2;

Returns
The resultantVarIndex.

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

◆ getVarIndex()

int com.google.ortools.linearsolver.MPAbsConstraintOrBuilder.getVarIndex ( )
Variable indices are relative to the "variable" field in MPModelProto.
resultant_var = abs(var)

optional int32 var_index = 1;

Returns
The varIndex.

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

◆ hasResultantVarIndex()

boolean com.google.ortools.linearsolver.MPAbsConstraintOrBuilder.hasResultantVarIndex ( )

optional int32 resultant_var_index = 2;

Returns
Whether the resultantVarIndex field is set.

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

◆ hasVarIndex()

boolean com.google.ortools.linearsolver.MPAbsConstraintOrBuilder.hasVarIndex ( )
Variable indices are relative to the "variable" field in MPModelProto.
resultant_var = abs(var)

optional int32 var_index = 1;

Returns
Whether the varIndex field is set.

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


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