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 Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum 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 Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Selects nodes with the least number of allowed vehicles.static final int
Selects nodes that are on average the farthest from vehicles.static final int
Selects 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 int
Selects nodes that are on average the closest to vehicles.static final int
Select nodes with the smallest distance to the closest vehicle.static final int
Selects nodes with the highest penalty / number of allowed vehicles ratio.static final int
Selects nodes with the highest penalty.static final int
Selects nodes in random order.static final int
Invalid property. -
Method Summary
Modifier and TypeMethodDescriptionforNumber
(int value) static com.google.protobuf.Descriptors.EnumDescriptor
final com.google.protobuf.Descriptors.EnumDescriptor
final int
final com.google.protobuf.Descriptors.EnumValueDescriptor
static 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_UNSPECIFIED
Invalid property.
SORTING_PROPERTY_UNSPECIFIED = 0;
-
SORTING_PROPERTY_ALLOWED_VEHICLES
public static final RoutingSearchParameters.InsertionSortingProperty SORTING_PROPERTY_ALLOWED_VEHICLESSelects nodes with the least number of allowed vehicles.
SORTING_PROPERTY_ALLOWED_VEHICLES = 1;
-
SORTING_PROPERTY_PENALTY
Selects nodes with the highest penalty.
SORTING_PROPERTY_PENALTY = 2;
-
SORTING_PROPERTY_PENALTY_OVER_ALLOWED_VEHICLES_RATIO
public 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_ENDS
public 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_ENDS
public 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_ENDS
public 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_USAGE
public 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_RANDOM
Selects nodes in random order. This property cannot be used in conjunction with other properties.
SORTING_PROPERTY_RANDOM = 8;
-
UNRECOGNIZED
-
-
Field Details
-
SORTING_PROPERTY_UNSPECIFIED_VALUE
public static final int SORTING_PROPERTY_UNSPECIFIED_VALUEInvalid property.
SORTING_PROPERTY_UNSPECIFIED = 0;
- See Also:
-
SORTING_PROPERTY_ALLOWED_VEHICLES_VALUE
public 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_VALUE
public 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_VALUE
public 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_VALUE
public 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_VALUE
public 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_VALUE
public 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_VALUE
public 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_VALUE
public 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
-
values
Returns 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
-
valueOf
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:
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 nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.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 nameNullPointerException
- 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.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<RoutingSearchParameters.InsertionSortingProperty> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public 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 nameNullPointerException
- if the argument is null
-