Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Public Member Functions | |
java.util.List< java.lang.Integer > | getVarIndexList () |
int | getVarIndexCount () |
int | getVarIndex (int index) |
java.util.List< java.lang.Double > | getCoefficientList () |
int | getCoefficientCount () |
double | getCoefficient (int index) |
java.util.List< java.lang.Integer > | getQvar1IndexList () |
int | getQvar1IndexCount () |
int | getQvar1Index (int index) |
java.util.List< java.lang.Integer > | getQvar2IndexList () |
int | getQvar2IndexCount () |
int | getQvar2Index (int index) |
java.util.List< java.lang.Double > | getQcoefficientList () |
int | getQcoefficientCount () |
double | getQcoefficient (int index) |
boolean | hasLowerBound () |
double | getLowerBound () |
boolean | hasUpperBound () |
double | getUpperBound () |
Definition at line 7 of file MPQuadraticConstraintOrBuilder.java.
double com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder.getCoefficient | ( | int | index | ) |
Must be finite.
repeated double coefficient = 2;
index | The index of the element to return. |
Implemented in com.google.ortools.linearsolver.MPQuadraticConstraint.Builder, and com.google.ortools.linearsolver.MPQuadraticConstraint.
int com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder.getCoefficientCount | ( | ) |
Must be finite.
repeated double coefficient = 2;
Implemented in com.google.ortools.linearsolver.MPQuadraticConstraint.Builder, and com.google.ortools.linearsolver.MPQuadraticConstraint.
java.util.List< java.lang.Double > com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder.getCoefficientList | ( | ) |
Must be finite.
repeated double coefficient = 2;
Implemented in com.google.ortools.linearsolver.MPQuadraticConstraint.Builder, and com.google.ortools.linearsolver.MPQuadraticConstraint.
double com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder.getLowerBound | ( | ) |
lower_bound must be <= upper_bound.
optional double lower_bound = 6 [default = -inf];
Implemented in com.google.ortools.linearsolver.MPQuadraticConstraint.Builder, and com.google.ortools.linearsolver.MPQuadraticConstraint.
double com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder.getQcoefficient | ( | int | index | ) |
Must be finite.
repeated double qcoefficient = 5;
index | The index of the element to return. |
Implemented in com.google.ortools.linearsolver.MPQuadraticConstraint.Builder, and com.google.ortools.linearsolver.MPQuadraticConstraint.
int com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder.getQcoefficientCount | ( | ) |
Must be finite.
repeated double qcoefficient = 5;
Implemented in com.google.ortools.linearsolver.MPQuadraticConstraint.Builder, and com.google.ortools.linearsolver.MPQuadraticConstraint.
java.util.List< java.lang.Double > com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder.getQcoefficientList | ( | ) |
Must be finite.
repeated double qcoefficient = 5;
Implemented in com.google.ortools.linearsolver.MPQuadraticConstraint.Builder, and com.google.ortools.linearsolver.MPQuadraticConstraint.
int com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder.getQvar1Index | ( | int | index | ) |
Sparse representation of quadratic terms in the quadratic constraint, where term i is qvar1_index[i] * qvar2_index[i] * qcoefficient[i]. `qvar1_index` and `qvar2_index` are variable indices w.r.t the "variable" field in MPModelProto. `qvar1_index`, `qvar2_index` and `coefficients` must have the same size. If the same unordered pair (qvar1_index, qvar2_index) appears several times, the sum of all of the associated coefficients will be applied.
repeated int32 qvar1_index = 3;
index | The index of the element to return. |
Implemented in com.google.ortools.linearsolver.MPQuadraticConstraint.Builder, and com.google.ortools.linearsolver.MPQuadraticConstraint.
int com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder.getQvar1IndexCount | ( | ) |
Sparse representation of quadratic terms in the quadratic constraint, where term i is qvar1_index[i] * qvar2_index[i] * qcoefficient[i]. `qvar1_index` and `qvar2_index` are variable indices w.r.t the "variable" field in MPModelProto. `qvar1_index`, `qvar2_index` and `coefficients` must have the same size. If the same unordered pair (qvar1_index, qvar2_index) appears several times, the sum of all of the associated coefficients will be applied.
repeated int32 qvar1_index = 3;
Implemented in com.google.ortools.linearsolver.MPQuadraticConstraint.Builder, and com.google.ortools.linearsolver.MPQuadraticConstraint.
java.util.List< java.lang.Integer > com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder.getQvar1IndexList | ( | ) |
Sparse representation of quadratic terms in the quadratic constraint, where term i is qvar1_index[i] * qvar2_index[i] * qcoefficient[i]. `qvar1_index` and `qvar2_index` are variable indices w.r.t the "variable" field in MPModelProto. `qvar1_index`, `qvar2_index` and `coefficients` must have the same size. If the same unordered pair (qvar1_index, qvar2_index) appears several times, the sum of all of the associated coefficients will be applied.
repeated int32 qvar1_index = 3;
Implemented in com.google.ortools.linearsolver.MPQuadraticConstraint.Builder, and com.google.ortools.linearsolver.MPQuadraticConstraint.
int com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder.getQvar2Index | ( | int | index | ) |
repeated int32 qvar2_index = 4;
index | The index of the element to return. |
Implemented in com.google.ortools.linearsolver.MPQuadraticConstraint.Builder, and com.google.ortools.linearsolver.MPQuadraticConstraint.
int com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder.getQvar2IndexCount | ( | ) |
repeated int32 qvar2_index = 4;
Implemented in com.google.ortools.linearsolver.MPQuadraticConstraint.Builder, and com.google.ortools.linearsolver.MPQuadraticConstraint.
java.util.List< java.lang.Integer > com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder.getQvar2IndexList | ( | ) |
repeated int32 qvar2_index = 4;
Implemented in com.google.ortools.linearsolver.MPQuadraticConstraint.Builder, and com.google.ortools.linearsolver.MPQuadraticConstraint.
double com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder.getUpperBound | ( | ) |
optional double upper_bound = 7 [default = inf];
Implemented in com.google.ortools.linearsolver.MPQuadraticConstraint.Builder, and com.google.ortools.linearsolver.MPQuadraticConstraint.
int com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder.getVarIndex | ( | int | index | ) |
Sparse representation of linear terms in the quadratic constraint, where term i is var_index[i] * coefficient[i]. `var_index` are variable indices w.r.t the "variable" field in MPModelProto, and should be unique.
repeated int32 var_index = 1;
index | The index of the element to return. |
Implemented in com.google.ortools.linearsolver.MPQuadraticConstraint.Builder, and com.google.ortools.linearsolver.MPQuadraticConstraint.
int com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder.getVarIndexCount | ( | ) |
Sparse representation of linear terms in the quadratic constraint, where term i is var_index[i] * coefficient[i]. `var_index` are variable indices w.r.t the "variable" field in MPModelProto, and should be unique.
repeated int32 var_index = 1;
Implemented in com.google.ortools.linearsolver.MPQuadraticConstraint.Builder, and com.google.ortools.linearsolver.MPQuadraticConstraint.
java.util.List< java.lang.Integer > com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder.getVarIndexList | ( | ) |
Sparse representation of linear terms in the quadratic constraint, where term i is var_index[i] * coefficient[i]. `var_index` are variable indices w.r.t the "variable" field in MPModelProto, and should be unique.
repeated int32 var_index = 1;
Implemented in com.google.ortools.linearsolver.MPQuadraticConstraint.Builder, and com.google.ortools.linearsolver.MPQuadraticConstraint.
boolean com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder.hasLowerBound | ( | ) |
lower_bound must be <= upper_bound.
optional double lower_bound = 6 [default = -inf];
Implemented in com.google.ortools.linearsolver.MPQuadraticConstraint.Builder, and com.google.ortools.linearsolver.MPQuadraticConstraint.
boolean com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder.hasUpperBound | ( | ) |
optional double upper_bound = 7 [default = inf];
Implemented in com.google.ortools.linearsolver.MPQuadraticConstraint.Builder, and com.google.ortools.linearsolver.MPQuadraticConstraint.