Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
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 () |
Definition at line 7 of file LinearBooleanConstraintOrBuilder.java.
long com.google.ortools.sat.LinearBooleanConstraintOrBuilder.getCoefficients | ( | int | index | ) |
repeated int64 coefficients = 2;
index | The index of the element to return. |
Implemented in com.google.ortools.sat.LinearBooleanConstraint.Builder, and com.google.ortools.sat.LinearBooleanConstraint.
int com.google.ortools.sat.LinearBooleanConstraintOrBuilder.getCoefficientsCount | ( | ) |
repeated int64 coefficients = 2;
Implemented in com.google.ortools.sat.LinearBooleanConstraint.Builder, and com.google.ortools.sat.LinearBooleanConstraint.
java.util.List< java.lang.Long > com.google.ortools.sat.LinearBooleanConstraintOrBuilder.getCoefficientsList | ( | ) |
repeated int64 coefficients = 2;
Implemented in com.google.ortools.sat.LinearBooleanConstraint.Builder, and com.google.ortools.sat.LinearBooleanConstraint.
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;
index | The index of the element to return. |
Implemented in com.google.ortools.sat.LinearBooleanConstraint.Builder, and com.google.ortools.sat.LinearBooleanConstraint.
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;
Implemented in com.google.ortools.sat.LinearBooleanConstraint.Builder, and com.google.ortools.sat.LinearBooleanConstraint.
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;
Implemented in com.google.ortools.sat.LinearBooleanConstraint.Builder, and com.google.ortools.sat.LinearBooleanConstraint.
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;
Implemented in com.google.ortools.sat.LinearBooleanConstraint.Builder, and com.google.ortools.sat.LinearBooleanConstraint.
java.lang.String com.google.ortools.sat.LinearBooleanConstraintOrBuilder.getName | ( | ) |
The name of this constraint.
optional string name = 5 [default = ""];
Implemented in com.google.ortools.sat.LinearBooleanConstraint.Builder, and com.google.ortools.sat.LinearBooleanConstraint.
com.google.protobuf.ByteString com.google.ortools.sat.LinearBooleanConstraintOrBuilder.getNameBytes | ( | ) |
The name of this constraint.
optional string name = 5 [default = ""];
Implemented in com.google.ortools.sat.LinearBooleanConstraint.Builder, and com.google.ortools.sat.LinearBooleanConstraint.
long com.google.ortools.sat.LinearBooleanConstraintOrBuilder.getUpperBound | ( | ) |
optional int64 upper_bound = 4;
Implemented in com.google.ortools.sat.LinearBooleanConstraint.Builder, and com.google.ortools.sat.LinearBooleanConstraint.
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;
Implemented in com.google.ortools.sat.LinearBooleanConstraint.Builder, and com.google.ortools.sat.LinearBooleanConstraint.
boolean com.google.ortools.sat.LinearBooleanConstraintOrBuilder.hasName | ( | ) |
The name of this constraint.
optional string name = 5 [default = ""];
Implemented in com.google.ortools.sat.LinearBooleanConstraint.Builder, and com.google.ortools.sat.LinearBooleanConstraint.
boolean com.google.ortools.sat.LinearBooleanConstraintOrBuilder.hasUpperBound | ( | ) |
optional int64 upper_bound = 4;
Implemented in com.google.ortools.sat.LinearBooleanConstraint.Builder, and com.google.ortools.sat.LinearBooleanConstraint.