Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.sat.LinearConstraintProtoOrBuilder Interface Reference
Inheritance diagram for com.google.ortools.sat.LinearConstraintProtoOrBuilder:
com.google.ortools.sat.LinearConstraintProto com.google.ortools.sat.LinearConstraintProto.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)
 
java.util.List< java.lang.Long > getDomainList ()
 
int getDomainCount ()
 
long getDomain (int index)
 

Detailed Description

Definition at line 7 of file LinearConstraintProtoOrBuilder.java.

Member Function Documentation

◆ getCoeffs()

long com.google.ortools.sat.LinearConstraintProtoOrBuilder.getCoeffs ( int index)
Same size as vars.

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

◆ getCoeffsCount()

int com.google.ortools.sat.LinearConstraintProtoOrBuilder.getCoeffsCount ( )
Same size as vars.

repeated int64 coeffs = 2;

Returns
The count of coeffs.

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

◆ getCoeffsList()

java.util.List< java.lang.Long > com.google.ortools.sat.LinearConstraintProtoOrBuilder.getCoeffsList ( )
Same size as vars.

repeated int64 coeffs = 2;

Returns
A list containing the coeffs.

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

◆ getDomain()

long com.google.ortools.sat.LinearConstraintProtoOrBuilder.getDomain ( int index)

repeated int64 domain = 3;

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

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

◆ getDomainCount()

int com.google.ortools.sat.LinearConstraintProtoOrBuilder.getDomainCount ( )

repeated int64 domain = 3;

Returns
The count of domain.

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

◆ getDomainList()

java.util.List< java.lang.Long > com.google.ortools.sat.LinearConstraintProtoOrBuilder.getDomainList ( )

repeated int64 domain = 3;

Returns
A list containing the domain.

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

◆ getVars()

int com.google.ortools.sat.LinearConstraintProtoOrBuilder.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.LinearConstraintProto.Builder, and com.google.ortools.sat.LinearConstraintProto.

◆ getVarsCount()

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

repeated int32 vars = 1;

Returns
The count of vars.

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

◆ getVarsList()

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

repeated int32 vars = 1;

Returns
A list containing the vars.

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


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