OR-Tools
8.0
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/constraint_solver/routing_parameters.pb.h
"
21
23
DECLARE_bool
(routing_no_lns);
24
DECLARE_bool
(routing_no_fullpathlns);
25
DECLARE_bool
(routing_no_relocate);
26
DECLARE_bool
(routing_no_relocate_neighbors);
27
DECLARE_bool
(routing_no_relocate_subtrip);
28
DECLARE_bool
(routing_no_exchange);
29
DECLARE_bool
(routing_no_exchange_subtrip);
30
DECLARE_bool
(routing_no_cross);
31
DECLARE_bool
(routing_no_2opt);
32
DECLARE_bool
(routing_no_oropt);
33
DECLARE_bool
(routing_no_make_active);
34
DECLARE_bool
(routing_no_lkh);
35
DECLARE_bool
(routing_no_relocate_expensive_chain);
36
DECLARE_bool
(routing_no_tsp);
37
DECLARE_bool
(routing_no_tsplns);
38
DECLARE_bool
(routing_use_chain_make_inactive);
39
DECLARE_bool
(routing_use_extended_swap_active);
40
42
DECLARE_bool
(routing_guided_local_search);
43
DECLARE_double
(routing_guided_local_search_lambda_coefficient);
44
DECLARE_bool
(routing_simulated_annealing);
45
DECLARE_bool
(routing_tabu_search);
46
DECLARE_bool
(routing_generic_tabu_search);
47
49
DECLARE_int64
(routing_solution_limit);
50
DECLARE_int64
(routing_time_limit);
51
DECLARE_int64
(routing_lns_time_limit);
52
54
DECLARE_string
(routing_first_solution);
55
DECLARE_bool
(routing_use_filtered_first_solutions);
56
DECLARE_double
(savings_neighbors_ratio);
57
DECLARE_bool
(savings_add_reverse_arcs);
58
DECLARE_double
(savings_arc_coefficient);
59
DECLARE_double
(cheapest_insertion_farthest_seeds_ratio);
60
DECLARE_double
(cheapest_insertion_first_solution_neighbors_ratio);
61
DECLARE_bool
(routing_dfs);
62
DECLARE_double
(routing_optimization_step);
63
DECLARE_int32
(routing_number_of_solutions_to_collect);
64
DECLARE_int32
(routing_relocate_expensive_chain_num_arcs_to_consider);
65
67
DECLARE_bool
(routing_use_light_propagation);
68
70
DECLARE_bool
(routing_cache_callbacks);
71
DECLARE_int64
(routing_max_cache_size);
72
74
DECLARE_bool
(routing_trace);
75
DECLARE_bool
(routing_profile);
76
78
DECLARE_bool
(routing_use_homogeneous_costs);
79
DECLARE_bool
(routing_gzip_compress_trail);
80
81
namespace
operations_research
{
82
84
RoutingModelParameters
BuildModelParametersFromFlags
();
85
87
// TODO(user): Make this return a StatusOr, verifying that the flags
89
RoutingSearchParameters
BuildSearchParametersFromFlags
();
90
91
}
// namespace operations_research
92
93
#endif // OR_TOOLS_CONSTRAINT_SOLVER_ROUTING_FLAGS_H_
routing_parameters.pb.h
operations_research::BuildModelParametersFromFlags
RoutingModelParameters BuildModelParametersFromFlags()
Builds routing search parameters from flags.
Definition:
routing_flags.cc:313
DECLARE_bool
DECLARE_bool(routing_no_lns)
Neighborhood activation/deactivation.
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
DECLARE_string
DECLARE_string(routing_first_solution)
Search control.
operations_research::BuildSearchParametersFromFlags
RoutingSearchParameters BuildSearchParametersFromFlags()
Builds routing search parameters from flags.
Definition:
routing_flags.cc:300
DECLARE_int64
DECLARE_int64(routing_solution_limit)
Search limits.
DECLARE_double
DECLARE_double(routing_guided_local_search_lambda_coefficient)
DECLARE_int32
DECLARE_int32(routing_number_of_solutions_to_collect)
commandlineflags.h
ortools
constraint_solver
routing_flags.h
Generated by
1.8.18