Package com.google.ortools.algorithms
Interface SetCoverSolutionResponseOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SetCoverSolutionResponse,SetCoverSolutionResponse.Builder
public interface SetCoverSolutionResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiondoublegetCost()The cost of the solution, as computed by the algorithm.doubleA lower bound of the solution, as computed by the algorithm.An automatically fingerprint for the solution.An automatically fingerprint for the solution.A reference to the model the solution applies to.A reference to the model the solution applies to.intThe number of subsets that are selected in the solution.For future use.intFor future use.intgetSubset(int index) The list of the subsets selected in the solution.intThe list of the subsets selected in the solution.The list of the subsets selected in the solution.booleanhasCost()The cost of the solution, as computed by the algorithm.booleanA lower bound of the solution, as computed by the algorithm.booleanAn automatically fingerprint for the solution.booleanA reference to the model the solution applies to.booleanThe number of subsets that are selected in the solution.booleanFor future use.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
-
hasStatus
boolean hasStatus()For future use. TODO(user): Implement.
optional .operations_research.SetCoverSolutionResponse.Status status = 1;- Returns:
- Whether the status field is set.
-
getStatusValue
int getStatusValue()For future use. TODO(user): Implement.
optional .operations_research.SetCoverSolutionResponse.Status status = 1;- Returns:
- The enum numeric value on the wire for status.
-
getStatus
SetCoverSolutionResponse.Status getStatus()For future use. TODO(user): Implement.
optional .operations_research.SetCoverSolutionResponse.Status status = 1;- Returns:
- The status.
-
hasNumSubsets
boolean hasNumSubsets()The number of subsets that are selected in the solution. This is used to decompress their indices below.
optional int32 num_subsets = 2;- Returns:
- Whether the numSubsets field is set.
-
getNumSubsets
int getNumSubsets()The number of subsets that are selected in the solution. This is used to decompress their indices below.
optional int32 num_subsets = 2;- Returns:
- The numSubsets.
-
getSubsetList
The list of the subsets selected in the solution.
repeated int32 subset = 3 [packed = true];- Returns:
- A list containing the subset.
-
getSubsetCount
int getSubsetCount()The list of the subsets selected in the solution.
repeated int32 subset = 3 [packed = true];- Returns:
- The count of subset.
-
getSubset
int getSubset(int index) The list of the subsets selected in the solution.
repeated int32 subset = 3 [packed = true];- Parameters:
index- The index of the element to return.- Returns:
- The subset at the given index.
-
hasCost
boolean hasCost()The cost of the solution, as computed by the algorithm.
optional double cost = 4;- Returns:
- Whether the cost field is set.
-
getCost
double getCost()The cost of the solution, as computed by the algorithm.
optional double cost = 4;- Returns:
- The cost.
-
hasCostLowerBound
boolean hasCostLowerBound()A lower bound of the solution, as computed by the algorithm.
optional double cost_lower_bound = 5;- Returns:
- Whether the costLowerBound field is set.
-
getCostLowerBound
double getCostLowerBound()A lower bound of the solution, as computed by the algorithm.
optional double cost_lower_bound = 5;- Returns:
- The costLowerBound.
-
hasFingerprint
boolean hasFingerprint()An automatically fingerprint for the solution. TODO(user): Implement.
optional .operations_research.Int128 fingerprint = 6;- Returns:
- Whether the fingerprint field is set.
-
getFingerprint
Int128 getFingerprint()An automatically fingerprint for the solution. TODO(user): Implement.
optional .operations_research.Int128 fingerprint = 6;- Returns:
- The fingerprint.
-
getFingerprintOrBuilder
Int128OrBuilder getFingerprintOrBuilder()An automatically fingerprint for the solution. TODO(user): Implement.
optional .operations_research.Int128 fingerprint = 6; -
hasModelFingerprint
boolean hasModelFingerprint()A reference to the model the solution applies to. TODO(user): Implement.
optional .operations_research.Int128 model_fingerprint = 7;- Returns:
- Whether the modelFingerprint field is set.
-
getModelFingerprint
Int128 getModelFingerprint()A reference to the model the solution applies to. TODO(user): Implement.
optional .operations_research.Int128 model_fingerprint = 7;- Returns:
- The modelFingerprint.
-
getModelFingerprintOrBuilder
Int128OrBuilder getModelFingerprintOrBuilder()A reference to the model the solution applies to. TODO(user): Implement.
optional .operations_research.Int128 model_fingerprint = 7;
-