Package com.google.ortools.linearsolver
Interface MPQuadraticObjectiveOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
MPQuadraticObjective,MPQuadraticObjective.Builder
public interface MPQuadraticObjectiveOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetCoefficient(int index)Must be finite.intgetCoefficientCount()Must be finite.java.util.List<java.lang.Double>getCoefficientList()Must be finite.intgetQvar1Index(int index)Sparse representation of quadratic terms in the objective function, where term i is qvar1_index[i] * qvar2_index[i] * coefficient[i].intgetQvar1IndexCount()Sparse representation of quadratic terms in the objective function, where term i is qvar1_index[i] * qvar2_index[i] * coefficient[i].java.util.List<java.lang.Integer>getQvar1IndexList()Sparse representation of quadratic terms in the objective function, where term i is qvar1_index[i] * qvar2_index[i] * coefficient[i].intgetQvar2Index(int index)repeated int32 qvar2_index = 2;intgetQvar2IndexCount()repeated int32 qvar2_index = 2;java.util.List<java.lang.Integer>getQvar2IndexList()repeated int32 qvar2_index = 2;-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getQvar1IndexList
java.util.List<java.lang.Integer> getQvar1IndexList()
Sparse representation of quadratic terms in the objective function, where term i is qvar1_index[i] * qvar2_index[i] * coefficient[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 = 1;- Returns:
- A list containing the qvar1Index.
-
getQvar1IndexCount
int getQvar1IndexCount()
Sparse representation of quadratic terms in the objective function, where term i is qvar1_index[i] * qvar2_index[i] * coefficient[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 = 1;- Returns:
- The count of qvar1Index.
-
getQvar1Index
int getQvar1Index(int index)
Sparse representation of quadratic terms in the objective function, where term i is qvar1_index[i] * qvar2_index[i] * coefficient[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 = 1;- Parameters:
index- The index of the element to return.- Returns:
- The qvar1Index at the given index.
-
getQvar2IndexList
java.util.List<java.lang.Integer> getQvar2IndexList()
repeated int32 qvar2_index = 2;- Returns:
- A list containing the qvar2Index.
-
getQvar2IndexCount
int getQvar2IndexCount()
repeated int32 qvar2_index = 2;- Returns:
- The count of qvar2Index.
-
getQvar2Index
int getQvar2Index(int index)
repeated int32 qvar2_index = 2;- Parameters:
index- The index of the element to return.- Returns:
- The qvar2Index at the given index.
-
getCoefficientList
java.util.List<java.lang.Double> getCoefficientList()
Must be finite.
repeated double coefficient = 3;- Returns:
- A list containing the coefficient.
-
getCoefficientCount
int getCoefficientCount()
Must be finite.
repeated double coefficient = 3;- Returns:
- The count of coefficient.
-
getCoefficient
double getCoefficient(int index)
Must be finite.
repeated double coefficient = 3;- Parameters:
index- The index of the element to return.- Returns:
- The coefficient at the given index.
-
-