Skip to content

Commit 2998f2b

Browse files
committed
Merge branch 'fix-locale' of https://github.com/Joao-Dionisio/PySCIPOpt into fix-locale
2 parents 9a7f586 + 962c0b3 commit 2998f2b

File tree

4 files changed

+381
-192
lines changed

4 files changed

+381
-192
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
## Unreleased
44
### Added
55
- Expanded locale test
6+
- Added methods for creating expression constraints without adding to problem
7+
- Added methods for creating/adding/appending disjunction constraints
68
- Added check for pt_PT locale in test_model.py
9+
- Added SCIPgetOrigConss and SCIPgetNOrigConss Cython bindings.
10+
- Added transformed=False option to getConss, getNConss, and getNVars
711
### Fixed
812
- Fixed locale errors in reading
913
### Changed

src/pyscipopt/scip.pxd

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,10 @@ cdef extern from "scip/scip.h":
637637
SCIP_RETCODE SCIPdelVar(SCIP* scip, SCIP_VAR* var, SCIP_Bool* deleted)
638638
SCIP_RETCODE SCIPaddCons(SCIP* scip, SCIP_CONS* cons)
639639
SCIP_RETCODE SCIPdelCons(SCIP* scip, SCIP_CONS* cons)
640+
SCIP_CONS** SCIPgetOrigConss(SCIP* scip)
641+
int SCIPgetNOrigConss(SCIP* scip)
642+
SCIP_CONS* SCIPfindOrigCons(SCIP* scip, const char*)
643+
SCIP_CONS* SCIPfindCons(SCIP* scip, const char*)
640644
SCIP_RETCODE SCIPsetObjsense(SCIP* scip, SCIP_OBJSENSE objsense)
641645
SCIP_OBJSENSE SCIPgetObjsense(SCIP* scip)
642646
SCIP_RETCODE SCIPsetObjlimit(SCIP* scip, SCIP_Real objlimit)
@@ -1495,6 +1499,24 @@ cdef extern from "scip/cons_sos2.h":
14951499
SCIP_CONS* cons,
14961500
SCIP_VAR* var)
14971501

1502+
cdef extern from "scip/cons_disjunction.h":
1503+
SCIP_RETCODE SCIPcreateConsDisjunction(SCIP *scip,
1504+
SCIP_CONS **cons,
1505+
const char *name,
1506+
int nconss,
1507+
SCIP_CONS **conss,
1508+
SCIP_CONS *relaxcons,
1509+
SCIP_Bool initial,
1510+
SCIP_Bool enforce,
1511+
SCIP_Bool check,
1512+
SCIP_Bool local,
1513+
SCIP_Bool modifiable,
1514+
SCIP_Bool dynamic)
1515+
1516+
SCIP_RETCODE SCIPaddConsElemDisjunction(SCIP *scip,
1517+
SCIP_CONS *cons,
1518+
SCIP_CONS *addcons)
1519+
14981520
cdef extern from "scip/cons_and.h":
14991521
SCIP_RETCODE SCIPcreateConsAnd(SCIP* scip,
15001522
SCIP_CONS** cons,

0 commit comments

Comments
 (0)