Java Reference
Java Reference
Detailed Description
Definition at line 6 of file MPQuadraticConstraintOrBuilder.java.
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 () |
repeated int32 qvar2_index = 4; More... | |
| int | getQvar2IndexCount () |
repeated int32 qvar2_index = 4; More... | |
| int | getQvar2Index (int index) |
repeated int32 qvar2_index = 4; More... | |
| java.util.List< java.lang.Double > | getQcoefficientList () |
| int | getQcoefficientCount () |
| double | getQcoefficient (int index) |
| boolean | hasLowerBound () |
| double | getLowerBound () |
| boolean | hasUpperBound () |
optional double upper_bound = 7 [default = inf]; More... | |
| double | getUpperBound () |
optional double upper_bound = 7 [default = inf]; More... | |
Member Function Documentation
◆ getCoefficient()
| double getCoefficient | ( | int | index | ) |
Must be finite.
repeated double coefficient = 2;
- Parameters
-
index The index of the element to return.
- Returns
- The coefficient at the given index.
Implemented in MPQuadraticConstraint.Builder, and MPQuadraticConstraint.
◆ getCoefficientCount()
| int getCoefficientCount | ( | ) |
Must be finite.
repeated double coefficient = 2;
- Returns
- The count of coefficient.
Implemented in MPQuadraticConstraint.Builder, and MPQuadraticConstraint.
◆ getCoefficientList()
| java.util.List<java.lang.Double> getCoefficientList | ( | ) |
Must be finite.
repeated double coefficient = 2;
- Returns
- A list containing the coefficient.
Implemented in MPQuadraticConstraint.Builder, and MPQuadraticConstraint.
◆ getLowerBound()
| double getLowerBound | ( | ) |
lower_bound must be <= upper_bound.
optional double lower_bound = 6 [default = -inf];
- Returns
- The lowerBound.
Implemented in MPQuadraticConstraint.Builder, and MPQuadraticConstraint.
◆ getQcoefficient()
| double getQcoefficient | ( | int | index | ) |
Must be finite.
repeated double qcoefficient = 5;
- Parameters
-
index The index of the element to return.
- Returns
- The qcoefficient at the given index.
Implemented in MPQuadraticConstraint.Builder, and MPQuadraticConstraint.
◆ getQcoefficientCount()
| int getQcoefficientCount | ( | ) |
Must be finite.
repeated double qcoefficient = 5;
- Returns
- The count of qcoefficient.
Implemented in MPQuadraticConstraint.Builder, and MPQuadraticConstraint.
◆ getQcoefficientList()
| java.util.List<java.lang.Double> getQcoefficientList | ( | ) |
Must be finite.
repeated double qcoefficient = 5;
- Returns
- A list containing the qcoefficient.
Implemented in MPQuadraticConstraint.Builder, and MPQuadraticConstraint.
◆ getQvar1Index()
| int 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;
- Parameters
-
index The index of the element to return.
- Returns
- The qvar1Index at the given index.
Implemented in MPQuadraticConstraint.Builder, and MPQuadraticConstraint.
◆ getQvar1IndexCount()
| int 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;
- Returns
- The count of qvar1Index.
Implemented in MPQuadraticConstraint.Builder, and MPQuadraticConstraint.
◆ getQvar1IndexList()
| java.util.List<java.lang.Integer> 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;
- Returns
- A list containing the qvar1Index.
Implemented in MPQuadraticConstraint.Builder, and MPQuadraticConstraint.
◆ getQvar2Index()
| int getQvar2Index | ( | int | index | ) |
repeated int32 qvar2_index = 4;
- Parameters
-
index The index of the element to return.
- Returns
- The qvar2Index at the given index.
Implemented in MPQuadraticConstraint.Builder, and MPQuadraticConstraint.
◆ getQvar2IndexCount()
| int getQvar2IndexCount | ( | ) |
repeated int32 qvar2_index = 4;
- Returns
- The count of qvar2Index.
Implemented in MPQuadraticConstraint.Builder, and MPQuadraticConstraint.
◆ getQvar2IndexList()
| java.util.List<java.lang.Integer> getQvar2IndexList | ( | ) |
repeated int32 qvar2_index = 4;
- Returns
- A list containing the qvar2Index.
Implemented in MPQuadraticConstraint.Builder, and MPQuadraticConstraint.
◆ getUpperBound()
| double getUpperBound | ( | ) |
optional double upper_bound = 7 [default = inf];
- Returns
- The upperBound.
Implemented in MPQuadraticConstraint.Builder, and MPQuadraticConstraint.
◆ getVarIndex()
| int 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;
- Parameters
-
index The index of the element to return.
- Returns
- The varIndex at the given index.
Implemented in MPQuadraticConstraint.Builder, and MPQuadraticConstraint.
◆ getVarIndexCount()
| int 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;
- Returns
- The count of varIndex.
Implemented in MPQuadraticConstraint.Builder, and MPQuadraticConstraint.
◆ getVarIndexList()
| java.util.List<java.lang.Integer> 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;
- Returns
- A list containing the varIndex.
Implemented in MPQuadraticConstraint.Builder, and MPQuadraticConstraint.
◆ hasLowerBound()
| boolean hasLowerBound | ( | ) |
lower_bound must be <= upper_bound.
optional double lower_bound = 6 [default = -inf];
- Returns
- Whether the lowerBound field is set.
Implemented in MPQuadraticConstraint.Builder, and MPQuadraticConstraint.
◆ hasUpperBound()
| boolean hasUpperBound | ( | ) |
optional double upper_bound = 7 [default = inf];
- Returns
- Whether the upperBound field is set.
Implemented in MPQuadraticConstraint.Builder, and MPQuadraticConstraint.
The documentation for this interface was generated from the following file: