-
Notifications
You must be signed in to change notification settings - Fork 586
Refactor linear/quadratic expression compilers #3651
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 36 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
84de166
Move ScalarObjective to use AbstractScalar pattern
jsiirola dbd2fa0
Rework/simplify constraint & var bound evaluation
jsiirola a944c8b
Support templatization of scalar constraint/objective components
jsiirola 72450b9
Disable __call__ on AbstractScalarConstraint components
jsiirola c59ef84
Catch exceptions when attempting to evaluate a unary function with an…
jsiirola 9c12dbe
Promote inv2str to util as val2str
jsiirola 049909a
Promote FIXED processing to the main linear/quadratic walkers
jsiirola aade470
Route checks for 0 and 1 mult coefficients through constant_flag and …
jsiirola 3194125
overhaul, simplify, and combine parameterized linear and quadratic re…
jsiirola c2d028e
NFC: minor cleanup, improve comments
jsiirola e78870b
Silence NumPy deprecation warning
jsiirola 52dfe87
Update linear template repn visitor
jsiirola df72496
Update TemplateVarRecorder to not accept var_order; correctly initial…
jsiirola 54c88a2
Fix logging namespace in pyomo.repn.util
jsiirola 82586ca
Catch additional errors applying operations to InvalidNumber
jsiirola ffca68a
Update tests to reflect changes in repn compilers
jsiirola a18e936
Update BigM test: int argument is now preserved
jsiirola 6d0ca6b
Test standard form compiler for both regular and templated expressions
jsiirola 104a8cb
Provide special-case handling for LINEAR**2
jsiirola 874fbee
Improve use of mutable_expression context manager
jsiirola 6045edc
Merge branch 'main' into repn-refactor
jsiirola 6ffce1e
Merge branch 'main' into repn-refactor
jsiirola 190d09b
NFC: apply black
jsiirola cac10c7
Fix copy/paste typo
jsiirola 0bcbaa6
NFC: fix typo
jsiirola 8eb7a10
Fix detection of TemplateRepn
jsiirola 5d2923c
Merge branch 'main' into repn-refactor
jsiirola 44c20d8
Allow creating parameterized vectors from iterators
jsiirola ef8ea2d
Catch edge case: trivial constraints with non-numeric linear constants
jsiirola 0e4ff92
Standardize construction of CSC matricies (empty and nonempty)
jsiirola 7ef0db4
NFC: fix typo
jsiirola a2ea1c3
Merge branch 'main' into repn-refactor
jsiirola 3cadc0a
Explicitly check for InvalidNumber in linear,quadratic walkers
jsiirola d212669
Improve robustness of QuadraticRepn to str
jsiirola 627e0b5
Improve linear,quadratic repn coverage
jsiirola 41fc0d5
Apply black
mrmundt 065448d
Merge branch 'main' into repn-refactor
jsiirola 0bc65e1
Make Templatized objective and constraint classes more consistent
jsiirola 4e2d87a
NFC: add/update comments
jsiirola 67c9ef3
Merge branch 'main' into repn-refactor
jsiirola f8562a0
Apply black - newlines are the worst
mrmundt 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
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.