HiGHS icon indicating copy to clipboard operation
HiGHS copied to clipboard

Issue-1259 - HiGHS returns wrong solution

Open erdembanak opened this issue 1 year ago • 4 comments

Scaled the residual for numerical tolerance.

Fix #1259

https://github.com/ERGO-Code/HiGHS/issues/1259

erdembanak avatar May 28 '23 12:05 erdembanak

I have opened it since people might want to use it and it would be easier for you to control it. But why does infinity is causing a problem? I thought residual = std::max(residual, residual_rate) fallbacks to current implementation. (There might be other problems though)

erdembanak avatar May 29 '23 06:05 erdembanak

If either 'lower' or 'upper' is infinite then 'residual_range' is infinite. I don't know what 1/infinity gives with our infinity (kHighsInf). It might mean residual_rate is 0, so behaviour is unchanged, but I don't want it unguarded. I will look at this, don't worry!

jajhall avatar May 29 '23 13:05 jajhall

Under Windows, 1.0 / Highs_getInfinity(highs) returns 0.0

peno64 avatar May 29 '23 19:05 peno64

That's good to know, thanks

jajhall avatar May 30 '23 04:05 jajhall