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

Public Member Functions

java.util.List< java.lang.Integer > getLiteralsList ()
 
int getLiteralsCount ()
 
int getLiterals (int index)
 
java.util.List< java.lang.Long > getCoefficientsList ()
 
int getCoefficientsCount ()
 
long getCoefficients (int index)
 
boolean hasLowerBound ()
 
long getLowerBound ()
 
boolean hasUpperBound ()
 
long getUpperBound ()
 
boolean hasName ()
 
java.lang.String getName ()
 
com.google.protobuf.ByteString getNameBytes ()
 

Detailed Description

Definition at line 7 of file LinearBooleanConstraintOrBuilder.java.

Member Function Documentation

◆ getCoefficients()

long com.google.ortools.sat.LinearBooleanConstraintOrBuilder.getCoefficients ( int index)

repeated int64 coefficients = 2;

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

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

◆ getCoefficientsCount()

int com.google.ortools.sat.LinearBooleanConstraintOrBuilder.getCoefficientsCount ( )

repeated int64 coefficients = 2;

Returns
The count of coefficients.

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

◆ getCoefficientsList()

java.util.List< java.lang.Long > com.google.ortools.sat.LinearBooleanConstraintOrBuilder.getCoefficientsList ( )

repeated int64 coefficients = 2;

Returns
A list containing the coefficients.

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

◆ getLiterals()

int com.google.ortools.sat.LinearBooleanConstraintOrBuilder.getLiterals ( int index)
Linear terms involved in this constraint.

literals[i] is the signed representation of the i-th literal of the
constraint and coefficients[i] its coefficients. The signed representation
is as follow: for a 0-based variable index x, (x + 1) represents the
variable x and -(x + 1) represents its negation.

Note that the same variable shouldn't appear twice and that zero
coefficients are not allowed.

repeated int32 literals = 1;

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

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

◆ getLiteralsCount()

int com.google.ortools.sat.LinearBooleanConstraintOrBuilder.getLiteralsCount ( )
Linear terms involved in this constraint.

literals[i] is the signed representation of the i-th literal of the
constraint and coefficients[i] its coefficients. The signed representation
is as follow: for a 0-based variable index x, (x + 1) represents the
variable x and -(x + 1) represents its negation.

Note that the same variable shouldn't appear twice and that zero
coefficients are not allowed.

repeated int32 literals = 1;

Returns
The count of literals.

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

◆ getLiteralsList()

java.util.List< java.lang.Integer > com.google.ortools.sat.LinearBooleanConstraintOrBuilder.getLiteralsList ( )
Linear terms involved in this constraint.

literals[i] is the signed representation of the i-th literal of the
constraint and coefficients[i] its coefficients. The signed representation
is as follow: for a 0-based variable index x, (x + 1) represents the
variable x and -(x + 1) represents its negation.

Note that the same variable shouldn't appear twice and that zero
coefficients are not allowed.

repeated int32 literals = 1;

Returns
A list containing the literals.

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

◆ getLowerBound()

long com.google.ortools.sat.LinearBooleanConstraintOrBuilder.getLowerBound ( )
Optional lower (resp. upper) bound of the constraint. If not present, it
means that the constraint is not bounded in this direction. The bounds
are INCLUSIVE.

optional int64 lower_bound = 3;

Returns
The lowerBound.

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

◆ getName()

java.lang.String com.google.ortools.sat.LinearBooleanConstraintOrBuilder.getName ( )
The name of this constraint.

optional string name = 5 [default = ""];

Returns
The name.

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

◆ getNameBytes()

com.google.protobuf.ByteString com.google.ortools.sat.LinearBooleanConstraintOrBuilder.getNameBytes ( )
The name of this constraint.

optional string name = 5 [default = ""];

Returns
The bytes for name.

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

◆ getUpperBound()

long com.google.ortools.sat.LinearBooleanConstraintOrBuilder.getUpperBound ( )

optional int64 upper_bound = 4;

Returns
The upperBound.

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

◆ hasLowerBound()

boolean com.google.ortools.sat.LinearBooleanConstraintOrBuilder.hasLowerBound ( )
Optional lower (resp. upper) bound of the constraint. If not present, it
means that the constraint is not bounded in this direction. The bounds
are INCLUSIVE.

optional int64 lower_bound = 3;

Returns
Whether the lowerBound field is set.

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

◆ hasName()

boolean com.google.ortools.sat.LinearBooleanConstraintOrBuilder.hasName ( )
The name of this constraint.

optional string name = 5 [default = ""];

Returns
Whether the name field is set.

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

◆ hasUpperBound()

boolean com.google.ortools.sat.LinearBooleanConstraintOrBuilder.hasUpperBound ( )

optional int64 upper_bound = 4;

Returns
Whether the upperBound field is set.

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


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