Skip to content

Commit

Permalink
add missing method
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir committed Oct 11, 2023
1 parent fc64441 commit 2760ce4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/cpp/multisolver_interface/SolverClp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,14 @@ std::vector<std::string> SolverClp::get_col_names() {
----------------------------------
*************************************************************************************************/

void SolverClp::del_rows(int first, int last) {
std::vector<int> mindex(last - first + 1);
for (int i = 0; i < last - first + 1; i++) {
mindex[i] = first + i;
}
_clp.deleteRows(last - first + 1, mindex.data());
}

void SolverClp::add_rows(int newrows, int newnz, const char *qrtype,
const double *rhs, const double *range,
const int *mstart, const int *mclind,
Expand Down

0 comments on commit 2760ce4

Please sign in to comment.