public interface MPQuadraticConstraintOrBuilder
extends com.google.protobuf.MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
double |
getCoefficient(int index)
Must be finite.
|
int |
getCoefficientCount()
Must be finite.
|
java.util.List<java.lang.Double> |
getCoefficientList()
Must be finite.
|
double |
getLowerBound()
lower_bound must be <= upper_bound.
|
double |
getQcoefficient(int index)
Must be finite.
|
int |
getQcoefficientCount()
Must be finite.
|
java.util.List<java.lang.Double> |
getQcoefficientList()
Must be finite.
|
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].
|
int |
getQvar1IndexCount()
Sparse representation of quadratic terms in the quadratic constraint, where
term i is qvar1_index[i] * qvar2_index[i] * qcoefficient[i].
|
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].
|
int |
getQvar2Index(int index)
repeated int32 qvar2_index = 4; |
int |
getQvar2IndexCount()
repeated int32 qvar2_index = 4; |
java.util.List<java.lang.Integer> |
getQvar2IndexList()
repeated int32 qvar2_index = 4; |
double |
getUpperBound()
optional double upper_bound = 7 [default = inf]; |
int |
getVarIndex(int index)
Sparse representation of linear terms in the quadratic constraint, where
term i is var_index[i] * coefficient[i].
|
int |
getVarIndexCount()
Sparse representation of linear terms in the quadratic constraint, where
term i is var_index[i] * coefficient[i].
|
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].
|
boolean |
hasLowerBound()
lower_bound must be <= upper_bound.
|
boolean |
hasUpperBound()
optional double upper_bound = 7 [default = inf]; |
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
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;
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;
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;
index
- The index of the element to return.java.util.List<java.lang.Double> getCoefficientList()
Must be finite.
repeated double coefficient = 2;
int getCoefficientCount()
Must be finite.
repeated double coefficient = 2;
double getCoefficient(int index)
Must be finite.
repeated double coefficient = 2;
index
- The index of the element to return.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;
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;
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;
index
- The index of the element to return.java.util.List<java.lang.Integer> getQvar2IndexList()
repeated int32 qvar2_index = 4;
int getQvar2IndexCount()
repeated int32 qvar2_index = 4;
int getQvar2Index(int index)
repeated int32 qvar2_index = 4;
index
- The index of the element to return.java.util.List<java.lang.Double> getQcoefficientList()
Must be finite.
repeated double qcoefficient = 5;
int getQcoefficientCount()
Must be finite.
repeated double qcoefficient = 5;
double getQcoefficient(int index)
Must be finite.
repeated double qcoefficient = 5;
index
- The index of the element to return.boolean hasLowerBound()
lower_bound must be <= upper_bound.
optional double lower_bound = 6 [default = -inf];
double getLowerBound()
lower_bound must be <= upper_bound.
optional double lower_bound = 6 [default = -inf];
boolean hasUpperBound()
optional double upper_bound = 7 [default = inf];
double getUpperBound()
optional double upper_bound = 7 [default = inf];
Copyright © 2025. All rights reserved.