[SCIP] debugsol mechanism using PyScipOpt

João Dionísio joao.goncalves.dionisio at gmail.com
Fri Jun 27 17:37:54 CEST 2025


Dear Benjamin,

Thank you for your message. It turns out that more recent PIPs stopped
supporting the --install-option flag, and the workaround you used is
perfectly valid. We need to update the documentation.

Regarding using PySCIPOpt with SCIP in debug mode, the original intention
was to catch failing assertions, to make debugging the Python code easier.
To debug what is happening inside SCIP is a fair bit more complex, from
what I know. I've never done it, but I can try looking into it further, if
this is what you're after.

To use a debug solution in SCIP, I believe you first need to call
SCIPenableDebugSol, which hasn't been interfaced to PySCIPOpt yet. Here you
can find an open PR adding it:
https://github.com/scipopt/PySCIPOpt/pull/1013. You can try compiling the
branch locally and see if it solves your problem. It's not tested yet,
though.

Please let me know if this answers your questions. Given that you say that
you managed to use debugsol from the SCIP binary, I may be misunderstanding
things.

Best,
João Dionísio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.zib.de/pipermail/scip/attachments/20250627/cdf90ddd/attachment.html>


More information about the Scip mailing list