@@ -31,7 +31,6 @@ int main(int argc, char** argv) {
3131 std::string router_arg;
3232 std::string limit_arg;
3333 std::string output_file;
34- std::vector<std::string> heuristic_params_arg;
3534 unsigned exploration_level;
3635
3736 cxxopts::Options options (" vroom" ,
@@ -85,22 +84,10 @@ int main(int argc, char** argv) {
8584 cxxopts::value<std::string>(cl_args.input ));
8685
8786 // we don't want to print debug args on --help
88- std::optional<unsigned > debug_depth;
89- std::optional<unsigned > debug_nb_searches;
90-
9187 options.add_options (" debug_group" )
92- (" e,heuristic-param" ,
93- " Heuristic parameter" ,
94- cxxopts::value<std::vector<std::string>>(heuristic_params_arg))
9588 (" f,apply-tsp-fix" ,
9689 " apply experimental TSPFix local search operator" ,
97- cxxopts::value<bool >(cl_args.apply_TSPFix )->default_value (" false" ))
98- (" d,depth" ,
99- " search depth" ,
100- cxxopts::value<std::optional<unsigned >>(debug_depth))
101- (" s,nb-searches" ,
102- " number of searches to perform in parallel" ,
103- cxxopts::value<std::optional<unsigned >>(debug_nb_searches));
90+ cxxopts::value<bool >(cl_args.apply_TSPFix )->default_value (" false" ));
10491
10592 // clang-format on
10693 try {
@@ -164,12 +151,6 @@ int main(int argc, char** argv) {
164151 }
165152 exploration_level = std::min (exploration_level, vroom::MAX_EXPLORATION_LEVEL);
166153 cl_args.set_exploration_level (exploration_level);
167- if (debug_depth) {
168- cl_args.depth = debug_depth.value ();
169- }
170- if (debug_nb_searches) {
171- cl_args.nb_searches = debug_nb_searches.value ();
172- }
173154
174155 // Determine routing engine (defaults to ROUTER::OSRM).
175156 if (router_arg == " libosrm" ) {
@@ -188,21 +169,6 @@ int main(int argc, char** argv) {
188169 cl_args.router = vroom::ROUTER::OSRM;
189170 }
190171
191- try {
192- // Force heuristic parameters from the command-line, useful for
193- // debugging.
194- std::ranges::transform (heuristic_params_arg,
195- std::back_inserter (cl_args.h_params ),
196- [](const auto & str_param) {
197- return vroom::utils::str_to_heuristic_param (
198- str_param);
199- });
200- } catch (const vroom::Exception& e) {
201- std::cerr << " [Error] " << e.message << std::endl;
202- vroom::io::write_to_json (e, cl_args.output_file );
203- exit (e.error_code );
204- }
205-
206172 // Get input problem from first input file, then positional arg,
207173 // then stdin.
208174 if (!cl_args.input_file .empty ()) {
@@ -238,8 +204,7 @@ int main(int argc, char** argv) {
238204 : problem_instance.solve (cl_args.nb_searches ,
239205 cl_args.depth ,
240206 cl_args.nb_threads ,
241- cl_args.timeout ,
242- cl_args.h_params );
207+ cl_args.timeout );
243208
244209 // Write solution.
245210 vroom::io::write_to_json (sol,
0 commit comments