diff --git a/src/storm/solver/GlpkLpSolver.cpp b/src/storm/solver/GlpkLpSolver.cpp index 68a34e57a..170d55a78 100644 --- a/src/storm/solver/GlpkLpSolver.cpp +++ b/src/storm/solver/GlpkLpSolver.cpp @@ -430,7 +430,9 @@ namespace storm { IncrementalLevel const& lvl = incrementalData.back(); // Since glpk uses 1-based indexing, we need to prepend an additional index std::vector indicesToBeRemoved = storm::utility::vector::buildVectorForRange(lvl.firstConstraintIndex - 1, glp_get_num_rows(this->lp) + 1); - glp_del_rows(this->lp, indicesToBeRemoved.size() - 1, indicesToBeRemoved.data()); + if (indicesToBeRemoved.size() > 1) { + glp_del_rows(this->lp, indicesToBeRemoved.size() - 1, indicesToBeRemoved.data()); + } indicesToBeRemoved.clear(); if (!lvl.variables.empty()) {