Skip to content

Commit 42c09fe

Browse files
committed
add method getNReaders
1 parent 6303b87 commit 42c09fe

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/pyscipopt/scip.pxd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,7 @@ cdef extern from "scip/scip.h":
857857
SCIP_READERDATA* readerdata)
858858
SCIP_READER* SCIPfindReader(SCIP* scip, const char* name)
859859
SCIP_READERDATA* SCIPreaderGetData(SCIP_READER* reader)
860+
int SCIPgetNReaders(SCIP* scip)
860861

861862
# Event handler plugin
862863
SCIP_RETCODE SCIPincludeEventhdlr(SCIP* scip,

src/pyscipopt/scip.pyx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4573,6 +4573,9 @@ cdef class Model:
45734573
"""Counts the number of feasible points of problem."""
45744574
PY_SCIP_CALL(SCIPcount(self._scip))
45754575

4576+
def getNReaders(self):
4577+
return SCIPgetNReaders(self._scip)
4578+
45764579
def getNCountedSols(self):
45774580
"""Get number of feasible solution."""
45784581
cdef SCIP_Bool valid

0 commit comments

Comments
 (0)