Clp.old icon indicating copy to clipboard operation
Clp.old copied to clipboard

[TRAC] Comparison of double with integer

Open qtothec opened this issue 6 years ago • 1 comments

Moved from TRAC as part of COIN fORgery: https://projects.coin-or.org/Clp/ticket/50

In stable/1.14, in the isBinary() method of OsiClpSolverInterface?.cpp around line 2718, a comparison of bounds with 1 and 0 is made without tolerances. But since bounds are double numbers this might create problems. I have an example where a lower bound with value 1e-15 results in the method to return false.

qtothec avatar Oct 16 '18 20:10 qtothec

Test should not be changed. Should be trapped earlier in code - so for input lp it would be. Need example.

jjhforrest avatar Nov 12 '18 15:11 jjhforrest