Interface SavingsParametersOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SavingsParameters, SavingsParameters.Builder
@Generated
public interface SavingsParametersOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd savings related to reverse arcs when finding the nearest neighbors of the nodes.doubleCoefficient of the cost of the arc for which the saving value is being computed: Saving(a-->b) = Cost(a-->end) + Cost(start-->b) - arc_coefficient * Cost(a-->b) This parameter must be greater than 0, and its default value is 1.doubleThe number of neighbors considered for each node in the Savings heuristic is chosen so that the space used to store the savings doesn't exceed max_memory_usage_bytes, which must be in ]0, 1e10].doubleRatio (in ]0, 1]) of neighbors to consider for each node when constructing the savings.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
-
getNeighborsRatio
double getNeighborsRatio()Ratio (in ]0, 1]) of neighbors to consider for each node when constructing the savings. If unspecified, its value is considered to be 1.0.
double neighbors_ratio = 1;- Returns:
- The neighborsRatio.
-
getMaxMemoryUsageBytes
double getMaxMemoryUsageBytes()The number of neighbors considered for each node in the Savings heuristic is chosen so that the space used to store the savings doesn't exceed max_memory_usage_bytes, which must be in ]0, 1e10]. NOTE: If both neighbors_ratio and max_memory_usage_bytes are specified, the number of neighbors considered for each node will be the minimum of the two numbers determined by these parameters.
double max_memory_usage_bytes = 2;- Returns:
- The maxMemoryUsageBytes.
-
getAddReverseArcs
boolean getAddReverseArcs()Add savings related to reverse arcs when finding the nearest neighbors of the nodes.
bool add_reverse_arcs = 3;- Returns:
- The addReverseArcs.
-
getArcCoefficient
double getArcCoefficient()Coefficient of the cost of the arc for which the saving value is being computed: Saving(a-->b) = Cost(a-->end) + Cost(start-->b) - arc_coefficient * Cost(a-->b) This parameter must be greater than 0, and its default value is 1.
double arc_coefficient = 4;- Returns:
- The arcCoefficient.
-