Skip to content

Commit f39c02b

Browse files
committed
merge conjunction, disjunction into master
2 parents 914a423 + bfb637c commit f39c02b

File tree

5 files changed

+551
-326
lines changed

5 files changed

+551
-326
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
## Unreleased
44
### Added
55
- Added check for pt_PT locale in test_model.py
6+
- Added methods for creating/adding/appending conjunction constraints
7+
- Added methods for creating expression constraints without adding to problem
8+
- Added methods for creating/adding/appending disjunction constraints
69
### Fixed
710
### Changed
811
### Removed

src/pyscipopt/scip.pxd

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1507,10 +1507,27 @@ cdef extern from "scip/cons_disjunction.h":
15071507
SCIP_Bool local,
15081508
SCIP_Bool modifiable,
15091509
SCIP_Bool dynamic)
1510+
15101511
SCIP_RETCODE SCIPaddConsElemDisjunction(SCIP *scip,
15111512
SCIP_CONS *cons,
15121513
SCIP_CONS *addcons)
15131514

1515+
cdef extern from "scip/cons_conjunction.h":
1516+
SCIP_RETCODE SCIPcreateConsConjunction(SCIP *scip,
1517+
SCIP_CONS **cons,
1518+
const char *name,
1519+
int nconss,
1520+
SCIP_CONS **conss,
1521+
SCIP_Bool enforce,
1522+
SCIP_Bool check,
1523+
SCIP_Bool local,
1524+
SCIP_Bool modifiable,
1525+
SCIP_Bool dynamic)
1526+
1527+
SCIP_RETCODE SCIPaddConsElemConjunction(SCIP *scip,
1528+
SCIP_CONS *cons,
1529+
SCIP_CONS *addcons)
1530+
15141531
cdef extern from "scip/cons_and.h":
15151532
SCIP_RETCODE SCIPcreateConsAnd(SCIP* scip,
15161533
SCIP_CONS** cons,

0 commit comments

Comments
 (0)