Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Classes | |
class | Builder |
class | ImprovementSearchLimitParameters |
interface | ImprovementSearchLimitParametersOrBuilder |
class | LocalSearchNeighborhoodOperators |
interface | LocalSearchNeighborhoodOperatorsOrBuilder |
enum | PairInsertionStrategy |
enum | SchedulingSolver |
Static Public Member Functions | |
static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
static com.google.ortools.constraintsolver.RoutingSearchParameters | parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.constraintsolver.RoutingSearchParameters | parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.constraintsolver.RoutingSearchParameters | parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.constraintsolver.RoutingSearchParameters | parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.constraintsolver.RoutingSearchParameters | parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.constraintsolver.RoutingSearchParameters | parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.constraintsolver.RoutingSearchParameters | parseFrom (java.io.InputStream input) throws java.io.IOException |
static com.google.ortools.constraintsolver.RoutingSearchParameters | parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static com.google.ortools.constraintsolver.RoutingSearchParameters | parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException |
static com.google.ortools.constraintsolver.RoutingSearchParameters | parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static com.google.ortools.constraintsolver.RoutingSearchParameters | parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException |
static com.google.ortools.constraintsolver.RoutingSearchParameters | parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static Builder | newBuilder () |
static Builder | newBuilder (com.google.ortools.constraintsolver.RoutingSearchParameters prototype) |
static com.google.ortools.constraintsolver.RoutingSearchParameters | getDefaultInstance () |
static com.google.protobuf.Parser< RoutingSearchParameters > | parser () |
Protected Member Functions | |
com.google.protobuf.GeneratedMessage.FieldAccessorTable | internalGetFieldAccessorTable () |
Builder | newBuilderForType (com.google.protobuf.GeneratedMessage.BuilderParent parent) |
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: 61
Protobuf type operations_research.RoutingSearchParameters
Definition at line 20 of file RoutingSearchParameters.java.
boolean com.google.ortools.constraintsolver.RoutingSearchParameters.equals | ( | final java.lang.Object | obj | ) |
Definition at line 9443 of file RoutingSearchParameters.java.
boolean com.google.ortools.constraintsolver.RoutingSearchParameters.getCheapestInsertionAddUnperformedEntries | ( | ) |
Whether or not to consider entries making the nodes/pairs unperformed in the GlobalCheapestInsertion heuristic.
bool cheapest_insertion_add_unperformed_entries = 40;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8100 of file RoutingSearchParameters.java.
double com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 7999 of file RoutingSearchParameters.java.
int com.google.ortools.constraintsolver.RoutingSearchParameters.getCheapestInsertionFirstSolutionMinNeighbors | ( | ) |
int32 cheapest_insertion_first_solution_min_neighbors = 44;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8039 of file RoutingSearchParameters.java.
double com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8028 of file RoutingSearchParameters.java.
boolean com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8084 of file RoutingSearchParameters.java.
int com.google.ortools.constraintsolver.RoutingSearchParameters.getCheapestInsertionLsOperatorMinNeighbors | ( | ) |
int32 cheapest_insertion_ls_operator_min_neighbors = 45;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8068 of file RoutingSearchParameters.java.
double com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8057 of file RoutingSearchParameters.java.
boolean com.google.ortools.constraintsolver.RoutingSearchParameters.getChristofidesUseMinimumMatching | ( | ) |
If true use minimum matching instead of minimal matching in the Christofides algorithm.
bool christofides_use_minimum_matching = 30;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8172 of file RoutingSearchParameters.java.
com.google.ortools.constraintsolver.RoutingSearchParameters.SchedulingSolver com.google.ortools.constraintsolver.RoutingSearchParameters.getContinuousSchedulingSolver | ( | ) |
.operations_research.RoutingSearchParameters.SchedulingSolver continuous_scheduling_solver = 33;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8614 of file RoutingSearchParameters.java.
int com.google.ortools.constraintsolver.RoutingSearchParameters.getContinuousSchedulingSolverValue | ( | ) |
.operations_research.RoutingSearchParameters.SchedulingSolver continuous_scheduling_solver = 33;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8607 of file RoutingSearchParameters.java.
|
static |
Definition at line 14358 of file RoutingSearchParameters.java.
com.google.ortools.constraintsolver.RoutingSearchParameters com.google.ortools.constraintsolver.RoutingSearchParameters.getDefaultInstanceForType | ( | ) |
Definition at line 14394 of file RoutingSearchParameters.java.
|
static |
Definition at line 52 of file RoutingSearchParameters.java.
boolean com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8662 of file RoutingSearchParameters.java.
int com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8597 of file RoutingSearchParameters.java.
int com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8193 of file RoutingSearchParameters.java.
com.google.ortools.constraintsolver.FirstSolutionStrategy.Value com.google.ortools.constraintsolver.RoutingSearchParameters.getFirstSolutionStrategy | ( | ) |
First solution strategies, used as starting point of local search.
.operations_research.FirstSolutionStrategy.Value first_solution_strategy = 1;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 7876 of file RoutingSearchParameters.java.
int com.google.ortools.constraintsolver.RoutingSearchParameters.getFirstSolutionStrategyValue | ( | ) |
First solution strategies, used as starting point of local search.
.operations_research.FirstSolutionStrategy.Value first_solution_strategy = 1;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 7865 of file RoutingSearchParameters.java.
double com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8396 of file RoutingSearchParameters.java.
boolean com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8412 of file RoutingSearchParameters.java.
int com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8352 of file RoutingSearchParameters.java.
int com.google.ortools.constraintsolver.RoutingSearchParameters.getHeuristicExpensiveChainLnsNumArcsToConsider | ( | ) |
Number of expensive arcs to consider cutting in the FilteredHeuristicExpensiveChainLNSOperator operator.
int32 heuristic_expensive_chain_lns_num_arcs_to_consider = 32;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8336 of file RoutingSearchParameters.java.
com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParameters com.google.ortools.constraintsolver.RoutingSearchParameters.getImprovementLimitParameters | ( | ) |
The improvement search limit is added to the solver if the following parameters are set.
.operations_research.RoutingSearchParameters.ImprovementSearchLimitParameters improvement_limit_parameters = 37;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8840 of file RoutingSearchParameters.java.
com.google.ortools.constraintsolver.RoutingSearchParameters.ImprovementSearchLimitParametersOrBuilder com.google.ortools.constraintsolver.RoutingSearchParameters.getImprovementLimitParametersOrBuilder | ( | ) |
The improvement search limit is added to the solver if the following parameters are set.
.operations_research.RoutingSearchParameters.ImprovementSearchLimitParameters improvement_limit_parameters = 37;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8852 of file RoutingSearchParameters.java.
operations_research.RoutingIls.IteratedLocalSearchParameters com.google.ortools.constraintsolver.RoutingSearchParameters.getIteratedLocalSearchParameters | ( | ) |
Iterated Local Search parameters.
.operations_research.IteratedLocalSearchParameters iterated_local_search_parameters = 60;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 9022 of file RoutingSearchParameters.java.
operations_research.RoutingIls.IteratedLocalSearchParametersOrBuilder com.google.ortools.constraintsolver.RoutingSearchParameters.getIteratedLocalSearchParametersOrBuilder | ( | ) |
Iterated Local Search parameters.
.operations_research.IteratedLocalSearchParameters iterated_local_search_parameters = 60;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 9033 of file RoutingSearchParameters.java.
com.google.protobuf.Duration com.google.ortools.constraintsolver.RoutingSearchParameters.getLnsTimeLimit | ( | ) |
Limit to the time spent in the completion search for each local search neighbor.
.google.protobuf.Duration lns_time_limit = 10;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8779 of file RoutingSearchParameters.java.
com.google.protobuf.DurationOrBuilder com.google.ortools.constraintsolver.RoutingSearchParameters.getLnsTimeLimitOrBuilder | ( | ) |
Limit to the time spent in the completion search for each local search neighbor.
.google.protobuf.Duration lns_time_limit = 10;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8791 of file RoutingSearchParameters.java.
com.google.ortools.constraintsolver.RoutingSearchParameters.PairInsertionStrategy com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8155 of file RoutingSearchParameters.java.
int com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8143 of file RoutingSearchParameters.java.
com.google.ortools.constraintsolver.RoutingSearchParameters.PairInsertionStrategy com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8127 of file RoutingSearchParameters.java.
int com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8115 of file RoutingSearchParameters.java.
com.google.ortools.constraintsolver.LocalSearchMetaheuristic.Value com.google.ortools.constraintsolver.RoutingSearchParameters.getLocalSearchMetaheuristic | ( | ) |
Local search metaheuristics used to guide the search.
.operations_research.LocalSearchMetaheuristic.Value local_search_metaheuristic = 4;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8377 of file RoutingSearchParameters.java.
int com.google.ortools.constraintsolver.RoutingSearchParameters.getLocalSearchMetaheuristicValue | ( | ) |
Local search metaheuristics used to guide the search.
.operations_research.LocalSearchMetaheuristic.Value local_search_metaheuristic = 4;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8366 of file RoutingSearchParameters.java.
com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperators com.google.ortools.constraintsolver.RoutingSearchParameters.getLocalSearchOperators | ( | ) |
.operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8212 of file RoutingSearchParameters.java.
com.google.ortools.constraintsolver.RoutingSearchParameters.LocalSearchNeighborhoodOperatorsOrBuilder com.google.ortools.constraintsolver.RoutingSearchParameters.getLocalSearchOperatorsOrBuilder | ( | ) |
.operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8219 of file RoutingSearchParameters.java.
double com.google.ortools.constraintsolver.RoutingSearchParameters.getLogCostOffset | ( | ) |
double log_cost_offset = 29;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8930 of file RoutingSearchParameters.java.
double com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8919 of file RoutingSearchParameters.java.
boolean com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8903 of file RoutingSearchParameters.java.
java.lang.String com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8947 of file RoutingSearchParameters.java.
com.google.protobuf.ByteString com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8970 of file RoutingSearchParameters.java.
int com.google.ortools.constraintsolver.RoutingSearchParameters.getLsOperatorMinNeighbors | ( | ) |
int32 ls_operator_min_neighbors = 54;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8247 of file RoutingSearchParameters.java.
double com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8236 of file RoutingSearchParameters.java.
com.google.ortools.constraintsolver.RoutingSearchParameters.SchedulingSolver com.google.ortools.constraintsolver.RoutingSearchParameters.getMixedIntegerSchedulingSolver | ( | ) |
.operations_research.RoutingSearchParameters.SchedulingSolver mixed_integer_scheduling_solver = 34;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8632 of file RoutingSearchParameters.java.
int com.google.ortools.constraintsolver.RoutingSearchParameters.getMixedIntegerSchedulingSolverValue | ( | ) |
.operations_research.RoutingSearchParameters.SchedulingSolver mixed_integer_scheduling_solver = 34;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8625 of file RoutingSearchParameters.java.
double com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8299 of file RoutingSearchParameters.java.
double com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8282 of file RoutingSearchParameters.java.
int com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8695 of file RoutingSearchParameters.java.
double com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8679 of file RoutingSearchParameters.java.
com.google.protobuf.Parser< RoutingSearchParameters > com.google.ortools.constraintsolver.RoutingSearchParameters.getParserForType | ( | ) |
Definition at line 14389 of file RoutingSearchParameters.java.
int com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8320 of file RoutingSearchParameters.java.
boolean com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8581 of file RoutingSearchParameters.java.
com.google.ortools.sat.SatParameters com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8553 of file RoutingSearchParameters.java.
com.google.ortools.sat.SatParametersOrBuilder com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8565 of file RoutingSearchParameters.java.
boolean com.google.ortools.constraintsolver.RoutingSearchParameters.getSavingsAddReverseArcs | ( | ) |
Add savings related to reverse arcs when finding the nearest neighbors of the nodes.
bool savings_add_reverse_arcs = 15;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 7948 of file RoutingSearchParameters.java.
double com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 7967 of file RoutingSearchParameters.java.
double com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 7932 of file RoutingSearchParameters.java.
double com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 7912 of file RoutingSearchParameters.java.
boolean com.google.ortools.constraintsolver.RoutingSearchParameters.getSavingsParallelRoutes | ( | ) |
When true, the routes are built in parallel, sequentially otherwise.
bool savings_parallel_routes = 19;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 7982 of file RoutingSearchParameters.java.
double com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8811 of file RoutingSearchParameters.java.
int com.google.ortools.constraintsolver.RoutingSearchParameters.getSerializedSize | ( | ) |
Definition at line 9217 of file RoutingSearchParameters.java.
long com.google.ortools.constraintsolver.RoutingSearchParameters.getSolutionLimit | ( | ) |
-- Search limits -- Limit to the number of solutions generated during the search. 0 means "unspecified".
int64 solution_limit = 8;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8712 of file RoutingSearchParameters.java.
com.google.protobuf.Duration com.google.ortools.constraintsolver.RoutingSearchParameters.getTimeLimit | ( | ) |
Limit to the time spent in the search.
.google.protobuf.Duration time_limit = 9;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8739 of file RoutingSearchParameters.java.
com.google.protobuf.DurationOrBuilder com.google.ortools.constraintsolver.RoutingSearchParameters.getTimeLimitOrBuilder | ( | ) |
Limit to the time spent in the search.
.google.protobuf.Duration time_limit = 9;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8750 of file RoutingSearchParameters.java.
com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8459 of file RoutingSearchParameters.java.
com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8491 of file RoutingSearchParameters.java.
int com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8477 of file RoutingSearchParameters.java.
int com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8446 of file RoutingSearchParameters.java.
boolean com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8430 of file RoutingSearchParameters.java.
boolean com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8876 of file RoutingSearchParameters.java.
com.google.ortools.util.OptionalBoolean com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8523 of file RoutingSearchParameters.java.
int com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8509 of file RoutingSearchParameters.java.
boolean com.google.ortools.constraintsolver.RoutingSearchParameters.getUseIteratedLocalSearch | ( | ) |
Whether the solver should use an Iterated Local Search approach to solve the problem.
bool use_iterated_local_search = 58;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8995 of file RoutingSearchParameters.java.
boolean com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8264 of file RoutingSearchParameters.java.
boolean com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 7895 of file RoutingSearchParameters.java.
boolean com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8649 of file RoutingSearchParameters.java.
int com.google.ortools.constraintsolver.RoutingSearchParameters.hashCode | ( | ) |
Definition at line 9591 of file RoutingSearchParameters.java.
boolean com.google.ortools.constraintsolver.RoutingSearchParameters.hasImprovementLimitParameters | ( | ) |
The improvement search limit is added to the solver if the following parameters are set.
.operations_research.RoutingSearchParameters.ImprovementSearchLimitParameters improvement_limit_parameters = 37;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8827 of file RoutingSearchParameters.java.
boolean com.google.ortools.constraintsolver.RoutingSearchParameters.hasIteratedLocalSearchParameters | ( | ) |
Iterated Local Search parameters.
.operations_research.IteratedLocalSearchParameters iterated_local_search_parameters = 60;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 9010 of file RoutingSearchParameters.java.
boolean com.google.ortools.constraintsolver.RoutingSearchParameters.hasLnsTimeLimit | ( | ) |
Limit to the time spent in the completion search for each local search neighbor.
.google.protobuf.Duration lns_time_limit = 10;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8766 of file RoutingSearchParameters.java.
boolean com.google.ortools.constraintsolver.RoutingSearchParameters.hasLocalSearchOperators | ( | ) |
.operations_research.RoutingSearchParameters.LocalSearchNeighborhoodOperators local_search_operators = 3;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8204 of file RoutingSearchParameters.java.
boolean com.google.ortools.constraintsolver.RoutingSearchParameters.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;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8540 of file RoutingSearchParameters.java.
boolean com.google.ortools.constraintsolver.RoutingSearchParameters.hasTimeLimit | ( | ) |
Limit to the time spent in the search.
.google.protobuf.Duration time_limit = 9;
Implements com.google.ortools.constraintsolver.RoutingSearchParametersOrBuilder.
Definition at line 8727 of file RoutingSearchParameters.java.
|
protected |
Definition at line 58 of file RoutingSearchParameters.java.
final boolean com.google.ortools.constraintsolver.RoutingSearchParameters.isInitialized | ( | ) |
Definition at line 9039 of file RoutingSearchParameters.java.
|
static |
Definition at line 9827 of file RoutingSearchParameters.java.
|
static |
Definition at line 9830 of file RoutingSearchParameters.java.
Builder com.google.ortools.constraintsolver.RoutingSearchParameters.newBuilderForType | ( | ) |
Definition at line 9826 of file RoutingSearchParameters.java.
|
protected |
Definition at line 9840 of file RoutingSearchParameters.java.
|
static |
Definition at line 9798 of file RoutingSearchParameters.java.
|
static |
Definition at line 9804 of file RoutingSearchParameters.java.
|
static |
Definition at line 9775 of file RoutingSearchParameters.java.
|
static |
Definition at line 9779 of file RoutingSearchParameters.java.
|
static |
Definition at line 9764 of file RoutingSearchParameters.java.
|
static |
Definition at line 9769 of file RoutingSearchParameters.java.
|
static |
Definition at line 9811 of file RoutingSearchParameters.java.
|
static |
Definition at line 9817 of file RoutingSearchParameters.java.
|
static |
Definition at line 9785 of file RoutingSearchParameters.java.
|
static |
Definition at line 9790 of file RoutingSearchParameters.java.
|
static |
Definition at line 9753 of file RoutingSearchParameters.java.
|
static |
Definition at line 9758 of file RoutingSearchParameters.java.
|
static |
Definition at line 14384 of file RoutingSearchParameters.java.
Builder com.google.ortools.constraintsolver.RoutingSearchParameters.toBuilder | ( | ) |
Definition at line 9834 of file RoutingSearchParameters.java.
void com.google.ortools.constraintsolver.RoutingSearchParameters.writeTo | ( | com.google.protobuf.CodedOutputStream | output | ) | throws java.io.IOException |
Definition at line 9049 of file RoutingSearchParameters.java.
|
static |
Definition at line 8088 of file RoutingSearchParameters.java.
|
static |
Definition at line 7986 of file RoutingSearchParameters.java.
|
static |
Definition at line 8032 of file RoutingSearchParameters.java.
|
static |
Definition at line 8003 of file RoutingSearchParameters.java.
|
static |
Definition at line 8072 of file RoutingSearchParameters.java.
|
static |
Definition at line 8061 of file RoutingSearchParameters.java.
|
static |
Definition at line 8043 of file RoutingSearchParameters.java.
|
static |
Definition at line 8160 of file RoutingSearchParameters.java.
|
static |
Definition at line 8601 of file RoutingSearchParameters.java.
|
static |
Definition at line 8637 of file RoutingSearchParameters.java.
|
static |
Definition at line 8585 of file RoutingSearchParameters.java.
|
static |
Definition at line 8176 of file RoutingSearchParameters.java.
|
static |
Definition at line 7855 of file RoutingSearchParameters.java.
|
static |
Definition at line 8382 of file RoutingSearchParameters.java.
|
static |
Definition at line 8400 of file RoutingSearchParameters.java.
|
static |
Definition at line 8340 of file RoutingSearchParameters.java.
|
static |
Definition at line 8324 of file RoutingSearchParameters.java.
|
static |
Definition at line 8815 of file RoutingSearchParameters.java.
|
static |
Definition at line 8999 of file RoutingSearchParameters.java.
|
static |
Definition at line 8754 of file RoutingSearchParameters.java.
|
static |
Definition at line 8132 of file RoutingSearchParameters.java.
|
static |
Definition at line 8104 of file RoutingSearchParameters.java.
|
static |
Definition at line 8356 of file RoutingSearchParameters.java.
|
static |
Definition at line 8197 of file RoutingSearchParameters.java.
|
static |
Definition at line 8923 of file RoutingSearchParameters.java.
|
static |
Definition at line 8907 of file RoutingSearchParameters.java.
|
static |
Definition at line 8880 of file RoutingSearchParameters.java.
|
static |
Definition at line 8934 of file RoutingSearchParameters.java.
|
static |
Definition at line 8240 of file RoutingSearchParameters.java.
|
static |
Definition at line 8223 of file RoutingSearchParameters.java.
|
static |
Definition at line 8619 of file RoutingSearchParameters.java.
|
static |
Definition at line 8286 of file RoutingSearchParameters.java.
|
static |
Definition at line 8268 of file RoutingSearchParameters.java.
|
static |
Definition at line 8683 of file RoutingSearchParameters.java.
|
static |
Definition at line 8666 of file RoutingSearchParameters.java.
|
static |
Definition at line 8303 of file RoutingSearchParameters.java.
|
static |
Definition at line 8569 of file RoutingSearchParameters.java.
|
static |
Definition at line 8528 of file RoutingSearchParameters.java.
|
static |
Definition at line 7936 of file RoutingSearchParameters.java.
|
static |
Definition at line 7952 of file RoutingSearchParameters.java.
|
static |
Definition at line 7916 of file RoutingSearchParameters.java.
|
static |
Definition at line 7899 of file RoutingSearchParameters.java.
|
static |
Definition at line 7971 of file RoutingSearchParameters.java.
|
static |
Definition at line 8795 of file RoutingSearchParameters.java.
|
static |
Definition at line 8699 of file RoutingSearchParameters.java.
|
static |
Definition at line 8716 of file RoutingSearchParameters.java.
|
static |
Definition at line 8434 of file RoutingSearchParameters.java.
|
static |
Definition at line 8464 of file RoutingSearchParameters.java.
|
static |
Definition at line 8416 of file RoutingSearchParameters.java.
|
static |
Definition at line 8856 of file RoutingSearchParameters.java.
|
static |
Definition at line 8496 of file RoutingSearchParameters.java.
|
static |
Definition at line 8983 of file RoutingSearchParameters.java.
|
static |
Definition at line 8251 of file RoutingSearchParameters.java.
|
static |
Definition at line 7881 of file RoutingSearchParameters.java.