public static enum RoutingSearchParameters.PairInsertionStrategy extends java.lang.Enum<RoutingSearchParameters.PairInsertionStrategy> implements com.google.protobuf.ProtocolMessageEnum
In insertion-based heuristics, describes what positions must be considered when inserting a pickup/delivery pair, and in what order they are considered.Protobuf enum
operations_research.RoutingSearchParameters.PairInsertionStrategy
Enum Constant and Description |
---|
AUTOMATIC
Let the solver decide the set of positions and its ordering.
|
BEST_PICKUP_DELIVERY_PAIR
Consider all positions, by increasing by cost(pickup) + cost(delivery).
|
BEST_PICKUP_DELIVERY_PAIR_MULTITOUR
Only consider insertion positions that are compatible with the multitour
property, meaning a series of pickups may only start when the vehicle
is not carrying any delivery.
|
BEST_PICKUP_THEN_BEST_DELIVERY
Consider all positions, by increasing (cost(pickup), cost(delivery)).
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
AUTOMATIC_VALUE
Let the solver decide the set of positions and its ordering.
|
static int |
BEST_PICKUP_DELIVERY_PAIR_MULTITOUR_VALUE
Only consider insertion positions that are compatible with the multitour
property, meaning a series of pickups may only start when the vehicle
is not carrying any delivery.
|
static int |
BEST_PICKUP_DELIVERY_PAIR_VALUE
Consider all positions, by increasing by cost(pickup) + cost(delivery).
|
static int |
BEST_PICKUP_THEN_BEST_DELIVERY_VALUE
Consider all positions, by increasing (cost(pickup), cost(delivery)).
|
Modifier and Type | Method and Description |
---|---|
static RoutingSearchParameters.PairInsertionStrategy |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<RoutingSearchParameters.PairInsertionStrategy> |
internalGetValueMap() |
static RoutingSearchParameters.PairInsertionStrategy |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static RoutingSearchParameters.PairInsertionStrategy |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static RoutingSearchParameters.PairInsertionStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RoutingSearchParameters.PairInsertionStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RoutingSearchParameters.PairInsertionStrategy AUTOMATIC
Let the solver decide the set of positions and its ordering.
AUTOMATIC = 0;
public static final RoutingSearchParameters.PairInsertionStrategy BEST_PICKUP_THEN_BEST_DELIVERY
Consider all positions, by increasing (cost(pickup), cost(delivery)).
BEST_PICKUP_THEN_BEST_DELIVERY = 1;
public static final RoutingSearchParameters.PairInsertionStrategy BEST_PICKUP_DELIVERY_PAIR
Consider all positions, by increasing by cost(pickup) + cost(delivery).
BEST_PICKUP_DELIVERY_PAIR = 2;
public static final RoutingSearchParameters.PairInsertionStrategy BEST_PICKUP_DELIVERY_PAIR_MULTITOUR
Only consider insertion positions that are compatible with the multitour property, meaning a series of pickups may only start when the vehicle is not carrying any delivery. This setting is designed to explore much less possibilities than the full BEST_PICKUP_DELIVERY_PAIR. Order by increasing by cost(pickup) + cost(delivery).
BEST_PICKUP_DELIVERY_PAIR_MULTITOUR = 3;
public static final RoutingSearchParameters.PairInsertionStrategy UNRECOGNIZED
public static final int AUTOMATIC_VALUE
Let the solver decide the set of positions and its ordering.
AUTOMATIC = 0;
public static final int BEST_PICKUP_THEN_BEST_DELIVERY_VALUE
Consider all positions, by increasing (cost(pickup), cost(delivery)).
BEST_PICKUP_THEN_BEST_DELIVERY = 1;
public static final int BEST_PICKUP_DELIVERY_PAIR_VALUE
Consider all positions, by increasing by cost(pickup) + cost(delivery).
BEST_PICKUP_DELIVERY_PAIR = 2;
public static final int BEST_PICKUP_DELIVERY_PAIR_MULTITOUR_VALUE
Only consider insertion positions that are compatible with the multitour property, meaning a series of pickups may only start when the vehicle is not carrying any delivery. This setting is designed to explore much less possibilities than the full BEST_PICKUP_DELIVERY_PAIR. Order by increasing by cost(pickup) + cost(delivery).
BEST_PICKUP_DELIVERY_PAIR_MULTITOUR = 3;
public static RoutingSearchParameters.PairInsertionStrategy[] values()
for (RoutingSearchParameters.PairInsertionStrategy c : RoutingSearchParameters.PairInsertionStrategy.values()) System.out.println(c);
public static RoutingSearchParameters.PairInsertionStrategy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static RoutingSearchParameters.PairInsertionStrategy valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static RoutingSearchParameters.PairInsertionStrategy forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<RoutingSearchParameters.PairInsertionStrategy> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static RoutingSearchParameters.PairInsertionStrategy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025. All rights reserved.