Skip to content

Commit

Permalink
ambigous solve call fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathf committed Dec 4, 2024
1 parent ec593b0 commit 0b3940e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/bind/input/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ void init_input(py::module_ &m) {
&vroom::Input::has_homogeneous_locations)
.def("has_homogeneous_profiles", &vroom::Input::has_homogeneous_profiles)
.def("has_homogeneous_costs", &vroom::Input::has_homogeneous_costs)
.def("_solve", &vroom::Input::solve, "Solve problem.",
py::arg("exploration_level"),
py::arg("nb_threads") = 1,
py::arg("timeout") = vroom::Timeout(),
py::arg("h_param") = std::vector<vroom::HeuristicParameters>())
.def("_solve",
[](vroom::Input &self, unsigned exploration_level, unsigned nb_threads, const vroom::Timeout& timeout, const std::vector<vroom::HeuristicParameters> h_param) {
return self.solve(exploration_level, nb_threads, timeout, h_param);
})
.def("check", &vroom::Input::check);
}

0 comments on commit 0b3940e

Please sign in to comment.