From 114754d15ba7d5d089620e13e87a90b9c80a6da0 Mon Sep 17 00:00:00 2001 From: John Forrest Date: Wed, 26 Jun 2024 15:35:16 +0100 Subject: [PATCH] make modifyCoefficient a bit safer --- src/ClpModel.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ClpModel.hpp b/src/ClpModel.hpp index 6115e18e..cbc6007d 100644 --- a/src/ClpModel.hpp +++ b/src/ClpModel.hpp @@ -247,6 +247,8 @@ class CLPLIB_EXPORT ClpModel { bool keepZero = false) { matrix_->modifyCoefficient(row, column, newElement, keepZero); + // Say matrix changed + whatsChanged_ &= ~15; } /** Change row lower bounds */ void chgRowLower(const double *rowLower);