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

Public Member Functions

java.util.List< java.lang.Integer > getVarIndexList ()
 
int getVarIndexCount ()
 
int getVarIndex (int index)
 
boolean hasResultantVarIndex ()
 
int getResultantVarIndex ()
 

Detailed Description

Definition at line 7 of file MPArrayConstraintOrBuilder.java.

Member Function Documentation

◆ getResultantVarIndex()

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

optional int32 resultant_var_index = 2;

Returns
The resultantVarIndex.

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

◆ getVarIndex()

int com.google.ortools.linearsolver.MPArrayConstraintOrBuilder.getVarIndex ( int index)
Variable indices are relative to the "variable" field in MPModelProto.

repeated int32 var_index = 1;

Parameters
indexThe index of the element to return.
Returns
The varIndex at the given index.

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

◆ getVarIndexCount()

int com.google.ortools.linearsolver.MPArrayConstraintOrBuilder.getVarIndexCount ( )
Variable indices are relative to the "variable" field in MPModelProto.

repeated int32 var_index = 1;

Returns
The count of varIndex.

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

◆ getVarIndexList()

java.util.List< java.lang.Integer > com.google.ortools.linearsolver.MPArrayConstraintOrBuilder.getVarIndexList ( )
Variable indices are relative to the "variable" field in MPModelProto.

repeated int32 var_index = 1;

Returns
A list containing the varIndex.

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

◆ hasResultantVarIndex()

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

optional int32 resultant_var_index = 2;

Returns
Whether the resultantVarIndex field is set.

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


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