Skip to content

Commit 37a1ed6

Browse files
Require binary variables in logical constraints (#1005)
* Fix 1004 * refactor variable conversion * Update tests/test_cons.py Co-authored-by: DominikKamp <[email protected]> * Put function inside class * Call wrapper class in a few more places * Single variable * change name to VarArray * Apply suggestions from code review Co-authored-by: DominikKamp <[email protected]> * Messed around with pointers, found bug in translatesubsol * Fix double free * Apply suggestions from code review Co-authored-by: DominikKamp <[email protected]> * Fix most suggestions * _VarArray in everything * fix double free * Update src/pyscipopt/scip.pxi Co-authored-by: DominikKamp <[email protected]> * Fix leak * typo * Clean tests a bit * Apply suggestions from code review Co-authored-by: DominikKamp <[email protected]> * Some more fixes * Remaining comments --------- Co-authored-by: DominikKamp <[email protected]>
1 parent 352a0e9 commit 37a1ed6

File tree

7 files changed

+136
-91
lines changed

7 files changed

+136
-91
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- Added isPositive(), isNegative(), isFeasLE(), isFeasLT(), isFeasGE(), isFeasGT(), isHugeValue(), and tests
77
- Added SCIP_LOCKTYPE, addVarLocksType(), getNLocksDown(), getNLocksUp(), getNLocksDownType(), getNLocksUpType(), and tests
88
### Fixed
9+
- Raised an error when an expression is used when a variable is required
910
### Changed
1011
### Removed
1112

0 commit comments

Comments
 (0)