Commit 8267aa4
* API: `addMatrixCons` supports `ExprCons`
* test error
* test accepting `ExprCons`
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update scip.pxi
* Add comments to clarify error tests in matrix variable tests
Added comments to the test_catching_errors function in test_matrix_variable.py to clarify the purpose of each exception test case.
* Move addCons testcase to top
* Add test for shape mismatch in addMatrixCons
Added a test case to ensure addMatrixCons raises a ValueError when provided with an initial array of incorrect shape.
* Apply suggestions from code review
* Update test_matrix_variable.py
* Update scip.pxi
* tabs spaces
* tabs and spaces finally?
---------
Co-authored-by: João Dionísio <[email protected]>
1 parent 3ab3a1a commit 8267aa4
File tree
3 files changed
+21
-12
lines changed- src/pyscipopt
- tests
3 files changed
+21
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5775 | 5775 | | |
5776 | 5776 | | |
5777 | 5777 | | |
5778 | | - | |
| 5778 | + | |
5779 | 5779 | | |
5780 | 5780 | | |
5781 | 5781 | | |
| |||
5792 | 5792 | | |
5793 | 5793 | | |
5794 | 5794 | | |
5795 | | - | |
5796 | | - | |
| 5795 | + | |
| 5796 | + | |
5797 | 5797 | | |
5798 | 5798 | | |
5799 | 5799 | | |
| |||
5820 | 5820 | | |
5821 | 5821 | | |
5822 | 5822 | | |
5823 | | - | |
5824 | | - | |
5825 | | - | |
| 5823 | + | |
| 5824 | + | |
5826 | 5825 | | |
5827 | | - | |
5828 | | - | |
| 5826 | + | |
| 5827 | + | |
| 5828 | + | |
| 5829 | + | |
| 5830 | + | |
| 5831 | + | |
| 5832 | + | |
| 5833 | + | |
5829 | 5834 | | |
5830 | 5835 | | |
5831 | 5836 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | | - | |
| 20 | + | |
20 | 21 | | |
| 22 | + | |
21 | 23 | | |
22 | | - | |
| 24 | + | |
23 | 25 | | |
| 26 | + | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
| |||
169 | 172 | | |
170 | 173 | | |
171 | 174 | | |
172 | | - | |
| 175 | + | |
173 | 176 | | |
174 | 177 | | |
175 | 178 | | |
| |||
0 commit comments