Class RoutingSearchParameters.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<RoutingSearchParameters.Builder>
com.google.protobuf.GeneratedMessage.Builder<RoutingSearchParameters.Builder>
com.google.ortools.constraintsolver.RoutingSearchParameters.Builder
- All Implemented Interfaces:
RoutingSearchParametersOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
RoutingSearchParameters
public static final class RoutingSearchParameters.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RoutingSearchParameters.Builder>
implements RoutingSearchParametersOrBuilder
Parameters defining the search used to solve vehicle routing problems. If a parameter is unset (or, equivalently, set to its default value), then the routing library will pick its preferred value for that parameter automatically: this should be the case for most parameters. To see those "default" parameters, call GetDefaultRoutingSearchParameters(). Next ID: 68Protobuf type
operations_research.RoutingSearchParameters
-
Method Summary
Modifier and TypeMethodDescriptionaddAllLocalCheapestInsertionSortingProperties
(Iterable<? extends RoutingSearchParameters.InsertionSortingProperty> values) The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority.The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority.addAllLocalSearchMetaheuristics
(Iterable<? extends LocalSearchMetaheuristic.Value> values) Local search metaheuristics alternatively used to guide the search.Local search metaheuristics alternatively used to guide the search.The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority.The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority.Local search metaheuristics alternatively used to guide the search.addLocalSearchMetaheuristicsValue
(int value) Local search metaheuristics alternatively used to guide the search.build()
clear()
Whether or not to consider entries making the nodes/pairs unperformed in the GlobalCheapestInsertion heuristic.Ratio (between 0 and 1) of available vehicles in the model on which farthest nodes of the model are inserted as seeds in the GlobalCheapestInsertion first solution heuristic.int32 cheapest_insertion_first_solution_min_neighbors = 44;
Ratio (in ]0, 1]) of closest non start/end nodes to consider as neighbors for each node when creating new insertions in the parallel/sequential cheapest insertion heuristic.Whether or not to only consider closest neighbors when initializing the assignment for the first solution.int32 cheapest_insertion_ls_operator_min_neighbors = 45;
Neighbors ratio and minimum number of neighbors for the heuristic when used in a local search operator (see local_search_operators.use_global_cheapest_insertion_path_lns and local_search_operators.use_global_cheapest_insertion_chain_lns below).If true use minimum matching instead of minimal matching in the Christofides algorithm..operations_research.RoutingSearchParameters.SchedulingSolver continuous_scheduling_solver = 33;
Setting this to true completely disables the LP and MIP scheduling in the solver.If model.Size() is less than the threshold and that no solution has been found, attempt a pass with CP-SAT.If non zero, a period p indicates that every p node insertions or additions to a path, an optimization of the current partial solution will be performed.First solution strategies, used as starting point of local search.These are advanced settings which should not be modified unless you know what you are doing.When an arc leaving a vehicle start or arriving at a vehicle end is penalized, this field controls whether to penalize all other equivalent arcs with starts or ends in the same vehicle class.Whether to reset penalties when a new best solution is found.Number of closest nodes to consider for each node during the destruction phase of the FilteredHeuristicCloseNodesLNSOperator.Number of expensive arcs to consider cutting in the FilteredHeuristicExpensiveChainLNSOperator operator.The improvement search limit is added to the solver if the following parameters are set.Iterated Local Search parameters.Limit to the time spent in the completion search for each local search neighbor.Choice of insertion strategy for pickup/delivery pairs, used in local cheapest cost insertion, both first solution heuristic and LNS.Choice of insertion strategy for pickup/delivery pairs, used in local cheapest insertion, both first solution heuristic and LNS.The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority.Local search metaheuristics used to guide the search.Local search metaheuristics alternatively used to guide the search..operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3;
double log_cost_offset = 29;
In logs, cost values will be scaled and offset by the given values in the following way: log_cost_scaling_factor * (cost + log_cost_offset)--- Miscellaneous --- Some of these are advanced settings which should not be modified unless you know what you are doing.In logs, this tag will be appended to each line corresponding to a new solution.int32 ls_operator_min_neighbors = 54;
Neighbors ratio and minimum number of neighbors considered in local search operators (see cheapest_insertion_first_solution_neighbors_ratio and cheapest_insertion_first_solution_min_neighbors for more information).Maximum size of the chain to make inactive in SwapActiveChainOperator..operations_research.RoutingSearchParameters.SchedulingSolver mixed_integer_scheduling_solver = 34;
Positive parameter defining the exploration coefficient of the multi-armed bandit compound operator.Memory coefficient related to the multi-armed bandit compound operator.Number of solutions to collect during the search.int32 num_max_local_optima_before_metaheuristic_switch = 64;
Minimum step by which the solution must be improved in local search. 0 means "unspecified".Number of expensive arcs to consider cutting in the RelocateExpensiveChain neighborhood operator (see LocalSearchNeighborhoodOperators.use_relocate_expensive_chain()).If use_cp_sat or use_generalized_cp_sat is true, will report intermediate solutions found by CP-SAT to solution listeners.If use_cp_sat or use_generalized_cp_sat is true, contains the SAT algorithm parameters which will be used.Add savings related to reverse arcs when finding the nearest neighbors of the nodes.Coefficient of the cost of the arc for which the saving value is being computed: Saving(a-->b) = Cost(a-->end) + Cost(start-->b) - savings_arc_coefficient * Cost(a-->b) This parameter must be greater than 0, and its default value is 1.The number of neighbors considered for each node in the Savings heuristic is chosen so that the space used to store the savings doesn't exceed savings_max_memory_usage_bytes, which must be in ]0, 1e10].Parameters specific to the Savings first solution heuristic.Ratio of the overall time limit spent in a secondary LS phase with only intra-route and insertion operators, meant to "cleanup" the current solution before stopping the search.-- Search limits -- Limit to the number of solutions generated during the search. 0 means "unspecified".Limit to the time spent in the search.If true, use the CP solver to find a solution.If true, use the CP-SAT solver to find a solution.--- Search control --- If true, the solver should use depth-first search rather than local search to solve the problem.--- Propagation control --- These are advanced settings which should not be modified unless you know what you are doing.If true, use the CP-SAT solver to find a solution on generalized routing model.Whether to consider arc penalties in cost functions used in local search operators using arc costs.Whether the solver should use an Iterated Local Search approach to solve the problem.If true, the solver will use multi-armed bandit concatenate operators.--- Advanced first solutions strategy settings --- Don't touch these unless you know what you are doing.boolean
Whether or not to consider entries making the nodes/pairs unperformed in the GlobalCheapestInsertion heuristic.double
Ratio (between 0 and 1) of available vehicles in the model on which farthest nodes of the model are inserted as seeds in the GlobalCheapestInsertion first solution heuristic.int
int32 cheapest_insertion_first_solution_min_neighbors = 44;
double
Ratio (in ]0, 1]) of closest non start/end nodes to consider as neighbors for each node when creating new insertions in the parallel/sequential cheapest insertion heuristic.boolean
Whether or not to only consider closest neighbors when initializing the assignment for the first solution.int
int32 cheapest_insertion_ls_operator_min_neighbors = 45;
double
Neighbors ratio and minimum number of neighbors for the heuristic when used in a local search operator (see local_search_operators.use_global_cheapest_insertion_path_lns and local_search_operators.use_global_cheapest_insertion_chain_lns below).boolean
If true use minimum matching instead of minimal matching in the Christofides algorithm..operations_research.RoutingSearchParameters.SchedulingSolver continuous_scheduling_solver = 33;
int
.operations_research.RoutingSearchParameters.SchedulingSolver continuous_scheduling_solver = 33;
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
boolean
Setting this to true completely disables the LP and MIP scheduling in the solver.int
If model.Size() is less than the threshold and that no solution has been found, attempt a pass with CP-SAT.int
If non zero, a period p indicates that every p node insertions or additions to a path, an optimization of the current partial solution will be performed.First solution strategies, used as starting point of local search.int
First solution strategies, used as starting point of local search.double
These are advanced settings which should not be modified unless you know what you are doing.boolean
When an arc leaving a vehicle start or arriving at a vehicle end is penalized, this field controls whether to penalize all other equivalent arcs with starts or ends in the same vehicle class.boolean
Whether to reset penalties when a new best solution is found.int
Number of closest nodes to consider for each node during the destruction phase of the FilteredHeuristicCloseNodesLNSOperator.int
Number of expensive arcs to consider cutting in the FilteredHeuristicExpensiveChainLNSOperator operator.The improvement search limit is added to the solver if the following parameters are set.The improvement search limit is added to the solver if the following parameters are set.The improvement search limit is added to the solver if the following parameters are set.Iterated Local Search parameters.Iterated Local Search parameters.Iterated Local Search parameters.com.google.protobuf.Duration
Limit to the time spent in the completion search for each local search neighbor.com.google.protobuf.Duration.Builder
Limit to the time spent in the completion search for each local search neighbor.com.google.protobuf.DurationOrBuilder
Limit to the time spent in the completion search for each local search neighbor.Choice of insertion strategy for pickup/delivery pairs, used in local cheapest cost insertion, both first solution heuristic and LNS.int
Choice of insertion strategy for pickup/delivery pairs, used in local cheapest cost insertion, both first solution heuristic and LNS.Choice of insertion strategy for pickup/delivery pairs, used in local cheapest insertion, both first solution heuristic and LNS.int
Choice of insertion strategy for pickup/delivery pairs, used in local cheapest insertion, both first solution heuristic and LNS.getLocalCheapestInsertionSortingProperties
(int index) The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority.int
The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority.The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority.int
The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority.The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority.Local search metaheuristics used to guide the search.getLocalSearchMetaheuristics
(int index) Local search metaheuristics alternatively used to guide the search.int
Local search metaheuristics alternatively used to guide the search.Local search metaheuristics alternatively used to guide the search.int
getLocalSearchMetaheuristicsValue
(int index) Local search metaheuristics alternatively used to guide the search.Local search metaheuristics alternatively used to guide the search.int
Local search metaheuristics used to guide the search..operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3;
.operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3;
.operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3;
double
double log_cost_offset = 29;
double
In logs, cost values will be scaled and offset by the given values in the following way: log_cost_scaling_factor * (cost + log_cost_offset)boolean
--- Miscellaneous --- Some of these are advanced settings which should not be modified unless you know what you are doing.In logs, this tag will be appended to each line corresponding to a new solution.com.google.protobuf.ByteString
In logs, this tag will be appended to each line corresponding to a new solution.int
int32 ls_operator_min_neighbors = 54;
double
Neighbors ratio and minimum number of neighbors considered in local search operators (see cheapest_insertion_first_solution_neighbors_ratio and cheapest_insertion_first_solution_min_neighbors for more information).int
Maximum size of the chain to make inactive in SwapActiveChainOperator..operations_research.RoutingSearchParameters.SchedulingSolver mixed_integer_scheduling_solver = 34;
int
.operations_research.RoutingSearchParameters.SchedulingSolver mixed_integer_scheduling_solver = 34;
double
Positive parameter defining the exploration coefficient of the multi-armed bandit compound operator.double
Memory coefficient related to the multi-armed bandit compound operator.int
Number of solutions to collect during the search.int
int32 num_max_local_optima_before_metaheuristic_switch = 64;
double
Minimum step by which the solution must be improved in local search. 0 means "unspecified".int
Number of expensive arcs to consider cutting in the RelocateExpensiveChain neighborhood operator (see LocalSearchNeighborhoodOperators.use_relocate_expensive_chain()).boolean
If use_cp_sat or use_generalized_cp_sat is true, will report intermediate solutions found by CP-SAT to solution listeners.If use_cp_sat or use_generalized_cp_sat is true, contains the SAT algorithm parameters which will be used.If use_cp_sat or use_generalized_cp_sat is true, contains the SAT algorithm parameters which will be used.If use_cp_sat or use_generalized_cp_sat is true, contains the SAT algorithm parameters which will be used.boolean
Add savings related to reverse arcs when finding the nearest neighbors of the nodes.double
Coefficient of the cost of the arc for which the saving value is being computed: Saving(a-->b) = Cost(a-->end) + Cost(start-->b) - savings_arc_coefficient * Cost(a-->b) This parameter must be greater than 0, and its default value is 1.double
The number of neighbors considered for each node in the Savings heuristic is chosen so that the space used to store the savings doesn't exceed savings_max_memory_usage_bytes, which must be in ]0, 1e10].double
Parameters specific to the Savings first solution heuristic.double
Ratio of the overall time limit spent in a secondary LS phase with only intra-route and insertion operators, meant to "cleanup" the current solution before stopping the search.long
-- Search limits -- Limit to the number of solutions generated during the search. 0 means "unspecified".com.google.protobuf.Duration
Limit to the time spent in the search.com.google.protobuf.Duration.Builder
Limit to the time spent in the search.com.google.protobuf.DurationOrBuilder
Limit to the time spent in the search.getUseCp()
If true, use the CP solver to find a solution.If true, use the CP-SAT solver to find a solution.int
If true, use the CP-SAT solver to find a solution.int
If true, use the CP solver to find a solution.boolean
--- Search control --- If true, the solver should use depth-first search rather than local search to solve the problem.boolean
--- Propagation control --- These are advanced settings which should not be modified unless you know what you are doing.If true, use the CP-SAT solver to find a solution on generalized routing model.int
If true, use the CP-SAT solver to find a solution on generalized routing model.boolean
Whether to consider arc penalties in cost functions used in local search operators using arc costs.boolean
Whether the solver should use an Iterated Local Search approach to solve the problem.boolean
If true, the solver will use multi-armed bandit concatenate operators.boolean
--- Advanced first solutions strategy settings --- Don't touch these unless you know what you are doing.boolean
Setting this to true completely disables the LP and MIP scheduling in the solver.boolean
The improvement search limit is added to the solver if the following parameters are set.boolean
Iterated Local Search parameters.boolean
Limit to the time spent in the completion search for each local search neighbor.boolean
.operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3;
boolean
If use_cp_sat or use_generalized_cp_sat is true, contains the SAT algorithm parameters which will be used.boolean
Limit to the time spent in the search.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(RoutingSearchParameters other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) The improvement search limit is added to the solver if the following parameters are set.Iterated Local Search parameters.mergeLnsTimeLimit
(com.google.protobuf.Duration value) Limit to the time spent in the completion search for each local search neighbor..operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3;
mergeSatParameters
(SatParameters value) If use_cp_sat or use_generalized_cp_sat is true, contains the SAT algorithm parameters which will be used.mergeTimeLimit
(com.google.protobuf.Duration value) Limit to the time spent in the search.setCheapestInsertionAddUnperformedEntries
(boolean value) Whether or not to consider entries making the nodes/pairs unperformed in the GlobalCheapestInsertion heuristic.setCheapestInsertionFarthestSeedsRatio
(double value) Ratio (between 0 and 1) of available vehicles in the model on which farthest nodes of the model are inserted as seeds in the GlobalCheapestInsertion first solution heuristic.int32 cheapest_insertion_first_solution_min_neighbors = 44;
setCheapestInsertionFirstSolutionNeighborsRatio
(double value) Ratio (in ]0, 1]) of closest non start/end nodes to consider as neighbors for each node when creating new insertions in the parallel/sequential cheapest insertion heuristic.Whether or not to only consider closest neighbors when initializing the assignment for the first solution.setCheapestInsertionLsOperatorMinNeighbors
(int value) int32 cheapest_insertion_ls_operator_min_neighbors = 45;
setCheapestInsertionLsOperatorNeighborsRatio
(double value) Neighbors ratio and minimum number of neighbors for the heuristic when used in a local search operator (see local_search_operators.use_global_cheapest_insertion_path_lns and local_search_operators.use_global_cheapest_insertion_chain_lns below).setChristofidesUseMinimumMatching
(boolean value) If true use minimum matching instead of minimal matching in the Christofides algorithm..operations_research.RoutingSearchParameters.SchedulingSolver continuous_scheduling_solver = 33;
setContinuousSchedulingSolverValue
(int value) .operations_research.RoutingSearchParameters.SchedulingSolver continuous_scheduling_solver = 33;
setDisableSchedulingBewareThisMayDegradePerformance
(boolean value) Setting this to true completely disables the LP and MIP scheduling in the solver.setFallbackToCpSatSizeThreshold
(int value) If model.Size() is less than the threshold and that no solution has been found, attempt a pass with CP-SAT.setFirstSolutionOptimizationPeriod
(int value) If non zero, a period p indicates that every p node insertions or additions to a path, an optimization of the current partial solution will be performed.First solution strategies, used as starting point of local search.setFirstSolutionStrategyValue
(int value) First solution strategies, used as starting point of local search.setGuidedLocalSearchLambdaCoefficient
(double value) These are advanced settings which should not be modified unless you know what you are doing.setGuidedLocalSearchPenalizeWithVehicleClasses
(boolean value) When an arc leaving a vehicle start or arriving at a vehicle end is penalized, this field controls whether to penalize all other equivalent arcs with starts or ends in the same vehicle class.setGuidedLocalSearchResetPenaltiesOnNewBestSolution
(boolean value) Whether to reset penalties when a new best solution is found.setHeuristicCloseNodesLnsNumNodes
(int value) Number of closest nodes to consider for each node during the destruction phase of the FilteredHeuristicCloseNodesLNSOperator.Number of expensive arcs to consider cutting in the FilteredHeuristicExpensiveChainLNSOperator operator.The improvement search limit is added to the solver if the following parameters are set.setImprovementLimitParameters
(RoutingSearchParameters.ImprovementSearchLimitParameters.Builder builderForValue) The improvement search limit is added to the solver if the following parameters are set.Iterated Local Search parameters.setIteratedLocalSearchParameters
(IteratedLocalSearchParameters.Builder builderForValue) Iterated Local Search parameters.setLnsTimeLimit
(com.google.protobuf.Duration value) Limit to the time spent in the completion search for each local search neighbor.setLnsTimeLimit
(com.google.protobuf.Duration.Builder builderForValue) Limit to the time spent in the completion search for each local search neighbor.setLocalCheapestCostInsertionPickupDeliveryStrategy
(RoutingSearchParameters.PairInsertionStrategy value) Choice of insertion strategy for pickup/delivery pairs, used in local cheapest cost insertion, both first solution heuristic and LNS.Choice of insertion strategy for pickup/delivery pairs, used in local cheapest cost insertion, both first solution heuristic and LNS.setLocalCheapestInsertionPickupDeliveryStrategy
(RoutingSearchParameters.PairInsertionStrategy value) Choice of insertion strategy for pickup/delivery pairs, used in local cheapest insertion, both first solution heuristic and LNS.Choice of insertion strategy for pickup/delivery pairs, used in local cheapest insertion, both first solution heuristic and LNS.setLocalCheapestInsertionSortingProperties
(int index, RoutingSearchParameters.InsertionSortingProperty value) The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority.setLocalCheapestInsertionSortingPropertiesValue
(int index, int value) The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority.Local search metaheuristics used to guide the search.setLocalSearchMetaheuristics
(int index, LocalSearchMetaheuristic.Value value) Local search metaheuristics alternatively used to guide the search.setLocalSearchMetaheuristicsValue
(int index, int value) Local search metaheuristics alternatively used to guide the search.setLocalSearchMetaheuristicValue
(int value) Local search metaheuristics used to guide the search..operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3;
setLocalSearchOperators
(RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder builderForValue) .operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3;
setLogCostOffset
(double value) double log_cost_offset = 29;
setLogCostScalingFactor
(double value) In logs, cost values will be scaled and offset by the given values in the following way: log_cost_scaling_factor * (cost + log_cost_offset)setLogSearch
(boolean value) --- Miscellaneous --- Some of these are advanced settings which should not be modified unless you know what you are doing.In logs, this tag will be appended to each line corresponding to a new solution.setLogTagBytes
(com.google.protobuf.ByteString value) In logs, this tag will be appended to each line corresponding to a new solution.setLsOperatorMinNeighbors
(int value) int32 ls_operator_min_neighbors = 54;
setLsOperatorNeighborsRatio
(double value) Neighbors ratio and minimum number of neighbors considered in local search operators (see cheapest_insertion_first_solution_neighbors_ratio and cheapest_insertion_first_solution_min_neighbors for more information).setMaxSwapActiveChainSize
(int value) Maximum size of the chain to make inactive in SwapActiveChainOperator..operations_research.RoutingSearchParameters.SchedulingSolver mixed_integer_scheduling_solver = 34;
setMixedIntegerSchedulingSolverValue
(int value) .operations_research.RoutingSearchParameters.SchedulingSolver mixed_integer_scheduling_solver = 34;
Positive parameter defining the exploration coefficient of the multi-armed bandit compound operator.setMultiArmedBanditCompoundOperatorMemoryCoefficient
(double value) Memory coefficient related to the multi-armed bandit compound operator.setNumberOfSolutionsToCollect
(int value) Number of solutions to collect during the search.int32 num_max_local_optima_before_metaheuristic_switch = 64;
setOptimizationStep
(double value) Minimum step by which the solution must be improved in local search. 0 means "unspecified".setRelocateExpensiveChainNumArcsToConsider
(int value) Number of expensive arcs to consider cutting in the RelocateExpensiveChain neighborhood operator (see LocalSearchNeighborhoodOperators.use_relocate_expensive_chain()).setReportIntermediateCpSatSolutions
(boolean value) If use_cp_sat or use_generalized_cp_sat is true, will report intermediate solutions found by CP-SAT to solution listeners.setSatParameters
(SatParameters value) If use_cp_sat or use_generalized_cp_sat is true, contains the SAT algorithm parameters which will be used.setSatParameters
(SatParameters.Builder builderForValue) If use_cp_sat or use_generalized_cp_sat is true, contains the SAT algorithm parameters which will be used.setSavingsAddReverseArcs
(boolean value) Add savings related to reverse arcs when finding the nearest neighbors of the nodes.setSavingsArcCoefficient
(double value) Coefficient of the cost of the arc for which the saving value is being computed: Saving(a-->b) = Cost(a-->end) + Cost(start-->b) - savings_arc_coefficient * Cost(a-->b) This parameter must be greater than 0, and its default value is 1.setSavingsMaxMemoryUsageBytes
(double value) The number of neighbors considered for each node in the Savings heuristic is chosen so that the space used to store the savings doesn't exceed savings_max_memory_usage_bytes, which must be in ]0, 1e10].setSavingsNeighborsRatio
(double value) Parameters specific to the Savings first solution heuristic.setSecondaryLsTimeLimitRatio
(double value) Ratio of the overall time limit spent in a secondary LS phase with only intra-route and insertion operators, meant to "cleanup" the current solution before stopping the search.setSolutionLimit
(long value) -- Search limits -- Limit to the number of solutions generated during the search. 0 means "unspecified".setTimeLimit
(com.google.protobuf.Duration value) Limit to the time spent in the search.setTimeLimit
(com.google.protobuf.Duration.Builder builderForValue) Limit to the time spent in the search.setUseCp
(OptionalBoolean value) If true, use the CP solver to find a solution.setUseCpSat
(OptionalBoolean value) If true, use the CP-SAT solver to find a solution.setUseCpSatValue
(int value) If true, use the CP-SAT solver to find a solution.setUseCpValue
(int value) If true, use the CP solver to find a solution.setUseDepthFirstSearch
(boolean value) --- Search control --- If true, the solver should use depth-first search rather than local search to solve the problem.setUseFullPropagation
(boolean value) --- Propagation control --- These are advanced settings which should not be modified unless you know what you are doing.If true, use the CP-SAT solver to find a solution on generalized routing model.setUseGeneralizedCpSatValue
(int value) If true, use the CP-SAT solver to find a solution on generalized routing model.setUseGuidedLocalSearchPenaltiesInLocalSearchOperators
(boolean value) Whether to consider arc penalties in cost functions used in local search operators using arc costs.setUseIteratedLocalSearch
(boolean value) Whether the solver should use an Iterated Local Search approach to solve the problem.setUseMultiArmedBanditConcatenateOperators
(boolean value) If true, the solver will use multi-armed bandit concatenate operators.setUseUnfilteredFirstSolutionStrategy
(boolean value) --- Advanced first solutions strategy settings --- Don't touch these unless you know what you are doing.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<RoutingSearchParameters.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<RoutingSearchParameters.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<RoutingSearchParameters.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RoutingSearchParameters.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<RoutingSearchParameters.Builder>
-
mergeFrom
public RoutingSearchParameters.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RoutingSearchParameters.Builder>
- Throws:
IOException
-
getFirstSolutionStrategyValue
public int getFirstSolutionStrategyValue()First solution strategies, used as starting point of local search.
.operations_research.FirstSolutionStrategy.Value first_solution_strategy = 1;
- Specified by:
getFirstSolutionStrategyValue
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The enum numeric value on the wire for firstSolutionStrategy.
-
setFirstSolutionStrategyValue
First solution strategies, used as starting point of local search.
.operations_research.FirstSolutionStrategy.Value first_solution_strategy = 1;
- Parameters:
value
- The enum numeric value on the wire for firstSolutionStrategy to set.- Returns:
- This builder for chaining.
-
getFirstSolutionStrategy
First solution strategies, used as starting point of local search.
.operations_research.FirstSolutionStrategy.Value first_solution_strategy = 1;
- Specified by:
getFirstSolutionStrategy
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The firstSolutionStrategy.
-
setFirstSolutionStrategy
First solution strategies, used as starting point of local search.
.operations_research.FirstSolutionStrategy.Value first_solution_strategy = 1;
- Parameters:
value
- The firstSolutionStrategy to set.- Returns:
- This builder for chaining.
-
clearFirstSolutionStrategy
First solution strategies, used as starting point of local search.
.operations_research.FirstSolutionStrategy.Value first_solution_strategy = 1;
- Returns:
- This builder for chaining.
-
getUseUnfilteredFirstSolutionStrategy
public boolean getUseUnfilteredFirstSolutionStrategy()--- Advanced first solutions strategy settings --- Don't touch these unless you know what you are doing. Use filtered version of first solution strategy if available.
bool use_unfiltered_first_solution_strategy = 2;
- Specified by:
getUseUnfilteredFirstSolutionStrategy
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The useUnfilteredFirstSolutionStrategy.
-
setUseUnfilteredFirstSolutionStrategy
--- Advanced first solutions strategy settings --- Don't touch these unless you know what you are doing. Use filtered version of first solution strategy if available.
bool use_unfiltered_first_solution_strategy = 2;
- Parameters:
value
- The useUnfilteredFirstSolutionStrategy to set.- Returns:
- This builder for chaining.
-
clearUseUnfilteredFirstSolutionStrategy
--- Advanced first solutions strategy settings --- Don't touch these unless you know what you are doing. Use filtered version of first solution strategy if available.
bool use_unfiltered_first_solution_strategy = 2;
- Returns:
- This builder for chaining.
-
getSavingsNeighborsRatio
public double getSavingsNeighborsRatio()Parameters specific to the Savings first solution heuristic. Ratio (in ]0, 1]) of neighbors to consider for each node when constructing the savings. If unspecified, its value is considered to be 1.0.
double savings_neighbors_ratio = 14;
- Specified by:
getSavingsNeighborsRatio
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The savingsNeighborsRatio.
-
setSavingsNeighborsRatio
Parameters specific to the Savings first solution heuristic. Ratio (in ]0, 1]) of neighbors to consider for each node when constructing the savings. If unspecified, its value is considered to be 1.0.
double savings_neighbors_ratio = 14;
- Parameters:
value
- The savingsNeighborsRatio to set.- Returns:
- This builder for chaining.
-
clearSavingsNeighborsRatio
Parameters specific to the Savings first solution heuristic. Ratio (in ]0, 1]) of neighbors to consider for each node when constructing the savings. If unspecified, its value is considered to be 1.0.
double savings_neighbors_ratio = 14;
- Returns:
- This builder for chaining.
-
getSavingsMaxMemoryUsageBytes
public double getSavingsMaxMemoryUsageBytes()The number of neighbors considered for each node in the Savings heuristic is chosen so that the space used to store the savings doesn't exceed savings_max_memory_usage_bytes, which must be in ]0, 1e10]. NOTE: If both savings_neighbors_ratio and savings_max_memory_usage_bytes are specified, the number of neighbors considered for each node will be the minimum of the two numbers determined by these parameters.
double savings_max_memory_usage_bytes = 23;
- Specified by:
getSavingsMaxMemoryUsageBytes
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The savingsMaxMemoryUsageBytes.
-
setSavingsMaxMemoryUsageBytes
The number of neighbors considered for each node in the Savings heuristic is chosen so that the space used to store the savings doesn't exceed savings_max_memory_usage_bytes, which must be in ]0, 1e10]. NOTE: If both savings_neighbors_ratio and savings_max_memory_usage_bytes are specified, the number of neighbors considered for each node will be the minimum of the two numbers determined by these parameters.
double savings_max_memory_usage_bytes = 23;
- Parameters:
value
- The savingsMaxMemoryUsageBytes to set.- Returns:
- This builder for chaining.
-
clearSavingsMaxMemoryUsageBytes
The number of neighbors considered for each node in the Savings heuristic is chosen so that the space used to store the savings doesn't exceed savings_max_memory_usage_bytes, which must be in ]0, 1e10]. NOTE: If both savings_neighbors_ratio and savings_max_memory_usage_bytes are specified, the number of neighbors considered for each node will be the minimum of the two numbers determined by these parameters.
double savings_max_memory_usage_bytes = 23;
- Returns:
- This builder for chaining.
-
getSavingsAddReverseArcs
public boolean getSavingsAddReverseArcs()Add savings related to reverse arcs when finding the nearest neighbors of the nodes.
bool savings_add_reverse_arcs = 15;
- Specified by:
getSavingsAddReverseArcs
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The savingsAddReverseArcs.
-
setSavingsAddReverseArcs
Add savings related to reverse arcs when finding the nearest neighbors of the nodes.
bool savings_add_reverse_arcs = 15;
- Parameters:
value
- The savingsAddReverseArcs to set.- Returns:
- This builder for chaining.
-
clearSavingsAddReverseArcs
Add savings related to reverse arcs when finding the nearest neighbors of the nodes.
bool savings_add_reverse_arcs = 15;
- Returns:
- This builder for chaining.
-
getSavingsArcCoefficient
public double getSavingsArcCoefficient()Coefficient of the cost of the arc for which the saving value is being computed: Saving(a-->b) = Cost(a-->end) + Cost(start-->b) - savings_arc_coefficient * Cost(a-->b) This parameter must be greater than 0, and its default value is 1.
double savings_arc_coefficient = 18;
- Specified by:
getSavingsArcCoefficient
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The savingsArcCoefficient.
-
setSavingsArcCoefficient
Coefficient of the cost of the arc for which the saving value is being computed: Saving(a-->b) = Cost(a-->end) + Cost(start-->b) - savings_arc_coefficient * Cost(a-->b) This parameter must be greater than 0, and its default value is 1.
double savings_arc_coefficient = 18;
- Parameters:
value
- The savingsArcCoefficient to set.- Returns:
- This builder for chaining.
-
clearSavingsArcCoefficient
Coefficient of the cost of the arc for which the saving value is being computed: Saving(a-->b) = Cost(a-->end) + Cost(start-->b) - savings_arc_coefficient * Cost(a-->b) This parameter must be greater than 0, and its default value is 1.
double savings_arc_coefficient = 18;
- Returns:
- This builder for chaining.
-
getCheapestInsertionFarthestSeedsRatio
public double getCheapestInsertionFarthestSeedsRatio()Ratio (between 0 and 1) of available vehicles in the model on which farthest nodes of the model are inserted as seeds in the GlobalCheapestInsertion first solution heuristic.
double cheapest_insertion_farthest_seeds_ratio = 16;
- Specified by:
getCheapestInsertionFarthestSeedsRatio
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The cheapestInsertionFarthestSeedsRatio.
-
setCheapestInsertionFarthestSeedsRatio
Ratio (between 0 and 1) of available vehicles in the model on which farthest nodes of the model are inserted as seeds in the GlobalCheapestInsertion first solution heuristic.
double cheapest_insertion_farthest_seeds_ratio = 16;
- Parameters:
value
- The cheapestInsertionFarthestSeedsRatio to set.- Returns:
- This builder for chaining.
-
clearCheapestInsertionFarthestSeedsRatio
Ratio (between 0 and 1) of available vehicles in the model on which farthest nodes of the model are inserted as seeds in the GlobalCheapestInsertion first solution heuristic.
double cheapest_insertion_farthest_seeds_ratio = 16;
- Returns:
- This builder for chaining.
-
getCheapestInsertionFirstSolutionNeighborsRatio
public double getCheapestInsertionFirstSolutionNeighborsRatio()Ratio (in ]0, 1]) of closest non start/end nodes to consider as neighbors for each node when creating new insertions in the parallel/sequential cheapest insertion heuristic. If not overridden, its default value is 1, meaning all neighbors will be considered. The neighborhood ratio is coupled with the corresponding min_neighbors integer, indicating the minimum number of neighbors to consider for each node: num_closest_neighbors = max(min_neighbors, neighbors_ratio * NUM_NON_START_END_NODES) This minimum number of neighbors must be greater or equal to 1, its default value. Neighbors ratio and minimum number of neighbors for the first solution heuristic.
double cheapest_insertion_first_solution_neighbors_ratio = 21;
- Specified by:
getCheapestInsertionFirstSolutionNeighborsRatio
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The cheapestInsertionFirstSolutionNeighborsRatio.
-
setCheapestInsertionFirstSolutionNeighborsRatio
public RoutingSearchParameters.Builder setCheapestInsertionFirstSolutionNeighborsRatio(double value) Ratio (in ]0, 1]) of closest non start/end nodes to consider as neighbors for each node when creating new insertions in the parallel/sequential cheapest insertion heuristic. If not overridden, its default value is 1, meaning all neighbors will be considered. The neighborhood ratio is coupled with the corresponding min_neighbors integer, indicating the minimum number of neighbors to consider for each node: num_closest_neighbors = max(min_neighbors, neighbors_ratio * NUM_NON_START_END_NODES) This minimum number of neighbors must be greater or equal to 1, its default value. Neighbors ratio and minimum number of neighbors for the first solution heuristic.
double cheapest_insertion_first_solution_neighbors_ratio = 21;
- Parameters:
value
- The cheapestInsertionFirstSolutionNeighborsRatio to set.- Returns:
- This builder for chaining.
-
clearCheapestInsertionFirstSolutionNeighborsRatio
Ratio (in ]0, 1]) of closest non start/end nodes to consider as neighbors for each node when creating new insertions in the parallel/sequential cheapest insertion heuristic. If not overridden, its default value is 1, meaning all neighbors will be considered. The neighborhood ratio is coupled with the corresponding min_neighbors integer, indicating the minimum number of neighbors to consider for each node: num_closest_neighbors = max(min_neighbors, neighbors_ratio * NUM_NON_START_END_NODES) This minimum number of neighbors must be greater or equal to 1, its default value. Neighbors ratio and minimum number of neighbors for the first solution heuristic.
double cheapest_insertion_first_solution_neighbors_ratio = 21;
- Returns:
- This builder for chaining.
-
getCheapestInsertionFirstSolutionMinNeighbors
public int getCheapestInsertionFirstSolutionMinNeighbors()int32 cheapest_insertion_first_solution_min_neighbors = 44;
- Specified by:
getCheapestInsertionFirstSolutionMinNeighbors
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The cheapestInsertionFirstSolutionMinNeighbors.
-
setCheapestInsertionFirstSolutionMinNeighbors
int32 cheapest_insertion_first_solution_min_neighbors = 44;
- Parameters:
value
- The cheapestInsertionFirstSolutionMinNeighbors to set.- Returns:
- This builder for chaining.
-
clearCheapestInsertionFirstSolutionMinNeighbors
int32 cheapest_insertion_first_solution_min_neighbors = 44;
- Returns:
- This builder for chaining.
-
getCheapestInsertionLsOperatorNeighborsRatio
public double getCheapestInsertionLsOperatorNeighborsRatio()Neighbors ratio and minimum number of neighbors for the heuristic when used in a local search operator (see local_search_operators.use_global_cheapest_insertion_path_lns and local_search_operators.use_global_cheapest_insertion_chain_lns below).
double cheapest_insertion_ls_operator_neighbors_ratio = 31;
- Specified by:
getCheapestInsertionLsOperatorNeighborsRatio
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The cheapestInsertionLsOperatorNeighborsRatio.
-
setCheapestInsertionLsOperatorNeighborsRatio
Neighbors ratio and minimum number of neighbors for the heuristic when used in a local search operator (see local_search_operators.use_global_cheapest_insertion_path_lns and local_search_operators.use_global_cheapest_insertion_chain_lns below).
double cheapest_insertion_ls_operator_neighbors_ratio = 31;
- Parameters:
value
- The cheapestInsertionLsOperatorNeighborsRatio to set.- Returns:
- This builder for chaining.
-
clearCheapestInsertionLsOperatorNeighborsRatio
Neighbors ratio and minimum number of neighbors for the heuristic when used in a local search operator (see local_search_operators.use_global_cheapest_insertion_path_lns and local_search_operators.use_global_cheapest_insertion_chain_lns below).
double cheapest_insertion_ls_operator_neighbors_ratio = 31;
- Returns:
- This builder for chaining.
-
getCheapestInsertionLsOperatorMinNeighbors
public int getCheapestInsertionLsOperatorMinNeighbors()int32 cheapest_insertion_ls_operator_min_neighbors = 45;
- Specified by:
getCheapestInsertionLsOperatorMinNeighbors
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The cheapestInsertionLsOperatorMinNeighbors.
-
setCheapestInsertionLsOperatorMinNeighbors
int32 cheapest_insertion_ls_operator_min_neighbors = 45;
- Parameters:
value
- The cheapestInsertionLsOperatorMinNeighbors to set.- Returns:
- This builder for chaining.
-
clearCheapestInsertionLsOperatorMinNeighbors
int32 cheapest_insertion_ls_operator_min_neighbors = 45;
- Returns:
- This builder for chaining.
-
getCheapestInsertionFirstSolutionUseNeighborsRatioForInitialization
public boolean getCheapestInsertionFirstSolutionUseNeighborsRatioForInitialization()Whether or not to only consider closest neighbors when initializing the assignment for the first solution.
bool cheapest_insertion_first_solution_use_neighbors_ratio_for_initialization = 46;
- Specified by:
getCheapestInsertionFirstSolutionUseNeighborsRatioForInitialization
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The cheapestInsertionFirstSolutionUseNeighborsRatioForInitialization.
-
setCheapestInsertionFirstSolutionUseNeighborsRatioForInitialization
public RoutingSearchParameters.Builder setCheapestInsertionFirstSolutionUseNeighborsRatioForInitialization(boolean value) Whether or not to only consider closest neighbors when initializing the assignment for the first solution.
bool cheapest_insertion_first_solution_use_neighbors_ratio_for_initialization = 46;
- Parameters:
value
- The cheapestInsertionFirstSolutionUseNeighborsRatioForInitialization to set.- Returns:
- This builder for chaining.
-
clearCheapestInsertionFirstSolutionUseNeighborsRatioForInitialization
public RoutingSearchParameters.Builder clearCheapestInsertionFirstSolutionUseNeighborsRatioForInitialization()Whether or not to only consider closest neighbors when initializing the assignment for the first solution.
bool cheapest_insertion_first_solution_use_neighbors_ratio_for_initialization = 46;
- Returns:
- This builder for chaining.
-
getCheapestInsertionAddUnperformedEntries
public boolean getCheapestInsertionAddUnperformedEntries()Whether or not to consider entries making the nodes/pairs unperformed in the GlobalCheapestInsertion heuristic.
bool cheapest_insertion_add_unperformed_entries = 40;
- Specified by:
getCheapestInsertionAddUnperformedEntries
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The cheapestInsertionAddUnperformedEntries.
-
setCheapestInsertionAddUnperformedEntries
Whether or not to consider entries making the nodes/pairs unperformed in the GlobalCheapestInsertion heuristic.
bool cheapest_insertion_add_unperformed_entries = 40;
- Parameters:
value
- The cheapestInsertionAddUnperformedEntries to set.- Returns:
- This builder for chaining.
-
clearCheapestInsertionAddUnperformedEntries
Whether or not to consider entries making the nodes/pairs unperformed in the GlobalCheapestInsertion heuristic.
bool cheapest_insertion_add_unperformed_entries = 40;
- Returns:
- This builder for chaining.
-
getLocalCheapestInsertionPickupDeliveryStrategyValue
public int getLocalCheapestInsertionPickupDeliveryStrategyValue()Choice of insertion strategy for pickup/delivery pairs, used in local cheapest insertion, both first solution heuristic and LNS.
.operations_research.RoutingSearchParameters.PairInsertionStrategy local_cheapest_insertion_pickup_delivery_strategy = 49;
- Specified by:
getLocalCheapestInsertionPickupDeliveryStrategyValue
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The enum numeric value on the wire for localCheapestInsertionPickupDeliveryStrategy.
-
setLocalCheapestInsertionPickupDeliveryStrategyValue
public RoutingSearchParameters.Builder setLocalCheapestInsertionPickupDeliveryStrategyValue(int value) Choice of insertion strategy for pickup/delivery pairs, used in local cheapest insertion, both first solution heuristic and LNS.
.operations_research.RoutingSearchParameters.PairInsertionStrategy local_cheapest_insertion_pickup_delivery_strategy = 49;
- Parameters:
value
- The enum numeric value on the wire for localCheapestInsertionPickupDeliveryStrategy to set.- Returns:
- This builder for chaining.
-
getLocalCheapestInsertionPickupDeliveryStrategy
public RoutingSearchParameters.PairInsertionStrategy getLocalCheapestInsertionPickupDeliveryStrategy()Choice of insertion strategy for pickup/delivery pairs, used in local cheapest insertion, both first solution heuristic and LNS.
.operations_research.RoutingSearchParameters.PairInsertionStrategy local_cheapest_insertion_pickup_delivery_strategy = 49;
- Specified by:
getLocalCheapestInsertionPickupDeliveryStrategy
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The localCheapestInsertionPickupDeliveryStrategy.
-
setLocalCheapestInsertionPickupDeliveryStrategy
public RoutingSearchParameters.Builder setLocalCheapestInsertionPickupDeliveryStrategy(RoutingSearchParameters.PairInsertionStrategy value) Choice of insertion strategy for pickup/delivery pairs, used in local cheapest insertion, both first solution heuristic and LNS.
.operations_research.RoutingSearchParameters.PairInsertionStrategy local_cheapest_insertion_pickup_delivery_strategy = 49;
- Parameters:
value
- The localCheapestInsertionPickupDeliveryStrategy to set.- Returns:
- This builder for chaining.
-
clearLocalCheapestInsertionPickupDeliveryStrategy
Choice of insertion strategy for pickup/delivery pairs, used in local cheapest insertion, both first solution heuristic and LNS.
.operations_research.RoutingSearchParameters.PairInsertionStrategy local_cheapest_insertion_pickup_delivery_strategy = 49;
- Returns:
- This builder for chaining.
-
getLocalCheapestCostInsertionPickupDeliveryStrategyValue
public int getLocalCheapestCostInsertionPickupDeliveryStrategyValue()Choice of insertion strategy for pickup/delivery pairs, used in local cheapest cost insertion, both first solution heuristic and LNS.
.operations_research.RoutingSearchParameters.PairInsertionStrategy local_cheapest_cost_insertion_pickup_delivery_strategy = 55;
- Specified by:
getLocalCheapestCostInsertionPickupDeliveryStrategyValue
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The enum numeric value on the wire for localCheapestCostInsertionPickupDeliveryStrategy.
-
setLocalCheapestCostInsertionPickupDeliveryStrategyValue
public RoutingSearchParameters.Builder setLocalCheapestCostInsertionPickupDeliveryStrategyValue(int value) Choice of insertion strategy for pickup/delivery pairs, used in local cheapest cost insertion, both first solution heuristic and LNS.
.operations_research.RoutingSearchParameters.PairInsertionStrategy local_cheapest_cost_insertion_pickup_delivery_strategy = 55;
- Parameters:
value
- The enum numeric value on the wire for localCheapestCostInsertionPickupDeliveryStrategy to set.- Returns:
- This builder for chaining.
-
getLocalCheapestCostInsertionPickupDeliveryStrategy
public RoutingSearchParameters.PairInsertionStrategy getLocalCheapestCostInsertionPickupDeliveryStrategy()Choice of insertion strategy for pickup/delivery pairs, used in local cheapest cost insertion, both first solution heuristic and LNS.
.operations_research.RoutingSearchParameters.PairInsertionStrategy local_cheapest_cost_insertion_pickup_delivery_strategy = 55;
- Specified by:
getLocalCheapestCostInsertionPickupDeliveryStrategy
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The localCheapestCostInsertionPickupDeliveryStrategy.
-
setLocalCheapestCostInsertionPickupDeliveryStrategy
public RoutingSearchParameters.Builder setLocalCheapestCostInsertionPickupDeliveryStrategy(RoutingSearchParameters.PairInsertionStrategy value) Choice of insertion strategy for pickup/delivery pairs, used in local cheapest cost insertion, both first solution heuristic and LNS.
.operations_research.RoutingSearchParameters.PairInsertionStrategy local_cheapest_cost_insertion_pickup_delivery_strategy = 55;
- Parameters:
value
- The localCheapestCostInsertionPickupDeliveryStrategy to set.- Returns:
- This builder for chaining.
-
clearLocalCheapestCostInsertionPickupDeliveryStrategy
Choice of insertion strategy for pickup/delivery pairs, used in local cheapest cost insertion, both first solution heuristic and LNS.
.operations_research.RoutingSearchParameters.PairInsertionStrategy local_cheapest_cost_insertion_pickup_delivery_strategy = 55;
- Returns:
- This builder for chaining.
-
getLocalCheapestInsertionSortingPropertiesList
public List<RoutingSearchParameters.InsertionSortingProperty> getLocalCheapestInsertionSortingPropertiesList()The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority. The properties listed here are applied hierarchically, from highest to lowest priority. When no properties are provided (SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY) is used by default.
repeated .operations_research.RoutingSearchParameters.InsertionSortingProperty local_cheapest_insertion_sorting_properties = 67;
- Specified by:
getLocalCheapestInsertionSortingPropertiesList
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- A list containing the localCheapestInsertionSortingProperties.
-
getLocalCheapestInsertionSortingPropertiesCount
public int getLocalCheapestInsertionSortingPropertiesCount()The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority. The properties listed here are applied hierarchically, from highest to lowest priority. When no properties are provided (SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY) is used by default.
repeated .operations_research.RoutingSearchParameters.InsertionSortingProperty local_cheapest_insertion_sorting_properties = 67;
- Specified by:
getLocalCheapestInsertionSortingPropertiesCount
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The count of localCheapestInsertionSortingProperties.
-
getLocalCheapestInsertionSortingProperties
public RoutingSearchParameters.InsertionSortingProperty getLocalCheapestInsertionSortingProperties(int index) The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority. The properties listed here are applied hierarchically, from highest to lowest priority. When no properties are provided (SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY) is used by default.
repeated .operations_research.RoutingSearchParameters.InsertionSortingProperty local_cheapest_insertion_sorting_properties = 67;
- Specified by:
getLocalCheapestInsertionSortingProperties
in interfaceRoutingSearchParametersOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The localCheapestInsertionSortingProperties at the given index.
-
setLocalCheapestInsertionSortingProperties
public RoutingSearchParameters.Builder setLocalCheapestInsertionSortingProperties(int index, RoutingSearchParameters.InsertionSortingProperty value) The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority. The properties listed here are applied hierarchically, from highest to lowest priority. When no properties are provided (SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY) is used by default.
repeated .operations_research.RoutingSearchParameters.InsertionSortingProperty local_cheapest_insertion_sorting_properties = 67;
- Parameters:
index
- The index to set the value at.value
- The localCheapestInsertionSortingProperties to set.- Returns:
- This builder for chaining.
-
addLocalCheapestInsertionSortingProperties
public RoutingSearchParameters.Builder addLocalCheapestInsertionSortingProperties(RoutingSearchParameters.InsertionSortingProperty value) The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority. The properties listed here are applied hierarchically, from highest to lowest priority. When no properties are provided (SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY) is used by default.
repeated .operations_research.RoutingSearchParameters.InsertionSortingProperty local_cheapest_insertion_sorting_properties = 67;
- Parameters:
value
- The localCheapestInsertionSortingProperties to add.- Returns:
- This builder for chaining.
-
addAllLocalCheapestInsertionSortingProperties
public RoutingSearchParameters.Builder addAllLocalCheapestInsertionSortingProperties(Iterable<? extends RoutingSearchParameters.InsertionSortingProperty> values) The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority. The properties listed here are applied hierarchically, from highest to lowest priority. When no properties are provided (SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY) is used by default.
repeated .operations_research.RoutingSearchParameters.InsertionSortingProperty local_cheapest_insertion_sorting_properties = 67;
- Parameters:
values
- The localCheapestInsertionSortingProperties to add.- Returns:
- This builder for chaining.
-
clearLocalCheapestInsertionSortingProperties
The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority. The properties listed here are applied hierarchically, from highest to lowest priority. When no properties are provided (SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY) is used by default.
repeated .operations_research.RoutingSearchParameters.InsertionSortingProperty local_cheapest_insertion_sorting_properties = 67;
- Returns:
- This builder for chaining.
-
getLocalCheapestInsertionSortingPropertiesValueList
The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority. The properties listed here are applied hierarchically, from highest to lowest priority. When no properties are provided (SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY) is used by default.
repeated .operations_research.RoutingSearchParameters.InsertionSortingProperty local_cheapest_insertion_sorting_properties = 67;
- Specified by:
getLocalCheapestInsertionSortingPropertiesValueList
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- A list containing the enum numeric values on the wire for localCheapestInsertionSortingProperties.
-
getLocalCheapestInsertionSortingPropertiesValue
public int getLocalCheapestInsertionSortingPropertiesValue(int index) The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority. The properties listed here are applied hierarchically, from highest to lowest priority. When no properties are provided (SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY) is used by default.
repeated .operations_research.RoutingSearchParameters.InsertionSortingProperty local_cheapest_insertion_sorting_properties = 67;
- Specified by:
getLocalCheapestInsertionSortingPropertiesValue
in interfaceRoutingSearchParametersOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The enum numeric value on the wire of localCheapestInsertionSortingProperties at the given index.
-
setLocalCheapestInsertionSortingPropertiesValue
public RoutingSearchParameters.Builder setLocalCheapestInsertionSortingPropertiesValue(int index, int value) The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority. The properties listed here are applied hierarchically, from highest to lowest priority. When no properties are provided (SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY) is used by default.
repeated .operations_research.RoutingSearchParameters.InsertionSortingProperty local_cheapest_insertion_sorting_properties = 67;
- Parameters:
index
- The index to set the value at.value
- The enum numeric value on the wire for localCheapestInsertionSortingProperties to set.- Returns:
- This builder for chaining.
-
addLocalCheapestInsertionSortingPropertiesValue
The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority. The properties listed here are applied hierarchically, from highest to lowest priority. When no properties are provided (SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY) is used by default.
repeated .operations_research.RoutingSearchParameters.InsertionSortingProperty local_cheapest_insertion_sorting_properties = 67;
- Parameters:
value
- The enum numeric value on the wire for localCheapestInsertionSortingProperties to add.- Returns:
- This builder for chaining.
-
addAllLocalCheapestInsertionSortingPropertiesValue
public RoutingSearchParameters.Builder addAllLocalCheapestInsertionSortingPropertiesValue(Iterable<Integer> values) The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority. The properties listed here are applied hierarchically, from highest to lowest priority. When no properties are provided (SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY) is used by default.
repeated .operations_research.RoutingSearchParameters.InsertionSortingProperty local_cheapest_insertion_sorting_properties = 67;
- Parameters:
values
- The enum numeric values on the wire for localCheapestInsertionSortingProperties to add.- Returns:
- This builder for chaining.
-
getChristofidesUseMinimumMatching
public boolean getChristofidesUseMinimumMatching()If true use minimum matching instead of minimal matching in the Christofides algorithm.
bool christofides_use_minimum_matching = 30;
- Specified by:
getChristofidesUseMinimumMatching
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The christofidesUseMinimumMatching.
-
setChristofidesUseMinimumMatching
If true use minimum matching instead of minimal matching in the Christofides algorithm.
bool christofides_use_minimum_matching = 30;
- Parameters:
value
- The christofidesUseMinimumMatching to set.- Returns:
- This builder for chaining.
-
clearChristofidesUseMinimumMatching
If true use minimum matching instead of minimal matching in the Christofides algorithm.
bool christofides_use_minimum_matching = 30;
- Returns:
- This builder for chaining.
-
getFirstSolutionOptimizationPeriod
public int getFirstSolutionOptimizationPeriod()If non zero, a period p indicates that every p node insertions or additions to a path, an optimization of the current partial solution will be performed. As of 12/2023: - this requires that a secondary routing model has been passed to the main one, - this is only supported by LOCAL_CHEAPEST_INSERTION and LOCAL_CHEAPEST_COST_INSERTION.
int32 first_solution_optimization_period = 59;
- Specified by:
getFirstSolutionOptimizationPeriod
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The firstSolutionOptimizationPeriod.
-
setFirstSolutionOptimizationPeriod
If non zero, a period p indicates that every p node insertions or additions to a path, an optimization of the current partial solution will be performed. As of 12/2023: - this requires that a secondary routing model has been passed to the main one, - this is only supported by LOCAL_CHEAPEST_INSERTION and LOCAL_CHEAPEST_COST_INSERTION.
int32 first_solution_optimization_period = 59;
- Parameters:
value
- The firstSolutionOptimizationPeriod to set.- Returns:
- This builder for chaining.
-
clearFirstSolutionOptimizationPeriod
If non zero, a period p indicates that every p node insertions or additions to a path, an optimization of the current partial solution will be performed. As of 12/2023: - this requires that a secondary routing model has been passed to the main one, - this is only supported by LOCAL_CHEAPEST_INSERTION and LOCAL_CHEAPEST_COST_INSERTION.
int32 first_solution_optimization_period = 59;
- Returns:
- This builder for chaining.
-
hasLocalSearchOperators
public boolean hasLocalSearchOperators().operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3;
- Specified by:
hasLocalSearchOperators
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- Whether the localSearchOperators field is set.
-
getLocalSearchOperators
.operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3;
- Specified by:
getLocalSearchOperators
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The localSearchOperators.
-
setLocalSearchOperators
public RoutingSearchParameters.Builder setLocalSearchOperators(RoutingSearchParameters.LocalSearchNeighborhoodOperators value) .operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3;
-
setLocalSearchOperators
public RoutingSearchParameters.Builder setLocalSearchOperators(RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder builderForValue) .operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3;
-
mergeLocalSearchOperators
public RoutingSearchParameters.Builder mergeLocalSearchOperators(RoutingSearchParameters.LocalSearchNeighborhoodOperators value) .operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3;
-
clearLocalSearchOperators
.operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3;
-
getLocalSearchOperatorsBuilder
public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder getLocalSearchOperatorsBuilder().operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3;
-
getLocalSearchOperatorsOrBuilder
public RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder getLocalSearchOperatorsOrBuilder().operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3;
- Specified by:
getLocalSearchOperatorsOrBuilder
in interfaceRoutingSearchParametersOrBuilder
-
getLsOperatorNeighborsRatio
public double getLsOperatorNeighborsRatio()Neighbors ratio and minimum number of neighbors considered in local search operators (see cheapest_insertion_first_solution_neighbors_ratio and cheapest_insertion_first_solution_min_neighbors for more information).
double ls_operator_neighbors_ratio = 53;
- Specified by:
getLsOperatorNeighborsRatio
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The lsOperatorNeighborsRatio.
-
setLsOperatorNeighborsRatio
Neighbors ratio and minimum number of neighbors considered in local search operators (see cheapest_insertion_first_solution_neighbors_ratio and cheapest_insertion_first_solution_min_neighbors for more information).
double ls_operator_neighbors_ratio = 53;
- Parameters:
value
- The lsOperatorNeighborsRatio to set.- Returns:
- This builder for chaining.
-
clearLsOperatorNeighborsRatio
Neighbors ratio and minimum number of neighbors considered in local search operators (see cheapest_insertion_first_solution_neighbors_ratio and cheapest_insertion_first_solution_min_neighbors for more information).
double ls_operator_neighbors_ratio = 53;
- Returns:
- This builder for chaining.
-
getLsOperatorMinNeighbors
public int getLsOperatorMinNeighbors()int32 ls_operator_min_neighbors = 54;
- Specified by:
getLsOperatorMinNeighbors
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The lsOperatorMinNeighbors.
-
setLsOperatorMinNeighbors
int32 ls_operator_min_neighbors = 54;
- Parameters:
value
- The lsOperatorMinNeighbors to set.- Returns:
- This builder for chaining.
-
clearLsOperatorMinNeighbors
int32 ls_operator_min_neighbors = 54;
- Returns:
- This builder for chaining.
-
getUseMultiArmedBanditConcatenateOperators
public boolean getUseMultiArmedBanditConcatenateOperators()If true, the solver will use multi-armed bandit concatenate operators. It dynamically chooses the next neighbor operator in order to get the best objective improvement.
bool use_multi_armed_bandit_concatenate_operators = 41;
- Specified by:
getUseMultiArmedBanditConcatenateOperators
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The useMultiArmedBanditConcatenateOperators.
-
setUseMultiArmedBanditConcatenateOperators
If true, the solver will use multi-armed bandit concatenate operators. It dynamically chooses the next neighbor operator in order to get the best objective improvement.
bool use_multi_armed_bandit_concatenate_operators = 41;
- Parameters:
value
- The useMultiArmedBanditConcatenateOperators to set.- Returns:
- This builder for chaining.
-
clearUseMultiArmedBanditConcatenateOperators
If true, the solver will use multi-armed bandit concatenate operators. It dynamically chooses the next neighbor operator in order to get the best objective improvement.
bool use_multi_armed_bandit_concatenate_operators = 41;
- Returns:
- This builder for chaining.
-
getMultiArmedBanditCompoundOperatorMemoryCoefficient
public double getMultiArmedBanditCompoundOperatorMemoryCoefficient()Memory coefficient related to the multi-armed bandit compound operator. Sets how much the objective improvement of previous accepted neighbors influence the current average improvement. This parameter should be between 0 and 1.
double multi_armed_bandit_compound_operator_memory_coefficient = 42;
- Specified by:
getMultiArmedBanditCompoundOperatorMemoryCoefficient
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The multiArmedBanditCompoundOperatorMemoryCoefficient.
-
setMultiArmedBanditCompoundOperatorMemoryCoefficient
public RoutingSearchParameters.Builder setMultiArmedBanditCompoundOperatorMemoryCoefficient(double value) Memory coefficient related to the multi-armed bandit compound operator. Sets how much the objective improvement of previous accepted neighbors influence the current average improvement. This parameter should be between 0 and 1.
double multi_armed_bandit_compound_operator_memory_coefficient = 42;
- Parameters:
value
- The multiArmedBanditCompoundOperatorMemoryCoefficient to set.- Returns:
- This builder for chaining.
-
clearMultiArmedBanditCompoundOperatorMemoryCoefficient
Memory coefficient related to the multi-armed bandit compound operator. Sets how much the objective improvement of previous accepted neighbors influence the current average improvement. This parameter should be between 0 and 1.
double multi_armed_bandit_compound_operator_memory_coefficient = 42;
- Returns:
- This builder for chaining.
-
getMultiArmedBanditCompoundOperatorExplorationCoefficient
public double getMultiArmedBanditCompoundOperatorExplorationCoefficient()Positive parameter defining the exploration coefficient of the multi-armed bandit compound operator. Sets how often we explore rarely used and unsuccessful in the past operators
double multi_armed_bandit_compound_operator_exploration_coefficient = 43;
- Specified by:
getMultiArmedBanditCompoundOperatorExplorationCoefficient
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The multiArmedBanditCompoundOperatorExplorationCoefficient.
-
setMultiArmedBanditCompoundOperatorExplorationCoefficient
public RoutingSearchParameters.Builder setMultiArmedBanditCompoundOperatorExplorationCoefficient(double value) Positive parameter defining the exploration coefficient of the multi-armed bandit compound operator. Sets how often we explore rarely used and unsuccessful in the past operators
double multi_armed_bandit_compound_operator_exploration_coefficient = 43;
- Parameters:
value
- The multiArmedBanditCompoundOperatorExplorationCoefficient to set.- Returns:
- This builder for chaining.
-
clearMultiArmedBanditCompoundOperatorExplorationCoefficient
public RoutingSearchParameters.Builder clearMultiArmedBanditCompoundOperatorExplorationCoefficient()Positive parameter defining the exploration coefficient of the multi-armed bandit compound operator. Sets how often we explore rarely used and unsuccessful in the past operators
double multi_armed_bandit_compound_operator_exploration_coefficient = 43;
- Returns:
- This builder for chaining.
-
getMaxSwapActiveChainSize
public int getMaxSwapActiveChainSize()Maximum size of the chain to make inactive in SwapActiveChainOperator.
int32 max_swap_active_chain_size = 66;
- Specified by:
getMaxSwapActiveChainSize
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The maxSwapActiveChainSize.
-
setMaxSwapActiveChainSize
Maximum size of the chain to make inactive in SwapActiveChainOperator.
int32 max_swap_active_chain_size = 66;
- Parameters:
value
- The maxSwapActiveChainSize to set.- Returns:
- This builder for chaining.
-
clearMaxSwapActiveChainSize
Maximum size of the chain to make inactive in SwapActiveChainOperator.
int32 max_swap_active_chain_size = 66;
- Returns:
- This builder for chaining.
-
getRelocateExpensiveChainNumArcsToConsider
public int getRelocateExpensiveChainNumArcsToConsider()Number of expensive arcs to consider cutting in the RelocateExpensiveChain neighborhood operator (see LocalSearchNeighborhoodOperators.use_relocate_expensive_chain()). This parameter must be greater than 2. NOTE(user): The number of neighbors generated by the operator for relocate_expensive_chain_num_arcs_to_consider = K is around K*(K-1)/2 * number_of_routes * number_of_nodes.
int32 relocate_expensive_chain_num_arcs_to_consider = 20;
- Specified by:
getRelocateExpensiveChainNumArcsToConsider
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The relocateExpensiveChainNumArcsToConsider.
-
setRelocateExpensiveChainNumArcsToConsider
Number of expensive arcs to consider cutting in the RelocateExpensiveChain neighborhood operator (see LocalSearchNeighborhoodOperators.use_relocate_expensive_chain()). This parameter must be greater than 2. NOTE(user): The number of neighbors generated by the operator for relocate_expensive_chain_num_arcs_to_consider = K is around K*(K-1)/2 * number_of_routes * number_of_nodes.
int32 relocate_expensive_chain_num_arcs_to_consider = 20;
- Parameters:
value
- The relocateExpensiveChainNumArcsToConsider to set.- Returns:
- This builder for chaining.
-
clearRelocateExpensiveChainNumArcsToConsider
Number of expensive arcs to consider cutting in the RelocateExpensiveChain neighborhood operator (see LocalSearchNeighborhoodOperators.use_relocate_expensive_chain()). This parameter must be greater than 2. NOTE(user): The number of neighbors generated by the operator for relocate_expensive_chain_num_arcs_to_consider = K is around K*(K-1)/2 * number_of_routes * number_of_nodes.
int32 relocate_expensive_chain_num_arcs_to_consider = 20;
- Returns:
- This builder for chaining.
-
getHeuristicExpensiveChainLnsNumArcsToConsider
public int getHeuristicExpensiveChainLnsNumArcsToConsider()Number of expensive arcs to consider cutting in the FilteredHeuristicExpensiveChainLNSOperator operator.
int32 heuristic_expensive_chain_lns_num_arcs_to_consider = 32;
- Specified by:
getHeuristicExpensiveChainLnsNumArcsToConsider
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The heuristicExpensiveChainLnsNumArcsToConsider.
-
setHeuristicExpensiveChainLnsNumArcsToConsider
Number of expensive arcs to consider cutting in the FilteredHeuristicExpensiveChainLNSOperator operator.
int32 heuristic_expensive_chain_lns_num_arcs_to_consider = 32;
- Parameters:
value
- The heuristicExpensiveChainLnsNumArcsToConsider to set.- Returns:
- This builder for chaining.
-
clearHeuristicExpensiveChainLnsNumArcsToConsider
Number of expensive arcs to consider cutting in the FilteredHeuristicExpensiveChainLNSOperator operator.
int32 heuristic_expensive_chain_lns_num_arcs_to_consider = 32;
- Returns:
- This builder for chaining.
-
getHeuristicCloseNodesLnsNumNodes
public int getHeuristicCloseNodesLnsNumNodes()Number of closest nodes to consider for each node during the destruction phase of the FilteredHeuristicCloseNodesLNSOperator.
int32 heuristic_close_nodes_lns_num_nodes = 35;
- Specified by:
getHeuristicCloseNodesLnsNumNodes
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The heuristicCloseNodesLnsNumNodes.
-
setHeuristicCloseNodesLnsNumNodes
Number of closest nodes to consider for each node during the destruction phase of the FilteredHeuristicCloseNodesLNSOperator.
int32 heuristic_close_nodes_lns_num_nodes = 35;
- Parameters:
value
- The heuristicCloseNodesLnsNumNodes to set.- Returns:
- This builder for chaining.
-
clearHeuristicCloseNodesLnsNumNodes
Number of closest nodes to consider for each node during the destruction phase of the FilteredHeuristicCloseNodesLNSOperator.
int32 heuristic_close_nodes_lns_num_nodes = 35;
- Returns:
- This builder for chaining.
-
getLocalSearchMetaheuristicValue
public int getLocalSearchMetaheuristicValue()Local search metaheuristics used to guide the search.
.operations_research.LocalSearchMetaheuristic.Value local_search_metaheuristic = 4;
- Specified by:
getLocalSearchMetaheuristicValue
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The enum numeric value on the wire for localSearchMetaheuristic.
-
setLocalSearchMetaheuristicValue
Local search metaheuristics used to guide the search.
.operations_research.LocalSearchMetaheuristic.Value local_search_metaheuristic = 4;
- Parameters:
value
- The enum numeric value on the wire for localSearchMetaheuristic to set.- Returns:
- This builder for chaining.
-
getLocalSearchMetaheuristic
Local search metaheuristics used to guide the search.
.operations_research.LocalSearchMetaheuristic.Value local_search_metaheuristic = 4;
- Specified by:
getLocalSearchMetaheuristic
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The localSearchMetaheuristic.
-
setLocalSearchMetaheuristic
public RoutingSearchParameters.Builder setLocalSearchMetaheuristic(LocalSearchMetaheuristic.Value value) Local search metaheuristics used to guide the search.
.operations_research.LocalSearchMetaheuristic.Value local_search_metaheuristic = 4;
- Parameters:
value
- The localSearchMetaheuristic to set.- Returns:
- This builder for chaining.
-
clearLocalSearchMetaheuristic
Local search metaheuristics used to guide the search.
.operations_research.LocalSearchMetaheuristic.Value local_search_metaheuristic = 4;
- Returns:
- This builder for chaining.
-
getLocalSearchMetaheuristicsList
Local search metaheuristics alternatively used to guide the search. Every num_max_local_optima_before_metaheuristic_switch local minima found by a metaheurisitic, the solver will switch to the next metaheuristic. Cannot be defined if local_search_metaheuristic is different from UNSET or AUTOMATIC.
repeated .operations_research.LocalSearchMetaheuristic.Value local_search_metaheuristics = 63;
- Specified by:
getLocalSearchMetaheuristicsList
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- A list containing the localSearchMetaheuristics.
-
getLocalSearchMetaheuristicsCount
public int getLocalSearchMetaheuristicsCount()Local search metaheuristics alternatively used to guide the search. Every num_max_local_optima_before_metaheuristic_switch local minima found by a metaheurisitic, the solver will switch to the next metaheuristic. Cannot be defined if local_search_metaheuristic is different from UNSET or AUTOMATIC.
repeated .operations_research.LocalSearchMetaheuristic.Value local_search_metaheuristics = 63;
- Specified by:
getLocalSearchMetaheuristicsCount
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The count of localSearchMetaheuristics.
-
getLocalSearchMetaheuristics
Local search metaheuristics alternatively used to guide the search. Every num_max_local_optima_before_metaheuristic_switch local minima found by a metaheurisitic, the solver will switch to the next metaheuristic. Cannot be defined if local_search_metaheuristic is different from UNSET or AUTOMATIC.
repeated .operations_research.LocalSearchMetaheuristic.Value local_search_metaheuristics = 63;
- Specified by:
getLocalSearchMetaheuristics
in interfaceRoutingSearchParametersOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The localSearchMetaheuristics at the given index.
-
setLocalSearchMetaheuristics
public RoutingSearchParameters.Builder setLocalSearchMetaheuristics(int index, LocalSearchMetaheuristic.Value value) Local search metaheuristics alternatively used to guide the search. Every num_max_local_optima_before_metaheuristic_switch local minima found by a metaheurisitic, the solver will switch to the next metaheuristic. Cannot be defined if local_search_metaheuristic is different from UNSET or AUTOMATIC.
repeated .operations_research.LocalSearchMetaheuristic.Value local_search_metaheuristics = 63;
- Parameters:
index
- The index to set the value at.value
- The localSearchMetaheuristics to set.- Returns:
- This builder for chaining.
-
addLocalSearchMetaheuristics
public RoutingSearchParameters.Builder addLocalSearchMetaheuristics(LocalSearchMetaheuristic.Value value) Local search metaheuristics alternatively used to guide the search. Every num_max_local_optima_before_metaheuristic_switch local minima found by a metaheurisitic, the solver will switch to the next metaheuristic. Cannot be defined if local_search_metaheuristic is different from UNSET or AUTOMATIC.
repeated .operations_research.LocalSearchMetaheuristic.Value local_search_metaheuristics = 63;
- Parameters:
value
- The localSearchMetaheuristics to add.- Returns:
- This builder for chaining.
-
addAllLocalSearchMetaheuristics
public RoutingSearchParameters.Builder addAllLocalSearchMetaheuristics(Iterable<? extends LocalSearchMetaheuristic.Value> values) Local search metaheuristics alternatively used to guide the search. Every num_max_local_optima_before_metaheuristic_switch local minima found by a metaheurisitic, the solver will switch to the next metaheuristic. Cannot be defined if local_search_metaheuristic is different from UNSET or AUTOMATIC.
repeated .operations_research.LocalSearchMetaheuristic.Value local_search_metaheuristics = 63;
- Parameters:
values
- The localSearchMetaheuristics to add.- Returns:
- This builder for chaining.
-
clearLocalSearchMetaheuristics
Local search metaheuristics alternatively used to guide the search. Every num_max_local_optima_before_metaheuristic_switch local minima found by a metaheurisitic, the solver will switch to the next metaheuristic. Cannot be defined if local_search_metaheuristic is different from UNSET or AUTOMATIC.
repeated .operations_research.LocalSearchMetaheuristic.Value local_search_metaheuristics = 63;
- Returns:
- This builder for chaining.
-
getLocalSearchMetaheuristicsValueList
Local search metaheuristics alternatively used to guide the search. Every num_max_local_optima_before_metaheuristic_switch local minima found by a metaheurisitic, the solver will switch to the next metaheuristic. Cannot be defined if local_search_metaheuristic is different from UNSET or AUTOMATIC.
repeated .operations_research.LocalSearchMetaheuristic.Value local_search_metaheuristics = 63;
- Specified by:
getLocalSearchMetaheuristicsValueList
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- A list containing the enum numeric values on the wire for localSearchMetaheuristics.
-
getLocalSearchMetaheuristicsValue
public int getLocalSearchMetaheuristicsValue(int index) Local search metaheuristics alternatively used to guide the search. Every num_max_local_optima_before_metaheuristic_switch local minima found by a metaheurisitic, the solver will switch to the next metaheuristic. Cannot be defined if local_search_metaheuristic is different from UNSET or AUTOMATIC.
repeated .operations_research.LocalSearchMetaheuristic.Value local_search_metaheuristics = 63;
- Specified by:
getLocalSearchMetaheuristicsValue
in interfaceRoutingSearchParametersOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The enum numeric value on the wire of localSearchMetaheuristics at the given index.
-
setLocalSearchMetaheuristicsValue
Local search metaheuristics alternatively used to guide the search. Every num_max_local_optima_before_metaheuristic_switch local minima found by a metaheurisitic, the solver will switch to the next metaheuristic. Cannot be defined if local_search_metaheuristic is different from UNSET or AUTOMATIC.
repeated .operations_research.LocalSearchMetaheuristic.Value local_search_metaheuristics = 63;
- Parameters:
index
- The index to set the value at.value
- The enum numeric value on the wire for localSearchMetaheuristics to set.- Returns:
- This builder for chaining.
-
addLocalSearchMetaheuristicsValue
Local search metaheuristics alternatively used to guide the search. Every num_max_local_optima_before_metaheuristic_switch local minima found by a metaheurisitic, the solver will switch to the next metaheuristic. Cannot be defined if local_search_metaheuristic is different from UNSET or AUTOMATIC.
repeated .operations_research.LocalSearchMetaheuristic.Value local_search_metaheuristics = 63;
- Parameters:
value
- The enum numeric value on the wire for localSearchMetaheuristics to add.- Returns:
- This builder for chaining.
-
addAllLocalSearchMetaheuristicsValue
public RoutingSearchParameters.Builder addAllLocalSearchMetaheuristicsValue(Iterable<Integer> values) Local search metaheuristics alternatively used to guide the search. Every num_max_local_optima_before_metaheuristic_switch local minima found by a metaheurisitic, the solver will switch to the next metaheuristic. Cannot be defined if local_search_metaheuristic is different from UNSET or AUTOMATIC.
repeated .operations_research.LocalSearchMetaheuristic.Value local_search_metaheuristics = 63;
- Parameters:
values
- The enum numeric values on the wire for localSearchMetaheuristics to add.- Returns:
- This builder for chaining.
-
getNumMaxLocalOptimaBeforeMetaheuristicSwitch
public int getNumMaxLocalOptimaBeforeMetaheuristicSwitch()int32 num_max_local_optima_before_metaheuristic_switch = 64;
- Specified by:
getNumMaxLocalOptimaBeforeMetaheuristicSwitch
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The numMaxLocalOptimaBeforeMetaheuristicSwitch.
-
setNumMaxLocalOptimaBeforeMetaheuristicSwitch
int32 num_max_local_optima_before_metaheuristic_switch = 64;
- Parameters:
value
- The numMaxLocalOptimaBeforeMetaheuristicSwitch to set.- Returns:
- This builder for chaining.
-
clearNumMaxLocalOptimaBeforeMetaheuristicSwitch
int32 num_max_local_optima_before_metaheuristic_switch = 64;
- Returns:
- This builder for chaining.
-
getGuidedLocalSearchLambdaCoefficient
public double getGuidedLocalSearchLambdaCoefficient()These are advanced settings which should not be modified unless you know what you are doing. Lambda coefficient used to penalize arc costs when GUIDED_LOCAL_SEARCH is used. Must be positive.
double guided_local_search_lambda_coefficient = 5;
- Specified by:
getGuidedLocalSearchLambdaCoefficient
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The guidedLocalSearchLambdaCoefficient.
-
setGuidedLocalSearchLambdaCoefficient
These are advanced settings which should not be modified unless you know what you are doing. Lambda coefficient used to penalize arc costs when GUIDED_LOCAL_SEARCH is used. Must be positive.
double guided_local_search_lambda_coefficient = 5;
- Parameters:
value
- The guidedLocalSearchLambdaCoefficient to set.- Returns:
- This builder for chaining.
-
clearGuidedLocalSearchLambdaCoefficient
These are advanced settings which should not be modified unless you know what you are doing. Lambda coefficient used to penalize arc costs when GUIDED_LOCAL_SEARCH is used. Must be positive.
double guided_local_search_lambda_coefficient = 5;
- Returns:
- This builder for chaining.
-
getGuidedLocalSearchResetPenaltiesOnNewBestSolution
public boolean getGuidedLocalSearchResetPenaltiesOnNewBestSolution()Whether to reset penalties when a new best solution is found. The effect is that a greedy descent is started before the next penalization phase.
bool guided_local_search_reset_penalties_on_new_best_solution = 51;
- Specified by:
getGuidedLocalSearchResetPenaltiesOnNewBestSolution
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The guidedLocalSearchResetPenaltiesOnNewBestSolution.
-
setGuidedLocalSearchResetPenaltiesOnNewBestSolution
public RoutingSearchParameters.Builder setGuidedLocalSearchResetPenaltiesOnNewBestSolution(boolean value) Whether to reset penalties when a new best solution is found. The effect is that a greedy descent is started before the next penalization phase.
bool guided_local_search_reset_penalties_on_new_best_solution = 51;
- Parameters:
value
- The guidedLocalSearchResetPenaltiesOnNewBestSolution to set.- Returns:
- This builder for chaining.
-
clearGuidedLocalSearchResetPenaltiesOnNewBestSolution
Whether to reset penalties when a new best solution is found. The effect is that a greedy descent is started before the next penalization phase.
bool guided_local_search_reset_penalties_on_new_best_solution = 51;
- Returns:
- This builder for chaining.
-
getGuidedLocalSearchPenalizeWithVehicleClasses
public boolean getGuidedLocalSearchPenalizeWithVehicleClasses()When an arc leaving a vehicle start or arriving at a vehicle end is penalized, this field controls whether to penalize all other equivalent arcs with starts or ends in the same vehicle class.
bool guided_local_search_penalize_with_vehicle_classes = 61;
- Specified by:
getGuidedLocalSearchPenalizeWithVehicleClasses
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The guidedLocalSearchPenalizeWithVehicleClasses.
-
setGuidedLocalSearchPenalizeWithVehicleClasses
public RoutingSearchParameters.Builder setGuidedLocalSearchPenalizeWithVehicleClasses(boolean value) When an arc leaving a vehicle start or arriving at a vehicle end is penalized, this field controls whether to penalize all other equivalent arcs with starts or ends in the same vehicle class.
bool guided_local_search_penalize_with_vehicle_classes = 61;
- Parameters:
value
- The guidedLocalSearchPenalizeWithVehicleClasses to set.- Returns:
- This builder for chaining.
-
clearGuidedLocalSearchPenalizeWithVehicleClasses
When an arc leaving a vehicle start or arriving at a vehicle end is penalized, this field controls whether to penalize all other equivalent arcs with starts or ends in the same vehicle class.
bool guided_local_search_penalize_with_vehicle_classes = 61;
- Returns:
- This builder for chaining.
-
getUseGuidedLocalSearchPenaltiesInLocalSearchOperators
public boolean getUseGuidedLocalSearchPenaltiesInLocalSearchOperators()Whether to consider arc penalties in cost functions used in local search operators using arc costs.
bool use_guided_local_search_penalties_in_local_search_operators = 62;
- Specified by:
getUseGuidedLocalSearchPenaltiesInLocalSearchOperators
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The useGuidedLocalSearchPenaltiesInLocalSearchOperators.
-
setUseGuidedLocalSearchPenaltiesInLocalSearchOperators
public RoutingSearchParameters.Builder setUseGuidedLocalSearchPenaltiesInLocalSearchOperators(boolean value) Whether to consider arc penalties in cost functions used in local search operators using arc costs.
bool use_guided_local_search_penalties_in_local_search_operators = 62;
- Parameters:
value
- The useGuidedLocalSearchPenaltiesInLocalSearchOperators to set.- Returns:
- This builder for chaining.
-
clearUseGuidedLocalSearchPenaltiesInLocalSearchOperators
Whether to consider arc penalties in cost functions used in local search operators using arc costs.
bool use_guided_local_search_penalties_in_local_search_operators = 62;
- Returns:
- This builder for chaining.
-
getUseDepthFirstSearch
public boolean getUseDepthFirstSearch()--- Search control --- If true, the solver should use depth-first search rather than local search to solve the problem.
bool use_depth_first_search = 6;
- Specified by:
getUseDepthFirstSearch
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The useDepthFirstSearch.
-
setUseDepthFirstSearch
--- Search control --- If true, the solver should use depth-first search rather than local search to solve the problem.
bool use_depth_first_search = 6;
- Parameters:
value
- The useDepthFirstSearch to set.- Returns:
- This builder for chaining.
-
clearUseDepthFirstSearch
--- Search control --- If true, the solver should use depth-first search rather than local search to solve the problem.
bool use_depth_first_search = 6;
- Returns:
- This builder for chaining.
-
getUseCpValue
public int getUseCpValue()If true, use the CP solver to find a solution. Either local or depth-first search will be used depending on the value of use_depth_first_search. Will be run before the CP-SAT solver (cf. use_cp_sat).
.operations_research.OptionalBoolean use_cp = 28;
- Specified by:
getUseCpValue
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The enum numeric value on the wire for useCp.
-
setUseCpValue
If true, use the CP solver to find a solution. Either local or depth-first search will be used depending on the value of use_depth_first_search. Will be run before the CP-SAT solver (cf. use_cp_sat).
.operations_research.OptionalBoolean use_cp = 28;
- Parameters:
value
- The enum numeric value on the wire for useCp to set.- Returns:
- This builder for chaining.
-
getUseCp
If true, use the CP solver to find a solution. Either local or depth-first search will be used depending on the value of use_depth_first_search. Will be run before the CP-SAT solver (cf. use_cp_sat).
.operations_research.OptionalBoolean use_cp = 28;
- Specified by:
getUseCp
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The useCp.
-
setUseCp
If true, use the CP solver to find a solution. Either local or depth-first search will be used depending on the value of use_depth_first_search. Will be run before the CP-SAT solver (cf. use_cp_sat).
.operations_research.OptionalBoolean use_cp = 28;
- Parameters:
value
- The useCp to set.- Returns:
- This builder for chaining.
-
clearUseCp
If true, use the CP solver to find a solution. Either local or depth-first search will be used depending on the value of use_depth_first_search. Will be run before the CP-SAT solver (cf. use_cp_sat).
.operations_research.OptionalBoolean use_cp = 28;
- Returns:
- This builder for chaining.
-
getUseCpSatValue
public int getUseCpSatValue()If true, use the CP-SAT solver to find a solution. If use_cp is also true, the CP-SAT solver will be run after the CP solver if there is time remaining and will use the CP solution as a hint for the CP-SAT search. As of 5/2019, only TSP models can be solved.
.operations_research.OptionalBoolean use_cp_sat = 27;
- Specified by:
getUseCpSatValue
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The enum numeric value on the wire for useCpSat.
-
setUseCpSatValue
If true, use the CP-SAT solver to find a solution. If use_cp is also true, the CP-SAT solver will be run after the CP solver if there is time remaining and will use the CP solution as a hint for the CP-SAT search. As of 5/2019, only TSP models can be solved.
.operations_research.OptionalBoolean use_cp_sat = 27;
- Parameters:
value
- The enum numeric value on the wire for useCpSat to set.- Returns:
- This builder for chaining.
-
getUseCpSat
If true, use the CP-SAT solver to find a solution. If use_cp is also true, the CP-SAT solver will be run after the CP solver if there is time remaining and will use the CP solution as a hint for the CP-SAT search. As of 5/2019, only TSP models can be solved.
.operations_research.OptionalBoolean use_cp_sat = 27;
- Specified by:
getUseCpSat
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The useCpSat.
-
setUseCpSat
If true, use the CP-SAT solver to find a solution. If use_cp is also true, the CP-SAT solver will be run after the CP solver if there is time remaining and will use the CP solution as a hint for the CP-SAT search. As of 5/2019, only TSP models can be solved.
.operations_research.OptionalBoolean use_cp_sat = 27;
- Parameters:
value
- The useCpSat to set.- Returns:
- This builder for chaining.
-
clearUseCpSat
If true, use the CP-SAT solver to find a solution. If use_cp is also true, the CP-SAT solver will be run after the CP solver if there is time remaining and will use the CP solution as a hint for the CP-SAT search. As of 5/2019, only TSP models can be solved.
.operations_research.OptionalBoolean use_cp_sat = 27;
- Returns:
- This builder for chaining.
-
getUseGeneralizedCpSatValue
public int getUseGeneralizedCpSatValue()If true, use the CP-SAT solver to find a solution on generalized routing model. If use_cp is also true, the CP-SAT solver will be run after the CP solver if there is time remaining and will use the CP solution as a hint for the CP-SAT search.
.operations_research.OptionalBoolean use_generalized_cp_sat = 47;
- Specified by:
getUseGeneralizedCpSatValue
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The enum numeric value on the wire for useGeneralizedCpSat.
-
setUseGeneralizedCpSatValue
If true, use the CP-SAT solver to find a solution on generalized routing model. If use_cp is also true, the CP-SAT solver will be run after the CP solver if there is time remaining and will use the CP solution as a hint for the CP-SAT search.
.operations_research.OptionalBoolean use_generalized_cp_sat = 47;
- Parameters:
value
- The enum numeric value on the wire for useGeneralizedCpSat to set.- Returns:
- This builder for chaining.
-
getUseGeneralizedCpSat
If true, use the CP-SAT solver to find a solution on generalized routing model. If use_cp is also true, the CP-SAT solver will be run after the CP solver if there is time remaining and will use the CP solution as a hint for the CP-SAT search.
.operations_research.OptionalBoolean use_generalized_cp_sat = 47;
- Specified by:
getUseGeneralizedCpSat
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The useGeneralizedCpSat.
-
setUseGeneralizedCpSat
If true, use the CP-SAT solver to find a solution on generalized routing model. If use_cp is also true, the CP-SAT solver will be run after the CP solver if there is time remaining and will use the CP solution as a hint for the CP-SAT search.
.operations_research.OptionalBoolean use_generalized_cp_sat = 47;
- Parameters:
value
- The useGeneralizedCpSat to set.- Returns:
- This builder for chaining.
-
clearUseGeneralizedCpSat
If true, use the CP-SAT solver to find a solution on generalized routing model. If use_cp is also true, the CP-SAT solver will be run after the CP solver if there is time remaining and will use the CP solution as a hint for the CP-SAT search.
.operations_research.OptionalBoolean use_generalized_cp_sat = 47;
- Returns:
- This builder for chaining.
-
hasSatParameters
public boolean hasSatParameters()If use_cp_sat or use_generalized_cp_sat is true, contains the SAT algorithm parameters which will be used.
.operations_research.sat.SatParameters sat_parameters = 48;
- Specified by:
hasSatParameters
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- Whether the satParameters field is set.
-
getSatParameters
If use_cp_sat or use_generalized_cp_sat is true, contains the SAT algorithm parameters which will be used.
.operations_research.sat.SatParameters sat_parameters = 48;
- Specified by:
getSatParameters
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The satParameters.
-
setSatParameters
If use_cp_sat or use_generalized_cp_sat is true, contains the SAT algorithm parameters which will be used.
.operations_research.sat.SatParameters sat_parameters = 48;
-
setSatParameters
If use_cp_sat or use_generalized_cp_sat is true, contains the SAT algorithm parameters which will be used.
.operations_research.sat.SatParameters sat_parameters = 48;
-
mergeSatParameters
If use_cp_sat or use_generalized_cp_sat is true, contains the SAT algorithm parameters which will be used.
.operations_research.sat.SatParameters sat_parameters = 48;
-
clearSatParameters
If use_cp_sat or use_generalized_cp_sat is true, contains the SAT algorithm parameters which will be used.
.operations_research.sat.SatParameters sat_parameters = 48;
-
getSatParametersBuilder
If use_cp_sat or use_generalized_cp_sat is true, contains the SAT algorithm parameters which will be used.
.operations_research.sat.SatParameters sat_parameters = 48;
-
getSatParametersOrBuilder
If use_cp_sat or use_generalized_cp_sat is true, contains the SAT algorithm parameters which will be used.
.operations_research.sat.SatParameters sat_parameters = 48;
- Specified by:
getSatParametersOrBuilder
in interfaceRoutingSearchParametersOrBuilder
-
getReportIntermediateCpSatSolutions
public boolean getReportIntermediateCpSatSolutions()If use_cp_sat or use_generalized_cp_sat is true, will report intermediate solutions found by CP-SAT to solution listeners.
bool report_intermediate_cp_sat_solutions = 56;
- Specified by:
getReportIntermediateCpSatSolutions
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The reportIntermediateCpSatSolutions.
-
setReportIntermediateCpSatSolutions
If use_cp_sat or use_generalized_cp_sat is true, will report intermediate solutions found by CP-SAT to solution listeners.
bool report_intermediate_cp_sat_solutions = 56;
- Parameters:
value
- The reportIntermediateCpSatSolutions to set.- Returns:
- This builder for chaining.
-
clearReportIntermediateCpSatSolutions
If use_cp_sat or use_generalized_cp_sat is true, will report intermediate solutions found by CP-SAT to solution listeners.
bool report_intermediate_cp_sat_solutions = 56;
- Returns:
- This builder for chaining.
-
getFallbackToCpSatSizeThreshold
public int getFallbackToCpSatSizeThreshold()If model.Size() is less than the threshold and that no solution has been found, attempt a pass with CP-SAT.
int32 fallback_to_cp_sat_size_threshold = 52;
- Specified by:
getFallbackToCpSatSizeThreshold
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The fallbackToCpSatSizeThreshold.
-
setFallbackToCpSatSizeThreshold
If model.Size() is less than the threshold and that no solution has been found, attempt a pass with CP-SAT.
int32 fallback_to_cp_sat_size_threshold = 52;
- Parameters:
value
- The fallbackToCpSatSizeThreshold to set.- Returns:
- This builder for chaining.
-
clearFallbackToCpSatSizeThreshold
If model.Size() is less than the threshold and that no solution has been found, attempt a pass with CP-SAT.
int32 fallback_to_cp_sat_size_threshold = 52;
- Returns:
- This builder for chaining.
-
getContinuousSchedulingSolverValue
public int getContinuousSchedulingSolverValue().operations_research.RoutingSearchParameters.SchedulingSolver continuous_scheduling_solver = 33;
- Specified by:
getContinuousSchedulingSolverValue
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The enum numeric value on the wire for continuousSchedulingSolver.
-
setContinuousSchedulingSolverValue
.operations_research.RoutingSearchParameters.SchedulingSolver continuous_scheduling_solver = 33;
- Parameters:
value
- The enum numeric value on the wire for continuousSchedulingSolver to set.- Returns:
- This builder for chaining.
-
getContinuousSchedulingSolver
.operations_research.RoutingSearchParameters.SchedulingSolver continuous_scheduling_solver = 33;
- Specified by:
getContinuousSchedulingSolver
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The continuousSchedulingSolver.
-
setContinuousSchedulingSolver
public RoutingSearchParameters.Builder setContinuousSchedulingSolver(RoutingSearchParameters.SchedulingSolver value) .operations_research.RoutingSearchParameters.SchedulingSolver continuous_scheduling_solver = 33;
- Parameters:
value
- The continuousSchedulingSolver to set.- Returns:
- This builder for chaining.
-
clearContinuousSchedulingSolver
.operations_research.RoutingSearchParameters.SchedulingSolver continuous_scheduling_solver = 33;
- Returns:
- This builder for chaining.
-
getMixedIntegerSchedulingSolverValue
public int getMixedIntegerSchedulingSolverValue().operations_research.RoutingSearchParameters.SchedulingSolver mixed_integer_scheduling_solver = 34;
- Specified by:
getMixedIntegerSchedulingSolverValue
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The enum numeric value on the wire for mixedIntegerSchedulingSolver.
-
setMixedIntegerSchedulingSolverValue
.operations_research.RoutingSearchParameters.SchedulingSolver mixed_integer_scheduling_solver = 34;
- Parameters:
value
- The enum numeric value on the wire for mixedIntegerSchedulingSolver to set.- Returns:
- This builder for chaining.
-
getMixedIntegerSchedulingSolver
.operations_research.RoutingSearchParameters.SchedulingSolver mixed_integer_scheduling_solver = 34;
- Specified by:
getMixedIntegerSchedulingSolver
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The mixedIntegerSchedulingSolver.
-
setMixedIntegerSchedulingSolver
public RoutingSearchParameters.Builder setMixedIntegerSchedulingSolver(RoutingSearchParameters.SchedulingSolver value) .operations_research.RoutingSearchParameters.SchedulingSolver mixed_integer_scheduling_solver = 34;
- Parameters:
value
- The mixedIntegerSchedulingSolver to set.- Returns:
- This builder for chaining.
-
clearMixedIntegerSchedulingSolver
.operations_research.RoutingSearchParameters.SchedulingSolver mixed_integer_scheduling_solver = 34;
- Returns:
- This builder for chaining.
-
hasDisableSchedulingBewareThisMayDegradePerformance
public boolean hasDisableSchedulingBewareThisMayDegradePerformance()Setting this to true completely disables the LP and MIP scheduling in the solver. This overrides the 2 SchedulingSolver options above.
optional bool disable_scheduling_beware_this_may_degrade_performance = 50;
- Specified by:
hasDisableSchedulingBewareThisMayDegradePerformance
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- Whether the disableSchedulingBewareThisMayDegradePerformance field is set.
-
getDisableSchedulingBewareThisMayDegradePerformance
public boolean getDisableSchedulingBewareThisMayDegradePerformance()Setting this to true completely disables the LP and MIP scheduling in the solver. This overrides the 2 SchedulingSolver options above.
optional bool disable_scheduling_beware_this_may_degrade_performance = 50;
- Specified by:
getDisableSchedulingBewareThisMayDegradePerformance
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The disableSchedulingBewareThisMayDegradePerformance.
-
setDisableSchedulingBewareThisMayDegradePerformance
public RoutingSearchParameters.Builder setDisableSchedulingBewareThisMayDegradePerformance(boolean value) Setting this to true completely disables the LP and MIP scheduling in the solver. This overrides the 2 SchedulingSolver options above.
optional bool disable_scheduling_beware_this_may_degrade_performance = 50;
- Parameters:
value
- The disableSchedulingBewareThisMayDegradePerformance to set.- Returns:
- This builder for chaining.
-
clearDisableSchedulingBewareThisMayDegradePerformance
Setting this to true completely disables the LP and MIP scheduling in the solver. This overrides the 2 SchedulingSolver options above.
optional bool disable_scheduling_beware_this_may_degrade_performance = 50;
- Returns:
- This builder for chaining.
-
getOptimizationStep
public double getOptimizationStep()Minimum step by which the solution must be improved in local search. 0 means "unspecified". If this value is fractional, it will get rounded to the nearest integer.
double optimization_step = 7;
- Specified by:
getOptimizationStep
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The optimizationStep.
-
setOptimizationStep
Minimum step by which the solution must be improved in local search. 0 means "unspecified". If this value is fractional, it will get rounded to the nearest integer.
double optimization_step = 7;
- Parameters:
value
- The optimizationStep to set.- Returns:
- This builder for chaining.
-
clearOptimizationStep
Minimum step by which the solution must be improved in local search. 0 means "unspecified". If this value is fractional, it will get rounded to the nearest integer.
double optimization_step = 7;
- Returns:
- This builder for chaining.
-
getNumberOfSolutionsToCollect
public int getNumberOfSolutionsToCollect()Number of solutions to collect during the search. Corresponds to the best solutions found during the search. 0 means "unspecified".
int32 number_of_solutions_to_collect = 17;
- Specified by:
getNumberOfSolutionsToCollect
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The numberOfSolutionsToCollect.
-
setNumberOfSolutionsToCollect
Number of solutions to collect during the search. Corresponds to the best solutions found during the search. 0 means "unspecified".
int32 number_of_solutions_to_collect = 17;
- Parameters:
value
- The numberOfSolutionsToCollect to set.- Returns:
- This builder for chaining.
-
clearNumberOfSolutionsToCollect
Number of solutions to collect during the search. Corresponds to the best solutions found during the search. 0 means "unspecified".
int32 number_of_solutions_to_collect = 17;
- Returns:
- This builder for chaining.
-
getSolutionLimit
public long getSolutionLimit()-- Search limits -- Limit to the number of solutions generated during the search. 0 means "unspecified".
int64 solution_limit = 8;
- Specified by:
getSolutionLimit
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The solutionLimit.
-
setSolutionLimit
-- Search limits -- Limit to the number of solutions generated during the search. 0 means "unspecified".
int64 solution_limit = 8;
- Parameters:
value
- The solutionLimit to set.- Returns:
- This builder for chaining.
-
clearSolutionLimit
-- Search limits -- Limit to the number of solutions generated during the search. 0 means "unspecified".
int64 solution_limit = 8;
- Returns:
- This builder for chaining.
-
hasTimeLimit
public boolean hasTimeLimit()Limit to the time spent in the search.
.google.protobuf.Duration time_limit = 9;
- Specified by:
hasTimeLimit
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- Whether the timeLimit field is set.
-
getTimeLimit
public com.google.protobuf.Duration getTimeLimit()Limit to the time spent in the search.
.google.protobuf.Duration time_limit = 9;
- Specified by:
getTimeLimit
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The timeLimit.
-
setTimeLimit
Limit to the time spent in the search.
.google.protobuf.Duration time_limit = 9;
-
setTimeLimit
public RoutingSearchParameters.Builder setTimeLimit(com.google.protobuf.Duration.Builder builderForValue) Limit to the time spent in the search.
.google.protobuf.Duration time_limit = 9;
-
mergeTimeLimit
Limit to the time spent in the search.
.google.protobuf.Duration time_limit = 9;
-
clearTimeLimit
Limit to the time spent in the search.
.google.protobuf.Duration time_limit = 9;
-
getTimeLimitBuilder
public com.google.protobuf.Duration.Builder getTimeLimitBuilder()Limit to the time spent in the search.
.google.protobuf.Duration time_limit = 9;
-
getTimeLimitOrBuilder
public com.google.protobuf.DurationOrBuilder getTimeLimitOrBuilder()Limit to the time spent in the search.
.google.protobuf.Duration time_limit = 9;
- Specified by:
getTimeLimitOrBuilder
in interfaceRoutingSearchParametersOrBuilder
-
hasLnsTimeLimit
public boolean hasLnsTimeLimit()Limit to the time spent in the completion search for each local search neighbor.
.google.protobuf.Duration lns_time_limit = 10;
- Specified by:
hasLnsTimeLimit
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- Whether the lnsTimeLimit field is set.
-
getLnsTimeLimit
public com.google.protobuf.Duration getLnsTimeLimit()Limit to the time spent in the completion search for each local search neighbor.
.google.protobuf.Duration lns_time_limit = 10;
- Specified by:
getLnsTimeLimit
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The lnsTimeLimit.
-
setLnsTimeLimit
Limit to the time spent in the completion search for each local search neighbor.
.google.protobuf.Duration lns_time_limit = 10;
-
setLnsTimeLimit
public RoutingSearchParameters.Builder setLnsTimeLimit(com.google.protobuf.Duration.Builder builderForValue) Limit to the time spent in the completion search for each local search neighbor.
.google.protobuf.Duration lns_time_limit = 10;
-
mergeLnsTimeLimit
Limit to the time spent in the completion search for each local search neighbor.
.google.protobuf.Duration lns_time_limit = 10;
-
clearLnsTimeLimit
Limit to the time spent in the completion search for each local search neighbor.
.google.protobuf.Duration lns_time_limit = 10;
-
getLnsTimeLimitBuilder
public com.google.protobuf.Duration.Builder getLnsTimeLimitBuilder()Limit to the time spent in the completion search for each local search neighbor.
.google.protobuf.Duration lns_time_limit = 10;
-
getLnsTimeLimitOrBuilder
public com.google.protobuf.DurationOrBuilder getLnsTimeLimitOrBuilder()Limit to the time spent in the completion search for each local search neighbor.
.google.protobuf.Duration lns_time_limit = 10;
- Specified by:
getLnsTimeLimitOrBuilder
in interfaceRoutingSearchParametersOrBuilder
-
getSecondaryLsTimeLimitRatio
public double getSecondaryLsTimeLimitRatio()Ratio of the overall time limit spent in a secondary LS phase with only intra-route and insertion operators, meant to "cleanup" the current solution before stopping the search. TODO(user): Since these operators are very fast, add a parameter to cap the max time allocated for this second phase (e.g. Duration max_secondary_ls_time_limit).
double secondary_ls_time_limit_ratio = 57;
- Specified by:
getSecondaryLsTimeLimitRatio
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The secondaryLsTimeLimitRatio.
-
setSecondaryLsTimeLimitRatio
Ratio of the overall time limit spent in a secondary LS phase with only intra-route and insertion operators, meant to "cleanup" the current solution before stopping the search. TODO(user): Since these operators are very fast, add a parameter to cap the max time allocated for this second phase (e.g. Duration max_secondary_ls_time_limit).
double secondary_ls_time_limit_ratio = 57;
- Parameters:
value
- The secondaryLsTimeLimitRatio to set.- Returns:
- This builder for chaining.
-
clearSecondaryLsTimeLimitRatio
Ratio of the overall time limit spent in a secondary LS phase with only intra-route and insertion operators, meant to "cleanup" the current solution before stopping the search. TODO(user): Since these operators are very fast, add a parameter to cap the max time allocated for this second phase (e.g. Duration max_secondary_ls_time_limit).
double secondary_ls_time_limit_ratio = 57;
- Returns:
- This builder for chaining.
-
hasImprovementLimitParameters
public boolean hasImprovementLimitParameters()The improvement search limit is added to the solver if the following parameters are set.
.operations_research.RoutingSearchParameters.ImprovementSearchLimitParameters improvement_limit_parameters = 37;
- Specified by:
hasImprovementLimitParameters
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- Whether the improvementLimitParameters field is set.
-
getImprovementLimitParameters
The improvement search limit is added to the solver if the following parameters are set.
.operations_research.RoutingSearchParameters.ImprovementSearchLimitParameters improvement_limit_parameters = 37;
- Specified by:
getImprovementLimitParameters
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The improvementLimitParameters.
-
setImprovementLimitParameters
public RoutingSearchParameters.Builder setImprovementLimitParameters(RoutingSearchParameters.ImprovementSearchLimitParameters value) The improvement search limit is added to the solver if the following parameters are set.
.operations_research.RoutingSearchParameters.ImprovementSearchLimitParameters improvement_limit_parameters = 37;
-
setImprovementLimitParameters
public RoutingSearchParameters.Builder setImprovementLimitParameters(RoutingSearchParameters.ImprovementSearchLimitParameters.Builder builderForValue) The improvement search limit is added to the solver if the following parameters are set.
.operations_research.RoutingSearchParameters.ImprovementSearchLimitParameters improvement_limit_parameters = 37;
-
mergeImprovementLimitParameters
public RoutingSearchParameters.Builder mergeImprovementLimitParameters(RoutingSearchParameters.ImprovementSearchLimitParameters value) The improvement search limit is added to the solver if the following parameters are set.
.operations_research.RoutingSearchParameters.ImprovementSearchLimitParameters improvement_limit_parameters = 37;
-
clearImprovementLimitParameters
The improvement search limit is added to the solver if the following parameters are set.
.operations_research.RoutingSearchParameters.ImprovementSearchLimitParameters improvement_limit_parameters = 37;
-
getImprovementLimitParametersBuilder
public RoutingSearchParameters.ImprovementSearchLimitParameters.Builder getImprovementLimitParametersBuilder()The improvement search limit is added to the solver if the following parameters are set.
.operations_research.RoutingSearchParameters.ImprovementSearchLimitParameters improvement_limit_parameters = 37;
-
getImprovementLimitParametersOrBuilder
public RoutingSearchParameters.ImprovementSearchLimitParametersOrBuilder getImprovementLimitParametersOrBuilder()The improvement search limit is added to the solver if the following parameters are set.
.operations_research.RoutingSearchParameters.ImprovementSearchLimitParameters improvement_limit_parameters = 37;
- Specified by:
getImprovementLimitParametersOrBuilder
in interfaceRoutingSearchParametersOrBuilder
-
getUseFullPropagation
public boolean getUseFullPropagation()--- Propagation control --- These are advanced settings which should not be modified unless you know what you are doing. Use constraints with full propagation in routing model (instead of 'light' propagation only). Full propagation is only necessary when using depth-first search or for models which require strong propagation to finalize the value of secondary variables. Changing this setting to true will slow down the search in most cases and increase memory consumption in all cases.
bool use_full_propagation = 11;
- Specified by:
getUseFullPropagation
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The useFullPropagation.
-
setUseFullPropagation
--- Propagation control --- These are advanced settings which should not be modified unless you know what you are doing. Use constraints with full propagation in routing model (instead of 'light' propagation only). Full propagation is only necessary when using depth-first search or for models which require strong propagation to finalize the value of secondary variables. Changing this setting to true will slow down the search in most cases and increase memory consumption in all cases.
bool use_full_propagation = 11;
- Parameters:
value
- The useFullPropagation to set.- Returns:
- This builder for chaining.
-
clearUseFullPropagation
--- Propagation control --- These are advanced settings which should not be modified unless you know what you are doing. Use constraints with full propagation in routing model (instead of 'light' propagation only). Full propagation is only necessary when using depth-first search or for models which require strong propagation to finalize the value of secondary variables. Changing this setting to true will slow down the search in most cases and increase memory consumption in all cases.
bool use_full_propagation = 11;
- Returns:
- This builder for chaining.
-
getLogSearch
public boolean getLogSearch()--- Miscellaneous --- Some of these are advanced settings which should not be modified unless you know what you are doing. Activates search logging. For each solution found during the search, the following will be displayed: its objective value, the maximum objective value since the beginning of the search, the elapsed time since the beginning of the search, the number of branches explored in the search tree, the number of failures in the search tree, the depth of the search tree, the number of local search neighbors explored, the number of local search neighbors filtered by local search filters, the number of local search neighbors accepted, the total memory used and the percentage of the search done.
bool log_search = 13;
- Specified by:
getLogSearch
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The logSearch.
-
setLogSearch
--- Miscellaneous --- Some of these are advanced settings which should not be modified unless you know what you are doing. Activates search logging. For each solution found during the search, the following will be displayed: its objective value, the maximum objective value since the beginning of the search, the elapsed time since the beginning of the search, the number of branches explored in the search tree, the number of failures in the search tree, the depth of the search tree, the number of local search neighbors explored, the number of local search neighbors filtered by local search filters, the number of local search neighbors accepted, the total memory used and the percentage of the search done.
bool log_search = 13;
- Parameters:
value
- The logSearch to set.- Returns:
- This builder for chaining.
-
clearLogSearch
--- Miscellaneous --- Some of these are advanced settings which should not be modified unless you know what you are doing. Activates search logging. For each solution found during the search, the following will be displayed: its objective value, the maximum objective value since the beginning of the search, the elapsed time since the beginning of the search, the number of branches explored in the search tree, the number of failures in the search tree, the depth of the search tree, the number of local search neighbors explored, the number of local search neighbors filtered by local search filters, the number of local search neighbors accepted, the total memory used and the percentage of the search done.
bool log_search = 13;
- Returns:
- This builder for chaining.
-
getLogCostScalingFactor
public double getLogCostScalingFactor()In logs, cost values will be scaled and offset by the given values in the following way: log_cost_scaling_factor * (cost + log_cost_offset)
double log_cost_scaling_factor = 22;
- Specified by:
getLogCostScalingFactor
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The logCostScalingFactor.
-
setLogCostScalingFactor
In logs, cost values will be scaled and offset by the given values in the following way: log_cost_scaling_factor * (cost + log_cost_offset)
double log_cost_scaling_factor = 22;
- Parameters:
value
- The logCostScalingFactor to set.- Returns:
- This builder for chaining.
-
clearLogCostScalingFactor
In logs, cost values will be scaled and offset by the given values in the following way: log_cost_scaling_factor * (cost + log_cost_offset)
double log_cost_scaling_factor = 22;
- Returns:
- This builder for chaining.
-
getLogCostOffset
public double getLogCostOffset()double log_cost_offset = 29;
- Specified by:
getLogCostOffset
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The logCostOffset.
-
setLogCostOffset
double log_cost_offset = 29;
- Parameters:
value
- The logCostOffset to set.- Returns:
- This builder for chaining.
-
clearLogCostOffset
double log_cost_offset = 29;
- Returns:
- This builder for chaining.
-
getLogTag
In logs, this tag will be appended to each line corresponding to a new solution. Useful to sort out logs when several solves are run in parallel.
string log_tag = 36;
- Specified by:
getLogTag
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The logTag.
-
getLogTagBytes
public com.google.protobuf.ByteString getLogTagBytes()In logs, this tag will be appended to each line corresponding to a new solution. Useful to sort out logs when several solves are run in parallel.
string log_tag = 36;
- Specified by:
getLogTagBytes
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The bytes for logTag.
-
setLogTag
In logs, this tag will be appended to each line corresponding to a new solution. Useful to sort out logs when several solves are run in parallel.
string log_tag = 36;
- Parameters:
value
- The logTag to set.- Returns:
- This builder for chaining.
-
clearLogTag
In logs, this tag will be appended to each line corresponding to a new solution. Useful to sort out logs when several solves are run in parallel.
string log_tag = 36;
- Returns:
- This builder for chaining.
-
setLogTagBytes
In logs, this tag will be appended to each line corresponding to a new solution. Useful to sort out logs when several solves are run in parallel.
string log_tag = 36;
- Parameters:
value
- The bytes for logTag to set.- Returns:
- This builder for chaining.
-
getUseIteratedLocalSearch
public boolean getUseIteratedLocalSearch()Whether the solver should use an Iterated Local Search approach to solve the problem.
bool use_iterated_local_search = 58;
- Specified by:
getUseIteratedLocalSearch
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The useIteratedLocalSearch.
-
setUseIteratedLocalSearch
Whether the solver should use an Iterated Local Search approach to solve the problem.
bool use_iterated_local_search = 58;
- Parameters:
value
- The useIteratedLocalSearch to set.- Returns:
- This builder for chaining.
-
clearUseIteratedLocalSearch
Whether the solver should use an Iterated Local Search approach to solve the problem.
bool use_iterated_local_search = 58;
- Returns:
- This builder for chaining.
-
hasIteratedLocalSearchParameters
public boolean hasIteratedLocalSearchParameters()Iterated Local Search parameters.
.operations_research.IteratedLocalSearchParameters iterated_local_search_parameters = 60;
- Specified by:
hasIteratedLocalSearchParameters
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- Whether the iteratedLocalSearchParameters field is set.
-
getIteratedLocalSearchParameters
Iterated Local Search parameters.
.operations_research.IteratedLocalSearchParameters iterated_local_search_parameters = 60;
- Specified by:
getIteratedLocalSearchParameters
in interfaceRoutingSearchParametersOrBuilder
- Returns:
- The iteratedLocalSearchParameters.
-
setIteratedLocalSearchParameters
public RoutingSearchParameters.Builder setIteratedLocalSearchParameters(IteratedLocalSearchParameters value) Iterated Local Search parameters.
.operations_research.IteratedLocalSearchParameters iterated_local_search_parameters = 60;
-
setIteratedLocalSearchParameters
public RoutingSearchParameters.Builder setIteratedLocalSearchParameters(IteratedLocalSearchParameters.Builder builderForValue) Iterated Local Search parameters.
.operations_research.IteratedLocalSearchParameters iterated_local_search_parameters = 60;
-
mergeIteratedLocalSearchParameters
public RoutingSearchParameters.Builder mergeIteratedLocalSearchParameters(IteratedLocalSearchParameters value) Iterated Local Search parameters.
.operations_research.IteratedLocalSearchParameters iterated_local_search_parameters = 60;
-
clearIteratedLocalSearchParameters
Iterated Local Search parameters.
.operations_research.IteratedLocalSearchParameters iterated_local_search_parameters = 60;
-
getIteratedLocalSearchParametersBuilder
Iterated Local Search parameters.
.operations_research.IteratedLocalSearchParameters iterated_local_search_parameters = 60;
-
getIteratedLocalSearchParametersOrBuilder
Iterated Local Search parameters.
.operations_research.IteratedLocalSearchParameters iterated_local_search_parameters = 60;
- Specified by:
getIteratedLocalSearchParametersOrBuilder
in interfaceRoutingSearchParametersOrBuilder
-