-
Notifications
You must be signed in to change notification settings - Fork 276
BUG: can't call getVal from GenExpr
#1148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
f87432c
Add tests for expression evaluation in Model
Zeroto521 8c600a2
Add unified expression evaluation with _evaluate methods
Zeroto521 85ee97e
Optimize matrix expression evaluation in Solution
Zeroto521 135b954
Add test for matrix variable evaluation
Zeroto521 ad7d4c6
Remove matrix expression handling in Solution __getitem__
Zeroto521 5ff4144
Refactor Term class variable naming and usage
Zeroto521 95b3a80
Use double precision for expression evaluation
Zeroto521 7770a06
Add type annotations and improve Term class attributes
Zeroto521 50e9c6c
Make _evaluate methods public and refactor Expr/Variable
Zeroto521 239c3a3
Update CHANGELOG.md
Zeroto521 d2ab8e2
Remove hash method from Variable
Zeroto521 2b145dd
back to old behavior
Zeroto521 9afb07f
Fix MatrixExpr _evaluate to return ndarray type
Zeroto521 66c2f6b
Remove unused _evaluate method from Solution stub
Zeroto521 4ff2682
Add @disjoint_base decorator to Term and UnaryExpr
Zeroto521 073ac1c
Add noqa to suppress unused import warning
Zeroto521 22b9f4f
cache `_evaluate` function for matrix
Zeroto521 449e2fd
Refactor _evaluate to use np.frompyfunc
Zeroto521 7cd196a
Simplify _evaluate return in MatrixExpr
Zeroto521 3ff4658
Merge branch 'master' into issue/1062
Zeroto521 aee875a
Expand test_evaluate with additional variable and cases
Zeroto521 6470585
Update expected value in test_evaluate assertion
Zeroto521 93d8b1e
Optimize Expr._evaluate by iterating dict with PyDict_Next
Zeroto521 dea099b
Merge branch 'master' into issue/1062
Zeroto521 c6faf4d
Optimize Term evaluation with early exit on zero
Zeroto521 2eac7dd
Merge branch 'issue/1062' of https://github.com/Zeroto521/PySCIPOpt i…
Zeroto521 6eaca91
Fix loop variable usage in Term evaluation
Zeroto521 2007671
Refactor variable names in Term class evaluation
Zeroto521 0b41acd
Refactor variable initialization in _evaluate methods
Zeroto521 75956fd
Add exception specification to _evaluate methods
Zeroto521 33fea88
Fix _evaluate method calls in expression classes
Zeroto521 cc140b4
Optimize SumExpr and ProdExpr evaluation loops
Zeroto521 6b56c88
Fix evaluation of UnaryExpr in expression module
Zeroto521 cc9f254
Merge branch 'master' into issue/1062
Zeroto521 9f48a61
Fix error message grammar
Zeroto521 c91a78b
Replace _evaluate with _vec_evaluate in matrix.pxi
Zeroto521 baf50b2
Change hashval type to Py_ssize_t in Term class
Zeroto521 db7ea72
Handle 'abs' operator in UnaryExpr evaluation
Zeroto521 57f906a
Update getSolVal return type to support NDArray
Zeroto521 8c45b7d
Expand getVal to support GenExpr in Model
Zeroto521 03cf742
Fix type cast in VarExpr _evaluate method
Zeroto521 d3121b1
Remove unused include of matrix.pxi
Zeroto521 10d88d9
Merge branch 'issue/1062' of https://github.com/Zeroto521/PySCIPOpt i…
Zeroto521 e441513
Update tests/test_expr.py
Joao-Dionisio File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.