Google OR-Tools v9.11
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.Builder, and com.google.ortools.sat.LinearExpressionProto.

◆ getCoeffsCount()

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

repeated int64 coeffs = 2;

Returns
The count of coeffs.

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

◆ 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.Builder, and com.google.ortools.sat.LinearExpressionProto.

◆ 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.Builder, and com.google.ortools.sat.LinearExpressionProto.

◆ getVarsCount()

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

repeated int32 vars = 1;

Returns
The count of vars.

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

◆ 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.Builder, and com.google.ortools.sat.LinearExpressionProto.


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