Enum RoutingSearchParameters.InsertionSortingProperty
java.lang.Object
java.lang.Enum<RoutingSearchParameters.InsertionSortingProperty>
com.google.ortools.constraintsolver.RoutingSearchParameters.InsertionSortingProperty
- All Implemented Interfaces:
- com.google.protobuf.Internal.EnumLite,- com.google.protobuf.ProtocolMessageEnum,- Serializable,- Comparable<RoutingSearchParameters.InsertionSortingProperty>,- java.lang.constant.Constable
- Enclosing class:
- RoutingSearchParameters
public static enum RoutingSearchParameters.InsertionSortingProperty
extends Enum<RoutingSearchParameters.InsertionSortingProperty>
implements com.google.protobuf.ProtocolMessageEnum
Properties used to select in which order nodes or node pairs are considered in insertion heuristics.Protobuf enum
operations_research.RoutingSearchParameters.InsertionSortingProperty- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionSelects nodes with the least number of allowed vehicles.Selects nodes that are on average the farthest from vehicles.Selects nodes that have a higher dimension usage on average, where the usage is determined as the ratio of node demand over vehicle capacity.Selects nodes that are on average the closest to vehicles.Select nodes with the smallest distance to the closest vehicle.Selects nodes with the highest penalty.Selects nodes with the highest penalty / number of allowed vehicles ratio.Selects nodes in random order.Invalid property.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intSelects nodes with the least number of allowed vehicles.static final intSelects nodes that are on average the farthest from vehicles.static final intSelects nodes that have a higher dimension usage on average, where the usage is determined as the ratio of node demand over vehicle capacity.static final intSelects nodes that are on average the closest to vehicles.static final intSelect nodes with the smallest distance to the closest vehicle.static final intSelects nodes with the highest penalty / number of allowed vehicles ratio.static final intSelects nodes with the highest penalty.static final intSelects nodes in random order.static final intInvalid property.
- 
Method SummaryModifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<RoutingSearchParameters.InsertionSortingProperty> valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
- 
Enum Constant Details- 
SORTING_PROPERTY_UNSPECIFIEDInvalid property. SORTING_PROPERTY_UNSPECIFIED = 0;
- 
SORTING_PROPERTY_ALLOWED_VEHICLESpublic static final RoutingSearchParameters.InsertionSortingProperty SORTING_PROPERTY_ALLOWED_VEHICLESSelects nodes with the least number of allowed vehicles. SORTING_PROPERTY_ALLOWED_VEHICLES = 1;
- 
SORTING_PROPERTY_PENALTYSelects nodes with the highest penalty. SORTING_PROPERTY_PENALTY = 2;
- 
SORTING_PROPERTY_PENALTY_OVER_ALLOWED_VEHICLES_RATIOpublic static final RoutingSearchParameters.InsertionSortingProperty SORTING_PROPERTY_PENALTY_OVER_ALLOWED_VEHICLES_RATIOSelects nodes with the highest penalty / number of allowed vehicles ratio. SORTING_PROPERTY_PENALTY_OVER_ALLOWED_VEHICLES_RATIO = 3;
- 
SORTING_PROPERTY_HIGHEST_AVG_ARC_COST_TO_VEHICLE_START_ENDSpublic static final RoutingSearchParameters.InsertionSortingProperty SORTING_PROPERTY_HIGHEST_AVG_ARC_COST_TO_VEHICLE_START_ENDSSelects nodes that are on average the farthest from vehicles. SORTING_PROPERTY_HIGHEST_AVG_ARC_COST_TO_VEHICLE_START_ENDS = 4;
- 
SORTING_PROPERTY_LOWEST_AVG_ARC_COST_TO_VEHICLE_START_ENDSpublic static final RoutingSearchParameters.InsertionSortingProperty SORTING_PROPERTY_LOWEST_AVG_ARC_COST_TO_VEHICLE_START_ENDSSelects nodes that are on average the closest to vehicles. SORTING_PROPERTY_LOWEST_AVG_ARC_COST_TO_VEHICLE_START_ENDS = 5;
- 
SORTING_PROPERTY_LOWEST_MIN_ARC_COST_TO_VEHICLE_START_ENDSpublic static final RoutingSearchParameters.InsertionSortingProperty SORTING_PROPERTY_LOWEST_MIN_ARC_COST_TO_VEHICLE_START_ENDSSelect nodes with the smallest distance to the closest vehicle. SORTING_PROPERTY_LOWEST_MIN_ARC_COST_TO_VEHICLE_START_ENDS = 6;
- 
SORTING_PROPERTY_HIGHEST_DIMENSION_USAGEpublic static final RoutingSearchParameters.InsertionSortingProperty SORTING_PROPERTY_HIGHEST_DIMENSION_USAGESelects nodes that have a higher dimension usage on average, where the usage is determined as the ratio of node demand over vehicle capacity. Currently, this property only supports unary dimensions. SORTING_PROPERTY_HIGHEST_DIMENSION_USAGE = 7;
- 
SORTING_PROPERTY_RANDOMSelects nodes in random order. This property cannot be used in conjunction with other properties. SORTING_PROPERTY_RANDOM = 8;
- 
UNRECOGNIZED
 
