-
Notifications
You must be signed in to change notification settings - Fork 80
perf: matrix accessor rewrite #630
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 11 commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
fb9f6ab
perf: add to_matrix_via_csr
coroa 80a8b70
perf: improve per-constraint csr matrix construction
coroa 89115c2
Add conversion functions
coroa bcd0228
feat: add ability to freeze constraints into csr
coroa b4dc1ea
Add io.to_netcdf support for frozen Constraint
coroa 304a2e7
fix: re-implement matrices
coroa 0fc2673
Move sum_duplicates
coroa 3c8c5d6
feat: VariableLabelIndex
coroa 0b9de00
fix: until solve
coroa 1122b16
fix: disentangle range and ncons
coroa 19125ac
fix: don't freeze if model is chunked
coroa 58879fc
fix typing errors
coroa 7fe0392
fix: bring back forward-refs
coroa 92752e2
fix issues in tests
coroa 83dd58a
fix: add doc strings to VariableLabelIndex
coroa e9e7870
Merge upstream/master and fix copy() for new Constraint types
coroa 2bec451
test: relax dtype assertions for Windows np.int32 compatibility
coroa eca2945
Merge remote-tracking branch 'upstream/master' into perf/matrix-acces…
coroa 3b2a415
fix: review fixes for #630 (matrix accessor rewrite) (#632)
FabianHofmann 189f0c5
rename Constraint to CSRConstraint
FabianHofmann a256212
rename MutableConstraint to Constraint (original name)
FabianHofmann 3ead682
fix: xpress crash with zero constraints and remove_variables not remo…
FabianHofmann 6dc0368
Merge branch 'master' into perf/matrix-accessor-rewrite
FabianHofmann 86884c0
Fix MultiIndex deprecation warning in CSRConstraint by using assign_m…
FabianHofmann 3a68362
Add freeze_constraints option, default freeze to None (resolves from …
FabianHofmann f3c9516
Merge branch 'master' into perf/matrix-accessor-rewrite
FabianHofmann 9b09bda
bench: add pypsa carbon_management benchmark for direct solver path
FabianHofmann 7696d3e
Add set_names parameter to skip solver name-setting in direct IO, use…
FabianHofmann d356b33
perf: use polars to list logic in print_variables and print_constraints
FabianHofmann 05e72e4
Use non-deprecated formatting APIs in tests
FabianHofmann 9761ae3
Tighten direct-solver naming tests and repr formatting
FabianHofmann 93f45b9
fix mypy
FabianHofmann 6421628
Fix mypy failures in constraint and IO tests
FabianHofmann 9e94bfa
Move freeze and direct IO naming settings to Model
FabianHofmann bd10393
perf: speed up mutable direct solver export
FabianHofmann 2ab5ed4
docs: add CSRConstraint documentation to release notes, API reference…
FabianHofmann 5e26346
perf: direct CSR-to-LP writer for frozen constraints (#631)
FBumann ed1a517
Merge branch 'master' into perf/matrix-accessor-rewrite
FabianHofmann aa71276
merge: move bench_pypsa_carbon_management into benchmarks/ suite, fix…
FabianHofmann 1a88b38
fix: align CSRConstraint.iterate_slices return type with base class f…
FabianHofmann 4b10d0a
fix: make assert_linequal compare semantic equality of expressions
FBumann 8000762
Merge branch 'master' into perf/matrix-accessor-rewrite
FabianHofmann 23f63b9
fix types from merge conflict
FabianHofmann 7ef1d77
docs: note CSRConstraint API differences from Constraint
FabianHofmann 0feb6da
Merge branch 'master' into perf/matrix-accessor-rewrite
FabianHofmann 9be6826
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] c709cee
Merge branch 'master' into perf/matrix-accessor-rewrite
FabianHofmann ba44376
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 1aef091
refac(CSRConstraint): simplify iterate_slices with _equal_nnz_slices …
coroa dd86868
deprecate(Constraint): add DeprecationWarning to .flat property
coroa 672d0b8
refac(ConstraintBase): make ncons/lhs/to_matrix abstract; move to Con…
coroa fa04a15
Merge branch 'master' into perf/matrix-accessor-rewrite
FabianHofmann 27514fe
fix(Model): add __weakref__ slot and drop stale matrices.clean_cached…
FabianHofmann 7740410
refac(CSRConstraint): direct rhs setter, read-only lhs setter; drop x…
FabianHofmann 7a5172f
fix(types): drop duplicate MaskLike/PathLike; annotate sign_expr for …
FabianHofmann d036ad9
refac(CSRConstraint): make rhs setter read-only; call .mutable() to m…
FabianHofmann 3e8f64d
Merge branch 'master' into perf/matrix-accessor-rewrite
FabianHofmann 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
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
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.