diff --git a/CMakeLists.txt b/CMakeLists.txt index 0234c9f..52035c1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,7 +23,7 @@ include(FetchContent) FetchContent_Declare( qoco GIT_REPOSITORY https://github.com/qoco-org/qoco.git - GIT_TAG 6dd96bf4cd231518c781e7c2bf296fa55b464610 + GIT_TAG 129e942a566f5cc8c4aea9644d91205f4ef150a6 ) list(POP_BACK CMAKE_MESSAGE_INDENT) diff --git a/src/bindings.cpp.in b/src/bindings.cpp.in index cd1fc33..e9186eb 100644 --- a/src/bindings.cpp.in +++ b/src/bindings.cpp.in @@ -362,6 +362,8 @@ PYBIND11_MODULE(@QOCO_EXT_MODULE_NAME@, m) .def_property_readonly("z", &PyQOCOSolution::get_z) .def_property_readonly("iters", [](const PyQOCOSolution &sol) { return sol._solution.iters; }) + .def_property_readonly("ir_iters", [](const PyQOCOSolution &sol) + { return sol._solution.ir_iters; }) .def_property_readonly("setup_time_sec", [](const PyQOCOSolution &sol) { return sol._solution.setup_time_sec; }) .def_property_readonly("solve_time_sec", [](const PyQOCOSolution &sol) diff --git a/src/qoco/interface.py b/src/qoco/interface.py index 35f89c2..5c2f92a 100644 --- a/src/qoco/interface.py +++ b/src/qoco/interface.py @@ -237,6 +237,7 @@ def solve(self): y=self._solver.solution.y, z=self._solver.solution.z, iters=self._solver.solution.iters, + ir_iters=self._solver.solution.ir_iters, setup_time_sec=self._solver.solution.setup_time_sec, solve_time_sec=self._solver.solution.solve_time_sec, obj=self._solver.solution.obj,