Skip to content

Commit a0bacd9

Browse files
committed
Add IR iters to python interface solution
1 parent 5ee9108 commit a0bacd9

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ include(FetchContent)
2323
FetchContent_Declare(
2424
qoco
2525
GIT_REPOSITORY https://github.com/qoco-org/qoco.git
26-
GIT_TAG 6dd96bf4cd231518c781e7c2bf296fa55b464610
26+
GIT_TAG 129e942a566f5cc8c4aea9644d91205f4ef150a6
2727
)
2828

2929
list(POP_BACK CMAKE_MESSAGE_INDENT)

src/bindings.cpp.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,8 @@ PYBIND11_MODULE(@QOCO_EXT_MODULE_NAME@, m)
362362
.def_property_readonly("z", &PyQOCOSolution::get_z)
363363
.def_property_readonly("iters", [](const PyQOCOSolution &sol)
364364
{ return sol._solution.iters; })
365+
.def_property_readonly("ir_iters", [](const PyQOCOSolution &sol)
366+
{ return sol._solution.ir_iters; })
365367
.def_property_readonly("setup_time_sec", [](const PyQOCOSolution &sol)
366368
{ return sol._solution.setup_time_sec; })
367369
.def_property_readonly("solve_time_sec", [](const PyQOCOSolution &sol)

src/qoco/interface.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ def solve(self):
237237
y=self._solver.solution.y,
238238
z=self._solver.solution.z,
239239
iters=self._solver.solution.iters,
240+
ir_iters=self._solver.solution.ir_iters,
240241
setup_time_sec=self._solver.solution.setup_time_sec,
241242
solve_time_sec=self._solver.solution.solve_time_sec,
242243
obj=self._solver.solution.obj,

0 commit comments

Comments
 (0)