Package com.google.ortools.linearsolver
Interface MPSolutionOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
MPSolution,MPSolution.Builder
public interface MPSolutionOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and Type Method Description doublegetObjectiveValue()optional double objective_value = 1;doublegetVariableValue(int index)repeated double variable_value = 2 [packed = true];intgetVariableValueCount()repeated double variable_value = 2 [packed = true];java.util.List<java.lang.Double>getVariableValueList()repeated double variable_value = 2 [packed = true];booleanhasObjectiveValue()optional double objective_value = 1;Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasObjectiveValue
boolean hasObjectiveValue()optional double objective_value = 1;- Returns:
- Whether the objectiveValue field is set.
-
getObjectiveValue
double getObjectiveValue()optional double objective_value = 1;- Returns:
- The objectiveValue.
-
getVariableValueList
java.util.List<java.lang.Double> getVariableValueList()repeated double variable_value = 2 [packed = true];- Returns:
- A list containing the variableValue.
-
getVariableValueCount
int getVariableValueCount()repeated double variable_value = 2 [packed = true];- Returns:
- The count of variableValue.
-
getVariableValue
double getVariableValue(int index)repeated double variable_value = 2 [packed = true];- Parameters:
index- The index of the element to return.- Returns:
- The variableValue at the given index.
-