Java Reference

Java Reference

MPArrayWithConstantConstraintOrBuilder

Detailed Description

Definition at line 6 of file MPArrayWithConstantConstraintOrBuilder.java.

Public Member Functions

java.util.List< java.lang.Integer > getVarIndexList ()
 
int getVarIndexCount ()
 
int getVarIndex (int index)
 
boolean hasConstant ()
 optional double constant = 2; More...
 
double getConstant ()
 optional double constant = 2; More...
 
boolean hasResultantVarIndex ()
 optional int32 resultant_var_index = 3; More...
 
int getResultantVarIndex ()
 optional int32 resultant_var_index = 3; More...
 

Member Function Documentation

◆ getConstant()

double getConstant ( )

optional double constant = 2;

Returns
The constant.

Implemented in MPArrayWithConstantConstraint.Builder, and MPArrayWithConstantConstraint.

◆ getResultantVarIndex()

int getResultantVarIndex ( )

optional int32 resultant_var_index = 3;

Returns
The resultantVarIndex.

Implemented in MPArrayWithConstantConstraint.Builder, and MPArrayWithConstantConstraint.

◆ getVarIndex()

int getVarIndex ( int  index)
Variable indices are relative to the "variable" field in MPModelProto.
resultant_var = f(var_1, var_2, ..., constant)

repeated int32 var_index = 1;

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

Implemented in MPArrayWithConstantConstraint.Builder, and MPArrayWithConstantConstraint.

◆ getVarIndexCount()

int getVarIndexCount ( )
Variable indices are relative to the "variable" field in MPModelProto.
resultant_var = f(var_1, var_2, ..., constant)

repeated int32 var_index = 1;

Returns
The count of varIndex.

Implemented in MPArrayWithConstantConstraint.Builder, and MPArrayWithConstantConstraint.

◆ getVarIndexList()

java.util.List<java.lang.Integer> getVarIndexList ( )
Variable indices are relative to the "variable" field in MPModelProto.
resultant_var = f(var_1, var_2, ..., constant)

repeated int32 var_index = 1;

Returns
A list containing the varIndex.

Implemented in MPArrayWithConstantConstraint.Builder, and MPArrayWithConstantConstraint.

◆ hasConstant()

boolean hasConstant ( )

optional double constant = 2;

Returns
Whether the constant field is set.

Implemented in MPArrayWithConstantConstraint.Builder, and MPArrayWithConstantConstraint.

◆ hasResultantVarIndex()

boolean hasResultantVarIndex ( )

optional int32 resultant_var_index = 3;

Returns
Whether the resultantVarIndex field is set.

Implemented in MPArrayWithConstantConstraint.Builder, and MPArrayWithConstantConstraint.


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