Commit 37a1ed6
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- src/pyscipopt
- tests
7 files changed
+136
-91
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
0 commit comments