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: 61Protobuf type
operations_research.RoutingSearchParameters| Modifier and Type | Method and Description |
|---|---|
RoutingSearchParameters |
build() |
RoutingSearchParameters |
buildPartial() |
RoutingSearchParameters.Builder |
clear() |
RoutingSearchParameters.Builder |
clearCheapestInsertionAddUnperformedEntries()
Whether or not to consider entries making the nodes/pairs unperformed in
the GlobalCheapestInsertion heuristic.
|
RoutingSearchParameters.Builder |
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.
|
RoutingSearchParameters.Builder |
clearCheapestInsertionFirstSolutionMinNeighbors()
int32 cheapest_insertion_first_solution_min_neighbors = 44; |
RoutingSearchParameters.Builder |
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.
|
RoutingSearchParameters.Builder |
clearCheapestInsertionFirstSolutionUseNeighborsRatioForInitialization()
Whether or not to only consider closest neighbors when initializing the
assignment for the first solution.
|
RoutingSearchParameters.Builder |
clearCheapestInsertionLsOperatorMinNeighbors()
int32 cheapest_insertion_ls_operator_min_neighbors = 45; |
RoutingSearchParameters.Builder |
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).
|
RoutingSearchParameters.Builder |
clearChristofidesUseMinimumMatching()
If true use minimum matching instead of minimal matching in the
Christofides algorithm.
|
RoutingSearchParameters.Builder |
clearContinuousSchedulingSolver()
.operations_research.RoutingSearchParameters.SchedulingSolver continuous_scheduling_solver = 33; |
RoutingSearchParameters.Builder |
clearDisableSchedulingBewareThisMayDegradePerformance()
Setting this to true completely disables the LP and MIP scheduling in the
solver.
|
RoutingSearchParameters.Builder |
clearFallbackToCpSatSizeThreshold()
If model.Size() is less than the threshold and that no solution has been
found, attempt a pass with CP-SAT.
|
RoutingSearchParameters.Builder |
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.
|
RoutingSearchParameters.Builder |
clearFirstSolutionStrategy()
First solution strategies, used as starting point of local search.
|
RoutingSearchParameters.Builder |
clearGuidedLocalSearchLambdaCoefficient()
These are advanced settings which should not be modified unless you know
what you are doing.
|
RoutingSearchParameters.Builder |
clearGuidedLocalSearchResetPenaltiesOnNewBestSolution()
Whether to reset penalties when a new best solution is found.
|
RoutingSearchParameters.Builder |
clearHeuristicCloseNodesLnsNumNodes()
Number of closest nodes to consider for each node during the destruction
phase of the FilteredHeuristicCloseNodesLNSOperator.
|
RoutingSearchParameters.Builder |
clearHeuristicExpensiveChainLnsNumArcsToConsider()
Number of expensive arcs to consider cutting in the
FilteredHeuristicExpensiveChainLNSOperator operator.
|
RoutingSearchParameters.Builder |
clearImprovementLimitParameters()
The improvement search limit is added to the solver if the following
parameters are set.
|
RoutingSearchParameters.Builder |
clearIteratedLocalSearchParameters()
Iterated Local Search parameters.
|
RoutingSearchParameters.Builder |
clearLnsTimeLimit()
Limit to the time spent in the completion search for each local search
neighbor.
|
RoutingSearchParameters.Builder |
clearLocalCheapestCostInsertionPickupDeliveryStrategy()
Choice of insertion strategy for pickup/delivery pairs, used in local
cheapest cost insertion, both first solution heuristic and LNS.
|
RoutingSearchParameters.Builder |
clearLocalCheapestInsertionPickupDeliveryStrategy()
Choice of insertion strategy for pickup/delivery pairs, used in local
cheapest insertion, both first solution heuristic and LNS.
|
RoutingSearchParameters.Builder |
clearLocalSearchMetaheuristic()
Local search metaheuristics used to guide the search.
|
RoutingSearchParameters.Builder |
clearLocalSearchOperators()
.operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3; |
RoutingSearchParameters.Builder |
clearLogCostOffset()
double log_cost_offset = 29; |
RoutingSearchParameters.Builder |
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)
|
RoutingSearchParameters.Builder |
clearLogSearch()
--- Miscellaneous ---
Some of these are advanced settings which should not be modified unless you
know what you are doing.
|
RoutingSearchParameters.Builder |
clearLogTag()
In logs, this tag will be appended to each line corresponding to a new
solution.
|
RoutingSearchParameters.Builder |
clearLsOperatorMinNeighbors()
int32 ls_operator_min_neighbors = 54; |
RoutingSearchParameters.Builder |
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).
|
RoutingSearchParameters.Builder |
clearMixedIntegerSchedulingSolver()
.operations_research.RoutingSearchParameters.SchedulingSolver mixed_integer_scheduling_solver = 34; |
RoutingSearchParameters.Builder |
clearMultiArmedBanditCompoundOperatorExplorationCoefficient()
Positive parameter defining the exploration coefficient of the multi-armed
bandit compound operator.
|
RoutingSearchParameters.Builder |
clearMultiArmedBanditCompoundOperatorMemoryCoefficient()
Memory coefficient related to the multi-armed bandit compound operator.
|
RoutingSearchParameters.Builder |
clearNumberOfSolutionsToCollect()
Number of solutions to collect during the search.
|
RoutingSearchParameters.Builder |
clearOptimizationStep()
Minimum step by which the solution must be improved in local search.
|
RoutingSearchParameters.Builder |
clearRelocateExpensiveChainNumArcsToConsider()
Number of expensive arcs to consider cutting in the RelocateExpensiveChain
neighborhood operator (see
LocalSearchNeighborhoodOperators.use_relocate_expensive_chain()).
|
RoutingSearchParameters.Builder |
clearReportIntermediateCpSatSolutions()
If use_cp_sat or use_generalized_cp_sat is true, will report intermediate
solutions found by CP-SAT to solution listeners.
|
RoutingSearchParameters.Builder |
clearSatParameters()
If use_cp_sat or use_generalized_cp_sat is true, contains the SAT algorithm
parameters which will be used.
|
RoutingSearchParameters.Builder |
clearSavingsAddReverseArcs()
Add savings related to reverse arcs when finding the nearest neighbors
of the nodes.
|
RoutingSearchParameters.Builder |
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.
|
RoutingSearchParameters.Builder |
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].
|
RoutingSearchParameters.Builder |
clearSavingsNeighborsRatio()
Parameters specific to the Savings first solution heuristic.
|
RoutingSearchParameters.Builder |
clearSavingsParallelRoutes()
When true, the routes are built in parallel, sequentially otherwise.
|
RoutingSearchParameters.Builder |
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.
|
RoutingSearchParameters.Builder |
clearSolutionLimit()
-- Search limits --
Limit to the number of solutions generated during the search.
|
RoutingSearchParameters.Builder |
clearTimeLimit()
Limit to the time spent in the search.
|
RoutingSearchParameters.Builder |
clearUseCp()
If true, use the CP solver to find a solution.
|
RoutingSearchParameters.Builder |
clearUseCpSat()
If true, use the CP-SAT solver to find a solution.
|
RoutingSearchParameters.Builder |
clearUseDepthFirstSearch()
--- Search control ---
If true, the solver should use depth-first search rather than local search
to solve the problem.
|
RoutingSearchParameters.Builder |
clearUseFullPropagation()
--- Propagation control ---
These are advanced settings which should not be modified unless you know
what you are doing.
|
RoutingSearchParameters.Builder |
clearUseGeneralizedCpSat()
If true, use the CP-SAT solver to find a solution on generalized routing
model.
|
RoutingSearchParameters.Builder |
clearUseIteratedLocalSearch()
Whether the solver should use an Iterated Local Search approach to solve
the problem.
|
RoutingSearchParameters.Builder |
clearUseMultiArmedBanditConcatenateOperators()
If true, the solver will use multi-armed bandit concatenate operators.
|
RoutingSearchParameters.Builder |
clearUseUnfilteredFirstSolutionStrategy()
--- Advanced first solutions strategy settings ---
Don't touch these unless you know what you are doing.
|
boolean |
getCheapestInsertionAddUnperformedEntries()
Whether or not to consider entries making the nodes/pairs unperformed in
the GlobalCheapestInsertion heuristic.
|
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.
|
int |
getCheapestInsertionFirstSolutionMinNeighbors()
int32 cheapest_insertion_first_solution_min_neighbors = 44; |
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.
|
boolean |
getCheapestInsertionFirstSolutionUseNeighborsRatioForInitialization()
Whether or not to only consider closest neighbors when initializing the
assignment for the first solution.
|
int |
getCheapestInsertionLsOperatorMinNeighbors()
int32 cheapest_insertion_ls_operator_min_neighbors = 45; |
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).
|
boolean |
getChristofidesUseMinimumMatching()
If true use minimum matching instead of minimal matching in the
Christofides algorithm.
|
RoutingSearchParameters.SchedulingSolver |
getContinuousSchedulingSolver()
.operations_research.RoutingSearchParameters.SchedulingSolver continuous_scheduling_solver = 33; |
int |
getContinuousSchedulingSolverValue()
.operations_research.RoutingSearchParameters.SchedulingSolver continuous_scheduling_solver = 33; |
RoutingSearchParameters |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getDisableSchedulingBewareThisMayDegradePerformance()
Setting this to true completely disables the LP and MIP scheduling in the
solver.
|
int |
getFallbackToCpSatSizeThreshold()
If model.Size() is less than the threshold and that no solution has been
found, attempt a pass with CP-SAT.
|
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.
|
FirstSolutionStrategy.Value |
getFirstSolutionStrategy()
First solution strategies, used as starting point of local search.
|
int |
getFirstSolutionStrategyValue()
First solution strategies, used as starting point of local search.
|
double |
getGuidedLocalSearchLambdaCoefficient()
These are advanced settings which should not be modified unless you know
what you are doing.
|
boolean |
getGuidedLocalSearchResetPenaltiesOnNewBestSolution()
Whether to reset penalties when a new best solution is found.
|
int |
getHeuristicCloseNodesLnsNumNodes()
Number of closest nodes to consider for each node during the destruction
phase of the FilteredHeuristicCloseNodesLNSOperator.
|
int |
getHeuristicExpensiveChainLnsNumArcsToConsider()
Number of expensive arcs to consider cutting in the
FilteredHeuristicExpensiveChainLNSOperator operator.
|
RoutingSearchParameters.ImprovementSearchLimitParameters |
getImprovementLimitParameters()
The improvement search limit is added to the solver if the following
parameters are set.
|
RoutingSearchParameters.ImprovementSearchLimitParameters.Builder |
getImprovementLimitParametersBuilder()
The improvement search limit is added to the solver if the following
parameters are set.
|
RoutingSearchParameters.ImprovementSearchLimitParametersOrBuilder |
getImprovementLimitParametersOrBuilder()
The improvement search limit is added to the solver if the following
parameters are set.
|
RoutingIls.IteratedLocalSearchParameters |
getIteratedLocalSearchParameters()
Iterated Local Search parameters.
|
RoutingIls.IteratedLocalSearchParameters.Builder |
getIteratedLocalSearchParametersBuilder()
Iterated Local Search parameters.
|
RoutingIls.IteratedLocalSearchParametersOrBuilder |
getIteratedLocalSearchParametersOrBuilder()
Iterated Local Search parameters.
|
com.google.protobuf.Duration |
getLnsTimeLimit()
Limit to the time spent in the completion search for each local search
neighbor.
|
com.google.protobuf.Duration.Builder |
getLnsTimeLimitBuilder()
Limit to the time spent in the completion search for each local search
neighbor.
|
com.google.protobuf.DurationOrBuilder |
getLnsTimeLimitOrBuilder()
Limit to the time spent in the completion search for each local search
neighbor.
|
RoutingSearchParameters.PairInsertionStrategy |
getLocalCheapestCostInsertionPickupDeliveryStrategy()
Choice of insertion strategy for pickup/delivery pairs, used in local
cheapest cost insertion, both first solution heuristic and LNS.
|
int |
getLocalCheapestCostInsertionPickupDeliveryStrategyValue()
Choice of insertion strategy for pickup/delivery pairs, used in local
cheapest cost insertion, both first solution heuristic and LNS.
|
RoutingSearchParameters.PairInsertionStrategy |
getLocalCheapestInsertionPickupDeliveryStrategy()
Choice of insertion strategy for pickup/delivery pairs, used in local
cheapest insertion, both first solution heuristic and LNS.
|
int |
getLocalCheapestInsertionPickupDeliveryStrategyValue()
Choice of insertion strategy for pickup/delivery pairs, used in local
cheapest insertion, both first solution heuristic and LNS.
|
LocalSearchMetaheuristic.Value |
getLocalSearchMetaheuristic()
Local search metaheuristics used to guide the search.
|
int |
getLocalSearchMetaheuristicValue()
Local search metaheuristics used to guide the search.
|
RoutingSearchParameters.LocalSearchNeighborhoodOperators |
getLocalSearchOperators()
.operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3; |
RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder |
getLocalSearchOperatorsBuilder()
.operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3; |
RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder |
getLocalSearchOperatorsOrBuilder()
.operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3; |
double |
getLogCostOffset()
double log_cost_offset = 29; |
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)
|
boolean |
getLogSearch()
--- Miscellaneous ---
Some of these are advanced settings which should not be modified unless you
know what you are doing.
|
java.lang.String |
getLogTag()
In logs, this tag will be appended to each line corresponding to a new
solution.
|
com.google.protobuf.ByteString |
getLogTagBytes()
In logs, this tag will be appended to each line corresponding to a new
solution.
|
int |
getLsOperatorMinNeighbors()
int32 ls_operator_min_neighbors = 54; |
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).
|
RoutingSearchParameters.SchedulingSolver |
getMixedIntegerSchedulingSolver()
.operations_research.RoutingSearchParameters.SchedulingSolver mixed_integer_scheduling_solver = 34; |
int |
getMixedIntegerSchedulingSolverValue()
.operations_research.RoutingSearchParameters.SchedulingSolver mixed_integer_scheduling_solver = 34; |
double |
getMultiArmedBanditCompoundOperatorExplorationCoefficient()
Positive parameter defining the exploration coefficient of the multi-armed
bandit compound operator.
|
double |
getMultiArmedBanditCompoundOperatorMemoryCoefficient()
Memory coefficient related to the multi-armed bandit compound operator.
|
int |
getNumberOfSolutionsToCollect()
Number of solutions to collect during the search.
|
double |
getOptimizationStep()
Minimum step by which the solution must be improved in local search.
|
int |
getRelocateExpensiveChainNumArcsToConsider()
Number of expensive arcs to consider cutting in the RelocateExpensiveChain
neighborhood operator (see
LocalSearchNeighborhoodOperators.use_relocate_expensive_chain()).
|
boolean |
getReportIntermediateCpSatSolutions()
If use_cp_sat or use_generalized_cp_sat is true, will report intermediate
solutions found by CP-SAT to solution listeners.
|
SatParameters |
getSatParameters()
If use_cp_sat or use_generalized_cp_sat is true, contains the SAT algorithm
parameters which will be used.
|
SatParameters.Builder |
getSatParametersBuilder()
If use_cp_sat or use_generalized_cp_sat is true, contains the SAT algorithm
parameters which will be used.
|
SatParametersOrBuilder |
getSatParametersOrBuilder()
If use_cp_sat or use_generalized_cp_sat is true, contains the SAT algorithm
parameters which will be used.
|
boolean |
getSavingsAddReverseArcs()
Add savings related to reverse arcs when finding the nearest neighbors
of the nodes.
|
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 |
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].
|
double |
getSavingsNeighborsRatio()
Parameters specific to the Savings first solution heuristic.
|
boolean |
getSavingsParallelRoutes()
When true, the routes are built in parallel, sequentially otherwise.
|
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.
|
long |
getSolutionLimit()
-- Search limits --
Limit to the number of solutions generated during the search.
|
com.google.protobuf.Duration |
getTimeLimit()
Limit to the time spent in the search.
|
com.google.protobuf.Duration.Builder |
getTimeLimitBuilder()
Limit to the time spent in the search.
|
com.google.protobuf.DurationOrBuilder |
getTimeLimitOrBuilder()
Limit to the time spent in the search.
|
OptionalBoolean |
getUseCp()
If true, use the CP solver to find a solution.
|
OptionalBoolean |
getUseCpSat()
If true, use the CP-SAT solver to find a solution.
|
int |
getUseCpSatValue()
If true, use the CP-SAT solver to find a solution.
|
int |
getUseCpValue()
If true, use the CP solver to find a solution.
|
boolean |
getUseDepthFirstSearch()
--- Search control ---
If true, the solver should use depth-first search rather than local search
to solve the problem.
|
boolean |
getUseFullPropagation()
--- Propagation control ---
These are advanced settings which should not be modified unless you know
what you are doing.
|
OptionalBoolean |
getUseGeneralizedCpSat()
If true, use the CP-SAT solver to find a solution on generalized routing
model.
|
int |
getUseGeneralizedCpSatValue()
If true, use the CP-SAT solver to find a solution on generalized routing
model.
|
boolean |
getUseIteratedLocalSearch()
Whether the solver should use an Iterated Local Search approach to solve
the problem.
|
boolean |
getUseMultiArmedBanditConcatenateOperators()
If true, the solver will use multi-armed bandit concatenate operators.
|
boolean |
getUseUnfilteredFirstSolutionStrategy()
--- Advanced first solutions strategy settings ---
Don't touch these unless you know what you are doing.
|
boolean |
hasDisableSchedulingBewareThisMayDegradePerformance()
Setting this to true completely disables the LP and MIP scheduling in the
solver.
|
boolean |
hasImprovementLimitParameters()
The improvement search limit is added to the solver if the following
parameters are set.
|
boolean |
hasIteratedLocalSearchParameters()
Iterated Local Search parameters.
|
boolean |
hasLnsTimeLimit()
Limit to the time spent in the completion search for each local search
neighbor.
|
boolean |
hasLocalSearchOperators()
.operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3; |
boolean |
hasSatParameters()
If use_cp_sat or use_generalized_cp_sat is true, contains the SAT algorithm
parameters which will be used.
|
boolean |
hasTimeLimit()
Limit to the time spent in the search.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RoutingSearchParameters.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RoutingSearchParameters.Builder |
mergeFrom(com.google.protobuf.Message other) |
RoutingSearchParameters.Builder |
mergeFrom(RoutingSearchParameters other) |
RoutingSearchParameters.Builder |
mergeImprovementLimitParameters(RoutingSearchParameters.ImprovementSearchLimitParameters value)
The improvement search limit is added to the solver if the following
parameters are set.
|
RoutingSearchParameters.Builder |
mergeIteratedLocalSearchParameters(RoutingIls.IteratedLocalSearchParameters value)
Iterated Local Search parameters.
|
RoutingSearchParameters.Builder |
mergeLnsTimeLimit(com.google.protobuf.Duration value)
Limit to the time spent in the completion search for each local search
neighbor.
|
RoutingSearchParameters.Builder |
mergeLocalSearchOperators(RoutingSearchParameters.LocalSearchNeighborhoodOperators value)
.operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3; |
RoutingSearchParameters.Builder |
mergeSatParameters(SatParameters value)
If use_cp_sat or use_generalized_cp_sat is true, contains the SAT algorithm
parameters which will be used.
|
RoutingSearchParameters.Builder |
mergeTimeLimit(com.google.protobuf.Duration value)
Limit to the time spent in the search.
|
RoutingSearchParameters.Builder |
setCheapestInsertionAddUnperformedEntries(boolean value)
Whether or not to consider entries making the nodes/pairs unperformed in
the GlobalCheapestInsertion heuristic.
|
RoutingSearchParameters.Builder |
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.
|
RoutingSearchParameters.Builder |
setCheapestInsertionFirstSolutionMinNeighbors(int value)
int32 cheapest_insertion_first_solution_min_neighbors = 44; |
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.
|
RoutingSearchParameters.Builder |
setCheapestInsertionFirstSolutionUseNeighborsRatioForInitialization(boolean value)
Whether or not to only consider closest neighbors when initializing the
assignment for the first solution.
|
RoutingSearchParameters.Builder |
setCheapestInsertionLsOperatorMinNeighbors(int value)
int32 cheapest_insertion_ls_operator_min_neighbors = 45; |
RoutingSearchParameters.Builder |
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).
|
RoutingSearchParameters.Builder |
setChristofidesUseMinimumMatching(boolean value)
If true use minimum matching instead of minimal matching in the
Christofides algorithm.
|
RoutingSearchParameters.Builder |
setContinuousSchedulingSolver(RoutingSearchParameters.SchedulingSolver value)
.operations_research.RoutingSearchParameters.SchedulingSolver continuous_scheduling_solver = 33; |
RoutingSearchParameters.Builder |
setContinuousSchedulingSolverValue(int value)
.operations_research.RoutingSearchParameters.SchedulingSolver continuous_scheduling_solver = 33; |
RoutingSearchParameters.Builder |
setDisableSchedulingBewareThisMayDegradePerformance(boolean value)
Setting this to true completely disables the LP and MIP scheduling in the
solver.
|
RoutingSearchParameters.Builder |
setFallbackToCpSatSizeThreshold(int value)
If model.Size() is less than the threshold and that no solution has been
found, attempt a pass with CP-SAT.
|
RoutingSearchParameters.Builder |
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.
|
RoutingSearchParameters.Builder |
setFirstSolutionStrategy(FirstSolutionStrategy.Value value)
First solution strategies, used as starting point of local search.
|
RoutingSearchParameters.Builder |
setFirstSolutionStrategyValue(int value)
First solution strategies, used as starting point of local search.
|
RoutingSearchParameters.Builder |
setGuidedLocalSearchLambdaCoefficient(double value)
These are advanced settings which should not be modified unless you know
what you are doing.
|
RoutingSearchParameters.Builder |
setGuidedLocalSearchResetPenaltiesOnNewBestSolution(boolean value)
Whether to reset penalties when a new best solution is found.
|
RoutingSearchParameters.Builder |
setHeuristicCloseNodesLnsNumNodes(int value)
Number of closest nodes to consider for each node during the destruction
phase of the FilteredHeuristicCloseNodesLNSOperator.
|
RoutingSearchParameters.Builder |
setHeuristicExpensiveChainLnsNumArcsToConsider(int value)
Number of expensive arcs to consider cutting in the
FilteredHeuristicExpensiveChainLNSOperator operator.
|
RoutingSearchParameters.Builder |
setImprovementLimitParameters(RoutingSearchParameters.ImprovementSearchLimitParameters.Builder builderForValue)
The improvement search limit is added to the solver if the following
parameters are set.
|
RoutingSearchParameters.Builder |
setImprovementLimitParameters(RoutingSearchParameters.ImprovementSearchLimitParameters value)
The improvement search limit is added to the solver if the following
parameters are set.
|
RoutingSearchParameters.Builder |
setIteratedLocalSearchParameters(RoutingIls.IteratedLocalSearchParameters.Builder builderForValue)
Iterated Local Search parameters.
|
RoutingSearchParameters.Builder |
setIteratedLocalSearchParameters(RoutingIls.IteratedLocalSearchParameters value)
Iterated Local Search parameters.
|
RoutingSearchParameters.Builder |
setLnsTimeLimit(com.google.protobuf.Duration.Builder builderForValue)
Limit to the time spent in the completion search for each local search
neighbor.
|
RoutingSearchParameters.Builder |
setLnsTimeLimit(com.google.protobuf.Duration value)
Limit to the time spent in the completion search for each local search
neighbor.
|
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.
|
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.
|
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.
|
RoutingSearchParameters.Builder |
setLocalCheapestInsertionPickupDeliveryStrategyValue(int value)
Choice of insertion strategy for pickup/delivery pairs, used in local
cheapest insertion, both first solution heuristic and LNS.
|
RoutingSearchParameters.Builder |
setLocalSearchMetaheuristic(LocalSearchMetaheuristic.Value value)
Local search metaheuristics used to guide the search.
|
RoutingSearchParameters.Builder |
setLocalSearchMetaheuristicValue(int value)
Local search metaheuristics used to guide the search.
|
RoutingSearchParameters.Builder |
setLocalSearchOperators(RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder builderForValue)
.operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3; |
RoutingSearchParameters.Builder |
setLocalSearchOperators(RoutingSearchParameters.LocalSearchNeighborhoodOperators value)
.operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3; |
RoutingSearchParameters.Builder |
setLogCostOffset(double value)
double log_cost_offset = 29; |
RoutingSearchParameters.Builder |
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)
|
RoutingSearchParameters.Builder |
setLogSearch(boolean value)
--- Miscellaneous ---
Some of these are advanced settings which should not be modified unless you
know what you are doing.
|
RoutingSearchParameters.Builder |
setLogTag(java.lang.String value)
In logs, this tag will be appended to each line corresponding to a new
solution.
|
RoutingSearchParameters.Builder |
setLogTagBytes(com.google.protobuf.ByteString value)
In logs, this tag will be appended to each line corresponding to a new
solution.
|
RoutingSearchParameters.Builder |
setLsOperatorMinNeighbors(int value)
int32 ls_operator_min_neighbors = 54; |
RoutingSearchParameters.Builder |
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).
|
RoutingSearchParameters.Builder |
setMixedIntegerSchedulingSolver(RoutingSearchParameters.SchedulingSolver value)
.operations_research.RoutingSearchParameters.SchedulingSolver mixed_integer_scheduling_solver = 34; |
RoutingSearchParameters.Builder |
setMixedIntegerSchedulingSolverValue(int value)
.operations_research.RoutingSearchParameters.SchedulingSolver mixed_integer_scheduling_solver = 34; |
RoutingSearchParameters.Builder |
setMultiArmedBanditCompoundOperatorExplorationCoefficient(double value)
Positive parameter defining the exploration coefficient of the multi-armed
bandit compound operator.
|
RoutingSearchParameters.Builder |
setMultiArmedBanditCompoundOperatorMemoryCoefficient(double value)
Memory coefficient related to the multi-armed bandit compound operator.
|
RoutingSearchParameters.Builder |
setNumberOfSolutionsToCollect(int value)
Number of solutions to collect during the search.
|
RoutingSearchParameters.Builder |
setOptimizationStep(double value)
Minimum step by which the solution must be improved in local search.
|
RoutingSearchParameters.Builder |
setRelocateExpensiveChainNumArcsToConsider(int value)
Number of expensive arcs to consider cutting in the RelocateExpensiveChain
neighborhood operator (see
LocalSearchNeighborhoodOperators.use_relocate_expensive_chain()).
|
RoutingSearchParameters.Builder |
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.
|
RoutingSearchParameters.Builder |
setSatParameters(SatParameters.Builder builderForValue)
If use_cp_sat or use_generalized_cp_sat is true, contains the SAT algorithm
parameters which will be used.
|
RoutingSearchParameters.Builder |
setSatParameters(SatParameters value)
If use_cp_sat or use_generalized_cp_sat is true, contains the SAT algorithm
parameters which will be used.
|
RoutingSearchParameters.Builder |
setSavingsAddReverseArcs(boolean value)
Add savings related to reverse arcs when finding the nearest neighbors
of the nodes.
|
RoutingSearchParameters.Builder |
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.
|
RoutingSearchParameters.Builder |
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].
|
RoutingSearchParameters.Builder |
setSavingsNeighborsRatio(double value)
Parameters specific to the Savings first solution heuristic.
|
RoutingSearchParameters.Builder |
setSavingsParallelRoutes(boolean value)
When true, the routes are built in parallel, sequentially otherwise.
|
RoutingSearchParameters.Builder |
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.
|
RoutingSearchParameters.Builder |
setSolutionLimit(long value)
-- Search limits --
Limit to the number of solutions generated during the search.
|
RoutingSearchParameters.Builder |
setTimeLimit(com.google.protobuf.Duration.Builder builderForValue)
Limit to the time spent in the search.
|
RoutingSearchParameters.Builder |
setTimeLimit(com.google.protobuf.Duration value)
Limit to the time spent in the search.
|
RoutingSearchParameters.Builder |
setUseCp(OptionalBoolean value)
If true, use the CP solver to find a solution.
|
RoutingSearchParameters.Builder |
setUseCpSat(OptionalBoolean value)
If true, use the CP-SAT solver to find a solution.
|
RoutingSearchParameters.Builder |
setUseCpSatValue(int value)
If true, use the CP-SAT solver to find a solution.
|
RoutingSearchParameters.Builder |
setUseCpValue(int value)
If true, use the CP solver to find a solution.
|
RoutingSearchParameters.Builder |
setUseDepthFirstSearch(boolean value)
--- Search control ---
If true, the solver should use depth-first search rather than local search
to solve the problem.
|
RoutingSearchParameters.Builder |
setUseFullPropagation(boolean value)
--- Propagation control ---
These are advanced settings which should not be modified unless you know
what you are doing.
|
RoutingSearchParameters.Builder |
setUseGeneralizedCpSat(OptionalBoolean value)
If true, use the CP-SAT solver to find a solution on generalized routing
model.
|
RoutingSearchParameters.Builder |
setUseGeneralizedCpSatValue(int value)
If true, use the CP-SAT solver to find a solution on generalized routing
model.
|
RoutingSearchParameters.Builder |
setUseIteratedLocalSearch(boolean value)
Whether the solver should use an Iterated Local Search approach to solve
the problem.
|
RoutingSearchParameters.Builder |
setUseMultiArmedBanditConcatenateOperators(boolean value)
If true, the solver will use multi-armed bandit concatenate operators.
|
RoutingSearchParameters.Builder |
setUseUnfilteredFirstSolutionStrategy(boolean value)
--- Advanced first solutions strategy settings ---
Don't touch these unless you know what you are doing.
|
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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<RoutingSearchParameters.Builder>public RoutingSearchParameters.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<RoutingSearchParameters.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<RoutingSearchParameters.Builder>public RoutingSearchParameters getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RoutingSearchParameters build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RoutingSearchParameters buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RoutingSearchParameters.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RoutingSearchParameters.Builder>public RoutingSearchParameters.Builder mergeFrom(RoutingSearchParameters other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<RoutingSearchParameters.Builder>public RoutingSearchParameters.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RoutingSearchParameters.Builder>java.io.IOExceptionpublic int getFirstSolutionStrategyValue()
First solution strategies, used as starting point of local search.
.operations_research.FirstSolutionStrategy.Value first_solution_strategy = 1;getFirstSolutionStrategyValue in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setFirstSolutionStrategyValue(int value)
First solution strategies, used as starting point of local search.
.operations_research.FirstSolutionStrategy.Value first_solution_strategy = 1;value - The enum numeric value on the wire for firstSolutionStrategy to set.public FirstSolutionStrategy.Value getFirstSolutionStrategy()
First solution strategies, used as starting point of local search.
.operations_research.FirstSolutionStrategy.Value first_solution_strategy = 1;getFirstSolutionStrategy in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setFirstSolutionStrategy(FirstSolutionStrategy.Value value)
First solution strategies, used as starting point of local search.
.operations_research.FirstSolutionStrategy.Value first_solution_strategy = 1;value - The firstSolutionStrategy to set.public RoutingSearchParameters.Builder clearFirstSolutionStrategy()
First solution strategies, used as starting point of local search.
.operations_research.FirstSolutionStrategy.Value first_solution_strategy = 1;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;getUseUnfilteredFirstSolutionStrategy in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setUseUnfilteredFirstSolutionStrategy(boolean value)
--- 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;value - The useUnfilteredFirstSolutionStrategy to set.public RoutingSearchParameters.Builder 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;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;getSavingsNeighborsRatio in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setSavingsNeighborsRatio(double value)
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;value - The savingsNeighborsRatio to set.public RoutingSearchParameters.Builder 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;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;getSavingsMaxMemoryUsageBytes in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder 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]. 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;value - The savingsMaxMemoryUsageBytes to set.public RoutingSearchParameters.Builder 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;public boolean getSavingsAddReverseArcs()
Add savings related to reverse arcs when finding the nearest neighbors of the nodes.
bool savings_add_reverse_arcs = 15;getSavingsAddReverseArcs in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setSavingsAddReverseArcs(boolean value)
Add savings related to reverse arcs when finding the nearest neighbors of the nodes.
bool savings_add_reverse_arcs = 15;value - The savingsAddReverseArcs to set.public RoutingSearchParameters.Builder clearSavingsAddReverseArcs()
Add savings related to reverse arcs when finding the nearest neighbors of the nodes.
bool savings_add_reverse_arcs = 15;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;getSavingsArcCoefficient in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder 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.
double savings_arc_coefficient = 18;value - The savingsArcCoefficient to set.public RoutingSearchParameters.Builder 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;public boolean getSavingsParallelRoutes()
When true, the routes are built in parallel, sequentially otherwise.
bool savings_parallel_routes = 19;getSavingsParallelRoutes in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setSavingsParallelRoutes(boolean value)
When true, the routes are built in parallel, sequentially otherwise.
bool savings_parallel_routes = 19;value - The savingsParallelRoutes to set.public RoutingSearchParameters.Builder clearSavingsParallelRoutes()
When true, the routes are built in parallel, sequentially otherwise.
bool savings_parallel_routes = 19;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;getCheapestInsertionFarthestSeedsRatio in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder 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.
double cheapest_insertion_farthest_seeds_ratio = 16;value - The cheapestInsertionFarthestSeedsRatio to set.public RoutingSearchParameters.Builder 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;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;getCheapestInsertionFirstSolutionNeighborsRatio in interface RoutingSearchParametersOrBuilderpublic 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;value - The cheapestInsertionFirstSolutionNeighborsRatio to set.public RoutingSearchParameters.Builder 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;public int getCheapestInsertionFirstSolutionMinNeighbors()
int32 cheapest_insertion_first_solution_min_neighbors = 44;getCheapestInsertionFirstSolutionMinNeighbors in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setCheapestInsertionFirstSolutionMinNeighbors(int value)
int32 cheapest_insertion_first_solution_min_neighbors = 44;value - The cheapestInsertionFirstSolutionMinNeighbors to set.public RoutingSearchParameters.Builder clearCheapestInsertionFirstSolutionMinNeighbors()
int32 cheapest_insertion_first_solution_min_neighbors = 44;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;getCheapestInsertionLsOperatorNeighborsRatio in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder 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).
double cheapest_insertion_ls_operator_neighbors_ratio = 31;value - The cheapestInsertionLsOperatorNeighborsRatio to set.public RoutingSearchParameters.Builder 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;public int getCheapestInsertionLsOperatorMinNeighbors()
int32 cheapest_insertion_ls_operator_min_neighbors = 45;getCheapestInsertionLsOperatorMinNeighbors in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setCheapestInsertionLsOperatorMinNeighbors(int value)
int32 cheapest_insertion_ls_operator_min_neighbors = 45;value - The cheapestInsertionLsOperatorMinNeighbors to set.public RoutingSearchParameters.Builder clearCheapestInsertionLsOperatorMinNeighbors()
int32 cheapest_insertion_ls_operator_min_neighbors = 45;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;getCheapestInsertionFirstSolutionUseNeighborsRatioForInitialization in interface RoutingSearchParametersOrBuilderpublic 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;value - The cheapestInsertionFirstSolutionUseNeighborsRatioForInitialization to set.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;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;getCheapestInsertionAddUnperformedEntries in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setCheapestInsertionAddUnperformedEntries(boolean value)
Whether or not to consider entries making the nodes/pairs unperformed in the GlobalCheapestInsertion heuristic.
bool cheapest_insertion_add_unperformed_entries = 40;value - The cheapestInsertionAddUnperformedEntries to set.public RoutingSearchParameters.Builder clearCheapestInsertionAddUnperformedEntries()
Whether or not to consider entries making the nodes/pairs unperformed in the GlobalCheapestInsertion heuristic.
bool cheapest_insertion_add_unperformed_entries = 40;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;getLocalCheapestInsertionPickupDeliveryStrategyValue in interface RoutingSearchParametersOrBuilderpublic 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;value - The enum numeric value on the wire for localCheapestInsertionPickupDeliveryStrategy to set.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;getLocalCheapestInsertionPickupDeliveryStrategy in interface RoutingSearchParametersOrBuilderpublic 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;value - The localCheapestInsertionPickupDeliveryStrategy to set.public RoutingSearchParameters.Builder 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;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;getLocalCheapestCostInsertionPickupDeliveryStrategyValue in interface RoutingSearchParametersOrBuilderpublic 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;value - The enum numeric value on the wire for localCheapestCostInsertionPickupDeliveryStrategy to set.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;getLocalCheapestCostInsertionPickupDeliveryStrategy in interface RoutingSearchParametersOrBuilderpublic 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;value - The localCheapestCostInsertionPickupDeliveryStrategy to set.public RoutingSearchParameters.Builder 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;public boolean getChristofidesUseMinimumMatching()
If true use minimum matching instead of minimal matching in the Christofides algorithm.
bool christofides_use_minimum_matching = 30;getChristofidesUseMinimumMatching in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setChristofidesUseMinimumMatching(boolean value)
If true use minimum matching instead of minimal matching in the Christofides algorithm.
bool christofides_use_minimum_matching = 30;value - The christofidesUseMinimumMatching to set.public RoutingSearchParameters.Builder clearChristofidesUseMinimumMatching()
If true use minimum matching instead of minimal matching in the Christofides algorithm.
bool christofides_use_minimum_matching = 30;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;getFirstSolutionOptimizationPeriod in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder 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. 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;value - The firstSolutionOptimizationPeriod to set.public RoutingSearchParameters.Builder 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;public boolean hasLocalSearchOperators()
.operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3;hasLocalSearchOperators in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.LocalSearchNeighborhoodOperators getLocalSearchOperators()
.operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3;getLocalSearchOperators in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setLocalSearchOperators(RoutingSearchParameters.LocalSearchNeighborhoodOperators value)
.operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3;public RoutingSearchParameters.Builder setLocalSearchOperators(RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder builderForValue)
.operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3;public RoutingSearchParameters.Builder mergeLocalSearchOperators(RoutingSearchParameters.LocalSearchNeighborhoodOperators value)
.operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3;public RoutingSearchParameters.Builder clearLocalSearchOperators()
.operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3;public RoutingSearchParameters.LocalSearchNeighborhoodOperators.Builder getLocalSearchOperatorsBuilder()
.operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3;public RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder getLocalSearchOperatorsOrBuilder()
.operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3;getLocalSearchOperatorsOrBuilder in interface RoutingSearchParametersOrBuilderpublic 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;getLsOperatorNeighborsRatio in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder 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).
double ls_operator_neighbors_ratio = 53;value - The lsOperatorNeighborsRatio to set.public RoutingSearchParameters.Builder 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;public int getLsOperatorMinNeighbors()
int32 ls_operator_min_neighbors = 54;getLsOperatorMinNeighbors in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setLsOperatorMinNeighbors(int value)
int32 ls_operator_min_neighbors = 54;value - The lsOperatorMinNeighbors to set.public RoutingSearchParameters.Builder clearLsOperatorMinNeighbors()
int32 ls_operator_min_neighbors = 54;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;getUseMultiArmedBanditConcatenateOperators in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setUseMultiArmedBanditConcatenateOperators(boolean value)
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;value - The useMultiArmedBanditConcatenateOperators to set.public RoutingSearchParameters.Builder 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;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;getMultiArmedBanditCompoundOperatorMemoryCoefficient in interface RoutingSearchParametersOrBuilderpublic 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;value - The multiArmedBanditCompoundOperatorMemoryCoefficient to set.public RoutingSearchParameters.Builder 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;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;getMultiArmedBanditCompoundOperatorExplorationCoefficient in interface RoutingSearchParametersOrBuilderpublic 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;value - The multiArmedBanditCompoundOperatorExplorationCoefficient to set.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;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;getRelocateExpensiveChainNumArcsToConsider in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setRelocateExpensiveChainNumArcsToConsider(int value)
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;value - The relocateExpensiveChainNumArcsToConsider to set.public RoutingSearchParameters.Builder 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;public int getHeuristicExpensiveChainLnsNumArcsToConsider()
Number of expensive arcs to consider cutting in the FilteredHeuristicExpensiveChainLNSOperator operator.
int32 heuristic_expensive_chain_lns_num_arcs_to_consider = 32;getHeuristicExpensiveChainLnsNumArcsToConsider in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setHeuristicExpensiveChainLnsNumArcsToConsider(int value)
Number of expensive arcs to consider cutting in the FilteredHeuristicExpensiveChainLNSOperator operator.
int32 heuristic_expensive_chain_lns_num_arcs_to_consider = 32;value - The heuristicExpensiveChainLnsNumArcsToConsider to set.public RoutingSearchParameters.Builder clearHeuristicExpensiveChainLnsNumArcsToConsider()
Number of expensive arcs to consider cutting in the FilteredHeuristicExpensiveChainLNSOperator operator.
int32 heuristic_expensive_chain_lns_num_arcs_to_consider = 32;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;getHeuristicCloseNodesLnsNumNodes in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setHeuristicCloseNodesLnsNumNodes(int value)
Number of closest nodes to consider for each node during the destruction phase of the FilteredHeuristicCloseNodesLNSOperator.
int32 heuristic_close_nodes_lns_num_nodes = 35;value - The heuristicCloseNodesLnsNumNodes to set.public RoutingSearchParameters.Builder 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;public int getLocalSearchMetaheuristicValue()
Local search metaheuristics used to guide the search.
.operations_research.LocalSearchMetaheuristic.Value local_search_metaheuristic = 4;getLocalSearchMetaheuristicValue in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setLocalSearchMetaheuristicValue(int value)
Local search metaheuristics used to guide the search.
.operations_research.LocalSearchMetaheuristic.Value local_search_metaheuristic = 4;value - The enum numeric value on the wire for localSearchMetaheuristic to set.public LocalSearchMetaheuristic.Value getLocalSearchMetaheuristic()
Local search metaheuristics used to guide the search.
.operations_research.LocalSearchMetaheuristic.Value local_search_metaheuristic = 4;getLocalSearchMetaheuristic in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setLocalSearchMetaheuristic(LocalSearchMetaheuristic.Value value)
Local search metaheuristics used to guide the search.
.operations_research.LocalSearchMetaheuristic.Value local_search_metaheuristic = 4;value - The localSearchMetaheuristic to set.public RoutingSearchParameters.Builder clearLocalSearchMetaheuristic()
Local search metaheuristics used to guide the search.
.operations_research.LocalSearchMetaheuristic.Value local_search_metaheuristic = 4;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;getGuidedLocalSearchLambdaCoefficient in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setGuidedLocalSearchLambdaCoefficient(double value)
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;value - The guidedLocalSearchLambdaCoefficient to set.public RoutingSearchParameters.Builder 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;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;getGuidedLocalSearchResetPenaltiesOnNewBestSolution in interface RoutingSearchParametersOrBuilderpublic 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;value - The guidedLocalSearchResetPenaltiesOnNewBestSolution to set.public RoutingSearchParameters.Builder 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;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;getUseDepthFirstSearch in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setUseDepthFirstSearch(boolean value)
--- 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;value - The useDepthFirstSearch to set.public RoutingSearchParameters.Builder 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;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;getUseCpValue in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setUseCpValue(int value)
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;value - The enum numeric value on the wire for useCp to set.public OptionalBoolean 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;getUseCp in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setUseCp(OptionalBoolean value)
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;value - The useCp to set.public RoutingSearchParameters.Builder 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;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;getUseCpSatValue in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setUseCpSatValue(int value)
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;value - The enum numeric value on the wire for useCpSat to set.public OptionalBoolean 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;getUseCpSat in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setUseCpSat(OptionalBoolean value)
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;value - The useCpSat to set.public RoutingSearchParameters.Builder 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;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;getUseGeneralizedCpSatValue in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setUseGeneralizedCpSatValue(int value)
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;value - The enum numeric value on the wire for useGeneralizedCpSat to set.public OptionalBoolean 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;getUseGeneralizedCpSat in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setUseGeneralizedCpSat(OptionalBoolean value)
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;value - The useGeneralizedCpSat to set.public RoutingSearchParameters.Builder 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;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;hasSatParameters in interface RoutingSearchParametersOrBuilderpublic SatParameters 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;getSatParameters in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setSatParameters(SatParameters value)
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;public RoutingSearchParameters.Builder setSatParameters(SatParameters.Builder builderForValue)
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;public RoutingSearchParameters.Builder mergeSatParameters(SatParameters value)
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;public RoutingSearchParameters.Builder 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;public SatParameters.Builder 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;public SatParametersOrBuilder 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;getSatParametersOrBuilder in interface RoutingSearchParametersOrBuilderpublic 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;getReportIntermediateCpSatSolutions in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder 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.
bool report_intermediate_cp_sat_solutions = 56;value - The reportIntermediateCpSatSolutions to set.public RoutingSearchParameters.Builder 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;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;getFallbackToCpSatSizeThreshold in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setFallbackToCpSatSizeThreshold(int value)
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;value - The fallbackToCpSatSizeThreshold to set.public RoutingSearchParameters.Builder 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;public int getContinuousSchedulingSolverValue()
.operations_research.RoutingSearchParameters.SchedulingSolver continuous_scheduling_solver = 33;getContinuousSchedulingSolverValue in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setContinuousSchedulingSolverValue(int value)
.operations_research.RoutingSearchParameters.SchedulingSolver continuous_scheduling_solver = 33;value - The enum numeric value on the wire for continuousSchedulingSolver to set.public RoutingSearchParameters.SchedulingSolver getContinuousSchedulingSolver()
.operations_research.RoutingSearchParameters.SchedulingSolver continuous_scheduling_solver = 33;getContinuousSchedulingSolver in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setContinuousSchedulingSolver(RoutingSearchParameters.SchedulingSolver value)
.operations_research.RoutingSearchParameters.SchedulingSolver continuous_scheduling_solver = 33;value - The continuousSchedulingSolver to set.public RoutingSearchParameters.Builder clearContinuousSchedulingSolver()
.operations_research.RoutingSearchParameters.SchedulingSolver continuous_scheduling_solver = 33;public int getMixedIntegerSchedulingSolverValue()
.operations_research.RoutingSearchParameters.SchedulingSolver mixed_integer_scheduling_solver = 34;getMixedIntegerSchedulingSolverValue in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setMixedIntegerSchedulingSolverValue(int value)
.operations_research.RoutingSearchParameters.SchedulingSolver mixed_integer_scheduling_solver = 34;value - The enum numeric value on the wire for mixedIntegerSchedulingSolver to set.public RoutingSearchParameters.SchedulingSolver getMixedIntegerSchedulingSolver()
.operations_research.RoutingSearchParameters.SchedulingSolver mixed_integer_scheduling_solver = 34;getMixedIntegerSchedulingSolver in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setMixedIntegerSchedulingSolver(RoutingSearchParameters.SchedulingSolver value)
.operations_research.RoutingSearchParameters.SchedulingSolver mixed_integer_scheduling_solver = 34;value - The mixedIntegerSchedulingSolver to set.public RoutingSearchParameters.Builder clearMixedIntegerSchedulingSolver()
.operations_research.RoutingSearchParameters.SchedulingSolver mixed_integer_scheduling_solver = 34;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;hasDisableSchedulingBewareThisMayDegradePerformance in interface RoutingSearchParametersOrBuilderpublic 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;getDisableSchedulingBewareThisMayDegradePerformance in interface RoutingSearchParametersOrBuilderpublic 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;value - The disableSchedulingBewareThisMayDegradePerformance to set.public RoutingSearchParameters.Builder 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;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;getOptimizationStep in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setOptimizationStep(double value)
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;value - The optimizationStep to set.public RoutingSearchParameters.Builder 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;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;getNumberOfSolutionsToCollect in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setNumberOfSolutionsToCollect(int value)
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;value - The numberOfSolutionsToCollect to set.public RoutingSearchParameters.Builder 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;public long getSolutionLimit()
-- Search limits -- Limit to the number of solutions generated during the search. 0 means "unspecified".
int64 solution_limit = 8;getSolutionLimit in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setSolutionLimit(long value)
-- Search limits -- Limit to the number of solutions generated during the search. 0 means "unspecified".
int64 solution_limit = 8;value - The solutionLimit to set.public RoutingSearchParameters.Builder clearSolutionLimit()
-- Search limits -- Limit to the number of solutions generated during the search. 0 means "unspecified".
int64 solution_limit = 8;public boolean hasTimeLimit()
Limit to the time spent in the search.
.google.protobuf.Duration time_limit = 9;hasTimeLimit in interface RoutingSearchParametersOrBuilderpublic com.google.protobuf.Duration getTimeLimit()
Limit to the time spent in the search.
.google.protobuf.Duration time_limit = 9;getTimeLimit in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setTimeLimit(com.google.protobuf.Duration value)
Limit to the time spent in the search.
.google.protobuf.Duration time_limit = 9;public RoutingSearchParameters.Builder setTimeLimit(com.google.protobuf.Duration.Builder builderForValue)
Limit to the time spent in the search.
.google.protobuf.Duration time_limit = 9;public RoutingSearchParameters.Builder mergeTimeLimit(com.google.protobuf.Duration value)
Limit to the time spent in the search.
.google.protobuf.Duration time_limit = 9;public RoutingSearchParameters.Builder clearTimeLimit()
Limit to the time spent in the search.
.google.protobuf.Duration time_limit = 9;public com.google.protobuf.Duration.Builder getTimeLimitBuilder()
Limit to the time spent in the search.
.google.protobuf.Duration time_limit = 9;public com.google.protobuf.DurationOrBuilder getTimeLimitOrBuilder()
Limit to the time spent in the search.
.google.protobuf.Duration time_limit = 9;getTimeLimitOrBuilder in interface RoutingSearchParametersOrBuilderpublic boolean hasLnsTimeLimit()
Limit to the time spent in the completion search for each local search neighbor.
.google.protobuf.Duration lns_time_limit = 10;hasLnsTimeLimit in interface RoutingSearchParametersOrBuilderpublic 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;getLnsTimeLimit in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setLnsTimeLimit(com.google.protobuf.Duration value)
Limit to the time spent in the completion search for each local search neighbor.
.google.protobuf.Duration lns_time_limit = 10;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;public RoutingSearchParameters.Builder mergeLnsTimeLimit(com.google.protobuf.Duration value)
Limit to the time spent in the completion search for each local search neighbor.
.google.protobuf.Duration lns_time_limit = 10;public RoutingSearchParameters.Builder clearLnsTimeLimit()
Limit to the time spent in the completion search for each local search neighbor.
.google.protobuf.Duration lns_time_limit = 10;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;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;getLnsTimeLimitOrBuilder in interface RoutingSearchParametersOrBuilderpublic 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;getSecondaryLsTimeLimitRatio in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder 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. 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;value - The secondaryLsTimeLimitRatio to set.public RoutingSearchParameters.Builder 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;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;hasImprovementLimitParameters in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.ImprovementSearchLimitParameters getImprovementLimitParameters()
The improvement search limit is added to the solver if the following parameters are set.
.operations_research.RoutingSearchParameters.ImprovementSearchLimitParameters improvement_limit_parameters = 37;getImprovementLimitParameters in interface RoutingSearchParametersOrBuilderpublic 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;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;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;public RoutingSearchParameters.Builder clearImprovementLimitParameters()
The improvement search limit is added to the solver if the following parameters are set.
.operations_research.RoutingSearchParameters.ImprovementSearchLimitParameters improvement_limit_parameters = 37;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;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;getImprovementLimitParametersOrBuilder in interface RoutingSearchParametersOrBuilderpublic 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;getUseFullPropagation in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setUseFullPropagation(boolean value)
--- 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;value - The useFullPropagation to set.public RoutingSearchParameters.Builder 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;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;getLogSearch in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setLogSearch(boolean value)
--- 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;value - The logSearch to set.public RoutingSearchParameters.Builder 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;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;getLogCostScalingFactor in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder 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)
double log_cost_scaling_factor = 22;value - The logCostScalingFactor to set.public RoutingSearchParameters.Builder 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;public double getLogCostOffset()
double log_cost_offset = 29;getLogCostOffset in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setLogCostOffset(double value)
double log_cost_offset = 29;value - The logCostOffset to set.public RoutingSearchParameters.Builder clearLogCostOffset()
double log_cost_offset = 29;public java.lang.String 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;getLogTag in interface RoutingSearchParametersOrBuilderpublic 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;getLogTagBytes in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setLogTag(java.lang.String value)
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;value - The logTag to set.public RoutingSearchParameters.Builder 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;public RoutingSearchParameters.Builder setLogTagBytes(com.google.protobuf.ByteString value)
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;value - The bytes for logTag to set.public boolean getUseIteratedLocalSearch()
Whether the solver should use an Iterated Local Search approach to solve the problem.
bool use_iterated_local_search = 58;getUseIteratedLocalSearch in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setUseIteratedLocalSearch(boolean value)
Whether the solver should use an Iterated Local Search approach to solve the problem.
bool use_iterated_local_search = 58;value - The useIteratedLocalSearch to set.public RoutingSearchParameters.Builder clearUseIteratedLocalSearch()
Whether the solver should use an Iterated Local Search approach to solve the problem.
bool use_iterated_local_search = 58;public boolean hasIteratedLocalSearchParameters()
Iterated Local Search parameters.
.operations_research.IteratedLocalSearchParameters iterated_local_search_parameters = 60;hasIteratedLocalSearchParameters in interface RoutingSearchParametersOrBuilderpublic RoutingIls.IteratedLocalSearchParameters getIteratedLocalSearchParameters()
Iterated Local Search parameters.
.operations_research.IteratedLocalSearchParameters iterated_local_search_parameters = 60;getIteratedLocalSearchParameters in interface RoutingSearchParametersOrBuilderpublic RoutingSearchParameters.Builder setIteratedLocalSearchParameters(RoutingIls.IteratedLocalSearchParameters value)
Iterated Local Search parameters.
.operations_research.IteratedLocalSearchParameters iterated_local_search_parameters = 60;public RoutingSearchParameters.Builder setIteratedLocalSearchParameters(RoutingIls.IteratedLocalSearchParameters.Builder builderForValue)
Iterated Local Search parameters.
.operations_research.IteratedLocalSearchParameters iterated_local_search_parameters = 60;public RoutingSearchParameters.Builder mergeIteratedLocalSearchParameters(RoutingIls.IteratedLocalSearchParameters value)
Iterated Local Search parameters.
.operations_research.IteratedLocalSearchParameters iterated_local_search_parameters = 60;public RoutingSearchParameters.Builder clearIteratedLocalSearchParameters()
Iterated Local Search parameters.
.operations_research.IteratedLocalSearchParameters iterated_local_search_parameters = 60;public RoutingIls.IteratedLocalSearchParameters.Builder getIteratedLocalSearchParametersBuilder()
Iterated Local Search parameters.
.operations_research.IteratedLocalSearchParameters iterated_local_search_parameters = 60;public RoutingIls.IteratedLocalSearchParametersOrBuilder getIteratedLocalSearchParametersOrBuilder()
Iterated Local Search parameters.
.operations_research.IteratedLocalSearchParameters iterated_local_search_parameters = 60;getIteratedLocalSearchParametersOrBuilder in interface RoutingSearchParametersOrBuilderCopyright © 2024. All rights reserved.