Class RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder>
com.google.protobuf.GeneratedMessage.Builder<RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder>
com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder
- All Implemented Interfaces:
RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
RoutingSearchParameters.LocalSearchNeighborhoodOperators
public static final class RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder>
implements RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
Local search neighborhood operators used to build a solutions neighborhood. Next ID: 39Protobuf type
operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
clear()
Operator which cross exchanges the starting chains of 2 paths, including exchanging the whole paths.Not implemented yet.Operator which exchanges the positions of two nodes.Operator which exchanges two nodes and inserts an inactive node.Operator which exchanges the positions of two pair of nodes.Operator which exchanges the first and last nodes of two paths and makes a node active.Operator which exchanges subtrips associated to two pairs of nodes, see use_relocate_subtrip for a definition of subtrips.Operator which makes an inactive node active and an active one inactive.Operator which relaxes one entire path and all inactive nodes.The following operator makes a node and its heuristic_close_nodes_lns_num_nodes closest neighbors unperformed along with each of their corresponding performed pickup/delivery pairs, and then reinserts them using the GlobalCheapestInsertion heuristic.This operator finds heuristic_expensive_chain_lns_num_arcs_to_consider most expensive arcs on a route, makes the nodes in between pairs of these expensive arcs unperformed, and reinserts them using the GlobalCheapestInsertion heuristic.--- LNS-like large neighborhood search operators using heuristics --- Operator which makes all nodes on a route unperformed, and reinserts them using the GlobalCheapestInsertion heuristic.Operator which relaxes all inactive nodes and one sub-chain of six consecutive arcs.Operator which moves a pair of pickup and delivery nodes after another pair.Lin-Kernighan operator.Same as above, but insertion positions for nodes are determined by the LocalCheapestInsertion heuristic.Same as above but using LocalCheapestInsertion as a heuristic for insertion.Same as above but using LocalCheapestInsertion as a heuristic.--- Operators on inactive nodes --- Operator which inserts an inactive node into a path.Operator which makes a "chain" of path nodes inactive.Operator which makes path nodes inactive.Operator which makes an inactive node active and an active pair of nodes inactive OR makes an inactive pair of nodes active and an active node inactive.Operator which moves sub-chains of a path of length 1, 2 and 3 to another position in the same path.--- Large neighborhood search operators --- Operator which relaxes two sub-chains of three consecutive arcs each.--- Inter-route operators --- Operator which moves a single node to another position.Operator which relocates a node while making an inactive one active.Operator which detects the relocate_expensive_chain_num_arcs_to_consider most expensive arcs on a path, and moves the chain resulting from cutting pairs of arcs among these to another position.Relocate neighborhood which moves chains of neighbors.Operator which moves a pair of pickup and delivery nodes to another position where the first node of the pair must be before the second node on the same path.The following operator relocates an entire route to an empty path and then tries to insert the unperformed nodes using the global cheapest insertion heuristic.Relocate neighborhood that moves subpaths all pickup and delivery pairs have both pickup and delivery inside the subpath or both outside the subpath.Swaps active nodes from node alternatives in sequence.Similar to use_two_opt but returns the shortest path on the DAG of node alternatives of the reversed chain (cf. use_shortest_path_swap_active).Operator which replaces an active node by an inactive one.Operator which replaces a chain of active nodes by an inactive one.TSP-base LNS.Sliding TSP operator.--- Intra-route operators --- Operator which reverses a subchain of a path.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Operator which cross exchanges the starting chains of 2 paths, including exchanging the whole paths.Not implemented yet.int
Not implemented yet.int
Operator which cross exchanges the starting chains of 2 paths, including exchanging the whole paths.Operator which exchanges the positions of two nodes.Operator which exchanges two nodes and inserts an inactive node.int
Operator which exchanges two nodes and inserts an inactive node.Operator which exchanges the positions of two pair of nodes.int
Operator which exchanges the positions of two pair of nodes.Operator which exchanges the first and last nodes of two paths and makes a node active.int
Operator which exchanges the first and last nodes of two paths and makes a node active.Operator which exchanges subtrips associated to two pairs of nodes, see use_relocate_subtrip for a definition of subtrips.int
Operator which exchanges subtrips associated to two pairs of nodes, see use_relocate_subtrip for a definition of subtrips.int
Operator which exchanges the positions of two nodes.Operator which makes an inactive node active and an active one inactive.int
Operator which makes an inactive node active and an active one inactive.Operator which relaxes one entire path and all inactive nodes.int
Operator which relaxes one entire path and all inactive nodes.The following operator makes a node and its heuristic_close_nodes_lns_num_nodes closest neighbors unperformed along with each of their corresponding performed pickup/delivery pairs, and then reinserts them using the GlobalCheapestInsertion heuristic.int
The following operator makes a node and its heuristic_close_nodes_lns_num_nodes closest neighbors unperformed along with each of their corresponding performed pickup/delivery pairs, and then reinserts them using the GlobalCheapestInsertion heuristic.This operator finds heuristic_expensive_chain_lns_num_arcs_to_consider most expensive arcs on a route, makes the nodes in between pairs of these expensive arcs unperformed, and reinserts them using the GlobalCheapestInsertion heuristic.int
This operator finds heuristic_expensive_chain_lns_num_arcs_to_consider most expensive arcs on a route, makes the nodes in between pairs of these expensive arcs unperformed, and reinserts them using the GlobalCheapestInsertion heuristic.--- LNS-like large neighborhood search operators using heuristics --- Operator which makes all nodes on a route unperformed, and reinserts them using the GlobalCheapestInsertion heuristic.int
--- LNS-like large neighborhood search operators using heuristics --- Operator which makes all nodes on a route unperformed, and reinserts them using the GlobalCheapestInsertion heuristic.Operator which relaxes all inactive nodes and one sub-chain of six consecutive arcs.int
Operator which relaxes all inactive nodes and one sub-chain of six consecutive arcs.Operator which moves a pair of pickup and delivery nodes after another pair.int
Operator which moves a pair of pickup and delivery nodes after another pair.Lin-Kernighan operator.int
Lin-Kernighan operator.Same as above, but insertion positions for nodes are determined by the LocalCheapestInsertion heuristic.int
Same as above, but insertion positions for nodes are determined by the LocalCheapestInsertion heuristic.Same as above but using LocalCheapestInsertion as a heuristic for insertion.int
Same as above but using LocalCheapestInsertion as a heuristic for insertion.Same as above but using LocalCheapestInsertion as a heuristic.int
Same as above but using LocalCheapestInsertion as a heuristic.--- Operators on inactive nodes --- Operator which inserts an inactive node into a path.int
--- Operators on inactive nodes --- Operator which inserts an inactive node into a path.Operator which makes a "chain" of path nodes inactive.int
Operator which makes a "chain" of path nodes inactive.Operator which makes path nodes inactive.int
Operator which makes path nodes inactive.Operator which makes an inactive node active and an active pair of nodes inactive OR makes an inactive pair of nodes active and an active node inactive.int
Operator which makes an inactive node active and an active pair of nodes inactive OR makes an inactive pair of nodes active and an active node inactive.Operator which moves sub-chains of a path of length 1, 2 and 3 to another position in the same path.int
Operator which moves sub-chains of a path of length 1, 2 and 3 to another position in the same path.--- Large neighborhood search operators --- Operator which relaxes two sub-chains of three consecutive arcs each.int
--- Large neighborhood search operators --- Operator which relaxes two sub-chains of three consecutive arcs each.--- Inter-route operators --- Operator which moves a single node to another position.Operator which relocates a node while making an inactive one active.int
Operator which relocates a node while making an inactive one active.Operator which detects the relocate_expensive_chain_num_arcs_to_consider most expensive arcs on a path, and moves the chain resulting from cutting pairs of arcs among these to another position.int
Operator which detects the relocate_expensive_chain_num_arcs_to_consider most expensive arcs on a path, and moves the chain resulting from cutting pairs of arcs among these to another position.Relocate neighborhood which moves chains of neighbors.int
Relocate neighborhood which moves chains of neighbors.Operator which moves a pair of pickup and delivery nodes to another position where the first node of the pair must be before the second node on the same path.int
Operator which moves a pair of pickup and delivery nodes to another position where the first node of the pair must be before the second node on the same path.The following operator relocates an entire route to an empty path and then tries to insert the unperformed nodes using the global cheapest insertion heuristic.int
The following operator relocates an entire route to an empty path and then tries to insert the unperformed nodes using the global cheapest insertion heuristic.Relocate neighborhood that moves subpaths all pickup and delivery pairs have both pickup and delivery inside the subpath or both outside the subpath.int
Relocate neighborhood that moves subpaths all pickup and delivery pairs have both pickup and delivery inside the subpath or both outside the subpath.int
--- Inter-route operators --- Operator which moves a single node to another position.Swaps active nodes from node alternatives in sequence.int
Swaps active nodes from node alternatives in sequence.Similar to use_two_opt but returns the shortest path on the DAG of node alternatives of the reversed chain (cf. use_shortest_path_swap_active).int
Similar to use_two_opt but returns the shortest path on the DAG of node alternatives of the reversed chain (cf. use_shortest_path_swap_active).Operator which replaces an active node by an inactive one.Operator which replaces a chain of active nodes by an inactive one.int
Operator which replaces a chain of active nodes by an inactive one.int
Operator which replaces an active node by an inactive one.TSP-base LNS.int
TSP-base LNS.Sliding TSP operator.int
Sliding TSP operator.--- Intra-route operators --- Operator which reverses a subchain of a path.int
--- Intra-route operators --- Operator which reverses a subchain of a path.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) setUseCross
(OptionalBoolean value) Operator which cross exchanges the starting chains of 2 paths, including exchanging the whole paths.Not implemented yet.setUseCrossExchangeValue
(int value) Not implemented yet.setUseCrossValue
(int value) Operator which cross exchanges the starting chains of 2 paths, including exchanging the whole paths.setUseExchange
(OptionalBoolean value) Operator which exchanges the positions of two nodes.Operator which exchanges two nodes and inserts an inactive node.setUseExchangeAndMakeActiveValue
(int value) Operator which exchanges two nodes and inserts an inactive node.Operator which exchanges the positions of two pair of nodes.setUseExchangePairValue
(int value) Operator which exchanges the positions of two pair of nodes.Operator which exchanges the first and last nodes of two paths and makes a node active.Operator which exchanges the first and last nodes of two paths and makes a node active.Operator which exchanges subtrips associated to two pairs of nodes, see use_relocate_subtrip for a definition of subtrips.setUseExchangeSubtripValue
(int value) Operator which exchanges subtrips associated to two pairs of nodes, see use_relocate_subtrip for a definition of subtrips.setUseExchangeValue
(int value) Operator which exchanges the positions of two nodes.Operator which makes an inactive node active and an active one inactive.setUseExtendedSwapActiveValue
(int value) Operator which makes an inactive node active and an active one inactive.setUseFullPathLns
(OptionalBoolean value) Operator which relaxes one entire path and all inactive nodes.setUseFullPathLnsValue
(int value) Operator which relaxes one entire path and all inactive nodes.The following operator makes a node and its heuristic_close_nodes_lns_num_nodes closest neighbors unperformed along with each of their corresponding performed pickup/delivery pairs, and then reinserts them using the GlobalCheapestInsertion heuristic.The following operator makes a node and its heuristic_close_nodes_lns_num_nodes closest neighbors unperformed along with each of their corresponding performed pickup/delivery pairs, and then reinserts them using the GlobalCheapestInsertion heuristic.This operator finds heuristic_expensive_chain_lns_num_arcs_to_consider most expensive arcs on a route, makes the nodes in between pairs of these expensive arcs unperformed, and reinserts them using the GlobalCheapestInsertion heuristic.This operator finds heuristic_expensive_chain_lns_num_arcs_to_consider most expensive arcs on a route, makes the nodes in between pairs of these expensive arcs unperformed, and reinserts them using the GlobalCheapestInsertion heuristic.--- LNS-like large neighborhood search operators using heuristics --- Operator which makes all nodes on a route unperformed, and reinserts them using the GlobalCheapestInsertion heuristic.setUseGlobalCheapestInsertionPathLnsValue
(int value) --- LNS-like large neighborhood search operators using heuristics --- Operator which makes all nodes on a route unperformed, and reinserts them using the GlobalCheapestInsertion heuristic.setUseInactiveLns
(OptionalBoolean value) Operator which relaxes all inactive nodes and one sub-chain of six consecutive arcs.setUseInactiveLnsValue
(int value) Operator which relaxes all inactive nodes and one sub-chain of six consecutive arcs.Operator which moves a pair of pickup and delivery nodes after another pair.setUseLightRelocatePairValue
(int value) Operator which moves a pair of pickup and delivery nodes after another pair.Lin-Kernighan operator.setUseLinKernighanValue
(int value) Lin-Kernighan operator.Same as above, but insertion positions for nodes are determined by the LocalCheapestInsertion heuristic.Same as above, but insertion positions for nodes are determined by the LocalCheapestInsertion heuristic.Same as above but using LocalCheapestInsertion as a heuristic for insertion.Same as above but using LocalCheapestInsertion as a heuristic for insertion.Same as above but using LocalCheapestInsertion as a heuristic.setUseLocalCheapestInsertionPathLnsValue
(int value) Same as above but using LocalCheapestInsertion as a heuristic.setUseMakeActive
(OptionalBoolean value) --- Operators on inactive nodes --- Operator which inserts an inactive node into a path.setUseMakeActiveValue
(int value) --- Operators on inactive nodes --- Operator which inserts an inactive node into a path.Operator which makes a "chain" of path nodes inactive.setUseMakeChainInactiveValue
(int value) Operator which makes a "chain" of path nodes inactive.Operator which makes path nodes inactive.setUseMakeInactiveValue
(int value) Operator which makes path nodes inactive.Operator which makes an inactive node active and an active pair of nodes inactive OR makes an inactive pair of nodes active and an active node inactive.setUseNodePairSwapActiveValue
(int value) Operator which makes an inactive node active and an active pair of nodes inactive OR makes an inactive pair of nodes active and an active node inactive.setUseOrOpt
(OptionalBoolean value) Operator which moves sub-chains of a path of length 1, 2 and 3 to another position in the same path.setUseOrOptValue
(int value) Operator which moves sub-chains of a path of length 1, 2 and 3 to another position in the same path.setUsePathLns
(OptionalBoolean value) --- Large neighborhood search operators --- Operator which relaxes two sub-chains of three consecutive arcs each.setUsePathLnsValue
(int value) --- Large neighborhood search operators --- Operator which relaxes two sub-chains of three consecutive arcs each.setUseRelocate
(OptionalBoolean value) --- Inter-route operators --- Operator which moves a single node to another position.Operator which relocates a node while making an inactive one active.setUseRelocateAndMakeActiveValue
(int value) Operator which relocates a node while making an inactive one active.Operator which detects the relocate_expensive_chain_num_arcs_to_consider most expensive arcs on a path, and moves the chain resulting from cutting pairs of arcs among these to another position.setUseRelocateExpensiveChainValue
(int value) Operator which detects the relocate_expensive_chain_num_arcs_to_consider most expensive arcs on a path, and moves the chain resulting from cutting pairs of arcs among these to another position.Relocate neighborhood which moves chains of neighbors.setUseRelocateNeighborsValue
(int value) Relocate neighborhood which moves chains of neighbors.Operator which moves a pair of pickup and delivery nodes to another position where the first node of the pair must be before the second node on the same path.setUseRelocatePairValue
(int value) Operator which moves a pair of pickup and delivery nodes to another position where the first node of the pair must be before the second node on the same path.The following operator relocates an entire route to an empty path and then tries to insert the unperformed nodes using the global cheapest insertion heuristic.The following operator relocates an entire route to an empty path and then tries to insert the unperformed nodes using the global cheapest insertion heuristic.Relocate neighborhood that moves subpaths all pickup and delivery pairs have both pickup and delivery inside the subpath or both outside the subpath.setUseRelocateSubtripValue
(int value) Relocate neighborhood that moves subpaths all pickup and delivery pairs have both pickup and delivery inside the subpath or both outside the subpath.setUseRelocateValue
(int value) --- Inter-route operators --- Operator which moves a single node to another position.Swaps active nodes from node alternatives in sequence.setUseShortestPathSwapActiveValue
(int value) Swaps active nodes from node alternatives in sequence.Similar to use_two_opt but returns the shortest path on the DAG of node alternatives of the reversed chain (cf. use_shortest_path_swap_active).setUseShortestPathTwoOptValue
(int value) Similar to use_two_opt but returns the shortest path on the DAG of node alternatives of the reversed chain (cf. use_shortest_path_swap_active).setUseSwapActive
(OptionalBoolean value) Operator which replaces an active node by an inactive one.Operator which replaces a chain of active nodes by an inactive one.setUseSwapActiveChainValue
(int value) Operator which replaces a chain of active nodes by an inactive one.setUseSwapActiveValue
(int value) Operator which replaces an active node by an inactive one.setUseTspLns
(OptionalBoolean value) TSP-base LNS.setUseTspLnsValue
(int value) TSP-base LNS.setUseTspOpt
(OptionalBoolean value) Sliding TSP operator.setUseTspOptValue
(int value) Sliding TSP operator.setUseTwoOpt
(OptionalBoolean value) --- Intra-route operators --- Operator which reverses a subchain of a path.setUseTwoOptValue
(int value) --- Intra-route operators --- Operator which reverses a subchain of a path.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder>
-
mergeFrom
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder>
- Throws:
IOException
-
getUseRelocateValue
public int getUseRelocateValue()--- Inter-route operators --- Operator which moves a single node to another position. Possible neighbors for the path 1 -> 2 -> 3 -> 4 -> 5 (where (1, 5) are first and last nodes of the path and can therefore not be moved): 1 -> 3 -> [2] -> 4 -> 5 1 -> 3 -> 4 -> [2] -> 5 1 -> 2 -> 4 -> [3] -> 5 1 -> [4] -> 2 -> 3 -> 5
.operations_research.OptionalBoolean use_relocate = 1;
- Specified by:
getUseRelocateValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useRelocate.
-
setUseRelocateValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseRelocateValue(int value) --- Inter-route operators --- Operator which moves a single node to another position. Possible neighbors for the path 1 -> 2 -> 3 -> 4 -> 5 (where (1, 5) are first and last nodes of the path and can therefore not be moved): 1 -> 3 -> [2] -> 4 -> 5 1 -> 3 -> 4 -> [2] -> 5 1 -> 2 -> 4 -> [3] -> 5 1 -> [4] -> 2 -> 3 -> 5
.operations_research.OptionalBoolean use_relocate = 1;
- Parameters:
value
- The enum numeric value on the wire for useRelocate to set.- Returns:
- This builder for chaining.
-
getUseRelocate
--- Inter-route operators --- Operator which moves a single node to another position. Possible neighbors for the path 1 -> 2 -> 3 -> 4 -> 5 (where (1, 5) are first and last nodes of the path and can therefore not be moved): 1 -> 3 -> [2] -> 4 -> 5 1 -> 3 -> 4 -> [2] -> 5 1 -> 2 -> 4 -> [3] -> 5 1 -> [4] -> 2 -> 3 -> 5
.operations_research.OptionalBoolean use_relocate = 1;
- Specified by:
getUseRelocate
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useRelocate.
-
setUseRelocate
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseRelocate(OptionalBoolean value) --- Inter-route operators --- Operator which moves a single node to another position. Possible neighbors for the path 1 -> 2 -> 3 -> 4 -> 5 (where (1, 5) are first and last nodes of the path and can therefore not be moved): 1 -> 3 -> [2] -> 4 -> 5 1 -> 3 -> 4 -> [2] -> 5 1 -> 2 -> 4 -> [3] -> 5 1 -> [4] -> 2 -> 3 -> 5
.operations_research.OptionalBoolean use_relocate = 1;
- Parameters:
value
- The useRelocate to set.- Returns:
- This builder for chaining.
-
clearUseRelocate
--- Inter-route operators --- Operator which moves a single node to another position. Possible neighbors for the path 1 -> 2 -> 3 -> 4 -> 5 (where (1, 5) are first and last nodes of the path and can therefore not be moved): 1 -> 3 -> [2] -> 4 -> 5 1 -> 3 -> 4 -> [2] -> 5 1 -> 2 -> 4 -> [3] -> 5 1 -> [4] -> 2 -> 3 -> 5
.operations_research.OptionalBoolean use_relocate = 1;
- Returns:
- This builder for chaining.
-
getUseRelocatePairValue
public int getUseRelocatePairValue()Operator which moves a pair of pickup and delivery nodes to another position where the first node of the pair must be before the second node on the same path. Compared to the light_relocate_pair operator, tries all possible positions of insertion of a pair (not only after another pair). Possible neighbors for the path 1 -> A -> B -> 2 -> 3 (where (1, 3) are first and last nodes of the path and can therefore not be moved, and (A, B) is a pair of nodes): 1 -> [A] -> 2 -> [B] -> 3 1 -> 2 -> [A] -> [B] -> 3
.operations_research.OptionalBoolean use_relocate_pair = 2;
- Specified by:
getUseRelocatePairValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useRelocatePair.
-
setUseRelocatePairValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseRelocatePairValue(int value) Operator which moves a pair of pickup and delivery nodes to another position where the first node of the pair must be before the second node on the same path. Compared to the light_relocate_pair operator, tries all possible positions of insertion of a pair (not only after another pair). Possible neighbors for the path 1 -> A -> B -> 2 -> 3 (where (1, 3) are first and last nodes of the path and can therefore not be moved, and (A, B) is a pair of nodes): 1 -> [A] -> 2 -> [B] -> 3 1 -> 2 -> [A] -> [B] -> 3
.operations_research.OptionalBoolean use_relocate_pair = 2;
- Parameters:
value
- The enum numeric value on the wire for useRelocatePair to set.- Returns:
- This builder for chaining.
-
getUseRelocatePair
Operator which moves a pair of pickup and delivery nodes to another position where the first node of the pair must be before the second node on the same path. Compared to the light_relocate_pair operator, tries all possible positions of insertion of a pair (not only after another pair). Possible neighbors for the path 1 -> A -> B -> 2 -> 3 (where (1, 3) are first and last nodes of the path and can therefore not be moved, and (A, B) is a pair of nodes): 1 -> [A] -> 2 -> [B] -> 3 1 -> 2 -> [A] -> [B] -> 3
.operations_research.OptionalBoolean use_relocate_pair = 2;
- Specified by:
getUseRelocatePair
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useRelocatePair.
-
setUseRelocatePair
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseRelocatePair(OptionalBoolean value) Operator which moves a pair of pickup and delivery nodes to another position where the first node of the pair must be before the second node on the same path. Compared to the light_relocate_pair operator, tries all possible positions of insertion of a pair (not only after another pair). Possible neighbors for the path 1 -> A -> B -> 2 -> 3 (where (1, 3) are first and last nodes of the path and can therefore not be moved, and (A, B) is a pair of nodes): 1 -> [A] -> 2 -> [B] -> 3 1 -> 2 -> [A] -> [B] -> 3
.operations_research.OptionalBoolean use_relocate_pair = 2;
- Parameters:
value
- The useRelocatePair to set.- Returns:
- This builder for chaining.
-
clearUseRelocatePair
Operator which moves a pair of pickup and delivery nodes to another position where the first node of the pair must be before the second node on the same path. Compared to the light_relocate_pair operator, tries all possible positions of insertion of a pair (not only after another pair). Possible neighbors for the path 1 -> A -> B -> 2 -> 3 (where (1, 3) are first and last nodes of the path and can therefore not be moved, and (A, B) is a pair of nodes): 1 -> [A] -> 2 -> [B] -> 3 1 -> 2 -> [A] -> [B] -> 3
.operations_research.OptionalBoolean use_relocate_pair = 2;
- Returns:
- This builder for chaining.
-
getUseLightRelocatePairValue
public int getUseLightRelocatePairValue()Operator which moves a pair of pickup and delivery nodes after another pair. Possible neighbors for paths 1 -> A -> B -> 2, 3 -> C -> D -> 4 (where (1, 2) and (3, 4) are first and last nodes of paths and can therefore not be moved, and (A, B) and (C, D) are pair of nodes): 1 -> 2, 3 -> C -> [A] -> D -> [B] -> 4 1 -> A -> [C] -> B -> [D] -> 2, 3 -> 4
.operations_research.OptionalBoolean use_light_relocate_pair = 24;
- Specified by:
getUseLightRelocatePairValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useLightRelocatePair.
-
setUseLightRelocatePairValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseLightRelocatePairValue(int value) Operator which moves a pair of pickup and delivery nodes after another pair. Possible neighbors for paths 1 -> A -> B -> 2, 3 -> C -> D -> 4 (where (1, 2) and (3, 4) are first and last nodes of paths and can therefore not be moved, and (A, B) and (C, D) are pair of nodes): 1 -> 2, 3 -> C -> [A] -> D -> [B] -> 4 1 -> A -> [C] -> B -> [D] -> 2, 3 -> 4
.operations_research.OptionalBoolean use_light_relocate_pair = 24;
- Parameters:
value
- The enum numeric value on the wire for useLightRelocatePair to set.- Returns:
- This builder for chaining.
-
getUseLightRelocatePair
Operator which moves a pair of pickup and delivery nodes after another pair. Possible neighbors for paths 1 -> A -> B -> 2, 3 -> C -> D -> 4 (where (1, 2) and (3, 4) are first and last nodes of paths and can therefore not be moved, and (A, B) and (C, D) are pair of nodes): 1 -> 2, 3 -> C -> [A] -> D -> [B] -> 4 1 -> A -> [C] -> B -> [D] -> 2, 3 -> 4
.operations_research.OptionalBoolean use_light_relocate_pair = 24;
- Specified by:
getUseLightRelocatePair
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useLightRelocatePair.
-
setUseLightRelocatePair
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseLightRelocatePair(OptionalBoolean value) Operator which moves a pair of pickup and delivery nodes after another pair. Possible neighbors for paths 1 -> A -> B -> 2, 3 -> C -> D -> 4 (where (1, 2) and (3, 4) are first and last nodes of paths and can therefore not be moved, and (A, B) and (C, D) are pair of nodes): 1 -> 2, 3 -> C -> [A] -> D -> [B] -> 4 1 -> A -> [C] -> B -> [D] -> 2, 3 -> 4
.operations_research.OptionalBoolean use_light_relocate_pair = 24;
- Parameters:
value
- The useLightRelocatePair to set.- Returns:
- This builder for chaining.
-
clearUseLightRelocatePair
Operator which moves a pair of pickup and delivery nodes after another pair. Possible neighbors for paths 1 -> A -> B -> 2, 3 -> C -> D -> 4 (where (1, 2) and (3, 4) are first and last nodes of paths and can therefore not be moved, and (A, B) and (C, D) are pair of nodes): 1 -> 2, 3 -> C -> [A] -> D -> [B] -> 4 1 -> A -> [C] -> B -> [D] -> 2, 3 -> 4
.operations_research.OptionalBoolean use_light_relocate_pair = 24;
- Returns:
- This builder for chaining.
-
getUseRelocateNeighborsValue
public int getUseRelocateNeighborsValue()Relocate neighborhood which moves chains of neighbors. The operator starts by relocating a node n after a node m, then continues moving nodes which were after n as long as the "cost" added is less than the "cost" of the arc (m, n). If the new chain doesn't respect the domain of next variables, it will try reordering the nodes until it finds a valid path. Possible neighbors for path 1 -> A -> B -> C -> D -> E -> 2 (where (1, 2) are first and last nodes of the path and can therefore not be moved, A must be performed before B, and A, D and E are located at the same place): 1 -> A -> C -> [B] -> D -> E -> 2 1 -> A -> C -> D -> [B] -> E -> 2 1 -> A -> C -> D -> E -> [B] -> 2 1 -> A -> B -> D -> [C] -> E -> 2 1 -> A -> B -> D -> E -> [C] -> 2 1 -> A -> [D] -> [E] -> B -> C -> 2 1 -> A -> B -> [D] -> [E] -> C -> 2 1 -> A -> [E] -> B -> C -> D -> 2 1 -> A -> B -> [E] -> C -> D -> 2 1 -> A -> B -> C -> [E] -> D -> 2 This operator is extremely useful to move chains of nodes which are located at the same place (for instance nodes part of a same stop).
.operations_research.OptionalBoolean use_relocate_neighbors = 3;
- Specified by:
getUseRelocateNeighborsValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useRelocateNeighbors.
-
setUseRelocateNeighborsValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseRelocateNeighborsValue(int value) Relocate neighborhood which moves chains of neighbors. The operator starts by relocating a node n after a node m, then continues moving nodes which were after n as long as the "cost" added is less than the "cost" of the arc (m, n). If the new chain doesn't respect the domain of next variables, it will try reordering the nodes until it finds a valid path. Possible neighbors for path 1 -> A -> B -> C -> D -> E -> 2 (where (1, 2) are first and last nodes of the path and can therefore not be moved, A must be performed before B, and A, D and E are located at the same place): 1 -> A -> C -> [B] -> D -> E -> 2 1 -> A -> C -> D -> [B] -> E -> 2 1 -> A -> C -> D -> E -> [B] -> 2 1 -> A -> B -> D -> [C] -> E -> 2 1 -> A -> B -> D -> E -> [C] -> 2 1 -> A -> [D] -> [E] -> B -> C -> 2 1 -> A -> B -> [D] -> [E] -> C -> 2 1 -> A -> [E] -> B -> C -> D -> 2 1 -> A -> B -> [E] -> C -> D -> 2 1 -> A -> B -> C -> [E] -> D -> 2 This operator is extremely useful to move chains of nodes which are located at the same place (for instance nodes part of a same stop).
.operations_research.OptionalBoolean use_relocate_neighbors = 3;
- Parameters:
value
- The enum numeric value on the wire for useRelocateNeighbors to set.- Returns:
- This builder for chaining.
-
getUseRelocateNeighbors
Relocate neighborhood which moves chains of neighbors. The operator starts by relocating a node n after a node m, then continues moving nodes which were after n as long as the "cost" added is less than the "cost" of the arc (m, n). If the new chain doesn't respect the domain of next variables, it will try reordering the nodes until it finds a valid path. Possible neighbors for path 1 -> A -> B -> C -> D -> E -> 2 (where (1, 2) are first and last nodes of the path and can therefore not be moved, A must be performed before B, and A, D and E are located at the same place): 1 -> A -> C -> [B] -> D -> E -> 2 1 -> A -> C -> D -> [B] -> E -> 2 1 -> A -> C -> D -> E -> [B] -> 2 1 -> A -> B -> D -> [C] -> E -> 2 1 -> A -> B -> D -> E -> [C] -> 2 1 -> A -> [D] -> [E] -> B -> C -> 2 1 -> A -> B -> [D] -> [E] -> C -> 2 1 -> A -> [E] -> B -> C -> D -> 2 1 -> A -> B -> [E] -> C -> D -> 2 1 -> A -> B -> C -> [E] -> D -> 2 This operator is extremely useful to move chains of nodes which are located at the same place (for instance nodes part of a same stop).
.operations_research.OptionalBoolean use_relocate_neighbors = 3;
- Specified by:
getUseRelocateNeighbors
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useRelocateNeighbors.
-
setUseRelocateNeighbors
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseRelocateNeighbors(OptionalBoolean value) Relocate neighborhood which moves chains of neighbors. The operator starts by relocating a node n after a node m, then continues moving nodes which were after n as long as the "cost" added is less than the "cost" of the arc (m, n). If the new chain doesn't respect the domain of next variables, it will try reordering the nodes until it finds a valid path. Possible neighbors for path 1 -> A -> B -> C -> D -> E -> 2 (where (1, 2) are first and last nodes of the path and can therefore not be moved, A must be performed before B, and A, D and E are located at the same place): 1 -> A -> C -> [B] -> D -> E -> 2 1 -> A -> C -> D -> [B] -> E -> 2 1 -> A -> C -> D -> E -> [B] -> 2 1 -> A -> B -> D -> [C] -> E -> 2 1 -> A -> B -> D -> E -> [C] -> 2 1 -> A -> [D] -> [E] -> B -> C -> 2 1 -> A -> B -> [D] -> [E] -> C -> 2 1 -> A -> [E] -> B -> C -> D -> 2 1 -> A -> B -> [E] -> C -> D -> 2 1 -> A -> B -> C -> [E] -> D -> 2 This operator is extremely useful to move chains of nodes which are located at the same place (for instance nodes part of a same stop).
.operations_research.OptionalBoolean use_relocate_neighbors = 3;
- Parameters:
value
- The useRelocateNeighbors to set.- Returns:
- This builder for chaining.
-
clearUseRelocateNeighbors
Relocate neighborhood which moves chains of neighbors. The operator starts by relocating a node n after a node m, then continues moving nodes which were after n as long as the "cost" added is less than the "cost" of the arc (m, n). If the new chain doesn't respect the domain of next variables, it will try reordering the nodes until it finds a valid path. Possible neighbors for path 1 -> A -> B -> C -> D -> E -> 2 (where (1, 2) are first and last nodes of the path and can therefore not be moved, A must be performed before B, and A, D and E are located at the same place): 1 -> A -> C -> [B] -> D -> E -> 2 1 -> A -> C -> D -> [B] -> E -> 2 1 -> A -> C -> D -> E -> [B] -> 2 1 -> A -> B -> D -> [C] -> E -> 2 1 -> A -> B -> D -> E -> [C] -> 2 1 -> A -> [D] -> [E] -> B -> C -> 2 1 -> A -> B -> [D] -> [E] -> C -> 2 1 -> A -> [E] -> B -> C -> D -> 2 1 -> A -> B -> [E] -> C -> D -> 2 1 -> A -> B -> C -> [E] -> D -> 2 This operator is extremely useful to move chains of nodes which are located at the same place (for instance nodes part of a same stop).
.operations_research.OptionalBoolean use_relocate_neighbors = 3;
- Returns:
- This builder for chaining.
-
getUseRelocateSubtripValue
public int getUseRelocateSubtripValue()Relocate neighborhood that moves subpaths all pickup and delivery pairs have both pickup and delivery inside the subpath or both outside the subpath. For instance, for given paths: 0 -> A -> B -> A' -> B' -> 5 -> 6 -> 8 7 -> 9 Pairs (A,A') and (B,B') are interleaved, so the expected neighbors are: 0 -> 5 -> A -> B -> A' -> B' -> 6 -> 8 7 -> 9 0 -> 5 -> 6 -> A -> B -> A' -> B' -> 8 7 -> 9 0 -> 5 -> 6 -> 8 7 -> A -> B -> A' -> B' -> 9
.operations_research.OptionalBoolean use_relocate_subtrip = 25;
- Specified by:
getUseRelocateSubtripValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useRelocateSubtrip.
-
setUseRelocateSubtripValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseRelocateSubtripValue(int value) Relocate neighborhood that moves subpaths all pickup and delivery pairs have both pickup and delivery inside the subpath or both outside the subpath. For instance, for given paths: 0 -> A -> B -> A' -> B' -> 5 -> 6 -> 8 7 -> 9 Pairs (A,A') and (B,B') are interleaved, so the expected neighbors are: 0 -> 5 -> A -> B -> A' -> B' -> 6 -> 8 7 -> 9 0 -> 5 -> 6 -> A -> B -> A' -> B' -> 8 7 -> 9 0 -> 5 -> 6 -> 8 7 -> A -> B -> A' -> B' -> 9
.operations_research.OptionalBoolean use_relocate_subtrip = 25;
- Parameters:
value
- The enum numeric value on the wire for useRelocateSubtrip to set.- Returns:
- This builder for chaining.
-
getUseRelocateSubtrip
Relocate neighborhood that moves subpaths all pickup and delivery pairs have both pickup and delivery inside the subpath or both outside the subpath. For instance, for given paths: 0 -> A -> B -> A' -> B' -> 5 -> 6 -> 8 7 -> 9 Pairs (A,A') and (B,B') are interleaved, so the expected neighbors are: 0 -> 5 -> A -> B -> A' -> B' -> 6 -> 8 7 -> 9 0 -> 5 -> 6 -> A -> B -> A' -> B' -> 8 7 -> 9 0 -> 5 -> 6 -> 8 7 -> A -> B -> A' -> B' -> 9
.operations_research.OptionalBoolean use_relocate_subtrip = 25;
- Specified by:
getUseRelocateSubtrip
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useRelocateSubtrip.
-
setUseRelocateSubtrip
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseRelocateSubtrip(OptionalBoolean value) Relocate neighborhood that moves subpaths all pickup and delivery pairs have both pickup and delivery inside the subpath or both outside the subpath. For instance, for given paths: 0 -> A -> B -> A' -> B' -> 5 -> 6 -> 8 7 -> 9 Pairs (A,A') and (B,B') are interleaved, so the expected neighbors are: 0 -> 5 -> A -> B -> A' -> B' -> 6 -> 8 7 -> 9 0 -> 5 -> 6 -> A -> B -> A' -> B' -> 8 7 -> 9 0 -> 5 -> 6 -> 8 7 -> A -> B -> A' -> B' -> 9
.operations_research.OptionalBoolean use_relocate_subtrip = 25;
- Parameters:
value
- The useRelocateSubtrip to set.- Returns:
- This builder for chaining.
-
clearUseRelocateSubtrip
Relocate neighborhood that moves subpaths all pickup and delivery pairs have both pickup and delivery inside the subpath or both outside the subpath. For instance, for given paths: 0 -> A -> B -> A' -> B' -> 5 -> 6 -> 8 7 -> 9 Pairs (A,A') and (B,B') are interleaved, so the expected neighbors are: 0 -> 5 -> A -> B -> A' -> B' -> 6 -> 8 7 -> 9 0 -> 5 -> 6 -> A -> B -> A' -> B' -> 8 7 -> 9 0 -> 5 -> 6 -> 8 7 -> A -> B -> A' -> B' -> 9
.operations_research.OptionalBoolean use_relocate_subtrip = 25;
- Returns:
- This builder for chaining.
-
getUseExchangeValue
public int getUseExchangeValue()Operator which exchanges the positions of two nodes. Possible neighbors for the path 1 -> 2 -> 3 -> 4 -> 5 (where (1, 5) are first and last nodes of the path and can therefore not be moved): 1 -> [3] -> [2] -> 4 -> 5 1 -> [4] -> 3 -> [2] -> 5 1 -> 2 -> [4] -> [3] -> 5
.operations_research.OptionalBoolean use_exchange = 4;
- Specified by:
getUseExchangeValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useExchange.
-
setUseExchangeValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseExchangeValue(int value) Operator which exchanges the positions of two nodes. Possible neighbors for the path 1 -> 2 -> 3 -> 4 -> 5 (where (1, 5) are first and last nodes of the path and can therefore not be moved): 1 -> [3] -> [2] -> 4 -> 5 1 -> [4] -> 3 -> [2] -> 5 1 -> 2 -> [4] -> [3] -> 5
.operations_research.OptionalBoolean use_exchange = 4;
- Parameters:
value
- The enum numeric value on the wire for useExchange to set.- Returns:
- This builder for chaining.
-
getUseExchange
Operator which exchanges the positions of two nodes. Possible neighbors for the path 1 -> 2 -> 3 -> 4 -> 5 (where (1, 5) are first and last nodes of the path and can therefore not be moved): 1 -> [3] -> [2] -> 4 -> 5 1 -> [4] -> 3 -> [2] -> 5 1 -> 2 -> [4] -> [3] -> 5
.operations_research.OptionalBoolean use_exchange = 4;
- Specified by:
getUseExchange
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useExchange.
-
setUseExchange
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseExchange(OptionalBoolean value) Operator which exchanges the positions of two nodes. Possible neighbors for the path 1 -> 2 -> 3 -> 4 -> 5 (where (1, 5) are first and last nodes of the path and can therefore not be moved): 1 -> [3] -> [2] -> 4 -> 5 1 -> [4] -> 3 -> [2] -> 5 1 -> 2 -> [4] -> [3] -> 5
.operations_research.OptionalBoolean use_exchange = 4;
- Parameters:
value
- The useExchange to set.- Returns:
- This builder for chaining.
-
clearUseExchange
Operator which exchanges the positions of two nodes. Possible neighbors for the path 1 -> 2 -> 3 -> 4 -> 5 (where (1, 5) are first and last nodes of the path and can therefore not be moved): 1 -> [3] -> [2] -> 4 -> 5 1 -> [4] -> 3 -> [2] -> 5 1 -> 2 -> [4] -> [3] -> 5
.operations_research.OptionalBoolean use_exchange = 4;
- Returns:
- This builder for chaining.
-
getUseExchangePairValue
public int getUseExchangePairValue()Operator which exchanges the positions of two pair of nodes. Pairs correspond to the pickup and delivery pairs defined in the routing model. Possible neighbor for the paths 1 -> A -> B -> 2 -> 3 and 4 -> C -> D -> 5 (where (1, 3) and (4, 5) are first and last nodes of the paths and can therefore not be moved, and (A, B) and (C,D) are pairs of nodes): 1 -> [C] -> [D] -> 2 -> 3, 4 -> [A] -> [B] -> 5
.operations_research.OptionalBoolean use_exchange_pair = 22;
- Specified by:
getUseExchangePairValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useExchangePair.
-
setUseExchangePairValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseExchangePairValue(int value) Operator which exchanges the positions of two pair of nodes. Pairs correspond to the pickup and delivery pairs defined in the routing model. Possible neighbor for the paths 1 -> A -> B -> 2 -> 3 and 4 -> C -> D -> 5 (where (1, 3) and (4, 5) are first and last nodes of the paths and can therefore not be moved, and (A, B) and (C,D) are pairs of nodes): 1 -> [C] -> [D] -> 2 -> 3, 4 -> [A] -> [B] -> 5
.operations_research.OptionalBoolean use_exchange_pair = 22;
- Parameters:
value
- The enum numeric value on the wire for useExchangePair to set.- Returns:
- This builder for chaining.
-
getUseExchangePair
Operator which exchanges the positions of two pair of nodes. Pairs correspond to the pickup and delivery pairs defined in the routing model. Possible neighbor for the paths 1 -> A -> B -> 2 -> 3 and 4 -> C -> D -> 5 (where (1, 3) and (4, 5) are first and last nodes of the paths and can therefore not be moved, and (A, B) and (C,D) are pairs of nodes): 1 -> [C] -> [D] -> 2 -> 3, 4 -> [A] -> [B] -> 5
.operations_research.OptionalBoolean use_exchange_pair = 22;
- Specified by:
getUseExchangePair
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useExchangePair.
-
setUseExchangePair
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseExchangePair(OptionalBoolean value) Operator which exchanges the positions of two pair of nodes. Pairs correspond to the pickup and delivery pairs defined in the routing model. Possible neighbor for the paths 1 -> A -> B -> 2 -> 3 and 4 -> C -> D -> 5 (where (1, 3) and (4, 5) are first and last nodes of the paths and can therefore not be moved, and (A, B) and (C,D) are pairs of nodes): 1 -> [C] -> [D] -> 2 -> 3, 4 -> [A] -> [B] -> 5
.operations_research.OptionalBoolean use_exchange_pair = 22;
- Parameters:
value
- The useExchangePair to set.- Returns:
- This builder for chaining.
-
clearUseExchangePair
Operator which exchanges the positions of two pair of nodes. Pairs correspond to the pickup and delivery pairs defined in the routing model. Possible neighbor for the paths 1 -> A -> B -> 2 -> 3 and 4 -> C -> D -> 5 (where (1, 3) and (4, 5) are first and last nodes of the paths and can therefore not be moved, and (A, B) and (C,D) are pairs of nodes): 1 -> [C] -> [D] -> 2 -> 3, 4 -> [A] -> [B] -> 5
.operations_research.OptionalBoolean use_exchange_pair = 22;
- Returns:
- This builder for chaining.
-
getUseExchangeSubtripValue
public int getUseExchangeSubtripValue()Operator which exchanges subtrips associated to two pairs of nodes, see use_relocate_subtrip for a definition of subtrips.
.operations_research.OptionalBoolean use_exchange_subtrip = 26;
- Specified by:
getUseExchangeSubtripValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useExchangeSubtrip.
-
setUseExchangeSubtripValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseExchangeSubtripValue(int value) Operator which exchanges subtrips associated to two pairs of nodes, see use_relocate_subtrip for a definition of subtrips.
.operations_research.OptionalBoolean use_exchange_subtrip = 26;
- Parameters:
value
- The enum numeric value on the wire for useExchangeSubtrip to set.- Returns:
- This builder for chaining.
-
getUseExchangeSubtrip
Operator which exchanges subtrips associated to two pairs of nodes, see use_relocate_subtrip for a definition of subtrips.
.operations_research.OptionalBoolean use_exchange_subtrip = 26;
- Specified by:
getUseExchangeSubtrip
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useExchangeSubtrip.
-
setUseExchangeSubtrip
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseExchangeSubtrip(OptionalBoolean value) Operator which exchanges subtrips associated to two pairs of nodes, see use_relocate_subtrip for a definition of subtrips.
.operations_research.OptionalBoolean use_exchange_subtrip = 26;
- Parameters:
value
- The useExchangeSubtrip to set.- Returns:
- This builder for chaining.
-
clearUseExchangeSubtrip
Operator which exchanges subtrips associated to two pairs of nodes, see use_relocate_subtrip for a definition of subtrips.
.operations_research.OptionalBoolean use_exchange_subtrip = 26;
- Returns:
- This builder for chaining.
-
getUseCrossValue
public int getUseCrossValue()Operator which cross exchanges the starting chains of 2 paths, including exchanging the whole paths. First and last nodes are not moved. Possible neighbors for the paths 1 -> 2 -> 3 -> 4 -> 5 and 6 -> 7 -> 8 (where (1, 5) and (6, 8) are first and last nodes of the paths and can therefore not be moved): 1 -> [7] -> 3 -> 4 -> 5 6 -> [2] -> 8 1 -> [7] -> 4 -> 5 6 -> [2 -> 3] -> 8 1 -> [7] -> 5 6 -> [2 -> 3 -> 4] -> 8
.operations_research.OptionalBoolean use_cross = 5;
- Specified by:
getUseCrossValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useCross.
-
setUseCrossValue
Operator which cross exchanges the starting chains of 2 paths, including exchanging the whole paths. First and last nodes are not moved. Possible neighbors for the paths 1 -> 2 -> 3 -> 4 -> 5 and 6 -> 7 -> 8 (where (1, 5) and (6, 8) are first and last nodes of the paths and can therefore not be moved): 1 -> [7] -> 3 -> 4 -> 5 6 -> [2] -> 8 1 -> [7] -> 4 -> 5 6 -> [2 -> 3] -> 8 1 -> [7] -> 5 6 -> [2 -> 3 -> 4] -> 8
.operations_research.OptionalBoolean use_cross = 5;
- Parameters:
value
- The enum numeric value on the wire for useCross to set.- Returns:
- This builder for chaining.
-
getUseCross
Operator which cross exchanges the starting chains of 2 paths, including exchanging the whole paths. First and last nodes are not moved. Possible neighbors for the paths 1 -> 2 -> 3 -> 4 -> 5 and 6 -> 7 -> 8 (where (1, 5) and (6, 8) are first and last nodes of the paths and can therefore not be moved): 1 -> [7] -> 3 -> 4 -> 5 6 -> [2] -> 8 1 -> [7] -> 4 -> 5 6 -> [2 -> 3] -> 8 1 -> [7] -> 5 6 -> [2 -> 3 -> 4] -> 8
.operations_research.OptionalBoolean use_cross = 5;
- Specified by:
getUseCross
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useCross.
-
setUseCross
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseCross(OptionalBoolean value) Operator which cross exchanges the starting chains of 2 paths, including exchanging the whole paths. First and last nodes are not moved. Possible neighbors for the paths 1 -> 2 -> 3 -> 4 -> 5 and 6 -> 7 -> 8 (where (1, 5) and (6, 8) are first and last nodes of the paths and can therefore not be moved): 1 -> [7] -> 3 -> 4 -> 5 6 -> [2] -> 8 1 -> [7] -> 4 -> 5 6 -> [2 -> 3] -> 8 1 -> [7] -> 5 6 -> [2 -> 3 -> 4] -> 8
.operations_research.OptionalBoolean use_cross = 5;
- Parameters:
value
- The useCross to set.- Returns:
- This builder for chaining.
-
clearUseCross
Operator which cross exchanges the starting chains of 2 paths, including exchanging the whole paths. First and last nodes are not moved. Possible neighbors for the paths 1 -> 2 -> 3 -> 4 -> 5 and 6 -> 7 -> 8 (where (1, 5) and (6, 8) are first and last nodes of the paths and can therefore not be moved): 1 -> [7] -> 3 -> 4 -> 5 6 -> [2] -> 8 1 -> [7] -> 4 -> 5 6 -> [2 -> 3] -> 8 1 -> [7] -> 5 6 -> [2 -> 3 -> 4] -> 8
.operations_research.OptionalBoolean use_cross = 5;
- Returns:
- This builder for chaining.
-
getUseCrossExchangeValue
public int getUseCrossExchangeValue()Not implemented yet. TODO(b/68128619): Implement.
.operations_research.OptionalBoolean use_cross_exchange = 6;
- Specified by:
getUseCrossExchangeValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useCrossExchange.
-
setUseCrossExchangeValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseCrossExchangeValue(int value) Not implemented yet. TODO(b/68128619): Implement.
.operations_research.OptionalBoolean use_cross_exchange = 6;
- Parameters:
value
- The enum numeric value on the wire for useCrossExchange to set.- Returns:
- This builder for chaining.
-
getUseCrossExchange
Not implemented yet. TODO(b/68128619): Implement.
.operations_research.OptionalBoolean use_cross_exchange = 6;
- Specified by:
getUseCrossExchange
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useCrossExchange.
-
setUseCrossExchange
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseCrossExchange(OptionalBoolean value) Not implemented yet. TODO(b/68128619): Implement.
.operations_research.OptionalBoolean use_cross_exchange = 6;
- Parameters:
value
- The useCrossExchange to set.- Returns:
- This builder for chaining.
-
clearUseCrossExchange
Not implemented yet. TODO(b/68128619): Implement.
.operations_research.OptionalBoolean use_cross_exchange = 6;
- Returns:
- This builder for chaining.
-
getUseRelocateExpensiveChainValue
public int getUseRelocateExpensiveChainValue()Operator which detects the relocate_expensive_chain_num_arcs_to_consider most expensive arcs on a path, and moves the chain resulting from cutting pairs of arcs among these to another position. Possible neighbors for paths 1 -> 2 (empty) and 3 -> A ------> B --> C -----> D -> 4 (where A -> B and C -> D are the 2 most expensive arcs, and the chain resulting from breaking them is B -> C): 1 -> [B -> C] -> 2 3 -> A -> D -> 4 1 -> 2 3 -> [B -> C] -> A -> D -> 4 1 -> 2 3 -> A -> D -> [B -> C] -> 4
.operations_research.OptionalBoolean use_relocate_expensive_chain = 23;
- Specified by:
getUseRelocateExpensiveChainValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useRelocateExpensiveChain.
-
setUseRelocateExpensiveChainValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseRelocateExpensiveChainValue(int value) Operator which detects the relocate_expensive_chain_num_arcs_to_consider most expensive arcs on a path, and moves the chain resulting from cutting pairs of arcs among these to another position. Possible neighbors for paths 1 -> 2 (empty) and 3 -> A ------> B --> C -----> D -> 4 (where A -> B and C -> D are the 2 most expensive arcs, and the chain resulting from breaking them is B -> C): 1 -> [B -> C] -> 2 3 -> A -> D -> 4 1 -> 2 3 -> [B -> C] -> A -> D -> 4 1 -> 2 3 -> A -> D -> [B -> C] -> 4
.operations_research.OptionalBoolean use_relocate_expensive_chain = 23;
- Parameters:
value
- The enum numeric value on the wire for useRelocateExpensiveChain to set.- Returns:
- This builder for chaining.
-
getUseRelocateExpensiveChain
Operator which detects the relocate_expensive_chain_num_arcs_to_consider most expensive arcs on a path, and moves the chain resulting from cutting pairs of arcs among these to another position. Possible neighbors for paths 1 -> 2 (empty) and 3 -> A ------> B --> C -----> D -> 4 (where A -> B and C -> D are the 2 most expensive arcs, and the chain resulting from breaking them is B -> C): 1 -> [B -> C] -> 2 3 -> A -> D -> 4 1 -> 2 3 -> [B -> C] -> A -> D -> 4 1 -> 2 3 -> A -> D -> [B -> C] -> 4
.operations_research.OptionalBoolean use_relocate_expensive_chain = 23;
- Specified by:
getUseRelocateExpensiveChain
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useRelocateExpensiveChain.
-
setUseRelocateExpensiveChain
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseRelocateExpensiveChain(OptionalBoolean value) Operator which detects the relocate_expensive_chain_num_arcs_to_consider most expensive arcs on a path, and moves the chain resulting from cutting pairs of arcs among these to another position. Possible neighbors for paths 1 -> 2 (empty) and 3 -> A ------> B --> C -----> D -> 4 (where A -> B and C -> D are the 2 most expensive arcs, and the chain resulting from breaking them is B -> C): 1 -> [B -> C] -> 2 3 -> A -> D -> 4 1 -> 2 3 -> [B -> C] -> A -> D -> 4 1 -> 2 3 -> A -> D -> [B -> C] -> 4
.operations_research.OptionalBoolean use_relocate_expensive_chain = 23;
- Parameters:
value
- The useRelocateExpensiveChain to set.- Returns:
- This builder for chaining.
-
clearUseRelocateExpensiveChain
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder clearUseRelocateExpensiveChain()Operator which detects the relocate_expensive_chain_num_arcs_to_consider most expensive arcs on a path, and moves the chain resulting from cutting pairs of arcs among these to another position. Possible neighbors for paths 1 -> 2 (empty) and 3 -> A ------> B --> C -----> D -> 4 (where A -> B and C -> D are the 2 most expensive arcs, and the chain resulting from breaking them is B -> C): 1 -> [B -> C] -> 2 3 -> A -> D -> 4 1 -> 2 3 -> [B -> C] -> A -> D -> 4 1 -> 2 3 -> A -> D -> [B -> C] -> 4
.operations_research.OptionalBoolean use_relocate_expensive_chain = 23;
- Returns:
- This builder for chaining.
-
getUseTwoOptValue
public int getUseTwoOptValue()--- Intra-route operators --- Operator which reverses a subchain of a path. It is called TwoOpt because it breaks two arcs on the path; resulting paths are called two-optimal. Possible neighbors for the path 1 -> 2 -> 3 -> 4 -> 5 (where (1, 5) are first and last nodes of the path and can therefore not be moved): 1 -> [3 -> 2] -> 4 -> 5 1 -> [4 -> 3 -> 2] -> 5 1 -> 2 -> [4 -> 3] -> 5
.operations_research.OptionalBoolean use_two_opt = 7;
- Specified by:
getUseTwoOptValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useTwoOpt.
-
setUseTwoOptValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseTwoOptValue(int value) --- Intra-route operators --- Operator which reverses a subchain of a path. It is called TwoOpt because it breaks two arcs on the path; resulting paths are called two-optimal. Possible neighbors for the path 1 -> 2 -> 3 -> 4 -> 5 (where (1, 5) are first and last nodes of the path and can therefore not be moved): 1 -> [3 -> 2] -> 4 -> 5 1 -> [4 -> 3 -> 2] -> 5 1 -> 2 -> [4 -> 3] -> 5
.operations_research.OptionalBoolean use_two_opt = 7;
- Parameters:
value
- The enum numeric value on the wire for useTwoOpt to set.- Returns:
- This builder for chaining.
-
getUseTwoOpt
--- Intra-route operators --- Operator which reverses a subchain of a path. It is called TwoOpt because it breaks two arcs on the path; resulting paths are called two-optimal. Possible neighbors for the path 1 -> 2 -> 3 -> 4 -> 5 (where (1, 5) are first and last nodes of the path and can therefore not be moved): 1 -> [3 -> 2] -> 4 -> 5 1 -> [4 -> 3 -> 2] -> 5 1 -> 2 -> [4 -> 3] -> 5
.operations_research.OptionalBoolean use_two_opt = 7;
- Specified by:
getUseTwoOpt
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useTwoOpt.
-
setUseTwoOpt
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseTwoOpt(OptionalBoolean value) --- Intra-route operators --- Operator which reverses a subchain of a path. It is called TwoOpt because it breaks two arcs on the path; resulting paths are called two-optimal. Possible neighbors for the path 1 -> 2 -> 3 -> 4 -> 5 (where (1, 5) are first and last nodes of the path and can therefore not be moved): 1 -> [3 -> 2] -> 4 -> 5 1 -> [4 -> 3 -> 2] -> 5 1 -> 2 -> [4 -> 3] -> 5
.operations_research.OptionalBoolean use_two_opt = 7;
- Parameters:
value
- The useTwoOpt to set.- Returns:
- This builder for chaining.
-
clearUseTwoOpt
--- Intra-route operators --- Operator which reverses a subchain of a path. It is called TwoOpt because it breaks two arcs on the path; resulting paths are called two-optimal. Possible neighbors for the path 1 -> 2 -> 3 -> 4 -> 5 (where (1, 5) are first and last nodes of the path and can therefore not be moved): 1 -> [3 -> 2] -> 4 -> 5 1 -> [4 -> 3 -> 2] -> 5 1 -> 2 -> [4 -> 3] -> 5
.operations_research.OptionalBoolean use_two_opt = 7;
- Returns:
- This builder for chaining.
-
getUseOrOptValue
public int getUseOrOptValue()Operator which moves sub-chains of a path of length 1, 2 and 3 to another position in the same path. When the length of the sub-chain is 1, the operator simply moves a node to another position. Possible neighbors for the path 1 -> 2 -> 3 -> 4 -> 5, for a sub-chain length of 2 (where (1, 5) are first and last nodes of the path and can therefore not be moved): 1 -> 4 -> [2 -> 3] -> 5 1 -> [3 -> 4] -> 2 -> 5 The OR_OPT operator is a limited version of 3-Opt (breaks 3 arcs on a path).
.operations_research.OptionalBoolean use_or_opt = 8;
- Specified by:
getUseOrOptValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useOrOpt.
-
setUseOrOptValue
Operator which moves sub-chains of a path of length 1, 2 and 3 to another position in the same path. When the length of the sub-chain is 1, the operator simply moves a node to another position. Possible neighbors for the path 1 -> 2 -> 3 -> 4 -> 5, for a sub-chain length of 2 (where (1, 5) are first and last nodes of the path and can therefore not be moved): 1 -> 4 -> [2 -> 3] -> 5 1 -> [3 -> 4] -> 2 -> 5 The OR_OPT operator is a limited version of 3-Opt (breaks 3 arcs on a path).
.operations_research.OptionalBoolean use_or_opt = 8;
- Parameters:
value
- The enum numeric value on the wire for useOrOpt to set.- Returns:
- This builder for chaining.
-
getUseOrOpt
Operator which moves sub-chains of a path of length 1, 2 and 3 to another position in the same path. When the length of the sub-chain is 1, the operator simply moves a node to another position. Possible neighbors for the path 1 -> 2 -> 3 -> 4 -> 5, for a sub-chain length of 2 (where (1, 5) are first and last nodes of the path and can therefore not be moved): 1 -> 4 -> [2 -> 3] -> 5 1 -> [3 -> 4] -> 2 -> 5 The OR_OPT operator is a limited version of 3-Opt (breaks 3 arcs on a path).
.operations_research.OptionalBoolean use_or_opt = 8;
- Specified by:
getUseOrOpt
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useOrOpt.
-
setUseOrOpt
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseOrOpt(OptionalBoolean value) Operator which moves sub-chains of a path of length 1, 2 and 3 to another position in the same path. When the length of the sub-chain is 1, the operator simply moves a node to another position. Possible neighbors for the path 1 -> 2 -> 3 -> 4 -> 5, for a sub-chain length of 2 (where (1, 5) are first and last nodes of the path and can therefore not be moved): 1 -> 4 -> [2 -> 3] -> 5 1 -> [3 -> 4] -> 2 -> 5 The OR_OPT operator is a limited version of 3-Opt (breaks 3 arcs on a path).
.operations_research.OptionalBoolean use_or_opt = 8;
- Parameters:
value
- The useOrOpt to set.- Returns:
- This builder for chaining.
-
clearUseOrOpt
Operator which moves sub-chains of a path of length 1, 2 and 3 to another position in the same path. When the length of the sub-chain is 1, the operator simply moves a node to another position. Possible neighbors for the path 1 -> 2 -> 3 -> 4 -> 5, for a sub-chain length of 2 (where (1, 5) are first and last nodes of the path and can therefore not be moved): 1 -> 4 -> [2 -> 3] -> 5 1 -> [3 -> 4] -> 2 -> 5 The OR_OPT operator is a limited version of 3-Opt (breaks 3 arcs on a path).
.operations_research.OptionalBoolean use_or_opt = 8;
- Returns:
- This builder for chaining.
-
getUseLinKernighanValue
public int getUseLinKernighanValue()Lin-Kernighan operator. While the accumulated local gain is positive, performs a 2-OPT or a 3-OPT move followed by a series of 2-OPT moves. Returns a neighbor for which the global gain is positive.
.operations_research.OptionalBoolean use_lin_kernighan = 9;
- Specified by:
getUseLinKernighanValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useLinKernighan.
-
setUseLinKernighanValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseLinKernighanValue(int value) Lin-Kernighan operator. While the accumulated local gain is positive, performs a 2-OPT or a 3-OPT move followed by a series of 2-OPT moves. Returns a neighbor for which the global gain is positive.
.operations_research.OptionalBoolean use_lin_kernighan = 9;
- Parameters:
value
- The enum numeric value on the wire for useLinKernighan to set.- Returns:
- This builder for chaining.
-
getUseLinKernighan
Lin-Kernighan operator. While the accumulated local gain is positive, performs a 2-OPT or a 3-OPT move followed by a series of 2-OPT moves. Returns a neighbor for which the global gain is positive.
.operations_research.OptionalBoolean use_lin_kernighan = 9;
- Specified by:
getUseLinKernighan
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useLinKernighan.
-
setUseLinKernighan
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseLinKernighan(OptionalBoolean value) Lin-Kernighan operator. While the accumulated local gain is positive, performs a 2-OPT or a 3-OPT move followed by a series of 2-OPT moves. Returns a neighbor for which the global gain is positive.
.operations_research.OptionalBoolean use_lin_kernighan = 9;
- Parameters:
value
- The useLinKernighan to set.- Returns:
- This builder for chaining.
-
clearUseLinKernighan
Lin-Kernighan operator. While the accumulated local gain is positive, performs a 2-OPT or a 3-OPT move followed by a series of 2-OPT moves. Returns a neighbor for which the global gain is positive.
.operations_research.OptionalBoolean use_lin_kernighan = 9;
- Returns:
- This builder for chaining.
-
getUseTspOptValue
public int getUseTspOptValue()Sliding TSP operator. Uses an exact dynamic programming algorithm to solve the TSP corresponding to path sub-chains. For a subchain 1 -> 2 -> 3 -> 4 -> 5 -> 6, solves the TSP on nodes A, 2, 3, 4, 5, where A is a merger of nodes 1 and 6 such that cost(A,i) = cost(1,i) and cost(i,A) = cost(i,6).
.operations_research.OptionalBoolean use_tsp_opt = 10;
- Specified by:
getUseTspOptValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useTspOpt.
-
setUseTspOptValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseTspOptValue(int value) Sliding TSP operator. Uses an exact dynamic programming algorithm to solve the TSP corresponding to path sub-chains. For a subchain 1 -> 2 -> 3 -> 4 -> 5 -> 6, solves the TSP on nodes A, 2, 3, 4, 5, where A is a merger of nodes 1 and 6 such that cost(A,i) = cost(1,i) and cost(i,A) = cost(i,6).
.operations_research.OptionalBoolean use_tsp_opt = 10;
- Parameters:
value
- The enum numeric value on the wire for useTspOpt to set.- Returns:
- This builder for chaining.
-
getUseTspOpt
Sliding TSP operator. Uses an exact dynamic programming algorithm to solve the TSP corresponding to path sub-chains. For a subchain 1 -> 2 -> 3 -> 4 -> 5 -> 6, solves the TSP on nodes A, 2, 3, 4, 5, where A is a merger of nodes 1 and 6 such that cost(A,i) = cost(1,i) and cost(i,A) = cost(i,6).
.operations_research.OptionalBoolean use_tsp_opt = 10;
- Specified by:
getUseTspOpt
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useTspOpt.
-
setUseTspOpt
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseTspOpt(OptionalBoolean value) Sliding TSP operator. Uses an exact dynamic programming algorithm to solve the TSP corresponding to path sub-chains. For a subchain 1 -> 2 -> 3 -> 4 -> 5 -> 6, solves the TSP on nodes A, 2, 3, 4, 5, where A is a merger of nodes 1 and 6 such that cost(A,i) = cost(1,i) and cost(i,A) = cost(i,6).
.operations_research.OptionalBoolean use_tsp_opt = 10;
- Parameters:
value
- The useTspOpt to set.- Returns:
- This builder for chaining.
-
clearUseTspOpt
Sliding TSP operator. Uses an exact dynamic programming algorithm to solve the TSP corresponding to path sub-chains. For a subchain 1 -> 2 -> 3 -> 4 -> 5 -> 6, solves the TSP on nodes A, 2, 3, 4, 5, where A is a merger of nodes 1 and 6 such that cost(A,i) = cost(1,i) and cost(i,A) = cost(i,6).
.operations_research.OptionalBoolean use_tsp_opt = 10;
- Returns:
- This builder for chaining.
-
getUseMakeActiveValue
public int getUseMakeActiveValue()--- Operators on inactive nodes --- Operator which inserts an inactive node into a path. Possible neighbors for the path 1 -> 2 -> 3 -> 4 with 5 inactive (where 1 and 4 are first and last nodes of the path) are: 1 -> [5] -> 2 -> 3 -> 4 1 -> 2 -> [5] -> 3 -> 4 1 -> 2 -> 3 -> [5] -> 4
.operations_research.OptionalBoolean use_make_active = 11;
- Specified by:
getUseMakeActiveValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useMakeActive.
-
setUseMakeActiveValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseMakeActiveValue(int value) --- Operators on inactive nodes --- Operator which inserts an inactive node into a path. Possible neighbors for the path 1 -> 2 -> 3 -> 4 with 5 inactive (where 1 and 4 are first and last nodes of the path) are: 1 -> [5] -> 2 -> 3 -> 4 1 -> 2 -> [5] -> 3 -> 4 1 -> 2 -> 3 -> [5] -> 4
.operations_research.OptionalBoolean use_make_active = 11;
- Parameters:
value
- The enum numeric value on the wire for useMakeActive to set.- Returns:
- This builder for chaining.
-
getUseMakeActive
--- Operators on inactive nodes --- Operator which inserts an inactive node into a path. Possible neighbors for the path 1 -> 2 -> 3 -> 4 with 5 inactive (where 1 and 4 are first and last nodes of the path) are: 1 -> [5] -> 2 -> 3 -> 4 1 -> 2 -> [5] -> 3 -> 4 1 -> 2 -> 3 -> [5] -> 4
.operations_research.OptionalBoolean use_make_active = 11;
- Specified by:
getUseMakeActive
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useMakeActive.
-
setUseMakeActive
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseMakeActive(OptionalBoolean value) --- Operators on inactive nodes --- Operator which inserts an inactive node into a path. Possible neighbors for the path 1 -> 2 -> 3 -> 4 with 5 inactive (where 1 and 4 are first and last nodes of the path) are: 1 -> [5] -> 2 -> 3 -> 4 1 -> 2 -> [5] -> 3 -> 4 1 -> 2 -> 3 -> [5] -> 4
.operations_research.OptionalBoolean use_make_active = 11;
- Parameters:
value
- The useMakeActive to set.- Returns:
- This builder for chaining.
-
clearUseMakeActive
--- Operators on inactive nodes --- Operator which inserts an inactive node into a path. Possible neighbors for the path 1 -> 2 -> 3 -> 4 with 5 inactive (where 1 and 4 are first and last nodes of the path) are: 1 -> [5] -> 2 -> 3 -> 4 1 -> 2 -> [5] -> 3 -> 4 1 -> 2 -> 3 -> [5] -> 4
.operations_research.OptionalBoolean use_make_active = 11;
- Returns:
- This builder for chaining.
-
getUseRelocateAndMakeActiveValue
public int getUseRelocateAndMakeActiveValue()Operator which relocates a node while making an inactive one active. As of 3/2017, the operator is limited to two kinds of moves: - Relocating a node and replacing it by an inactive node. Possible neighbor for path 1 -> 5, 2 -> 3 -> 6 and 4 inactive (where 1,2 and 5,6 are first and last nodes of paths) is: 1 -> 3 -> 5, 2 -> 4 -> 6. - Relocating a node and inserting an inactive node next to it. Possible neighbor for path 1 -> 5, 2 -> 3 -> 6 and 4 inactive (where 1,2 and 5,6 are first and last nodes of paths) is: 1 -> 4 -> 3 -> 5, 2 -> 6.
.operations_research.OptionalBoolean use_relocate_and_make_active = 21;
- Specified by:
getUseRelocateAndMakeActiveValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useRelocateAndMakeActive.
-
setUseRelocateAndMakeActiveValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseRelocateAndMakeActiveValue(int value) Operator which relocates a node while making an inactive one active. As of 3/2017, the operator is limited to two kinds of moves: - Relocating a node and replacing it by an inactive node. Possible neighbor for path 1 -> 5, 2 -> 3 -> 6 and 4 inactive (where 1,2 and 5,6 are first and last nodes of paths) is: 1 -> 3 -> 5, 2 -> 4 -> 6. - Relocating a node and inserting an inactive node next to it. Possible neighbor for path 1 -> 5, 2 -> 3 -> 6 and 4 inactive (where 1,2 and 5,6 are first and last nodes of paths) is: 1 -> 4 -> 3 -> 5, 2 -> 6.
.operations_research.OptionalBoolean use_relocate_and_make_active = 21;
- Parameters:
value
- The enum numeric value on the wire for useRelocateAndMakeActive to set.- Returns:
- This builder for chaining.
-
getUseRelocateAndMakeActive
Operator which relocates a node while making an inactive one active. As of 3/2017, the operator is limited to two kinds of moves: - Relocating a node and replacing it by an inactive node. Possible neighbor for path 1 -> 5, 2 -> 3 -> 6 and 4 inactive (where 1,2 and 5,6 are first and last nodes of paths) is: 1 -> 3 -> 5, 2 -> 4 -> 6. - Relocating a node and inserting an inactive node next to it. Possible neighbor for path 1 -> 5, 2 -> 3 -> 6 and 4 inactive (where 1,2 and 5,6 are first and last nodes of paths) is: 1 -> 4 -> 3 -> 5, 2 -> 6.
.operations_research.OptionalBoolean use_relocate_and_make_active = 21;
- Specified by:
getUseRelocateAndMakeActive
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useRelocateAndMakeActive.
-
setUseRelocateAndMakeActive
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseRelocateAndMakeActive(OptionalBoolean value) Operator which relocates a node while making an inactive one active. As of 3/2017, the operator is limited to two kinds of moves: - Relocating a node and replacing it by an inactive node. Possible neighbor for path 1 -> 5, 2 -> 3 -> 6 and 4 inactive (where 1,2 and 5,6 are first and last nodes of paths) is: 1 -> 3 -> 5, 2 -> 4 -> 6. - Relocating a node and inserting an inactive node next to it. Possible neighbor for path 1 -> 5, 2 -> 3 -> 6 and 4 inactive (where 1,2 and 5,6 are first and last nodes of paths) is: 1 -> 4 -> 3 -> 5, 2 -> 6.
.operations_research.OptionalBoolean use_relocate_and_make_active = 21;
- Parameters:
value
- The useRelocateAndMakeActive to set.- Returns:
- This builder for chaining.
-
clearUseRelocateAndMakeActive
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder clearUseRelocateAndMakeActive()Operator which relocates a node while making an inactive one active. As of 3/2017, the operator is limited to two kinds of moves: - Relocating a node and replacing it by an inactive node. Possible neighbor for path 1 -> 5, 2 -> 3 -> 6 and 4 inactive (where 1,2 and 5,6 are first and last nodes of paths) is: 1 -> 3 -> 5, 2 -> 4 -> 6. - Relocating a node and inserting an inactive node next to it. Possible neighbor for path 1 -> 5, 2 -> 3 -> 6 and 4 inactive (where 1,2 and 5,6 are first and last nodes of paths) is: 1 -> 4 -> 3 -> 5, 2 -> 6.
.operations_research.OptionalBoolean use_relocate_and_make_active = 21;
- Returns:
- This builder for chaining.
-
getUseExchangeAndMakeActiveValue
public int getUseExchangeAndMakeActiveValue()Operator which exchanges two nodes and inserts an inactive node. Possible neighbors for paths 0 -> 2 -> 4, 1 -> 3 -> 6 and 5 inactive are: 0 -> 3 -> 4, 1 -> 5 -> 2 -> 6 0 -> 3 -> 5 -> 4, 1 -> 2 -> 6 0 -> 5 -> 3 -> 4, 1 -> 2 -> 6 0 -> 3 -> 4, 1 -> 2 -> 5 -> 6
.operations_research.OptionalBoolean use_exchange_and_make_active = 37;
- Specified by:
getUseExchangeAndMakeActiveValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useExchangeAndMakeActive.
-
setUseExchangeAndMakeActiveValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseExchangeAndMakeActiveValue(int value) Operator which exchanges two nodes and inserts an inactive node. Possible neighbors for paths 0 -> 2 -> 4, 1 -> 3 -> 6 and 5 inactive are: 0 -> 3 -> 4, 1 -> 5 -> 2 -> 6 0 -> 3 -> 5 -> 4, 1 -> 2 -> 6 0 -> 5 -> 3 -> 4, 1 -> 2 -> 6 0 -> 3 -> 4, 1 -> 2 -> 5 -> 6
.operations_research.OptionalBoolean use_exchange_and_make_active = 37;
- Parameters:
value
- The enum numeric value on the wire for useExchangeAndMakeActive to set.- Returns:
- This builder for chaining.
-
getUseExchangeAndMakeActive
Operator which exchanges two nodes and inserts an inactive node. Possible neighbors for paths 0 -> 2 -> 4, 1 -> 3 -> 6 and 5 inactive are: 0 -> 3 -> 4, 1 -> 5 -> 2 -> 6 0 -> 3 -> 5 -> 4, 1 -> 2 -> 6 0 -> 5 -> 3 -> 4, 1 -> 2 -> 6 0 -> 3 -> 4, 1 -> 2 -> 5 -> 6
.operations_research.OptionalBoolean use_exchange_and_make_active = 37;
- Specified by:
getUseExchangeAndMakeActive
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useExchangeAndMakeActive.
-
setUseExchangeAndMakeActive
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseExchangeAndMakeActive(OptionalBoolean value) Operator which exchanges two nodes and inserts an inactive node. Possible neighbors for paths 0 -> 2 -> 4, 1 -> 3 -> 6 and 5 inactive are: 0 -> 3 -> 4, 1 -> 5 -> 2 -> 6 0 -> 3 -> 5 -> 4, 1 -> 2 -> 6 0 -> 5 -> 3 -> 4, 1 -> 2 -> 6 0 -> 3 -> 4, 1 -> 2 -> 5 -> 6
.operations_research.OptionalBoolean use_exchange_and_make_active = 37;
- Parameters:
value
- The useExchangeAndMakeActive to set.- Returns:
- This builder for chaining.
-
clearUseExchangeAndMakeActive
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder clearUseExchangeAndMakeActive()Operator which exchanges two nodes and inserts an inactive node. Possible neighbors for paths 0 -> 2 -> 4, 1 -> 3 -> 6 and 5 inactive are: 0 -> 3 -> 4, 1 -> 5 -> 2 -> 6 0 -> 3 -> 5 -> 4, 1 -> 2 -> 6 0 -> 5 -> 3 -> 4, 1 -> 2 -> 6 0 -> 3 -> 4, 1 -> 2 -> 5 -> 6
.operations_research.OptionalBoolean use_exchange_and_make_active = 37;
- Returns:
- This builder for chaining.
-
getUseExchangePathStartEndsAndMakeActiveValue
public int getUseExchangePathStartEndsAndMakeActiveValue()Operator which exchanges the first and last nodes of two paths and makes a node active. Possible neighbors for paths 0 -> 1 -> 2 -> 7, 6 -> 3 -> 4 -> 8 and 5 inactive are: 0 -> 5 -> 3 -> 4 -> 7, 6 -> 1 -> 2 -> 8 0 -> 3 -> 4 -> 7, 6 -> 1 -> 5 -> 2 -> 8 0 -> 3 -> 4 -> 7, 6 -> 1 -> 2 -> 5 -> 8 0 -> 3 -> 5 -> 4 -> 7, 6 -> 1 -> 2 -> 8 0 -> 3 -> 4 -> 5 -> 7, 6 -> 1 -> 2 -> 8
.operations_research.OptionalBoolean use_exchange_path_start_ends_and_make_active = 38;
- Specified by:
getUseExchangePathStartEndsAndMakeActiveValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useExchangePathStartEndsAndMakeActive.
-
setUseExchangePathStartEndsAndMakeActiveValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseExchangePathStartEndsAndMakeActiveValue(int value) Operator which exchanges the first and last nodes of two paths and makes a node active. Possible neighbors for paths 0 -> 1 -> 2 -> 7, 6 -> 3 -> 4 -> 8 and 5 inactive are: 0 -> 5 -> 3 -> 4 -> 7, 6 -> 1 -> 2 -> 8 0 -> 3 -> 4 -> 7, 6 -> 1 -> 5 -> 2 -> 8 0 -> 3 -> 4 -> 7, 6 -> 1 -> 2 -> 5 -> 8 0 -> 3 -> 5 -> 4 -> 7, 6 -> 1 -> 2 -> 8 0 -> 3 -> 4 -> 5 -> 7, 6 -> 1 -> 2 -> 8
.operations_research.OptionalBoolean use_exchange_path_start_ends_and_make_active = 38;
- Parameters:
value
- The enum numeric value on the wire for useExchangePathStartEndsAndMakeActive to set.- Returns:
- This builder for chaining.
-
getUseExchangePathStartEndsAndMakeActive
Operator which exchanges the first and last nodes of two paths and makes a node active. Possible neighbors for paths 0 -> 1 -> 2 -> 7, 6 -> 3 -> 4 -> 8 and 5 inactive are: 0 -> 5 -> 3 -> 4 -> 7, 6 -> 1 -> 2 -> 8 0 -> 3 -> 4 -> 7, 6 -> 1 -> 5 -> 2 -> 8 0 -> 3 -> 4 -> 7, 6 -> 1 -> 2 -> 5 -> 8 0 -> 3 -> 5 -> 4 -> 7, 6 -> 1 -> 2 -> 8 0 -> 3 -> 4 -> 5 -> 7, 6 -> 1 -> 2 -> 8
.operations_research.OptionalBoolean use_exchange_path_start_ends_and_make_active = 38;
- Specified by:
getUseExchangePathStartEndsAndMakeActive
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useExchangePathStartEndsAndMakeActive.
-
setUseExchangePathStartEndsAndMakeActive
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseExchangePathStartEndsAndMakeActive(OptionalBoolean value) Operator which exchanges the first and last nodes of two paths and makes a node active. Possible neighbors for paths 0 -> 1 -> 2 -> 7, 6 -> 3 -> 4 -> 8 and 5 inactive are: 0 -> 5 -> 3 -> 4 -> 7, 6 -> 1 -> 2 -> 8 0 -> 3 -> 4 -> 7, 6 -> 1 -> 5 -> 2 -> 8 0 -> 3 -> 4 -> 7, 6 -> 1 -> 2 -> 5 -> 8 0 -> 3 -> 5 -> 4 -> 7, 6 -> 1 -> 2 -> 8 0 -> 3 -> 4 -> 5 -> 7, 6 -> 1 -> 2 -> 8
.operations_research.OptionalBoolean use_exchange_path_start_ends_and_make_active = 38;
- Parameters:
value
- The useExchangePathStartEndsAndMakeActive to set.- Returns:
- This builder for chaining.
-
clearUseExchangePathStartEndsAndMakeActive
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder clearUseExchangePathStartEndsAndMakeActive()Operator which exchanges the first and last nodes of two paths and makes a node active. Possible neighbors for paths 0 -> 1 -> 2 -> 7, 6 -> 3 -> 4 -> 8 and 5 inactive are: 0 -> 5 -> 3 -> 4 -> 7, 6 -> 1 -> 2 -> 8 0 -> 3 -> 4 -> 7, 6 -> 1 -> 5 -> 2 -> 8 0 -> 3 -> 4 -> 7, 6 -> 1 -> 2 -> 5 -> 8 0 -> 3 -> 5 -> 4 -> 7, 6 -> 1 -> 2 -> 8 0 -> 3 -> 4 -> 5 -> 7, 6 -> 1 -> 2 -> 8
.operations_research.OptionalBoolean use_exchange_path_start_ends_and_make_active = 38;
- Returns:
- This builder for chaining.
-
getUseMakeInactiveValue
public int getUseMakeInactiveValue()Operator which makes path nodes inactive. Possible neighbors for the path 1 -> 2 -> 3 -> 4 (where 1 and 4 are first and last nodes of the path) are: 1 -> 3 -> 4 with 2 inactive 1 -> 2 -> 4 with 3 inactive
.operations_research.OptionalBoolean use_make_inactive = 12;
- Specified by:
getUseMakeInactiveValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useMakeInactive.
-
setUseMakeInactiveValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseMakeInactiveValue(int value) Operator which makes path nodes inactive. Possible neighbors for the path 1 -> 2 -> 3 -> 4 (where 1 and 4 are first and last nodes of the path) are: 1 -> 3 -> 4 with 2 inactive 1 -> 2 -> 4 with 3 inactive
.operations_research.OptionalBoolean use_make_inactive = 12;
- Parameters:
value
- The enum numeric value on the wire for useMakeInactive to set.- Returns:
- This builder for chaining.
-
getUseMakeInactive
Operator which makes path nodes inactive. Possible neighbors for the path 1 -> 2 -> 3 -> 4 (where 1 and 4 are first and last nodes of the path) are: 1 -> 3 -> 4 with 2 inactive 1 -> 2 -> 4 with 3 inactive
.operations_research.OptionalBoolean use_make_inactive = 12;
- Specified by:
getUseMakeInactive
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useMakeInactive.
-
setUseMakeInactive
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseMakeInactive(OptionalBoolean value) Operator which makes path nodes inactive. Possible neighbors for the path 1 -> 2 -> 3 -> 4 (where 1 and 4 are first and last nodes of the path) are: 1 -> 3 -> 4 with 2 inactive 1 -> 2 -> 4 with 3 inactive
.operations_research.OptionalBoolean use_make_inactive = 12;
- Parameters:
value
- The useMakeInactive to set.- Returns:
- This builder for chaining.
-
clearUseMakeInactive
Operator which makes path nodes inactive. Possible neighbors for the path 1 -> 2 -> 3 -> 4 (where 1 and 4 are first and last nodes of the path) are: 1 -> 3 -> 4 with 2 inactive 1 -> 2 -> 4 with 3 inactive
.operations_research.OptionalBoolean use_make_inactive = 12;
- Returns:
- This builder for chaining.
-
getUseMakeChainInactiveValue
public int getUseMakeChainInactiveValue()Operator which makes a "chain" of path nodes inactive. Possible neighbors for the path 1 -> 2 -> 3 -> 4 (where 1 and 4 are first and last nodes of the path) are: 1 -> 3 -> 4 with 2 inactive 1 -> 2 -> 4 with 3 inactive 1 -> 4 with 2 and 3 inactive
.operations_research.OptionalBoolean use_make_chain_inactive = 13;
- Specified by:
getUseMakeChainInactiveValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useMakeChainInactive.
-
setUseMakeChainInactiveValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseMakeChainInactiveValue(int value) Operator which makes a "chain" of path nodes inactive. Possible neighbors for the path 1 -> 2 -> 3 -> 4 (where 1 and 4 are first and last nodes of the path) are: 1 -> 3 -> 4 with 2 inactive 1 -> 2 -> 4 with 3 inactive 1 -> 4 with 2 and 3 inactive
.operations_research.OptionalBoolean use_make_chain_inactive = 13;
- Parameters:
value
- The enum numeric value on the wire for useMakeChainInactive to set.- Returns:
- This builder for chaining.
-
getUseMakeChainInactive
Operator which makes a "chain" of path nodes inactive. Possible neighbors for the path 1 -> 2 -> 3 -> 4 (where 1 and 4 are first and last nodes of the path) are: 1 -> 3 -> 4 with 2 inactive 1 -> 2 -> 4 with 3 inactive 1 -> 4 with 2 and 3 inactive
.operations_research.OptionalBoolean use_make_chain_inactive = 13;
- Specified by:
getUseMakeChainInactive
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useMakeChainInactive.
-
setUseMakeChainInactive
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseMakeChainInactive(OptionalBoolean value) Operator which makes a "chain" of path nodes inactive. Possible neighbors for the path 1 -> 2 -> 3 -> 4 (where 1 and 4 are first and last nodes of the path) are: 1 -> 3 -> 4 with 2 inactive 1 -> 2 -> 4 with 3 inactive 1 -> 4 with 2 and 3 inactive
.operations_research.OptionalBoolean use_make_chain_inactive = 13;
- Parameters:
value
- The useMakeChainInactive to set.- Returns:
- This builder for chaining.
-
clearUseMakeChainInactive
Operator which makes a "chain" of path nodes inactive. Possible neighbors for the path 1 -> 2 -> 3 -> 4 (where 1 and 4 are first and last nodes of the path) are: 1 -> 3 -> 4 with 2 inactive 1 -> 2 -> 4 with 3 inactive 1 -> 4 with 2 and 3 inactive
.operations_research.OptionalBoolean use_make_chain_inactive = 13;
- Returns:
- This builder for chaining.
-
getUseSwapActiveValue
public int getUseSwapActiveValue()Operator which replaces an active node by an inactive one. Possible neighbors for the path 1 -> 2 -> 3 -> 4 with 5 inactive (where 1 and 4 are first and last nodes of the path) are: 1 -> [5] -> 3 -> 4 with 2 inactive 1 -> 2 -> [5] -> 4 with 3 inactive
.operations_research.OptionalBoolean use_swap_active = 14;
- Specified by:
getUseSwapActiveValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useSwapActive.
-
setUseSwapActiveValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseSwapActiveValue(int value) Operator which replaces an active node by an inactive one. Possible neighbors for the path 1 -> 2 -> 3 -> 4 with 5 inactive (where 1 and 4 are first and last nodes of the path) are: 1 -> [5] -> 3 -> 4 with 2 inactive 1 -> 2 -> [5] -> 4 with 3 inactive
.operations_research.OptionalBoolean use_swap_active = 14;
- Parameters:
value
- The enum numeric value on the wire for useSwapActive to set.- Returns:
- This builder for chaining.
-
getUseSwapActive
Operator which replaces an active node by an inactive one. Possible neighbors for the path 1 -> 2 -> 3 -> 4 with 5 inactive (where 1 and 4 are first and last nodes of the path) are: 1 -> [5] -> 3 -> 4 with 2 inactive 1 -> 2 -> [5] -> 4 with 3 inactive
.operations_research.OptionalBoolean use_swap_active = 14;
- Specified by:
getUseSwapActive
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useSwapActive.
-
setUseSwapActive
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseSwapActive(OptionalBoolean value) Operator which replaces an active node by an inactive one. Possible neighbors for the path 1 -> 2 -> 3 -> 4 with 5 inactive (where 1 and 4 are first and last nodes of the path) are: 1 -> [5] -> 3 -> 4 with 2 inactive 1 -> 2 -> [5] -> 4 with 3 inactive
.operations_research.OptionalBoolean use_swap_active = 14;
- Parameters:
value
- The useSwapActive to set.- Returns:
- This builder for chaining.
-
clearUseSwapActive
Operator which replaces an active node by an inactive one. Possible neighbors for the path 1 -> 2 -> 3 -> 4 with 5 inactive (where 1 and 4 are first and last nodes of the path) are: 1 -> [5] -> 3 -> 4 with 2 inactive 1 -> 2 -> [5] -> 4 with 3 inactive
.operations_research.OptionalBoolean use_swap_active = 14;
- Returns:
- This builder for chaining.
-
getUseSwapActiveChainValue
public int getUseSwapActiveChainValue()Operator which replaces a chain of active nodes by an inactive one. Possible neighbors for the path 1 -> 2 -> 3 -> 4 with 5 inactive (where 1 and 4 are first and last nodes of the path) are: 1 -> [5] -> 3 -> 4 with 2 inactive 1 -> 2 -> [5] -> 4 with 3 inactive 1 -> [5] -> 4 with 2 and 3 inactive
.operations_research.OptionalBoolean use_swap_active_chain = 35;
- Specified by:
getUseSwapActiveChainValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useSwapActiveChain.
-
setUseSwapActiveChainValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseSwapActiveChainValue(int value) Operator which replaces a chain of active nodes by an inactive one. Possible neighbors for the path 1 -> 2 -> 3 -> 4 with 5 inactive (where 1 and 4 are first and last nodes of the path) are: 1 -> [5] -> 3 -> 4 with 2 inactive 1 -> 2 -> [5] -> 4 with 3 inactive 1 -> [5] -> 4 with 2 and 3 inactive
.operations_research.OptionalBoolean use_swap_active_chain = 35;
- Parameters:
value
- The enum numeric value on the wire for useSwapActiveChain to set.- Returns:
- This builder for chaining.
-
getUseSwapActiveChain
Operator which replaces a chain of active nodes by an inactive one. Possible neighbors for the path 1 -> 2 -> 3 -> 4 with 5 inactive (where 1 and 4 are first and last nodes of the path) are: 1 -> [5] -> 3 -> 4 with 2 inactive 1 -> 2 -> [5] -> 4 with 3 inactive 1 -> [5] -> 4 with 2 and 3 inactive
.operations_research.OptionalBoolean use_swap_active_chain = 35;
- Specified by:
getUseSwapActiveChain
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useSwapActiveChain.
-
setUseSwapActiveChain
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseSwapActiveChain(OptionalBoolean value) Operator which replaces a chain of active nodes by an inactive one. Possible neighbors for the path 1 -> 2 -> 3 -> 4 with 5 inactive (where 1 and 4 are first and last nodes of the path) are: 1 -> [5] -> 3 -> 4 with 2 inactive 1 -> 2 -> [5] -> 4 with 3 inactive 1 -> [5] -> 4 with 2 and 3 inactive
.operations_research.OptionalBoolean use_swap_active_chain = 35;
- Parameters:
value
- The useSwapActiveChain to set.- Returns:
- This builder for chaining.
-
clearUseSwapActiveChain
Operator which replaces a chain of active nodes by an inactive one. Possible neighbors for the path 1 -> 2 -> 3 -> 4 with 5 inactive (where 1 and 4 are first and last nodes of the path) are: 1 -> [5] -> 3 -> 4 with 2 inactive 1 -> 2 -> [5] -> 4 with 3 inactive 1 -> [5] -> 4 with 2 and 3 inactive
.operations_research.OptionalBoolean use_swap_active_chain = 35;
- Returns:
- This builder for chaining.
-
getUseExtendedSwapActiveValue
public int getUseExtendedSwapActiveValue()Operator which makes an inactive node active and an active one inactive. It is similar to SwapActiveOperator excepts that it tries to insert the inactive node in all possible positions instead of just the position of the node made inactive. Possible neighbors for the path 1 -> 2 -> 3 -> 4 with 5 inactive (where 1 and 4 are first and last nodes of the path) are: 1 -> [5] -> 3 -> 4 with 2 inactive 1 -> 3 -> [5] -> 4 with 2 inactive 1 -> [5] -> 2 -> 4 with 3 inactive 1 -> 2 -> [5] -> 4 with 3 inactive
.operations_research.OptionalBoolean use_extended_swap_active = 15;
- Specified by:
getUseExtendedSwapActiveValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useExtendedSwapActive.
-
setUseExtendedSwapActiveValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseExtendedSwapActiveValue(int value) Operator which makes an inactive node active and an active one inactive. It is similar to SwapActiveOperator excepts that it tries to insert the inactive node in all possible positions instead of just the position of the node made inactive. Possible neighbors for the path 1 -> 2 -> 3 -> 4 with 5 inactive (where 1 and 4 are first and last nodes of the path) are: 1 -> [5] -> 3 -> 4 with 2 inactive 1 -> 3 -> [5] -> 4 with 2 inactive 1 -> [5] -> 2 -> 4 with 3 inactive 1 -> 2 -> [5] -> 4 with 3 inactive
.operations_research.OptionalBoolean use_extended_swap_active = 15;
- Parameters:
value
- The enum numeric value on the wire for useExtendedSwapActive to set.- Returns:
- This builder for chaining.
-
getUseExtendedSwapActive
Operator which makes an inactive node active and an active one inactive. It is similar to SwapActiveOperator excepts that it tries to insert the inactive node in all possible positions instead of just the position of the node made inactive. Possible neighbors for the path 1 -> 2 -> 3 -> 4 with 5 inactive (where 1 and 4 are first and last nodes of the path) are: 1 -> [5] -> 3 -> 4 with 2 inactive 1 -> 3 -> [5] -> 4 with 2 inactive 1 -> [5] -> 2 -> 4 with 3 inactive 1 -> 2 -> [5] -> 4 with 3 inactive
.operations_research.OptionalBoolean use_extended_swap_active = 15;
- Specified by:
getUseExtendedSwapActive
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useExtendedSwapActive.
-
setUseExtendedSwapActive
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseExtendedSwapActive(OptionalBoolean value) Operator which makes an inactive node active and an active one inactive. It is similar to SwapActiveOperator excepts that it tries to insert the inactive node in all possible positions instead of just the position of the node made inactive. Possible neighbors for the path 1 -> 2 -> 3 -> 4 with 5 inactive (where 1 and 4 are first and last nodes of the path) are: 1 -> [5] -> 3 -> 4 with 2 inactive 1 -> 3 -> [5] -> 4 with 2 inactive 1 -> [5] -> 2 -> 4 with 3 inactive 1 -> 2 -> [5] -> 4 with 3 inactive
.operations_research.OptionalBoolean use_extended_swap_active = 15;
- Parameters:
value
- The useExtendedSwapActive to set.- Returns:
- This builder for chaining.
-
clearUseExtendedSwapActive
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder clearUseExtendedSwapActive()Operator which makes an inactive node active and an active one inactive. It is similar to SwapActiveOperator excepts that it tries to insert the inactive node in all possible positions instead of just the position of the node made inactive. Possible neighbors for the path 1 -> 2 -> 3 -> 4 with 5 inactive (where 1 and 4 are first and last nodes of the path) are: 1 -> [5] -> 3 -> 4 with 2 inactive 1 -> 3 -> [5] -> 4 with 2 inactive 1 -> [5] -> 2 -> 4 with 3 inactive 1 -> 2 -> [5] -> 4 with 3 inactive
.operations_research.OptionalBoolean use_extended_swap_active = 15;
- Returns:
- This builder for chaining.
-
getUseShortestPathSwapActiveValue
public int getUseShortestPathSwapActiveValue()Swaps active nodes from node alternatives in sequence. Considers chains of nodes with alternatives, builds a DAG from the chain, each "layer" of the DAG being composed of the set of alternatives of the node at a given rank in the chain, fully connected to the next layer. A neighbor is built from the shortest path starting from the node before the chain (source), through the DAG to the node following the chain.
.operations_research.OptionalBoolean use_shortest_path_swap_active = 34;
- Specified by:
getUseShortestPathSwapActiveValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useShortestPathSwapActive.
-
setUseShortestPathSwapActiveValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseShortestPathSwapActiveValue(int value) Swaps active nodes from node alternatives in sequence. Considers chains of nodes with alternatives, builds a DAG from the chain, each "layer" of the DAG being composed of the set of alternatives of the node at a given rank in the chain, fully connected to the next layer. A neighbor is built from the shortest path starting from the node before the chain (source), through the DAG to the node following the chain.
.operations_research.OptionalBoolean use_shortest_path_swap_active = 34;
- Parameters:
value
- The enum numeric value on the wire for useShortestPathSwapActive to set.- Returns:
- This builder for chaining.
-
getUseShortestPathSwapActive
Swaps active nodes from node alternatives in sequence. Considers chains of nodes with alternatives, builds a DAG from the chain, each "layer" of the DAG being composed of the set of alternatives of the node at a given rank in the chain, fully connected to the next layer. A neighbor is built from the shortest path starting from the node before the chain (source), through the DAG to the node following the chain.
.operations_research.OptionalBoolean use_shortest_path_swap_active = 34;
- Specified by:
getUseShortestPathSwapActive
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useShortestPathSwapActive.
-
setUseShortestPathSwapActive
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseShortestPathSwapActive(OptionalBoolean value) Swaps active nodes from node alternatives in sequence. Considers chains of nodes with alternatives, builds a DAG from the chain, each "layer" of the DAG being composed of the set of alternatives of the node at a given rank in the chain, fully connected to the next layer. A neighbor is built from the shortest path starting from the node before the chain (source), through the DAG to the node following the chain.
.operations_research.OptionalBoolean use_shortest_path_swap_active = 34;
- Parameters:
value
- The useShortestPathSwapActive to set.- Returns:
- This builder for chaining.
-
clearUseShortestPathSwapActive
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder clearUseShortestPathSwapActive()Swaps active nodes from node alternatives in sequence. Considers chains of nodes with alternatives, builds a DAG from the chain, each "layer" of the DAG being composed of the set of alternatives of the node at a given rank in the chain, fully connected to the next layer. A neighbor is built from the shortest path starting from the node before the chain (source), through the DAG to the node following the chain.
.operations_research.OptionalBoolean use_shortest_path_swap_active = 34;
- Returns:
- This builder for chaining.
-
getUseShortestPathTwoOptValue
public int getUseShortestPathTwoOptValue()Similar to use_two_opt but returns the shortest path on the DAG of node alternatives of the reversed chain (cf. use_shortest_path_swap_active).
.operations_research.OptionalBoolean use_shortest_path_two_opt = 36;
- Specified by:
getUseShortestPathTwoOptValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useShortestPathTwoOpt.
-
setUseShortestPathTwoOptValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseShortestPathTwoOptValue(int value) Similar to use_two_opt but returns the shortest path on the DAG of node alternatives of the reversed chain (cf. use_shortest_path_swap_active).
.operations_research.OptionalBoolean use_shortest_path_two_opt = 36;
- Parameters:
value
- The enum numeric value on the wire for useShortestPathTwoOpt to set.- Returns:
- This builder for chaining.
-
getUseShortestPathTwoOpt
Similar to use_two_opt but returns the shortest path on the DAG of node alternatives of the reversed chain (cf. use_shortest_path_swap_active).
.operations_research.OptionalBoolean use_shortest_path_two_opt = 36;
- Specified by:
getUseShortestPathTwoOpt
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useShortestPathTwoOpt.
-
setUseShortestPathTwoOpt
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseShortestPathTwoOpt(OptionalBoolean value) Similar to use_two_opt but returns the shortest path on the DAG of node alternatives of the reversed chain (cf. use_shortest_path_swap_active).
.operations_research.OptionalBoolean use_shortest_path_two_opt = 36;
- Parameters:
value
- The useShortestPathTwoOpt to set.- Returns:
- This builder for chaining.
-
clearUseShortestPathTwoOpt
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder clearUseShortestPathTwoOpt()Similar to use_two_opt but returns the shortest path on the DAG of node alternatives of the reversed chain (cf. use_shortest_path_swap_active).
.operations_research.OptionalBoolean use_shortest_path_two_opt = 36;
- Returns:
- This builder for chaining.
-
getUseNodePairSwapActiveValue
public int getUseNodePairSwapActiveValue()Operator which makes an inactive node active and an active pair of nodes inactive OR makes an inactive pair of nodes active and an active node inactive. Possible neighbors for the path 1 -> 2 -> 3 -> 4 with 5 inactive (where 1 and 4 are first and last nodes of the path and (2,3) is a pair of nodes) are: 1 -> [5] -> 4 with (2,3) inactive Possible neighbors for the path 1 -> 2 -> 3 with (4,5) inactive (where 1 and 3 are first and last nodes of the path and (4,5) is a pair of nodes) are: 1 -> [4] -> [5] -> 3 with 2 inactive
.operations_research.OptionalBoolean use_node_pair_swap_active = 20;
- Specified by:
getUseNodePairSwapActiveValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useNodePairSwapActive.
-
setUseNodePairSwapActiveValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseNodePairSwapActiveValue(int value) Operator which makes an inactive node active and an active pair of nodes inactive OR makes an inactive pair of nodes active and an active node inactive. Possible neighbors for the path 1 -> 2 -> 3 -> 4 with 5 inactive (where 1 and 4 are first and last nodes of the path and (2,3) is a pair of nodes) are: 1 -> [5] -> 4 with (2,3) inactive Possible neighbors for the path 1 -> 2 -> 3 with (4,5) inactive (where 1 and 3 are first and last nodes of the path and (4,5) is a pair of nodes) are: 1 -> [4] -> [5] -> 3 with 2 inactive
.operations_research.OptionalBoolean use_node_pair_swap_active = 20;
- Parameters:
value
- The enum numeric value on the wire for useNodePairSwapActive to set.- Returns:
- This builder for chaining.
-
getUseNodePairSwapActive
Operator which makes an inactive node active and an active pair of nodes inactive OR makes an inactive pair of nodes active and an active node inactive. Possible neighbors for the path 1 -> 2 -> 3 -> 4 with 5 inactive (where 1 and 4 are first and last nodes of the path and (2,3) is a pair of nodes) are: 1 -> [5] -> 4 with (2,3) inactive Possible neighbors for the path 1 -> 2 -> 3 with (4,5) inactive (where 1 and 3 are first and last nodes of the path and (4,5) is a pair of nodes) are: 1 -> [4] -> [5] -> 3 with 2 inactive
.operations_research.OptionalBoolean use_node_pair_swap_active = 20;
- Specified by:
getUseNodePairSwapActive
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useNodePairSwapActive.
-
setUseNodePairSwapActive
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseNodePairSwapActive(OptionalBoolean value) Operator which makes an inactive node active and an active pair of nodes inactive OR makes an inactive pair of nodes active and an active node inactive. Possible neighbors for the path 1 -> 2 -> 3 -> 4 with 5 inactive (where 1 and 4 are first and last nodes of the path and (2,3) is a pair of nodes) are: 1 -> [5] -> 4 with (2,3) inactive Possible neighbors for the path 1 -> 2 -> 3 with (4,5) inactive (where 1 and 3 are first and last nodes of the path and (4,5) is a pair of nodes) are: 1 -> [4] -> [5] -> 3 with 2 inactive
.operations_research.OptionalBoolean use_node_pair_swap_active = 20;
- Parameters:
value
- The useNodePairSwapActive to set.- Returns:
- This builder for chaining.
-
clearUseNodePairSwapActive
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder clearUseNodePairSwapActive()Operator which makes an inactive node active and an active pair of nodes inactive OR makes an inactive pair of nodes active and an active node inactive. Possible neighbors for the path 1 -> 2 -> 3 -> 4 with 5 inactive (where 1 and 4 are first and last nodes of the path and (2,3) is a pair of nodes) are: 1 -> [5] -> 4 with (2,3) inactive Possible neighbors for the path 1 -> 2 -> 3 with (4,5) inactive (where 1 and 3 are first and last nodes of the path and (4,5) is a pair of nodes) are: 1 -> [4] -> [5] -> 3 with 2 inactive
.operations_research.OptionalBoolean use_node_pair_swap_active = 20;
- Returns:
- This builder for chaining.
-
getUsePathLnsValue
public int getUsePathLnsValue()--- Large neighborhood search operators --- Operator which relaxes two sub-chains of three consecutive arcs each. Each sub-chain is defined by a start node and the next three arcs. Those six arcs are relaxed to build a new neighbor. PATH_LNS explores all possible pairs of starting nodes and so defines n^2 neighbors, n being the number of nodes. Note that the two sub-chains can be part of the same path; they even may overlap.
.operations_research.OptionalBoolean use_path_lns = 16;
- Specified by:
getUsePathLnsValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for usePathLns.
-
setUsePathLnsValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUsePathLnsValue(int value) --- Large neighborhood search operators --- Operator which relaxes two sub-chains of three consecutive arcs each. Each sub-chain is defined by a start node and the next three arcs. Those six arcs are relaxed to build a new neighbor. PATH_LNS explores all possible pairs of starting nodes and so defines n^2 neighbors, n being the number of nodes. Note that the two sub-chains can be part of the same path; they even may overlap.
.operations_research.OptionalBoolean use_path_lns = 16;
- Parameters:
value
- The enum numeric value on the wire for usePathLns to set.- Returns:
- This builder for chaining.
-
getUsePathLns
--- Large neighborhood search operators --- Operator which relaxes two sub-chains of three consecutive arcs each. Each sub-chain is defined by a start node and the next three arcs. Those six arcs are relaxed to build a new neighbor. PATH_LNS explores all possible pairs of starting nodes and so defines n^2 neighbors, n being the number of nodes. Note that the two sub-chains can be part of the same path; they even may overlap.
.operations_research.OptionalBoolean use_path_lns = 16;
- Specified by:
getUsePathLns
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The usePathLns.
-
setUsePathLns
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUsePathLns(OptionalBoolean value) --- Large neighborhood search operators --- Operator which relaxes two sub-chains of three consecutive arcs each. Each sub-chain is defined by a start node and the next three arcs. Those six arcs are relaxed to build a new neighbor. PATH_LNS explores all possible pairs of starting nodes and so defines n^2 neighbors, n being the number of nodes. Note that the two sub-chains can be part of the same path; they even may overlap.
.operations_research.OptionalBoolean use_path_lns = 16;
- Parameters:
value
- The usePathLns to set.- Returns:
- This builder for chaining.
-
clearUsePathLns
--- Large neighborhood search operators --- Operator which relaxes two sub-chains of three consecutive arcs each. Each sub-chain is defined by a start node and the next three arcs. Those six arcs are relaxed to build a new neighbor. PATH_LNS explores all possible pairs of starting nodes and so defines n^2 neighbors, n being the number of nodes. Note that the two sub-chains can be part of the same path; they even may overlap.
.operations_research.OptionalBoolean use_path_lns = 16;
- Returns:
- This builder for chaining.
-
getUseFullPathLnsValue
public int getUseFullPathLnsValue()Operator which relaxes one entire path and all inactive nodes.
.operations_research.OptionalBoolean use_full_path_lns = 17;
- Specified by:
getUseFullPathLnsValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useFullPathLns.
-
setUseFullPathLnsValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseFullPathLnsValue(int value) Operator which relaxes one entire path and all inactive nodes.
.operations_research.OptionalBoolean use_full_path_lns = 17;
- Parameters:
value
- The enum numeric value on the wire for useFullPathLns to set.- Returns:
- This builder for chaining.
-
getUseFullPathLns
Operator which relaxes one entire path and all inactive nodes.
.operations_research.OptionalBoolean use_full_path_lns = 17;
- Specified by:
getUseFullPathLns
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useFullPathLns.
-
setUseFullPathLns
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseFullPathLns(OptionalBoolean value) Operator which relaxes one entire path and all inactive nodes.
.operations_research.OptionalBoolean use_full_path_lns = 17;
- Parameters:
value
- The useFullPathLns to set.- Returns:
- This builder for chaining.
-
clearUseFullPathLns
Operator which relaxes one entire path and all inactive nodes.
.operations_research.OptionalBoolean use_full_path_lns = 17;
- Returns:
- This builder for chaining.
-
getUseTspLnsValue
public int getUseTspLnsValue()TSP-base LNS. Randomly merges consecutive nodes until n "meta"-nodes remain and solves the corresponding TSP. This defines an "unlimited" neighborhood which must be stopped by search limits. To force diversification, the operator iteratively forces each node to serve as base of a meta-node.
.operations_research.OptionalBoolean use_tsp_lns = 18;
- Specified by:
getUseTspLnsValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useTspLns.
-
setUseTspLnsValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseTspLnsValue(int value) TSP-base LNS. Randomly merges consecutive nodes until n "meta"-nodes remain and solves the corresponding TSP. This defines an "unlimited" neighborhood which must be stopped by search limits. To force diversification, the operator iteratively forces each node to serve as base of a meta-node.
.operations_research.OptionalBoolean use_tsp_lns = 18;
- Parameters:
value
- The enum numeric value on the wire for useTspLns to set.- Returns:
- This builder for chaining.
-
getUseTspLns
TSP-base LNS. Randomly merges consecutive nodes until n "meta"-nodes remain and solves the corresponding TSP. This defines an "unlimited" neighborhood which must be stopped by search limits. To force diversification, the operator iteratively forces each node to serve as base of a meta-node.
.operations_research.OptionalBoolean use_tsp_lns = 18;
- Specified by:
getUseTspLns
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useTspLns.
-
setUseTspLns
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseTspLns(OptionalBoolean value) TSP-base LNS. Randomly merges consecutive nodes until n "meta"-nodes remain and solves the corresponding TSP. This defines an "unlimited" neighborhood which must be stopped by search limits. To force diversification, the operator iteratively forces each node to serve as base of a meta-node.
.operations_research.OptionalBoolean use_tsp_lns = 18;
- Parameters:
value
- The useTspLns to set.- Returns:
- This builder for chaining.
-
clearUseTspLns
TSP-base LNS. Randomly merges consecutive nodes until n "meta"-nodes remain and solves the corresponding TSP. This defines an "unlimited" neighborhood which must be stopped by search limits. To force diversification, the operator iteratively forces each node to serve as base of a meta-node.
.operations_research.OptionalBoolean use_tsp_lns = 18;
- Returns:
- This builder for chaining.
-
getUseInactiveLnsValue
public int getUseInactiveLnsValue()Operator which relaxes all inactive nodes and one sub-chain of six consecutive arcs. That way the path can be improved by inserting inactive nodes or swapping arcs.
.operations_research.OptionalBoolean use_inactive_lns = 19;
- Specified by:
getUseInactiveLnsValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useInactiveLns.
-
setUseInactiveLnsValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseInactiveLnsValue(int value) Operator which relaxes all inactive nodes and one sub-chain of six consecutive arcs. That way the path can be improved by inserting inactive nodes or swapping arcs.
.operations_research.OptionalBoolean use_inactive_lns = 19;
- Parameters:
value
- The enum numeric value on the wire for useInactiveLns to set.- Returns:
- This builder for chaining.
-
getUseInactiveLns
Operator which relaxes all inactive nodes and one sub-chain of six consecutive arcs. That way the path can be improved by inserting inactive nodes or swapping arcs.
.operations_research.OptionalBoolean use_inactive_lns = 19;
- Specified by:
getUseInactiveLns
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useInactiveLns.
-
setUseInactiveLns
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseInactiveLns(OptionalBoolean value) Operator which relaxes all inactive nodes and one sub-chain of six consecutive arcs. That way the path can be improved by inserting inactive nodes or swapping arcs.
.operations_research.OptionalBoolean use_inactive_lns = 19;
- Parameters:
value
- The useInactiveLns to set.- Returns:
- This builder for chaining.
-
clearUseInactiveLns
Operator which relaxes all inactive nodes and one sub-chain of six consecutive arcs. That way the path can be improved by inserting inactive nodes or swapping arcs.
.operations_research.OptionalBoolean use_inactive_lns = 19;
- Returns:
- This builder for chaining.
-
getUseGlobalCheapestInsertionPathLnsValue
public int getUseGlobalCheapestInsertionPathLnsValue()--- LNS-like large neighborhood search operators using heuristics --- Operator which makes all nodes on a route unperformed, and reinserts them using the GlobalCheapestInsertion heuristic.
.operations_research.OptionalBoolean use_global_cheapest_insertion_path_lns = 27;
- Specified by:
getUseGlobalCheapestInsertionPathLnsValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useGlobalCheapestInsertionPathLns.
-
setUseGlobalCheapestInsertionPathLnsValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseGlobalCheapestInsertionPathLnsValue(int value) --- LNS-like large neighborhood search operators using heuristics --- Operator which makes all nodes on a route unperformed, and reinserts them using the GlobalCheapestInsertion heuristic.
.operations_research.OptionalBoolean use_global_cheapest_insertion_path_lns = 27;
- Parameters:
value
- The enum numeric value on the wire for useGlobalCheapestInsertionPathLns to set.- Returns:
- This builder for chaining.
-
getUseGlobalCheapestInsertionPathLns
--- LNS-like large neighborhood search operators using heuristics --- Operator which makes all nodes on a route unperformed, and reinserts them using the GlobalCheapestInsertion heuristic.
.operations_research.OptionalBoolean use_global_cheapest_insertion_path_lns = 27;
- Specified by:
getUseGlobalCheapestInsertionPathLns
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useGlobalCheapestInsertionPathLns.
-
setUseGlobalCheapestInsertionPathLns
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseGlobalCheapestInsertionPathLns(OptionalBoolean value) --- LNS-like large neighborhood search operators using heuristics --- Operator which makes all nodes on a route unperformed, and reinserts them using the GlobalCheapestInsertion heuristic.
.operations_research.OptionalBoolean use_global_cheapest_insertion_path_lns = 27;
- Parameters:
value
- The useGlobalCheapestInsertionPathLns to set.- Returns:
- This builder for chaining.
-
clearUseGlobalCheapestInsertionPathLns
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder clearUseGlobalCheapestInsertionPathLns()--- LNS-like large neighborhood search operators using heuristics --- Operator which makes all nodes on a route unperformed, and reinserts them using the GlobalCheapestInsertion heuristic.
.operations_research.OptionalBoolean use_global_cheapest_insertion_path_lns = 27;
- Returns:
- This builder for chaining.
-
getUseLocalCheapestInsertionPathLnsValue
public int getUseLocalCheapestInsertionPathLnsValue()Same as above but using LocalCheapestInsertion as a heuristic.
.operations_research.OptionalBoolean use_local_cheapest_insertion_path_lns = 28;
- Specified by:
getUseLocalCheapestInsertionPathLnsValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useLocalCheapestInsertionPathLns.
-
setUseLocalCheapestInsertionPathLnsValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseLocalCheapestInsertionPathLnsValue(int value) Same as above but using LocalCheapestInsertion as a heuristic.
.operations_research.OptionalBoolean use_local_cheapest_insertion_path_lns = 28;
- Parameters:
value
- The enum numeric value on the wire for useLocalCheapestInsertionPathLns to set.- Returns:
- This builder for chaining.
-
getUseLocalCheapestInsertionPathLns
Same as above but using LocalCheapestInsertion as a heuristic.
.operations_research.OptionalBoolean use_local_cheapest_insertion_path_lns = 28;
- Specified by:
getUseLocalCheapestInsertionPathLns
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useLocalCheapestInsertionPathLns.
-
setUseLocalCheapestInsertionPathLns
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseLocalCheapestInsertionPathLns(OptionalBoolean value) Same as above but using LocalCheapestInsertion as a heuristic.
.operations_research.OptionalBoolean use_local_cheapest_insertion_path_lns = 28;
- Parameters:
value
- The useLocalCheapestInsertionPathLns to set.- Returns:
- This builder for chaining.
-
clearUseLocalCheapestInsertionPathLns
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder clearUseLocalCheapestInsertionPathLns()Same as above but using LocalCheapestInsertion as a heuristic.
.operations_research.OptionalBoolean use_local_cheapest_insertion_path_lns = 28;
- Returns:
- This builder for chaining.
-
getUseRelocatePathGlobalCheapestInsertionInsertUnperformedValue
public int getUseRelocatePathGlobalCheapestInsertionInsertUnperformedValue()The following operator relocates an entire route to an empty path and then tries to insert the unperformed nodes using the global cheapest insertion heuristic.
.operations_research.OptionalBoolean use_relocate_path_global_cheapest_insertion_insert_unperformed = 33;
- Specified by:
getUseRelocatePathGlobalCheapestInsertionInsertUnperformedValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useRelocatePathGlobalCheapestInsertionInsertUnperformed.
-
setUseRelocatePathGlobalCheapestInsertionInsertUnperformedValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseRelocatePathGlobalCheapestInsertionInsertUnperformedValue(int value) The following operator relocates an entire route to an empty path and then tries to insert the unperformed nodes using the global cheapest insertion heuristic.
.operations_research.OptionalBoolean use_relocate_path_global_cheapest_insertion_insert_unperformed = 33;
- Parameters:
value
- The enum numeric value on the wire for useRelocatePathGlobalCheapestInsertionInsertUnperformed to set.- Returns:
- This builder for chaining.
-
getUseRelocatePathGlobalCheapestInsertionInsertUnperformed
The following operator relocates an entire route to an empty path and then tries to insert the unperformed nodes using the global cheapest insertion heuristic.
.operations_research.OptionalBoolean use_relocate_path_global_cheapest_insertion_insert_unperformed = 33;
- Specified by:
getUseRelocatePathGlobalCheapestInsertionInsertUnperformed
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useRelocatePathGlobalCheapestInsertionInsertUnperformed.
-
setUseRelocatePathGlobalCheapestInsertionInsertUnperformed
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseRelocatePathGlobalCheapestInsertionInsertUnperformed(OptionalBoolean value) The following operator relocates an entire route to an empty path and then tries to insert the unperformed nodes using the global cheapest insertion heuristic.
.operations_research.OptionalBoolean use_relocate_path_global_cheapest_insertion_insert_unperformed = 33;
- Parameters:
value
- The useRelocatePathGlobalCheapestInsertionInsertUnperformed to set.- Returns:
- This builder for chaining.
-
clearUseRelocatePathGlobalCheapestInsertionInsertUnperformed
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder clearUseRelocatePathGlobalCheapestInsertionInsertUnperformed()The following operator relocates an entire route to an empty path and then tries to insert the unperformed nodes using the global cheapest insertion heuristic.
.operations_research.OptionalBoolean use_relocate_path_global_cheapest_insertion_insert_unperformed = 33;
- Returns:
- This builder for chaining.
-
getUseGlobalCheapestInsertionExpensiveChainLnsValue
public int getUseGlobalCheapestInsertionExpensiveChainLnsValue()This operator finds heuristic_expensive_chain_lns_num_arcs_to_consider most expensive arcs on a route, makes the nodes in between pairs of these expensive arcs unperformed, and reinserts them using the GlobalCheapestInsertion heuristic.
.operations_research.OptionalBoolean use_global_cheapest_insertion_expensive_chain_lns = 29;
- Specified by:
getUseGlobalCheapestInsertionExpensiveChainLnsValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useGlobalCheapestInsertionExpensiveChainLns.
-
setUseGlobalCheapestInsertionExpensiveChainLnsValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseGlobalCheapestInsertionExpensiveChainLnsValue(int value) This operator finds heuristic_expensive_chain_lns_num_arcs_to_consider most expensive arcs on a route, makes the nodes in between pairs of these expensive arcs unperformed, and reinserts them using the GlobalCheapestInsertion heuristic.
.operations_research.OptionalBoolean use_global_cheapest_insertion_expensive_chain_lns = 29;
- Parameters:
value
- The enum numeric value on the wire for useGlobalCheapestInsertionExpensiveChainLns to set.- Returns:
- This builder for chaining.
-
getUseGlobalCheapestInsertionExpensiveChainLns
This operator finds heuristic_expensive_chain_lns_num_arcs_to_consider most expensive arcs on a route, makes the nodes in between pairs of these expensive arcs unperformed, and reinserts them using the GlobalCheapestInsertion heuristic.
.operations_research.OptionalBoolean use_global_cheapest_insertion_expensive_chain_lns = 29;
- Specified by:
getUseGlobalCheapestInsertionExpensiveChainLns
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useGlobalCheapestInsertionExpensiveChainLns.
-
setUseGlobalCheapestInsertionExpensiveChainLns
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseGlobalCheapestInsertionExpensiveChainLns(OptionalBoolean value) This operator finds heuristic_expensive_chain_lns_num_arcs_to_consider most expensive arcs on a route, makes the nodes in between pairs of these expensive arcs unperformed, and reinserts them using the GlobalCheapestInsertion heuristic.
.operations_research.OptionalBoolean use_global_cheapest_insertion_expensive_chain_lns = 29;
- Parameters:
value
- The useGlobalCheapestInsertionExpensiveChainLns to set.- Returns:
- This builder for chaining.
-
clearUseGlobalCheapestInsertionExpensiveChainLns
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder clearUseGlobalCheapestInsertionExpensiveChainLns()This operator finds heuristic_expensive_chain_lns_num_arcs_to_consider most expensive arcs on a route, makes the nodes in between pairs of these expensive arcs unperformed, and reinserts them using the GlobalCheapestInsertion heuristic.
.operations_research.OptionalBoolean use_global_cheapest_insertion_expensive_chain_lns = 29;
- Returns:
- This builder for chaining.
-
getUseLocalCheapestInsertionExpensiveChainLnsValue
public int getUseLocalCheapestInsertionExpensiveChainLnsValue()Same as above but using LocalCheapestInsertion as a heuristic for insertion.
.operations_research.OptionalBoolean use_local_cheapest_insertion_expensive_chain_lns = 30;
- Specified by:
getUseLocalCheapestInsertionExpensiveChainLnsValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useLocalCheapestInsertionExpensiveChainLns.
-
setUseLocalCheapestInsertionExpensiveChainLnsValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseLocalCheapestInsertionExpensiveChainLnsValue(int value) Same as above but using LocalCheapestInsertion as a heuristic for insertion.
.operations_research.OptionalBoolean use_local_cheapest_insertion_expensive_chain_lns = 30;
- Parameters:
value
- The enum numeric value on the wire for useLocalCheapestInsertionExpensiveChainLns to set.- Returns:
- This builder for chaining.
-
getUseLocalCheapestInsertionExpensiveChainLns
Same as above but using LocalCheapestInsertion as a heuristic for insertion.
.operations_research.OptionalBoolean use_local_cheapest_insertion_expensive_chain_lns = 30;
- Specified by:
getUseLocalCheapestInsertionExpensiveChainLns
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useLocalCheapestInsertionExpensiveChainLns.
-
setUseLocalCheapestInsertionExpensiveChainLns
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseLocalCheapestInsertionExpensiveChainLns(OptionalBoolean value) Same as above but using LocalCheapestInsertion as a heuristic for insertion.
.operations_research.OptionalBoolean use_local_cheapest_insertion_expensive_chain_lns = 30;
- Parameters:
value
- The useLocalCheapestInsertionExpensiveChainLns to set.- Returns:
- This builder for chaining.
-
clearUseLocalCheapestInsertionExpensiveChainLns
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder clearUseLocalCheapestInsertionExpensiveChainLns()Same as above but using LocalCheapestInsertion as a heuristic for insertion.
.operations_research.OptionalBoolean use_local_cheapest_insertion_expensive_chain_lns = 30;
- Returns:
- This builder for chaining.
-
getUseGlobalCheapestInsertionCloseNodesLnsValue
public int getUseGlobalCheapestInsertionCloseNodesLnsValue()The following operator makes a node and its heuristic_close_nodes_lns_num_nodes closest neighbors unperformed along with each of their corresponding performed pickup/delivery pairs, and then reinserts them using the GlobalCheapestInsertion heuristic.
.operations_research.OptionalBoolean use_global_cheapest_insertion_close_nodes_lns = 31;
- Specified by:
getUseGlobalCheapestInsertionCloseNodesLnsValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useGlobalCheapestInsertionCloseNodesLns.
-
setUseGlobalCheapestInsertionCloseNodesLnsValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseGlobalCheapestInsertionCloseNodesLnsValue(int value) The following operator makes a node and its heuristic_close_nodes_lns_num_nodes closest neighbors unperformed along with each of their corresponding performed pickup/delivery pairs, and then reinserts them using the GlobalCheapestInsertion heuristic.
.operations_research.OptionalBoolean use_global_cheapest_insertion_close_nodes_lns = 31;
- Parameters:
value
- The enum numeric value on the wire for useGlobalCheapestInsertionCloseNodesLns to set.- Returns:
- This builder for chaining.
-
getUseGlobalCheapestInsertionCloseNodesLns
The following operator makes a node and its heuristic_close_nodes_lns_num_nodes closest neighbors unperformed along with each of their corresponding performed pickup/delivery pairs, and then reinserts them using the GlobalCheapestInsertion heuristic.
.operations_research.OptionalBoolean use_global_cheapest_insertion_close_nodes_lns = 31;
- Specified by:
getUseGlobalCheapestInsertionCloseNodesLns
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useGlobalCheapestInsertionCloseNodesLns.
-
setUseGlobalCheapestInsertionCloseNodesLns
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseGlobalCheapestInsertionCloseNodesLns(OptionalBoolean value) The following operator makes a node and its heuristic_close_nodes_lns_num_nodes closest neighbors unperformed along with each of their corresponding performed pickup/delivery pairs, and then reinserts them using the GlobalCheapestInsertion heuristic.
.operations_research.OptionalBoolean use_global_cheapest_insertion_close_nodes_lns = 31;
- Parameters:
value
- The useGlobalCheapestInsertionCloseNodesLns to set.- Returns:
- This builder for chaining.
-
clearUseGlobalCheapestInsertionCloseNodesLns
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder clearUseGlobalCheapestInsertionCloseNodesLns()The following operator makes a node and its heuristic_close_nodes_lns_num_nodes closest neighbors unperformed along with each of their corresponding performed pickup/delivery pairs, and then reinserts them using the GlobalCheapestInsertion heuristic.
.operations_research.OptionalBoolean use_global_cheapest_insertion_close_nodes_lns = 31;
- Returns:
- This builder for chaining.
-
getUseLocalCheapestInsertionCloseNodesLnsValue
public int getUseLocalCheapestInsertionCloseNodesLnsValue()Same as above, but insertion positions for nodes are determined by the LocalCheapestInsertion heuristic.
.operations_research.OptionalBoolean use_local_cheapest_insertion_close_nodes_lns = 32;
- Specified by:
getUseLocalCheapestInsertionCloseNodesLnsValue
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The enum numeric value on the wire for useLocalCheapestInsertionCloseNodesLns.
-
setUseLocalCheapestInsertionCloseNodesLnsValue
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseLocalCheapestInsertionCloseNodesLnsValue(int value) Same as above, but insertion positions for nodes are determined by the LocalCheapestInsertion heuristic.
.operations_research.OptionalBoolean use_local_cheapest_insertion_close_nodes_lns = 32;
- Parameters:
value
- The enum numeric value on the wire for useLocalCheapestInsertionCloseNodesLns to set.- Returns:
- This builder for chaining.
-
getUseLocalCheapestInsertionCloseNodesLns
Same as above, but insertion positions for nodes are determined by the LocalCheapestInsertion heuristic.
.operations_research.OptionalBoolean use_local_cheapest_insertion_close_nodes_lns = 32;
- Specified by:
getUseLocalCheapestInsertionCloseNodesLns
in interfaceRoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder
- Returns:
- The useLocalCheapestInsertionCloseNodesLns.
-
setUseLocalCheapestInsertionCloseNodesLns
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder setUseLocalCheapestInsertionCloseNodesLns(OptionalBoolean value) Same as above, but insertion positions for nodes are determined by the LocalCheapestInsertion heuristic.
.operations_research.OptionalBoolean use_local_cheapest_insertion_close_nodes_lns = 32;
- Parameters:
value
- The useLocalCheapestInsertionCloseNodesLns to set.- Returns:
- This builder for chaining.
-
clearUseLocalCheapestInsertionCloseNodesLns
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder clearUseLocalCheapestInsertionCloseNodesLns()Same as above, but insertion positions for nodes are determined by the LocalCheapestInsertion heuristic.
.operations_research.OptionalBoolean use_local_cheapest_insertion_close_nodes_lns = 32;
- Returns:
- This builder for chaining.
-