Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
|
Public Member Functions | |
boolean | hasCost () |
double | getCost () |
java.util.List< java.lang.Integer > | getElementList () |
int | getElementCount () |
int | getElement (int index) |
Definition at line 44 of file SetCoverProto.java.
double com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder.getCost | ( | ) |
The cost for using the given subset.
optional double cost = 1;
Implemented in com.google.ortools.algorithms.SetCoverProto.Subset, and com.google.ortools.algorithms.SetCoverProto.Subset.Builder.
int com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder.getElement | ( | int | index | ) |
The list of elements in the subset.
repeated int32 element = 2 [packed = true];
index | The index of the element to return. |
Implemented in com.google.ortools.algorithms.SetCoverProto.Subset, and com.google.ortools.algorithms.SetCoverProto.Subset.Builder.
int com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder.getElementCount | ( | ) |
The list of elements in the subset.
repeated int32 element = 2 [packed = true];
Implemented in com.google.ortools.algorithms.SetCoverProto.Subset, and com.google.ortools.algorithms.SetCoverProto.Subset.Builder.
java.util.List< java.lang.Integer > com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder.getElementList | ( | ) |
The list of elements in the subset.
repeated int32 element = 2 [packed = true];
Implemented in com.google.ortools.algorithms.SetCoverProto.Subset, and com.google.ortools.algorithms.SetCoverProto.Subset.Builder.
boolean com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder.hasCost | ( | ) |
The cost for using the given subset.
optional double cost = 1;
Implemented in com.google.ortools.algorithms.SetCoverProto.Subset, and com.google.ortools.algorithms.SetCoverProto.Subset.Builder.