| 42 | namespace python { |
| 43 | |
| 44 | void Solver(py::module& m) |
| 45 | { |
| 46 | ::py::class_<dart::optimizer::Solver::Properties>(m, "SolverProperties") |
| 47 | .def(::py::init<>()) |
| 48 | .def( |
| 49 | ::py::init<std::shared_ptr<dart::optimizer::Problem>>(), |
| 50 | ::py::arg("problem")) |
| 51 | .def( |
| 52 | ::py::init<std::shared_ptr<dart::optimizer::Problem>, double>(), |
| 53 | ::py::arg("problem"), |
| 54 | ::py::arg("tolerance")) |
| 55 | .def( |
| 56 | ::py::init< |
| 57 | std::shared_ptr<dart::optimizer::Problem>, |
| 58 | double, |
| 59 | std::size_t>(), |
| 60 | ::py::arg("problem"), |
| 61 | ::py::arg("tolerance"), |
| 62 | ::py::arg("numMaxIterations")) |
| 63 | .def( |
| 64 | ::py::init< |
| 65 | std::shared_ptr<dart::optimizer::Problem>, |
| 66 | double, |
| 67 | std::size_t, |
| 68 | std::size_t>(), |
| 69 | ::py::arg("problem"), |
| 70 | ::py::arg("tolerance"), |
| 71 | ::py::arg("numMaxIterations"), |
| 72 | ::py::arg("iterationsPerPrint")) |
| 73 | .def( |
| 74 | ::py::init< |
| 75 | std::shared_ptr<dart::optimizer::Problem>, |
| 76 | double, |
| 77 | std::size_t, |
| 78 | std::size_t, |
| 79 | std::ostream*>(), |
| 80 | ::py::arg("problem"), |
| 81 | ::py::arg("tolerance"), |
| 82 | ::py::arg("numMaxIterations"), |
| 83 | ::py::arg("iterationsPerPrint"), |
| 84 | ::py::arg("ostream")) |
| 85 | .def( |
| 86 | ::py::init< |
| 87 | std::shared_ptr<dart::optimizer::Problem>, |
| 88 | double, |
| 89 | std::size_t, |
| 90 | std::size_t, |
| 91 | std::ostream*, |
| 92 | bool>(), |
| 93 | ::py::arg("problem"), |
| 94 | ::py::arg("tolerance"), |
| 95 | ::py::arg("numMaxIterations"), |
| 96 | ::py::arg("iterationsPerPrint"), |
| 97 | ::py::arg("ostream"), |
| 98 | ::py::arg("printFinalResult")) |
| 99 | .def( |
| 100 | ::py::init< |
| 101 | std::shared_ptr<dart::optimizer::Problem>, |