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

Public Member Functions

java.util.List< java.lang.Integer > getVarsList ()
 
int getVarsCount ()
 
int getVars (int index)
 
java.util.List< java.lang.Long > getCoeffsList ()
 
int getCoeffsCount ()
 
long getCoeffs (int index)
 
long getOffset ()
 

Detailed Description

Definition at line 7 of file LinearExpressionProtoOrBuilder.java.

Member Function Documentation

◆ getCoeffs()

long com.google.ortools.sat.LinearExpressionProtoOrBuilder.getCoeffs ( int index)

repeated int64 coeffs = 2;

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

Implemented in com.google.ortools.sat.LinearExpressionProto, and com.google.ortools.sat.LinearExpressionProto.Builder.

◆ getCoeffsCount()

int com.google.ortools.sat.LinearExpressionProtoOrBuilder.getCoeffsCount ( )

repeated int64 coeffs = 2;

Returns
The count of coeffs.

Implemented in com.google.ortools.sat.LinearExpressionProto, and com.google.ortools.sat.LinearExpressionProto.Builder.

◆ getCoeffsList()

java.util.List< java.lang.Long > com.google.ortools.sat.LinearExpressionProtoOrBuilder.getCoeffsList ( )

repeated int64 coeffs = 2;

Returns
A list containing the coeffs.

Implemented in com.google.ortools.sat.LinearExpressionProto, and com.google.ortools.sat.LinearExpressionProto.Builder.

◆ getOffset()

long com.google.ortools.sat.LinearExpressionProtoOrBuilder.getOffset ( )

◆ getVars()

int com.google.ortools.sat.LinearExpressionProtoOrBuilder.getVars ( int index)

repeated int32 vars = 1;

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

Implemented in com.google.ortools.sat.LinearExpressionProto, and com.google.ortools.sat.LinearExpressionProto.Builder.

◆ getVarsCount()

int com.google.ortools.sat.LinearExpressionProtoOrBuilder.getVarsCount ( )

repeated int32 vars = 1;

Returns
The count of vars.

Implemented in com.google.ortools.sat.LinearExpressionProto, and com.google.ortools.sat.LinearExpressionProto.Builder.

◆ getVarsList()

java.util.List< java.lang.Integer > com.google.ortools.sat.LinearExpressionProtoOrBuilder.getVarsList ( )

repeated int32 vars = 1;

Returns
A list containing the vars.

Implemented in com.google.ortools.sat.LinearExpressionProto, and com.google.ortools.sat.LinearExpressionProto.Builder.


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