- 
- 
Field Details- 
SORTING_PROPERTY_UNSPECIFIED_VALUEpublic static final int SORTING_PROPERTY_UNSPECIFIED_VALUEInvalid property. SORTING_PROPERTY_UNSPECIFIED = 0;- See Also:
 
- 
SORTING_PROPERTY_ALLOWED_VEHICLES_VALUEpublic static final int SORTING_PROPERTY_ALLOWED_VEHICLES_VALUESelects nodes with the least number of allowed vehicles. SORTING_PROPERTY_ALLOWED_VEHICLES = 1;- See Also:
 
- 
SORTING_PROPERTY_PENALTY_VALUEpublic static final int SORTING_PROPERTY_PENALTY_VALUESelects nodes with the highest penalty. SORTING_PROPERTY_PENALTY = 2;- See Also:
 
- 
SORTING_PROPERTY_PENALTY_OVER_ALLOWED_VEHICLES_RATIO_VALUEpublic static final int SORTING_PROPERTY_PENALTY_OVER_ALLOWED_VEHICLES_RATIO_VALUESelects nodes with the highest penalty / number of allowed vehicles ratio. SORTING_PROPERTY_PENALTY_OVER_ALLOWED_VEHICLES_RATIO = 3;- See Also:
 
- 
SORTING_PROPERTY_HIGHEST_AVG_ARC_COST_TO_VEHICLE_START_ENDS_VALUEpublic static final int SORTING_PROPERTY_HIGHEST_AVG_ARC_COST_TO_VEHICLE_START_ENDS_VALUESelects nodes that are on average the farthest from vehicles. SORTING_PROPERTY_HIGHEST_AVG_ARC_COST_TO_VEHICLE_START_ENDS = 4;- See Also:
 
- 
SORTING_PROPERTY_LOWEST_AVG_ARC_COST_TO_VEHICLE_START_ENDS_VALUEpublic static final int SORTING_PROPERTY_LOWEST_AVG_ARC_COST_TO_VEHICLE_START_ENDS_VALUESelects nodes that are on average the closest to vehicles. SORTING_PROPERTY_LOWEST_AVG_ARC_COST_TO_VEHICLE_START_ENDS = 5;- See Also:
 
- 
SORTING_PROPERTY_LOWEST_MIN_ARC_COST_TO_VEHICLE_START_ENDS_VALUEpublic static final int SORTING_PROPERTY_LOWEST_MIN_ARC_COST_TO_VEHICLE_START_ENDS_VALUESelect nodes with the smallest distance to the closest vehicle. SORTING_PROPERTY_LOWEST_MIN_ARC_COST_TO_VEHICLE_START_ENDS = 6;- See Also:
 
- 
SORTING_PROPERTY_HIGHEST_DIMENSION_USAGE_VALUEpublic static final int SORTING_PROPERTY_HIGHEST_DIMENSION_USAGE_VALUESelects nodes that have a higher dimension usage on average, where the usage is determined as the ratio of node demand over vehicle capacity. Currently, this property only supports unary dimensions. SORTING_PROPERTY_HIGHEST_DIMENSION_USAGE = 7;- See Also:
 
- 
SORTING_PROPERTY_RANDOM_VALUEpublic static final int SORTING_PROPERTY_RANDOM_VALUESelects nodes in random order. This property cannot be used in conjunction with other properties. SORTING_PROPERTY_RANDOM = 8;- See Also:
 
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
getNumberpublic final int getNumber()- Specified by:
- getNumberin interface- com.google.protobuf.Internal.EnumLite
- Specified by:
- getNumberin interface- com.google.protobuf.ProtocolMessageEnum
 
- 
valueOfDeprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- value- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
forNumber- Parameters:
- value- The numeric wire value of the corresponding enum entry.
- Returns:
- The enum associated with the given numeric wire value.
 
- 
internalGetValueMappublic static com.google.protobuf.Internal.EnumLiteMap<RoutingSearchParameters.InsertionSortingProperty> internalGetValueMap()
- 
getValueDescriptorpublic final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
- getValueDescriptorin interface- com.google.protobuf.ProtocolMessageEnum
 
- 
getDescriptorForTypepublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
- getDescriptorForTypein interface- com.google.protobuf.ProtocolMessageEnum
 
- 
getDescriptorpublic static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
- 
valueOfpublic static RoutingSearchParameters.InsertionSortingProperty valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- desc- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 
-