File tree 3 files changed +9
-0
lines changed
3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 1
1
# CHANGELOG
2
2
3
+ ## Unreleased
4
+ ### Added
5
+ - add Model.getNReaders that returns the number of available readers
6
+
3
7
## 3.1.1 - 2021-03-10
4
8
### Added
5
9
- add evaluation of ` Expr ` in ` Solution ` .
Original file line number Diff line number Diff line change @@ -857,6 +857,7 @@ cdef extern from "scip/scip.h":
857
857
SCIP_READERDATA* readerdata)
858
858
SCIP_READER* SCIPfindReader(SCIP* scip, const char * name)
859
859
SCIP_READERDATA* SCIPreaderGetData(SCIP_READER* reader)
860
+ int SCIPgetNReaders(SCIP* scip)
860
861
861
862
# Event handler plugin
862
863
SCIP_RETCODE SCIPincludeEventhdlr(SCIP* scip,
Original file line number Diff line number Diff line change @@ -4573,6 +4573,10 @@ cdef class Model:
4573
4573
""" Counts the number of feasible points of problem."""
4574
4574
PY_SCIP_CALL(SCIPcount(self ._scip))
4575
4575
4576
+ def getNReaders (self ):
4577
+ """ Get number of currently available readers."""
4578
+ return SCIPgetNReaders(self ._scip)
4579
+
4576
4580
def getNCountedSols (self ):
4577
4581
""" Get number of feasible solution."""
4578
4582
cdef SCIP_Bool valid
You can’t perform that action at this time.
0 commit comments