Skip to content

Commit 2e040ff

Browse files
committed
remove redundant variable
1 parent 5af4224 commit 2e040ff

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/pyscipopt/scip.pxi

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ cdef extern from "scip/config.h":
6464
"""
6565
bint WITH_DEBUG_SOLUTION
6666

67-
cdef bint with_debug_solution = WITH_DEBUG_SOLUTION
68-
6967
# Mapping the SCIP_RESULT enum to a python class
7068
# This is required to return SCIP_RESULT in the python code
7169
# In __init__.py this is imported as SCIP_RESULT to keep the
@@ -7508,15 +7506,15 @@ cdef class Model:
75087506
a debug solution during the solution process of SCIP. It must be explicitly
75097507
enabled for the SCIP data structure.
75107508
"""
7511-
if not with_debug_solution:
7509+
if not WITH_DEBUG_SOLUTION:
75127510
raise RuntimeError("SCIP must be built with `DEBUGSOL=true` to enable the debug solution mechanism.")
75137511
SCIPenableDebugSol(self._scip)
75147512

75157513
def disableDebugSol(self):
75167514
"""
75177515
Disables the debug solution mechanism.
75187516
"""
7519-
if not with_debug_solution:
7517+
if not WITH_DEBUG_SOLUTION:
75207518
raise RuntimeError("SCIP must be built with `DEBUGSOL=true` to disable the debug solution mechanism.")
75217519
SCIPdisableDebugSol(self._scip)
75227520

0 commit comments

Comments
 (0)