Skip to content

Commit 6bea3e0

Browse files
committed
Add enableDebugSol
1 parent 112a8fc commit 6bea3e0

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Unreleased
44
### Added
5+
- Added enableDebugSol
56
- More support for AND-Constraints
67
- Added support for knapsack constraints
78
- Added isPositive(), isNegative(), isFeasLE(), isFeasLT(), isFeasGE(), isFeasGT(), isHugeValue(), and tests

src/pyscipopt/scip.pxd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,7 @@ cdef extern from "scip/scip.h":
924924
SCIP_Real SCIPgetSolTime(SCIP* scip, SCIP_SOL* sol)
925925

926926
SCIP_RETCODE SCIPsetRelaxSolVal(SCIP* scip, SCIP_RELAX* relax, SCIP_VAR* var, SCIP_Real val)
927+
void SCIPenableDebugSol(SCIP* scip)
927928

928929
# Row Methods
929930
SCIP_RETCODE SCIPcreateRow(SCIP* scip, SCIP_ROW** row, const char* name, int len, SCIP_COL** cols, SCIP_Real* vals,

src/pyscipopt/scip.pxi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7495,6 +7495,14 @@ cdef class Model:
74957495
"""
74967496
PY_SCIP_CALL(SCIPsetRelaxSolVal(self._scip, NULL, var.scip_var, val))
74977497

7498+
def enableDebugSol(self):
7499+
"""
7500+
Enables the debug solution mechanism, which allows tracing back the invalidation of
7501+
a debug solution during the solution process of SCIP. It must be explicitly
7502+
enabled for the SCIP data structure.
7503+
"""
7504+
SCIPenableDebugSol(self._scip)
7505+
74987506
def getConss(self, transformed=True):
74997507
"""
75007508
Retrieve all constraints.

0 commit comments

Comments
 (0)