ERGO-Code / HiGHS

Linear optimization software
MIT License
992 stars 184 forks source link

WARNING: LP matrix packed vector contains 2 |values| in [0, 0] less than or equal to 1e-09: ignore #1899

Closed few closed 2 months ago

few commented 2 months ago

With the latest branch (not with 1.7.2), I get lots of the following warnings: WARNING: LP matrix packed vector contains 2 |values| in [0, 0] less than or equal to 1e-09: ignore

I guess that's because I'm adding constraints (using highspy) with a coefficient of 0 for some variables. There is some code that computes these coefficients and some end up as 0. Is that a problem? Is there a way to silence these warnings?

jajhall commented 2 months ago

If my memory serves me correctly, this was added because someone wanted to know the reason why they were getting a warning back from methods like addRow.

Since there's no loss of data if explicit zeros are ignored, I could suppress the warning and return HighsStatus::kOk in this case.

jajhall commented 2 months ago

Closed by #1919