diff --git a/src/highs_bindings.cpp b/src/highs_bindings.cpp index 575968b997..f2543ba1f5 100644 --- a/src/highs_bindings.cpp +++ b/src/highs_bindings.cpp @@ -537,6 +537,14 @@ highs_getColsEntries(Highs* h, HighsInt num_set_entries, py::cast(value)); } +std::tuple +highs_getColIntegrality(Highs* h, HighsInt col) { + HighsInt col_ = static_cast(col); + HighsVarType integrality; + HighsStatus status = h->getColIntegrality(col_, integrality); + return std::make_tuple(status, integrality); +} + std::tuple, dense_array_t, HighsInt> highs_getRows(Highs* h, HighsInt num_set_entries, @@ -1029,11 +1037,13 @@ PYBIND11_MODULE(_core, m) { .def("getCol", &highs_getCol) .def("getColEntries", &highs_getColEntries) + .def("getColIntegrality", &highs_getColIntegrality) .def("getRow", &highs_getRow) .def("getRowEntries", &highs_getRowEntries) .def("getCols", &highs_getCols) .def("getColsEntries", &highs_getColsEntries) + .def("getRows", &highs_getRows) .def("getRowsEntries", &highs_getRowsEntries)