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

Public Member Functions

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

Detailed Description

Definition at line 7 of file MPArrayWithConstantConstraintOrBuilder.java.

Member Function Documentation

◆ getConstant()

double com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder.getConstant ( )

◆ getResultantVarIndex()

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

optional int32 resultant_var_index = 3;

Returns
The resultantVarIndex.

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

◆ getVarIndex()

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

◆ getVarIndexCount()

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

◆ getVarIndexList()

java.util.List< java.lang.Integer > com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder.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 com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder, and com.google.ortools.linearsolver.MPArrayWithConstantConstraint.

◆ hasConstant()

boolean com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder.hasConstant ( )

optional double constant = 2;

Returns
Whether the constant field is set.

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

◆ hasResultantVarIndex()

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

optional int32 resultant_var_index = 3;

Returns
Whether the resultantVarIndex field is set.

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


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