OR-Tools
8.1
routing_flags.h
Go to the documentation of this file.
1
// Copyright 2010-2018 Google LLC
2
// Licensed under the Apache License, Version 2.0 (the "License");
3
// you may not use this file except in compliance with the License.
4
// You may obtain a copy of the License at
5
//
6
// http://www.apache.org/licenses/LICENSE-2.0
7
//
8
// Unless required by applicable law or agreed to in writing, software
9
// distributed under the License is distributed on an "AS IS" BASIS,
10
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
// See the License for the specific language governing permissions and
12
// limitations under the License.
13
14
#ifndef OR_TOOLS_CONSTRAINT_SOLVER_ROUTING_FLAGS_H_
15
#define OR_TOOLS_CONSTRAINT_SOLVER_ROUTING_FLAGS_H_
16
17
#include <vector>
18
19
#include "
ortools/base/commandlineflags.h
"
20
#include "
ortools/base/integral_types.h
"
21
#include "
ortools/constraint_solver/routing_parameters.pb.h
"
22
24
ABSL_DECLARE_FLAG
(
bool
, routing_no_lns);
25
ABSL_DECLARE_FLAG
(
bool
, routing_no_fullpathlns);
26
ABSL_DECLARE_FLAG
(
bool
, routing_no_relocate);
27
ABSL_DECLARE_FLAG
(
bool
, routing_no_relocate_neighbors);
28
ABSL_DECLARE_FLAG
(
bool
, routing_no_relocate_subtrip);
29
ABSL_DECLARE_FLAG
(
bool
, routing_no_exchange);
30
ABSL_DECLARE_FLAG
(
bool
, routing_no_exchange_subtrip);
31
ABSL_DECLARE_FLAG
(
bool
, routing_no_cross);
32
ABSL_DECLARE_FLAG
(
bool
, routing_no_2opt);
33
ABSL_DECLARE_FLAG
(
bool
, routing_no_oropt);
34
ABSL_DECLARE_FLAG
(
bool
, routing_no_make_active);
35
ABSL_DECLARE_FLAG
(
bool
, routing_no_lkh);
36
ABSL_DECLARE_FLAG
(
bool
, routing_no_relocate_expensive_chain);
37
ABSL_DECLARE_FLAG
(
bool
, routing_no_tsp);
38
ABSL_DECLARE_FLAG
(
bool
, routing_no_tsplns);
39
ABSL_DECLARE_FLAG
(
bool
, routing_use_chain_make_inactive);
40
ABSL_DECLARE_FLAG
(
bool
, routing_use_extended_swap_active);
41
43
ABSL_DECLARE_FLAG
(
bool
, routing_guided_local_search);
44
ABSL_DECLARE_FLAG
(
double
, routing_guided_local_search_lambda_coefficient);
45
ABSL_DECLARE_FLAG
(
bool
, routing_simulated_annealing);
46
ABSL_DECLARE_FLAG
(
bool
, routing_tabu_search);
47
ABSL_DECLARE_FLAG
(
bool
, routing_generic_tabu_search);
48
50
ABSL_DECLARE_FLAG
(
int64
, routing_solution_limit);
51
ABSL_DECLARE_FLAG
(
int64
, routing_time_limit);
52
ABSL_DECLARE_FLAG
(
int64
, routing_lns_time_limit);
53
55
ABSL_DECLARE_FLAG
(std::string, routing_first_solution);
56
ABSL_DECLARE_FLAG
(
bool
, routing_use_filtered_first_solutions);
57
ABSL_DECLARE_FLAG
(
double
, savings_neighbors_ratio);
58
ABSL_DECLARE_FLAG
(
bool
, savings_add_reverse_arcs);
59
ABSL_DECLARE_FLAG
(
double
, savings_arc_coefficient);
60
ABSL_DECLARE_FLAG
(
double
, cheapest_insertion_farthest_seeds_ratio);
61
ABSL_DECLARE_FLAG
(
double
, cheapest_insertion_first_solution_neighbors_ratio);
62
ABSL_DECLARE_FLAG
(
bool
, routing_dfs);
63
ABSL_DECLARE_FLAG
(
double
, routing_optimization_step);
64
ABSL_DECLARE_FLAG
(
int
, routing_number_of_solutions_to_collect);
65
ABSL_DECLARE_FLAG
(
int
, routing_relocate_expensive_chain_num_arcs_to_consider);
66
68
ABSL_DECLARE_FLAG
(
bool
, routing_use_light_propagation);
69
71
ABSL_DECLARE_FLAG
(
bool
, routing_cache_callbacks);
72
ABSL_DECLARE_FLAG
(
int64
, routing_max_cache_size);
73
75
ABSL_DECLARE_FLAG
(
bool
, routing_trace);
76
ABSL_DECLARE_FLAG
(
bool
, routing_profile);
77
79
ABSL_DECLARE_FLAG
(
bool
, routing_use_homogeneous_costs);
80
ABSL_DECLARE_FLAG
(
bool
, routing_gzip_compress_trail);
81
82
namespace
operations_research
{
83
85
RoutingModelParameters
BuildModelParametersFromFlags
();
86
88
// TODO(user): Make this return a StatusOr, verifying that the flags
90
RoutingSearchParameters
BuildSearchParametersFromFlags
();
91
92
}
// namespace operations_research
93
94
#endif // OR_TOOLS_CONSTRAINT_SOLVER_ROUTING_FLAGS_H_
integral_types.h
routing_parameters.pb.h
operations_research::BuildModelParametersFromFlags
RoutingModelParameters BuildModelParametersFromFlags()
Builds routing search parameters from flags.
Definition:
routing_flags.cc:326
operations_research
The vehicle routing library lets one model and solve generic vehicle routing problems ranging from th...
Definition:
dense_doubly_linked_list.h:21
int64
int64_t int64
Definition:
integral_types.h:34
operations_research::BuildSearchParametersFromFlags
RoutingSearchParameters BuildSearchParametersFromFlags()
Builds routing search parameters from flags.
Definition:
routing_flags.cc:313
ABSL_DECLARE_FLAG
ABSL_DECLARE_FLAG(bool, routing_no_lns)
Neighborhood activation/deactivation.
commandlineflags.h
ortools
constraint_solver
routing_flags.h
Generated by
1.8.20