diff --git a/src/highs_bindings.cpp b/src/highs_bindings.cpp index 08f13fd341..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) @@ -1042,9 +1052,6 @@ PYBIND11_MODULE(_core, m) { .def("getRowName", &highs_getRowName) .def("getRowByName", &highs_getRowByName) - // .def("getColIntegrality", &Highs::getColIntegrality) - // .def("getColsIntegrality", &Highs::getColsIntegrality) - .def("writeModel", &Highs::writeModel) .def("writePresolvedModel", &Highs::writePresolvedModel) .def("crossover", &Highs::crossover)