dirkschumacher / rcbc

COIN-OR branch and cut (CBC) bindings for R
https://dirkschumacher.github.io/rcbc/
Other
20 stars 5 forks source link

Added a reproducible example for Illegal index c++ error #21

Closed byapparov closed 6 years ago

byapparov commented 7 years ago

This is an error investigation request, not intended for merge.

To see the symptoms on Mac:

To see symptoms on Debian:

You should see error:

Illegal index 633 in OsiClpSolverInterface::setInteger Error in cpp_cbc_solve(obj = obj, isMaximization = max, rowIndices = mat@i, : c++ exception (unknown reason) Calls: cbc_solve -> cpp_cbc_solve -> .Call Execution halted

UPD: I think I have managed to solve the issue by setting volume to very small values 1e-10 where it is zero.