@@ -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" ,
@@ -89,9 +88,6 @@ int main(int argc, char** argv) {
8988 std::optional<unsigned > debug_nb_searches;
9089
9190 options.add_options (" debug_group" )
92- (" e,heuristic-param" ,
93- " Heuristic parameter" ,
94- cxxopts::value<std::vector<std::string>>(heuristic_params_arg))
9591 (" f,apply-tsp-fix" ,
9692 " apply experimental TSPFix local search operator" ,
9793 cxxopts::value<bool >(cl_args.apply_TSPFix )->default_value (" false" ))
@@ -188,21 +184,6 @@ int main(int argc, char** argv) {
188184 cl_args.router = vroom::ROUTER::OSRM;
189185 }
190186
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-
206187 // Get input problem from first input file, then positional arg,
207188 // then stdin.
208189 if (!cl_args.input_file .empty ()) {
@@ -238,8 +219,7 @@ int main(int argc, char** argv) {
238219 : problem_instance.solve (cl_args.nb_searches ,
239220 cl_args.depth ,
240221 cl_args.nb_threads ,
241- cl_args.timeout ,
242- cl_args.h_params );
222+ cl_args.timeout );
243223
244224 // Write solution.
245225 vroom::io::write_to_json (sol,
0 commit comments