PySCIPOpt icon indicating copy to clipboard operation
PySCIPOpt copied to clipboard

Solving terminates on missing incumbent

Open stefanvanberkum opened this issue 3 years ago • 0 comments

Hi all,

I just noticed that during solving, calling getCutLPSolCutoffDistance(cut, model.getBestSol()) causes the solving to exit silently (i.e., terminate without any warning or error), if no incumbent exists (model.getNSols() = 0). In this case, no solution is returned, and no error is thrown as well. I think throwing an error would be a good feature to avoid any confusion, so I figured I'd let you know! I am running PySCIPOpt 4.2.0 (installed via Conda as recommended) with Python 3.9.

stefanvanberkum avatar Jun 15 '22 15:06 stefanvanberkum