Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder Class Reference
Inheritance diagram for com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder:
com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder

Public Member Functions

Builder clear ()
 
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
 
com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators getDefaultInstanceForType ()
 
com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators build ()
 
com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators buildPartial ()
 
Builder clone ()
 
Builder setField (com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
 
Builder clearField (com.google.protobuf.Descriptors.FieldDescriptor field)
 
Builder clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)
 
Builder setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
 
Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
 
Builder mergeFrom (com.google.protobuf.Message other)
 
Builder mergeFrom (com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators other)
 
final boolean isInitialized ()
 
Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
int getUseRelocateValue ()
 
Builder setUseRelocateValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseRelocate ()
 
Builder setUseRelocate (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseRelocate ()
 
int getUseRelocatePairValue ()
 
Builder setUseRelocatePairValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseRelocatePair ()
 
Builder setUseRelocatePair (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseRelocatePair ()
 
int getUseLightRelocatePairValue ()
 
Builder setUseLightRelocatePairValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseLightRelocatePair ()
 
Builder setUseLightRelocatePair (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseLightRelocatePair ()
 
int getUseRelocateNeighborsValue ()
 
Builder setUseRelocateNeighborsValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseRelocateNeighbors ()
 
Builder setUseRelocateNeighbors (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseRelocateNeighbors ()
 
int getUseRelocateSubtripValue ()
 
Builder setUseRelocateSubtripValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseRelocateSubtrip ()
 
Builder setUseRelocateSubtrip (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseRelocateSubtrip ()
 
int getUseExchangeValue ()
 
Builder setUseExchangeValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseExchange ()
 
Builder setUseExchange (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseExchange ()
 
int getUseExchangePairValue ()
 
Builder setUseExchangePairValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseExchangePair ()
 
Builder setUseExchangePair (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseExchangePair ()
 
int getUseExchangeSubtripValue ()
 
Builder setUseExchangeSubtripValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseExchangeSubtrip ()
 
Builder setUseExchangeSubtrip (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseExchangeSubtrip ()
 
int getUseCrossValue ()
 
Builder setUseCrossValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseCross ()
 
Builder setUseCross (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseCross ()
 
int getUseCrossExchangeValue ()
 
Builder setUseCrossExchangeValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseCrossExchange ()
 
Builder setUseCrossExchange (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseCrossExchange ()
 
int getUseRelocateExpensiveChainValue ()
 
Builder setUseRelocateExpensiveChainValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseRelocateExpensiveChain ()
 
Builder setUseRelocateExpensiveChain (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseRelocateExpensiveChain ()
 
int getUseTwoOptValue ()
 
Builder setUseTwoOptValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseTwoOpt ()
 
Builder setUseTwoOpt (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseTwoOpt ()
 
int getUseOrOptValue ()
 
Builder setUseOrOptValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseOrOpt ()
 
Builder setUseOrOpt (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseOrOpt ()
 
int getUseLinKernighanValue ()
 
Builder setUseLinKernighanValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseLinKernighan ()
 
Builder setUseLinKernighan (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseLinKernighan ()
 
int getUseTspOptValue ()
 
Builder setUseTspOptValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseTspOpt ()
 
Builder setUseTspOpt (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseTspOpt ()
 
int getUseMakeActiveValue ()
 
Builder setUseMakeActiveValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseMakeActive ()
 
Builder setUseMakeActive (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseMakeActive ()
 
int getUseRelocateAndMakeActiveValue ()
 
Builder setUseRelocateAndMakeActiveValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseRelocateAndMakeActive ()
 
Builder setUseRelocateAndMakeActive (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseRelocateAndMakeActive ()
 
int getUseMakeInactiveValue ()
 
Builder setUseMakeInactiveValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseMakeInactive ()
 
Builder setUseMakeInactive (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseMakeInactive ()
 
int getUseMakeChainInactiveValue ()
 
Builder setUseMakeChainInactiveValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseMakeChainInactive ()
 
Builder setUseMakeChainInactive (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseMakeChainInactive ()
 
int getUseSwapActiveValue ()
 
Builder setUseSwapActiveValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseSwapActive ()
 
Builder setUseSwapActive (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseSwapActive ()
 
int getUseExtendedSwapActiveValue ()
 
Builder setUseExtendedSwapActiveValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseExtendedSwapActive ()
 
Builder setUseExtendedSwapActive (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseExtendedSwapActive ()
 
int getUseShortestPathSwapActiveValue ()
 
Builder setUseShortestPathSwapActiveValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseShortestPathSwapActive ()
 
Builder setUseShortestPathSwapActive (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseShortestPathSwapActive ()
 
int getUseNodePairSwapActiveValue ()
 
Builder setUseNodePairSwapActiveValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseNodePairSwapActive ()
 
Builder setUseNodePairSwapActive (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseNodePairSwapActive ()
 
int getUsePathLnsValue ()
 
Builder setUsePathLnsValue (int value)
 
com.google.ortools.util.OptionalBoolean getUsePathLns ()
 
Builder setUsePathLns (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUsePathLns ()
 
int getUseFullPathLnsValue ()
 
Builder setUseFullPathLnsValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseFullPathLns ()
 
Builder setUseFullPathLns (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseFullPathLns ()
 
int getUseTspLnsValue ()
 
Builder setUseTspLnsValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseTspLns ()
 
Builder setUseTspLns (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseTspLns ()
 
int getUseInactiveLnsValue ()
 
Builder setUseInactiveLnsValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseInactiveLns ()
 
Builder setUseInactiveLns (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseInactiveLns ()
 
int getUseGlobalCheapestInsertionPathLnsValue ()
 
Builder setUseGlobalCheapestInsertionPathLnsValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseGlobalCheapestInsertionPathLns ()
 
Builder setUseGlobalCheapestInsertionPathLns (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseGlobalCheapestInsertionPathLns ()
 
int getUseLocalCheapestInsertionPathLnsValue ()
 
Builder setUseLocalCheapestInsertionPathLnsValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseLocalCheapestInsertionPathLns ()
 
Builder setUseLocalCheapestInsertionPathLns (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseLocalCheapestInsertionPathLns ()
 
int getUseRelocatePathGlobalCheapestInsertionInsertUnperformedValue ()
 
Builder setUseRelocatePathGlobalCheapestInsertionInsertUnperformedValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseRelocatePathGlobalCheapestInsertionInsertUnperformed ()
 
Builder setUseRelocatePathGlobalCheapestInsertionInsertUnperformed (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseRelocatePathGlobalCheapestInsertionInsertUnperformed ()
 
int getUseGlobalCheapestInsertionExpensiveChainLnsValue ()
 
Builder setUseGlobalCheapestInsertionExpensiveChainLnsValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseGlobalCheapestInsertionExpensiveChainLns ()
 
Builder setUseGlobalCheapestInsertionExpensiveChainLns (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseGlobalCheapestInsertionExpensiveChainLns ()
 
int getUseLocalCheapestInsertionExpensiveChainLnsValue ()
 
Builder setUseLocalCheapestInsertionExpensiveChainLnsValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseLocalCheapestInsertionExpensiveChainLns ()
 
Builder setUseLocalCheapestInsertionExpensiveChainLns (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseLocalCheapestInsertionExpensiveChainLns ()
 
int getUseGlobalCheapestInsertionCloseNodesLnsValue ()
 
Builder setUseGlobalCheapestInsertionCloseNodesLnsValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseGlobalCheapestInsertionCloseNodesLns ()
 
Builder setUseGlobalCheapestInsertionCloseNodesLns (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseGlobalCheapestInsertionCloseNodesLns ()
 
int getUseLocalCheapestInsertionCloseNodesLnsValue ()
 
Builder setUseLocalCheapestInsertionCloseNodesLnsValue (int value)
 
com.google.ortools.util.OptionalBoolean getUseLocalCheapestInsertionCloseNodesLns ()
 
Builder setUseLocalCheapestInsertionCloseNodesLns (com.google.ortools.util.OptionalBoolean value)
 
Builder clearUseLocalCheapestInsertionCloseNodesLns ()
 
final Builder setUnknownFields (final com.google.protobuf.UnknownFieldSet unknownFields)
 
final Builder mergeUnknownFields (final com.google.protobuf.UnknownFieldSet unknownFields)
 

Static Public Member Functions

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
 

Protected Member Functions

com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable ()
 

Detailed Description

Local search neighborhood operators used to build a solutions neighborhood.
Next ID: 35

Protobuf type operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators

Definition at line 3222 of file RoutingSearchParameters.java.

Member Function Documentation

◆ addRepeatedField()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.addRepeatedField ( com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value )

Definition at line 3457 of file RoutingSearchParameters.java.

◆ build()

com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.build ( )

Definition at line 3303 of file RoutingSearchParameters.java.

◆ buildPartial()

com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.buildPartial ( )

Definition at line 3312 of file RoutingSearchParameters.java.

◆ clear()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.clear ( )

Definition at line 3250 of file RoutingSearchParameters.java.

◆ clearField()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.clearField ( com.google.protobuf.Descriptors.FieldDescriptor field)

Definition at line 3441 of file RoutingSearchParameters.java.

◆ clearOneof()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.clearOneof ( com.google.protobuf.Descriptors.OneofDescriptor oneof)

Definition at line 3446 of file RoutingSearchParameters.java.

◆ clearUseCross()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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.

Definition at line 4825 of file RoutingSearchParameters.java.

◆ clearUseCrossExchange()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.clearUseCrossExchange ( )
Not implemented yet. TODO(b/68128619): Implement.

.operations_research.OptionalBoolean use_cross_exchange = 6;

Returns
This builder for chaining.

Definition at line 4898 of file RoutingSearchParameters.java.

◆ clearUseExchange()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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.

Definition at line 4531 of file RoutingSearchParameters.java.

◆ clearUseExchangePair()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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.

Definition at line 4634 of file RoutingSearchParameters.java.

◆ clearUseExchangeSubtrip()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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.

Definition at line 4712 of file RoutingSearchParameters.java.

◆ clearUseExtendedSwapActive()

Builder com.google.ortools.constraintsolver.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.

Definition at line 6066 of file RoutingSearchParameters.java.

◆ clearUseFullPathLns()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.clearUseFullPathLns ( )
Operator which relaxes one entire path and all inactive nodes.

.operations_research.OptionalBoolean use_full_path_lns = 17;

Returns
This builder for chaining.

Definition at line 6468 of file RoutingSearchParameters.java.

◆ clearUseGlobalCheapestInsertionCloseNodesLns()

Builder com.google.ortools.constraintsolver.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.

Definition at line 7142 of file RoutingSearchParameters.java.

◆ clearUseGlobalCheapestInsertionExpensiveChainLns()

Builder com.google.ortools.constraintsolver.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.

Definition at line 6976 of file RoutingSearchParameters.java.

◆ clearUseGlobalCheapestInsertionPathLns()

Builder com.google.ortools.constraintsolver.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.

Definition at line 6732 of file RoutingSearchParameters.java.

◆ clearUseInactiveLns()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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.

Definition at line 6649 of file RoutingSearchParameters.java.

◆ clearUseLightRelocatePair()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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.

Definition at line 4112 of file RoutingSearchParameters.java.

◆ clearUseLinKernighan()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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.

Definition at line 5345 of file RoutingSearchParameters.java.

◆ clearUseLocalCheapestInsertionCloseNodesLns()

Builder com.google.ortools.constraintsolver.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.

Definition at line 7220 of file RoutingSearchParameters.java.

◆ clearUseLocalCheapestInsertionExpensiveChainLns()

Builder com.google.ortools.constraintsolver.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.

Definition at line 7054 of file RoutingSearchParameters.java.

◆ clearUseLocalCheapestInsertionPathLns()

Builder com.google.ortools.constraintsolver.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.

Definition at line 6805 of file RoutingSearchParameters.java.

◆ clearUseMakeActive()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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.

Definition at line 5546 of file RoutingSearchParameters.java.

◆ clearUseMakeChainInactive()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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.

Definition at line 5855 of file RoutingSearchParameters.java.

◆ clearUseMakeInactive()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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.

Definition at line 5757 of file RoutingSearchParameters.java.

◆ clearUseNodePairSwapActive()

Builder com.google.ortools.constraintsolver.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.

Definition at line 6287 of file RoutingSearchParameters.java.

◆ clearUseOrOpt()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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.

Definition at line 5257 of file RoutingSearchParameters.java.

◆ clearUsePathLns()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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.

Definition at line 6395 of file RoutingSearchParameters.java.

◆ clearUseRelocate()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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.

Definition at line 3896 of file RoutingSearchParameters.java.

◆ clearUseRelocateAndMakeActive()

Builder com.google.ortools.constraintsolver.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.

Definition at line 5664 of file RoutingSearchParameters.java.

◆ clearUseRelocateExpensiveChain()

Builder com.google.ortools.constraintsolver.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.

Definition at line 5016 of file RoutingSearchParameters.java.

◆ clearUseRelocateNeighbors()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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.

Definition at line 4290 of file RoutingSearchParameters.java.

◆ clearUseRelocatePair()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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.

Definition at line 4009 of file RoutingSearchParameters.java.

◆ clearUseRelocatePathGlobalCheapestInsertionInsertUnperformed()

Builder com.google.ortools.constraintsolver.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.

Definition at line 6888 of file RoutingSearchParameters.java.

◆ clearUseRelocateSubtrip()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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.

Definition at line 4428 of file RoutingSearchParameters.java.

◆ clearUseShortestPathSwapActive()

Builder com.google.ortools.constraintsolver.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.

Definition at line 6164 of file RoutingSearchParameters.java.

◆ clearUseSwapActive()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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.

Definition at line 5948 of file RoutingSearchParameters.java.

◆ clearUseTspLns()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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.

Definition at line 6566 of file RoutingSearchParameters.java.

◆ clearUseTspOpt()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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.

Definition at line 5443 of file RoutingSearchParameters.java.

◆ clearUseTwoOpt()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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.

Definition at line 5134 of file RoutingSearchParameters.java.

◆ clone()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.clone ( )

Definition at line 3431 of file RoutingSearchParameters.java.

◆ getDefaultInstanceForType()

com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.getDefaultInstanceForType ( )

Definition at line 3298 of file RoutingSearchParameters.java.

◆ getDescriptor()

static final com.google.protobuf.Descriptors.Descriptor com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.getDescriptor ( )
static

Definition at line 3227 of file RoutingSearchParameters.java.

◆ getDescriptorForType()

com.google.protobuf.Descriptors.Descriptor com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.getDescriptorForType ( )

Definition at line 3293 of file RoutingSearchParameters.java.

◆ getUseCross()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The useCross.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 4779 of file RoutingSearchParameters.java.

◆ getUseCrossExchange()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.getUseCrossExchange ( )
Not implemented yet. TODO(b/68128619): Implement.

.operations_research.OptionalBoolean use_cross_exchange = 6;

Returns
The useCrossExchange.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 4868 of file RoutingSearchParameters.java.

◆ getUseCrossExchangeValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.getUseCrossExchangeValue ( )
Not implemented yet. TODO(b/68128619): Implement.

.operations_research.OptionalBoolean use_cross_exchange = 6;

Returns
The enum numeric value on the wire for useCrossExchange.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 4841 of file RoutingSearchParameters.java.

◆ getUseCrossValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The enum numeric value on the wire for useCross.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 4736 of file RoutingSearchParameters.java.

◆ getUseExchange()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The useExchange.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 4489 of file RoutingSearchParameters.java.

◆ getUseExchangePair()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The useExchangePair.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 4592 of file RoutingSearchParameters.java.

◆ getUseExchangePairValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The enum numeric value on the wire for useExchangePair.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 4553 of file RoutingSearchParameters.java.

◆ getUseExchangeSubtrip()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The useExchangeSubtrip.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 4680 of file RoutingSearchParameters.java.

◆ getUseExchangeSubtripValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The enum numeric value on the wire for useExchangeSubtrip.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 4651 of file RoutingSearchParameters.java.

◆ getUseExchangeValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The enum numeric value on the wire for useExchange.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 4450 of file RoutingSearchParameters.java.

◆ getUseExtendedSwapActive()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The useExtendedSwapActive.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 6018 of file RoutingSearchParameters.java.

◆ getUseExtendedSwapActiveValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The enum numeric value on the wire for useExtendedSwapActive.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 5973 of file RoutingSearchParameters.java.

◆ getUseFullPathLns()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.getUseFullPathLns ( )
Operator which relaxes one entire path and all inactive nodes.

.operations_research.OptionalBoolean use_full_path_lns = 17;

Returns
The useFullPathLns.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 6438 of file RoutingSearchParameters.java.

◆ getUseFullPathLnsValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.getUseFullPathLnsValue ( )
Operator which relaxes one entire path and all inactive nodes.

.operations_research.OptionalBoolean use_full_path_lns = 17;

Returns
The enum numeric value on the wire for useFullPathLns.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 6411 of file RoutingSearchParameters.java.

◆ getUseGlobalCheapestInsertionCloseNodesLns()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The useGlobalCheapestInsertionCloseNodesLns.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 7106 of file RoutingSearchParameters.java.

◆ getUseGlobalCheapestInsertionCloseNodesLnsValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The enum numeric value on the wire for useGlobalCheapestInsertionCloseNodesLns.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 7073 of file RoutingSearchParameters.java.

◆ getUseGlobalCheapestInsertionExpensiveChainLns()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The useGlobalCheapestInsertionExpensiveChainLns.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 6940 of file RoutingSearchParameters.java.

◆ getUseGlobalCheapestInsertionExpensiveChainLnsValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The enum numeric value on the wire for useGlobalCheapestInsertionExpensiveChainLns.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 6907 of file RoutingSearchParameters.java.

◆ getUseGlobalCheapestInsertionPathLns()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The useGlobalCheapestInsertionPathLns.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 6698 of file RoutingSearchParameters.java.

◆ getUseGlobalCheapestInsertionPathLnsValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The enum numeric value on the wire for useGlobalCheapestInsertionPathLns.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 6667 of file RoutingSearchParameters.java.

◆ getUseInactiveLns()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The useInactiveLns.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 6615 of file RoutingSearchParameters.java.

◆ getUseInactiveLnsValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The enum numeric value on the wire for useInactiveLns.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 6584 of file RoutingSearchParameters.java.

◆ getUseLightRelocatePair()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The useLightRelocatePair.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 4070 of file RoutingSearchParameters.java.

◆ getUseLightRelocatePairValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The enum numeric value on the wire for useLightRelocatePair.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 4031 of file RoutingSearchParameters.java.

◆ getUseLinKernighan()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The useLinKernighan.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 5309 of file RoutingSearchParameters.java.

◆ getUseLinKernighanValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The enum numeric value on the wire for useLinKernighan.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 5276 of file RoutingSearchParameters.java.

◆ getUseLocalCheapestInsertionCloseNodesLns()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The useLocalCheapestInsertionCloseNodesLns.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 7188 of file RoutingSearchParameters.java.

◆ getUseLocalCheapestInsertionCloseNodesLnsValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The enum numeric value on the wire for useLocalCheapestInsertionCloseNodesLns.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 7159 of file RoutingSearchParameters.java.

◆ getUseLocalCheapestInsertionExpensiveChainLns()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.getUseLocalCheapestInsertionExpensiveChainLns ( )
Same as above but using LocalCheapestInsertion as a heuristic for
insertion.

.operations_research.OptionalBoolean use_local_cheapest_insertion_expensive_chain_lns = 30;

Returns
The useLocalCheapestInsertionExpensiveChainLns.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 7022 of file RoutingSearchParameters.java.

◆ getUseLocalCheapestInsertionExpensiveChainLnsValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.getUseLocalCheapestInsertionExpensiveChainLnsValue ( )
Same as above but using LocalCheapestInsertion as a heuristic for
insertion.

.operations_research.OptionalBoolean use_local_cheapest_insertion_expensive_chain_lns = 30;

Returns
The enum numeric value on the wire for useLocalCheapestInsertionExpensiveChainLns.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 6993 of file RoutingSearchParameters.java.

◆ getUseLocalCheapestInsertionPathLns()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.getUseLocalCheapestInsertionPathLns ( )
Same as above but using LocalCheapestInsertion as a heuristic.

.operations_research.OptionalBoolean use_local_cheapest_insertion_path_lns = 28;

Returns
The useLocalCheapestInsertionPathLns.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 6775 of file RoutingSearchParameters.java.

◆ getUseLocalCheapestInsertionPathLnsValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.getUseLocalCheapestInsertionPathLnsValue ( )
Same as above but using LocalCheapestInsertion as a heuristic.

.operations_research.OptionalBoolean use_local_cheapest_insertion_path_lns = 28;

Returns
The enum numeric value on the wire for useLocalCheapestInsertionPathLns.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 6748 of file RoutingSearchParameters.java.

◆ getUseMakeActive()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The useMakeActive.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 5504 of file RoutingSearchParameters.java.

◆ getUseMakeActiveValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The enum numeric value on the wire for useMakeActive.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 5465 of file RoutingSearchParameters.java.

◆ getUseMakeChainInactive()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The useMakeChainInactive.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 5815 of file RoutingSearchParameters.java.

◆ getUseMakeChainInactiveValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The enum numeric value on the wire for useMakeChainInactive.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 5778 of file RoutingSearchParameters.java.

◆ getUseMakeInactive()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The useMakeInactive.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 5719 of file RoutingSearchParameters.java.

◆ getUseMakeInactiveValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The enum numeric value on the wire for useMakeInactive.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 5684 of file RoutingSearchParameters.java.

◆ getUseNodePairSwapActive()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The useNodePairSwapActive.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 6237 of file RoutingSearchParameters.java.

◆ getUseNodePairSwapActiveValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The enum numeric value on the wire for useNodePairSwapActive.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 6190 of file RoutingSearchParameters.java.

◆ getUseOrOpt()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The useOrOpt.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 5207 of file RoutingSearchParameters.java.

◆ getUseOrOptValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The enum numeric value on the wire for useOrOpt.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 5160 of file RoutingSearchParameters.java.

◆ getUsePathLns()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The usePathLns.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 6351 of file RoutingSearchParameters.java.

◆ getUsePathLnsValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The enum numeric value on the wire for usePathLns.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 6310 of file RoutingSearchParameters.java.

◆ getUseRelocate()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The useRelocate.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 3850 of file RoutingSearchParameters.java.

◆ getUseRelocateAndMakeActive()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The useRelocateAndMakeActive.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 5616 of file RoutingSearchParameters.java.

◆ getUseRelocateAndMakeActiveValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The enum numeric value on the wire for useRelocateAndMakeActive.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 5571 of file RoutingSearchParameters.java.

◆ getUseRelocateExpensiveChain()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The useRelocateExpensiveChain.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 4968 of file RoutingSearchParameters.java.

◆ getUseRelocateExpensiveChainValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The enum numeric value on the wire for useRelocateExpensiveChain.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 4923 of file RoutingSearchParameters.java.

◆ getUseRelocateNeighbors()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The useRelocateNeighbors.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 4218 of file RoutingSearchParameters.java.

◆ getUseRelocateNeighborsValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The enum numeric value on the wire for useRelocateNeighbors.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 4149 of file RoutingSearchParameters.java.

◆ getUseRelocatePair()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The useRelocatePair.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 3963 of file RoutingSearchParameters.java.

◆ getUseRelocatePairValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The enum numeric value on the wire for useRelocatePair.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 3920 of file RoutingSearchParameters.java.

◆ getUseRelocatePathGlobalCheapestInsertionInsertUnperformed()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The useRelocatePathGlobalCheapestInsertionInsertUnperformed.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 6854 of file RoutingSearchParameters.java.

◆ getUseRelocatePathGlobalCheapestInsertionInsertUnperformedValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The enum numeric value on the wire for useRelocatePathGlobalCheapestInsertionInsertUnperformed.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 6823 of file RoutingSearchParameters.java.

◆ getUseRelocateSubtrip()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The useRelocateSubtrip.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 4372 of file RoutingSearchParameters.java.

◆ getUseRelocateSubtripValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The enum numeric value on the wire for useRelocateSubtrip.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 4319 of file RoutingSearchParameters.java.

◆ getUseRelocateValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The enum numeric value on the wire for useRelocate.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 3807 of file RoutingSearchParameters.java.

◆ getUseShortestPathSwapActive()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The useShortestPathSwapActive.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 6124 of file RoutingSearchParameters.java.

◆ getUseShortestPathSwapActiveValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The enum numeric value on the wire for useShortestPathSwapActive.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 6087 of file RoutingSearchParameters.java.

◆ getUseSwapActive()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The useSwapActive.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 5910 of file RoutingSearchParameters.java.

◆ getUseSwapActiveValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The enum numeric value on the wire for useSwapActive.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 5875 of file RoutingSearchParameters.java.

◆ getUseTspLns()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The useTspLns.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 6526 of file RoutingSearchParameters.java.

◆ getUseTspLnsValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The enum numeric value on the wire for useTspLns.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 6489 of file RoutingSearchParameters.java.

◆ getUseTspOpt()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The useTspOpt.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 5403 of file RoutingSearchParameters.java.

◆ getUseTspOptValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The enum numeric value on the wire for useTspOpt.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 5366 of file RoutingSearchParameters.java.

◆ getUseTwoOpt()

com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The useTwoOpt.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 5086 of file RoutingSearchParameters.java.

◆ getUseTwoOptValue()

int com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.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;

Returns
The enum numeric value on the wire for useTwoOpt.

Implements com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder.

Definition at line 5041 of file RoutingSearchParameters.java.

◆ internalGetFieldAccessorTable()

com.google.protobuf.GeneratedMessageV3.FieldAccessorTable com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.internalGetFieldAccessorTable ( )
protected

Definition at line 3233 of file RoutingSearchParameters.java.

◆ isInitialized()

final boolean com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.isInitialized ( )

Definition at line 3582 of file RoutingSearchParameters.java.

◆ mergeFrom() [1/3]

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.mergeFrom ( com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators other)

Definition at line 3472 of file RoutingSearchParameters.java.

◆ mergeFrom() [2/3]

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.mergeFrom ( com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException

Definition at line 3587 of file RoutingSearchParameters.java.

◆ mergeFrom() [3/3]

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.mergeFrom ( com.google.protobuf.Message other)

Definition at line 3463 of file RoutingSearchParameters.java.

◆ mergeUnknownFields()

final Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.mergeUnknownFields ( final com.google.protobuf.UnknownFieldSet unknownFields)

Definition at line 7233 of file RoutingSearchParameters.java.

◆ setField()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setField ( com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value )

Definition at line 3435 of file RoutingSearchParameters.java.

◆ setRepeatedField()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setRepeatedField ( com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value )

Definition at line 3451 of file RoutingSearchParameters.java.

◆ setUnknownFields()

final Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUnknownFields ( final com.google.protobuf.UnknownFieldSet unknownFields)

Definition at line 7227 of file RoutingSearchParameters.java.

◆ setUseCross()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseCross ( com.google.ortools.util.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
valueThe useCross to set.
Returns
This builder for chaining.

Definition at line 4800 of file RoutingSearchParameters.java.

◆ setUseCrossExchange()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseCrossExchange ( com.google.ortools.util.OptionalBoolean value)
Not implemented yet. TODO(b/68128619): Implement.

.operations_research.OptionalBoolean use_cross_exchange = 6;

Parameters
valueThe useCrossExchange to set.
Returns
This builder for chaining.

Definition at line 4881 of file RoutingSearchParameters.java.

◆ setUseCrossExchangeValue()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseCrossExchangeValue ( int value)
Not implemented yet. TODO(b/68128619): Implement.

.operations_research.OptionalBoolean use_cross_exchange = 6;

Parameters
valueThe enum numeric value on the wire for useCrossExchange to set.
Returns
This builder for chaining.

Definition at line 4853 of file RoutingSearchParameters.java.

◆ setUseCrossValue()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseCrossValue ( int 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
valueThe enum numeric value on the wire for useCross to set.
Returns
This builder for chaining.

Definition at line 4756 of file RoutingSearchParameters.java.

◆ setUseExchange()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseExchange ( com.google.ortools.util.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
valueThe useExchange to set.
Returns
This builder for chaining.

Definition at line 4508 of file RoutingSearchParameters.java.

◆ setUseExchangePair()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseExchangePair ( com.google.ortools.util.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
valueThe useExchangePair to set.
Returns
This builder for chaining.

Definition at line 4611 of file RoutingSearchParameters.java.

◆ setUseExchangePairValue()

Builder com.google.ortools.constraintsolver.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
valueThe enum numeric value on the wire for useExchangePair to set.
Returns
This builder for chaining.

Definition at line 4571 of file RoutingSearchParameters.java.

◆ setUseExchangeSubtrip()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseExchangeSubtrip ( com.google.ortools.util.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
valueThe useExchangeSubtrip to set.
Returns
This builder for chaining.

Definition at line 4694 of file RoutingSearchParameters.java.

◆ setUseExchangeSubtripValue()

Builder com.google.ortools.constraintsolver.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
valueThe enum numeric value on the wire for useExchangeSubtrip to set.
Returns
This builder for chaining.

Definition at line 4664 of file RoutingSearchParameters.java.

◆ setUseExchangeValue()

Builder com.google.ortools.constraintsolver.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
valueThe enum numeric value on the wire for useExchange to set.
Returns
This builder for chaining.

Definition at line 4468 of file RoutingSearchParameters.java.

◆ setUseExtendedSwapActive()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseExtendedSwapActive ( com.google.ortools.util.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
valueThe useExtendedSwapActive to set.
Returns
This builder for chaining.

Definition at line 6040 of file RoutingSearchParameters.java.

◆ setUseExtendedSwapActiveValue()

Builder com.google.ortools.constraintsolver.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
valueThe enum numeric value on the wire for useExtendedSwapActive to set.
Returns
This builder for chaining.

Definition at line 5994 of file RoutingSearchParameters.java.

◆ setUseFullPathLns()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseFullPathLns ( com.google.ortools.util.OptionalBoolean value)
Operator which relaxes one entire path and all inactive nodes.

.operations_research.OptionalBoolean use_full_path_lns = 17;

Parameters
valueThe useFullPathLns to set.
Returns
This builder for chaining.

Definition at line 6451 of file RoutingSearchParameters.java.

◆ setUseFullPathLnsValue()

Builder com.google.ortools.constraintsolver.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
valueThe enum numeric value on the wire for useFullPathLns to set.
Returns
This builder for chaining.

Definition at line 6423 of file RoutingSearchParameters.java.

◆ setUseGlobalCheapestInsertionCloseNodesLns()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseGlobalCheapestInsertionCloseNodesLns ( com.google.ortools.util.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
valueThe useGlobalCheapestInsertionCloseNodesLns to set.
Returns
This builder for chaining.

Definition at line 7122 of file RoutingSearchParameters.java.

◆ setUseGlobalCheapestInsertionCloseNodesLnsValue()

Builder com.google.ortools.constraintsolver.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
valueThe enum numeric value on the wire for useGlobalCheapestInsertionCloseNodesLns to set.
Returns
This builder for chaining.

Definition at line 7088 of file RoutingSearchParameters.java.

◆ setUseGlobalCheapestInsertionExpensiveChainLns()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseGlobalCheapestInsertionExpensiveChainLns ( com.google.ortools.util.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
valueThe useGlobalCheapestInsertionExpensiveChainLns to set.
Returns
This builder for chaining.

Definition at line 6956 of file RoutingSearchParameters.java.

◆ setUseGlobalCheapestInsertionExpensiveChainLnsValue()

Builder com.google.ortools.constraintsolver.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
valueThe enum numeric value on the wire for useGlobalCheapestInsertionExpensiveChainLns to set.
Returns
This builder for chaining.

Definition at line 6922 of file RoutingSearchParameters.java.

◆ setUseGlobalCheapestInsertionPathLns()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseGlobalCheapestInsertionPathLns ( com.google.ortools.util.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
valueThe useGlobalCheapestInsertionPathLns to set.
Returns
This builder for chaining.

Definition at line 6713 of file RoutingSearchParameters.java.

◆ setUseGlobalCheapestInsertionPathLnsValue()

Builder com.google.ortools.constraintsolver.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
valueThe enum numeric value on the wire for useGlobalCheapestInsertionPathLns to set.
Returns
This builder for chaining.

Definition at line 6681 of file RoutingSearchParameters.java.

◆ setUseInactiveLns()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseInactiveLns ( com.google.ortools.util.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
valueThe useInactiveLns to set.
Returns
This builder for chaining.

Definition at line 6630 of file RoutingSearchParameters.java.

◆ setUseInactiveLnsValue()

Builder com.google.ortools.constraintsolver.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
valueThe enum numeric value on the wire for useInactiveLns to set.
Returns
This builder for chaining.

Definition at line 6598 of file RoutingSearchParameters.java.

◆ setUseLightRelocatePair()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseLightRelocatePair ( com.google.ortools.util.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
valueThe useLightRelocatePair to set.
Returns
This builder for chaining.

Definition at line 4089 of file RoutingSearchParameters.java.

◆ setUseLightRelocatePairValue()

Builder com.google.ortools.constraintsolver.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
valueThe enum numeric value on the wire for useLightRelocatePair to set.
Returns
This builder for chaining.

Definition at line 4049 of file RoutingSearchParameters.java.

◆ setUseLinKernighan()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseLinKernighan ( com.google.ortools.util.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
valueThe useLinKernighan to set.
Returns
This builder for chaining.

Definition at line 5325 of file RoutingSearchParameters.java.

◆ setUseLinKernighanValue()

Builder com.google.ortools.constraintsolver.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
valueThe enum numeric value on the wire for useLinKernighan to set.
Returns
This builder for chaining.

Definition at line 5291 of file RoutingSearchParameters.java.

◆ setUseLocalCheapestInsertionCloseNodesLns()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseLocalCheapestInsertionCloseNodesLns ( com.google.ortools.util.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
valueThe useLocalCheapestInsertionCloseNodesLns to set.
Returns
This builder for chaining.

Definition at line 7202 of file RoutingSearchParameters.java.

◆ setUseLocalCheapestInsertionCloseNodesLnsValue()

Builder com.google.ortools.constraintsolver.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
valueThe enum numeric value on the wire for useLocalCheapestInsertionCloseNodesLns to set.
Returns
This builder for chaining.

Definition at line 7172 of file RoutingSearchParameters.java.

◆ setUseLocalCheapestInsertionExpensiveChainLns()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseLocalCheapestInsertionExpensiveChainLns ( com.google.ortools.util.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
valueThe useLocalCheapestInsertionExpensiveChainLns to set.
Returns
This builder for chaining.

Definition at line 7036 of file RoutingSearchParameters.java.

◆ setUseLocalCheapestInsertionExpensiveChainLnsValue()

Builder com.google.ortools.constraintsolver.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
valueThe enum numeric value on the wire for useLocalCheapestInsertionExpensiveChainLns to set.
Returns
This builder for chaining.

Definition at line 7006 of file RoutingSearchParameters.java.

◆ setUseLocalCheapestInsertionPathLns()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseLocalCheapestInsertionPathLns ( com.google.ortools.util.OptionalBoolean value)
Same as above but using LocalCheapestInsertion as a heuristic.

.operations_research.OptionalBoolean use_local_cheapest_insertion_path_lns = 28;

Parameters
valueThe useLocalCheapestInsertionPathLns to set.
Returns
This builder for chaining.

Definition at line 6788 of file RoutingSearchParameters.java.

◆ setUseLocalCheapestInsertionPathLnsValue()

Builder com.google.ortools.constraintsolver.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
valueThe enum numeric value on the wire for useLocalCheapestInsertionPathLns to set.
Returns
This builder for chaining.

Definition at line 6760 of file RoutingSearchParameters.java.

◆ setUseMakeActive()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseMakeActive ( com.google.ortools.util.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
valueThe useMakeActive to set.
Returns
This builder for chaining.

Definition at line 5523 of file RoutingSearchParameters.java.

◆ setUseMakeActiveValue()

Builder com.google.ortools.constraintsolver.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
valueThe enum numeric value on the wire for useMakeActive to set.
Returns
This builder for chaining.

Definition at line 5483 of file RoutingSearchParameters.java.

◆ setUseMakeChainInactive()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseMakeChainInactive ( com.google.ortools.util.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
valueThe useMakeChainInactive to set.
Returns
This builder for chaining.

Definition at line 5833 of file RoutingSearchParameters.java.

◆ setUseMakeChainInactiveValue()

Builder com.google.ortools.constraintsolver.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
valueThe enum numeric value on the wire for useMakeChainInactive to set.
Returns
This builder for chaining.

Definition at line 5795 of file RoutingSearchParameters.java.

◆ setUseMakeInactive()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseMakeInactive ( com.google.ortools.util.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
valueThe useMakeInactive to set.
Returns
This builder for chaining.

Definition at line 5736 of file RoutingSearchParameters.java.

◆ setUseMakeInactiveValue()

Builder com.google.ortools.constraintsolver.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
valueThe enum numeric value on the wire for useMakeInactive to set.
Returns
This builder for chaining.

Definition at line 5700 of file RoutingSearchParameters.java.

◆ setUseNodePairSwapActive()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseNodePairSwapActive ( com.google.ortools.util.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
valueThe useNodePairSwapActive to set.
Returns
This builder for chaining.

Definition at line 6260 of file RoutingSearchParameters.java.

◆ setUseNodePairSwapActiveValue()

Builder com.google.ortools.constraintsolver.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
valueThe enum numeric value on the wire for useNodePairSwapActive to set.
Returns
This builder for chaining.

Definition at line 6212 of file RoutingSearchParameters.java.

◆ setUseOrOpt()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseOrOpt ( com.google.ortools.util.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
valueThe useOrOpt to set.
Returns
This builder for chaining.

Definition at line 5230 of file RoutingSearchParameters.java.

◆ setUseOrOptValue()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseOrOptValue ( int 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
valueThe enum numeric value on the wire for useOrOpt to set.
Returns
This builder for chaining.

Definition at line 5182 of file RoutingSearchParameters.java.

◆ setUsePathLns()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUsePathLns ( com.google.ortools.util.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
valueThe usePathLns to set.
Returns
This builder for chaining.

Definition at line 6371 of file RoutingSearchParameters.java.

◆ setUsePathLnsValue()

Builder com.google.ortools.constraintsolver.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
valueThe enum numeric value on the wire for usePathLns to set.
Returns
This builder for chaining.

Definition at line 6329 of file RoutingSearchParameters.java.

◆ setUseRelocate()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseRelocate ( com.google.ortools.util.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
valueThe useRelocate to set.
Returns
This builder for chaining.

Definition at line 3871 of file RoutingSearchParameters.java.

◆ setUseRelocateAndMakeActive()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseRelocateAndMakeActive ( com.google.ortools.util.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
valueThe useRelocateAndMakeActive to set.
Returns
This builder for chaining.

Definition at line 5638 of file RoutingSearchParameters.java.

◆ setUseRelocateAndMakeActiveValue()

Builder com.google.ortools.constraintsolver.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
valueThe enum numeric value on the wire for useRelocateAndMakeActive to set.
Returns
This builder for chaining.

Definition at line 5592 of file RoutingSearchParameters.java.

◆ setUseRelocateExpensiveChain()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseRelocateExpensiveChain ( com.google.ortools.util.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
valueThe useRelocateExpensiveChain to set.
Returns
This builder for chaining.

Definition at line 4990 of file RoutingSearchParameters.java.

◆ setUseRelocateExpensiveChainValue()

Builder com.google.ortools.constraintsolver.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
valueThe enum numeric value on the wire for useRelocateExpensiveChain to set.
Returns
This builder for chaining.

Definition at line 4944 of file RoutingSearchParameters.java.

◆ setUseRelocateNeighbors()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseRelocateNeighbors ( com.google.ortools.util.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
valueThe useRelocateNeighbors to set.
Returns
This builder for chaining.

Definition at line 4252 of file RoutingSearchParameters.java.

◆ setUseRelocateNeighborsValue()

Builder com.google.ortools.constraintsolver.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
valueThe enum numeric value on the wire for useRelocateNeighbors to set.
Returns
This builder for chaining.

Definition at line 4182 of file RoutingSearchParameters.java.

◆ setUseRelocatePair()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseRelocatePair ( com.google.ortools.util.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
valueThe useRelocatePair to set.
Returns
This builder for chaining.

Definition at line 3984 of file RoutingSearchParameters.java.

◆ setUseRelocatePairValue()

Builder com.google.ortools.constraintsolver.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
valueThe enum numeric value on the wire for useRelocatePair to set.
Returns
This builder for chaining.

Definition at line 3940 of file RoutingSearchParameters.java.

◆ setUseRelocatePathGlobalCheapestInsertionInsertUnperformed()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseRelocatePathGlobalCheapestInsertionInsertUnperformed ( com.google.ortools.util.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
valueThe useRelocatePathGlobalCheapestInsertionInsertUnperformed to set.
Returns
This builder for chaining.

Definition at line 6869 of file RoutingSearchParameters.java.

◆ setUseRelocatePathGlobalCheapestInsertionInsertUnperformedValue()

Builder com.google.ortools.constraintsolver.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
valueThe enum numeric value on the wire for useRelocatePathGlobalCheapestInsertionInsertUnperformed to set.
Returns
This builder for chaining.

Definition at line 6837 of file RoutingSearchParameters.java.

◆ setUseRelocateSubtrip()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseRelocateSubtrip ( com.google.ortools.util.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
valueThe useRelocateSubtrip to set.
Returns
This builder for chaining.

Definition at line 4398 of file RoutingSearchParameters.java.

◆ setUseRelocateSubtripValue()

Builder com.google.ortools.constraintsolver.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
valueThe enum numeric value on the wire for useRelocateSubtrip to set.
Returns
This builder for chaining.

Definition at line 4344 of file RoutingSearchParameters.java.

◆ setUseRelocateValue()

Builder com.google.ortools.constraintsolver.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
valueThe enum numeric value on the wire for useRelocate to set.
Returns
This builder for chaining.

Definition at line 3827 of file RoutingSearchParameters.java.

◆ setUseShortestPathSwapActive()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseShortestPathSwapActive ( com.google.ortools.util.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
valueThe useShortestPathSwapActive to set.
Returns
This builder for chaining.

Definition at line 6142 of file RoutingSearchParameters.java.

◆ setUseShortestPathSwapActiveValue()

Builder com.google.ortools.constraintsolver.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
valueThe enum numeric value on the wire for useShortestPathSwapActive to set.
Returns
This builder for chaining.

Definition at line 6104 of file RoutingSearchParameters.java.

◆ setUseSwapActive()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseSwapActive ( com.google.ortools.util.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
valueThe useSwapActive to set.
Returns
This builder for chaining.

Definition at line 5927 of file RoutingSearchParameters.java.

◆ setUseSwapActiveValue()

Builder com.google.ortools.constraintsolver.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
valueThe enum numeric value on the wire for useSwapActive to set.
Returns
This builder for chaining.

Definition at line 5891 of file RoutingSearchParameters.java.

◆ setUseTspLns()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseTspLns ( com.google.ortools.util.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
valueThe useTspLns to set.
Returns
This builder for chaining.

Definition at line 6544 of file RoutingSearchParameters.java.

◆ setUseTspLnsValue()

Builder com.google.ortools.constraintsolver.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
valueThe enum numeric value on the wire for useTspLns to set.
Returns
This builder for chaining.

Definition at line 6506 of file RoutingSearchParameters.java.

◆ setUseTspOpt()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseTspOpt ( com.google.ortools.util.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
valueThe useTspOpt to set.
Returns
This builder for chaining.

Definition at line 5421 of file RoutingSearchParameters.java.

◆ setUseTspOptValue()

Builder com.google.ortools.constraintsolver.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
valueThe enum numeric value on the wire for useTspOpt to set.
Returns
This builder for chaining.

Definition at line 5383 of file RoutingSearchParameters.java.

◆ setUseTwoOpt()

Builder com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder.setUseTwoOpt ( com.google.ortools.util.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
valueThe useTwoOpt to set.
Returns
This builder for chaining.

Definition at line 5108 of file RoutingSearchParameters.java.

◆ setUseTwoOptValue()

Builder com.google.ortools.constraintsolver.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
valueThe enum numeric value on the wire for useTwoOpt to set.
Returns
This builder for chaining.

Definition at line 5062 of file RoutingSearchParameters.java.


The documentation for this class was generated from the following file: