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 Type
    Method
    Description
    boolean
    Add savings related to reverse arcs when finding the nearest neighbors of the nodes.
    double
    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
    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].
    double
    Ratio (in ]0, 1]) of neighbors to consider for each node when constructing the savings.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods 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.