Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
eb78de4
wrap "" for error message
Zeroto521 Jun 14, 2026
146dc11
Split `Variable` and `Expr` into two classes
Zeroto521 Jun 14, 2026
f7d2b96
force magic methods to use positional keywords
Zeroto521 Jun 14, 2026
798e8ce
Revert changes to `Expr.degree`
Zeroto521 Jun 14, 2026
6f0e758
convert `normalize` into cdef function
Zeroto521 Jun 14, 2026
582f1e8
rename `_as_expr` to `as_expr`
Zeroto521 Jun 14, 2026
5100c48
ExprLike support `__getitem__` and `__iter__`
Zeroto521 Jun 14, 2026
7bed806
Update CHANGELOG.md
Zeroto521 Jun 14, 2026
b029053
Update annotations
Zeroto521 Jun 14, 2026
6692020
Merge upstream/master into m4-variable-exprlike
Zeroto521 Oct 20, 2026
c475fe9
Merge branch 'scipopt:master' into variable
Zeroto521 Oct 20, 2026
d2f78e1
perf: inline ExprLike template ops to skip PyNumber_* dispatch
Zeroto521 Oct 20, 2026
0c33701
Merge upstream/master into m4-variable-exprlike
Zeroto521 Oct 26, 2026
70aec70
Fix chgReoptObjective for Variable and add Variable tests
Zeroto521 Oct 26, 2026
952e2ae
Merge branch 'variable' of github.com:Zeroto521/PySCIPOpt into m4-var…
Zeroto521 Oct 26, 2026
2116e0f
Optimize ExprLike operator dispatch and unify expression types
Zeroto521 Nov 2, 2026
14560b9
Rename local Expr view to expr in Variable.create
Zeroto521 Nov 2, 2026
fae57b5
Narrow __neg__ return types to Expr or GenExpr
Zeroto521 Nov 2, 2026
b82823b
Merge branch 'master' into variable
Zeroto521 Nov 23, 2026
4edf417
correct the return type
Zeroto521 Nov 23, 2026
15a3322
simplify error message
Zeroto521 Nov 23, 2026
aaf047d
add Variable to the unary argument doc
Zeroto521 Nov 23, 2026
bd6ecd1
simplify a bit
Zeroto521 Nov 23, 2026
4d3de69
remove extra lines
Zeroto521 Nov 23, 2026
1ac35f9
correct variable name
Zeroto521 Nov 23, 2026
2bf38ca
Speed up degree and move it to ExprLike
Zeroto521 Nov 23, 2026
47300f3
simplify a bit
Zeroto521 Nov 23, 2026
3363c33
add the temp cache
Zeroto521 Nov 23, 2026
2a3ca87
Improve ExprLike indexing and add membership test
Zeroto521 Nov 23, 2026
afd9d03
correct variable name
Zeroto521 Nov 23, 2026
b5a8eb8
avoid double checking
Zeroto521 Nov 24, 2026
f45344d
set variable concept to matrix
Zeroto521 Nov 24, 2026
b6ddcee
Rename test_Variable.py to test_variable.py and convert to pytest
Zeroto521 Nov 24, 2026
e913e47
Add CHANGELOG entry for matrix inheritance hierarchy refactor
Zeroto521 Nov 24, 2026
2610cf8
Refresh mypy baseline after matrix hierarchy change
Zeroto521 Nov 24, 2026
8722916
correct the place of changelog
Zeroto521 Nov 24, 2026
2c333ba
Fix stubtest mismatches for pow, Variable init, and unused allowlist …
Zeroto521 Nov 24, 2026
d280ef4
Restore typed arithmetic overloads for Variable and refresh mypy base…
Zeroto521 Nov 25, 2026
b1d213f
Add tests for ExprLike indexing, iteration, membership, and degree
Zeroto521 Nov 25, 2026
df531a4
simplify the type
Zeroto521 Nov 25, 2026
ed09cf7
update error type
Zeroto521 Nov 25, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
- `PowExpr._evaluate` now raises `ValueError("math domain error")` for a negative base with a non-integer exponent and `OverflowError` when the result overflows.
- Faster construction of polynomial expressions (`Term()` creation, comparison, and multiplication are cheaper).
- `Term` now accepts a single argument (`Variable` or `None`) instead of multiple arguments
- Refactored the inheritance hierarchy of `Variable` from `Expr` to the base interface `ExprLike`
- Refactored the inheritance hierarchy of `MatrixVariable` and `MatrixGenExpr` from `MatrixExpr` to the base interface `MatrixExprLike`
### Removed
- Removed support for Python 3.8

Expand Down
Loading
Loading