Commit 37a1ed6
Require binary variables in logical constraints (#1005)
* Fix 1004
* refactor variable conversion
* Update tests/test_cons.py
Co-authored-by: DominikKamp <130753997+DominikKamp@users.noreply.github.com>
* 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 <130753997+DominikKamp@users.noreply.github.com>
* Messed around with pointers, found bug in translatesubsol
* Fix double free
* Apply suggestions from code review
Co-authored-by: DominikKamp <130753997+DominikKamp@users.noreply.github.com>
* Fix most suggestions
* _VarArray in everything
* fix double free
* Update src/pyscipopt/scip.pxi
Co-authored-by: DominikKamp <130753997+DominikKamp@users.noreply.github.com>
* Fix leak
* typo
* Clean tests a bit
* Apply suggestions from code review
Co-authored-by: DominikKamp <130753997+DominikKamp@users.noreply.github.com>
* Some more fixes
* Remaining comments
---------
Co-authored-by: DominikKamp <130753997+DominikKamp@users.noreply.github.com>1 parent 352a0e9 commit 37a1ed6
7 files changed
Lines changed: 136 additions & 91 deletions
File tree
- src/pyscipopt
- tests
| 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