-
Notifications
You must be signed in to change notification settings - Fork 526
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
Integrate new Set rewrite into Pyomo #1319
Merged
Merged
Changes from all commits
Commits
Show all changes
85 commits
Select commit
Hold shift + click to select a range
5e312d2
Adding bounds,filter, and validate support to RangeSet
jsiirola 7fde844
More aggressive Set immediate construction.
jsiirola a4fc1a2
Add a Set.get() method to standardize index mapping
jsiirola d689d9f
Rename flatten_cross_product to subsets and make a standard Set method
jsiirola 719caea
Correct reference to class attribute
jsiirola b59f79d
Improved handling of deprecated Set attributes/methods
jsiirola 2db0bd9
Set the ordered keywoard for OrderedSimpleSet and SortedSimpleSet
jsiirola 983c663
Make SetOperator a public base class
jsiirola 25c7d46
Add legacy support for Set.add(*args)
jsiirola ec40b68
Fix exge cases for @simple_set_rule
jsiirola 89d794a
Clean up deprecation of set_options
jsiirola f57e0e9
Adding TuplizeValuesInitializer to convert lists to lists of tuples
jsiirola f5e79b7
Removing dependence on pyutilib's flatten_tuple
jsiirola 0bd4d2a
Raise AttributeError when iterating over non-finite Sets
jsiirola 096a9ef
Add Set.domain and (deprecated) filter attributes
jsiirola 6d7537c
Fix isdisjoint/issubset/issuperset/__eq__ to match set
jsiirola 5007efc
Fixing typos in documentation and exception messages
jsiirola 2c526b0
Special case: abstract Sets with constant dimen have known dimen
jsiirola 45bebbc
Improve error message for non-iterable Set initializers
jsiirola 5531dbe
Improved automatic detection of non-finite range sets.
jsiirola 7b7e9e3
Improving RangeSet initialization
jsiirola a69657a
Merge branch 'master' into set-merge
jsiirola 0ca6a67
Deprecate (but allow) passing data to SetOperator.construct()
jsiirola 05f3abe
Revising global sets and reimplementing RealInterval, IntegerInterval
jsiirola 5c4363b
Reimplementing (and deprecating) using "in" for issubset()
jsiirola 0789100
Casting Set bounds() to int, if possible
jsiirola 26dc604
Update implicit component names when constructing.
jsiirola 3632ef2
Adding _EmptySet class, missing Any methods
jsiirola 11a0a9e
Fixing len/iter exceptions; comparing empty infinite RangeSets
jsiirola 1925e8b
Adding missing RangeSet API methods
jsiirola e26d7bf
Consistent naming: prefer _block over parent
jsiirola a423e5a
Ensure initialization sets are routed through process_setarg
jsiirola 7925500
Fixing SetProduct with an empty subset
jsiirola d725f38
Correcting tests for IndexedSet without a rule
jsiirola 59856f1
Adding missing import
jsiirola e2b09d8
Test automatic construction of non-native, non-numvalue RangeSet args
jsiirola 1021e85
Resolve RangeSet.name for named floating instances
jsiirola 3f4bacf
SetProduct fix for tuples with extra values
jsiirola b636253
Update tests to reflect RangeSet naming
jsiirola e4ca8d9
Adding index_set() (from IndexedComponent) to RangeSet
jsiirola c69121b
Register new Set/RangeSet with the ModelComponentFactory
jsiirola 862901c
Remove UnindexedComponent_set as a GlobalSet (circular references)
jsiirola 5464a53
Fixing Set.Skip and deepcopy of set expressions
jsiirola c4e38db
Renaming RangeSetInitializer to bounds initializer; setting default_s…
jsiirola bb17d16
Adding tests: subsets() and set_tuple
jsiirola b84b088
Resolving edge cases for DeclareGlobalSet
jsiirola cdaba06
Fixing (and testing) AnyWithNone
jsiirola f87e0b1
Checking check_values() on indexed Sets
jsiirola df24669
Removing unreachable code
jsiirola 3eb65bf
Adding initializer tests
jsiirola 2cad904
Adding proess_setarg tests
jsiirola 7aa3987
Merge branch 'master' into set-merge
jsiirola 655c8f4
Python 2.x fix for the model viewer
jsiirola 1f1b21d
Support +/-inf for NumericRange bounds. Additional testing.
jsiirola ca3308b
Remove debugging
jsiirola 089cb1c
Merge branch 'master' into set-merge
jsiirola a6164a2
Raise exception when deepcopying uncopyable attributes on abstract co…
jsiirola c1812ee
Integrating the Set rewrite into Pyomo
jsiirola cf7dd4c
Adding documentation
jsiirola 21682d9
Attach component index/domain set objects to model & construct them
jsiirola a8db3c0
Merge branch 'master' into set-merge
jsiirola 14be3ec
Update flatten_dae_variables() for set rewrite
jsiirola b308ce9
Updating network test baseline after set rewrite merge
jsiirola 7fafbe4
removing debugging
jsiirola 0dd8dad
satsolver updates for set-merge
jsiirola ea230bd
Fixing doctest failures
jsiirola 07c1336
Additional doctests fixes
jsiirola 5d9003e
Fixing additional doctests
jsiirola e08319c
Making deprecation tests more robust
jsiirola 5e10b90
Additional fixes for PySP with the new Sets
jsiirola 490cbdc
Deprecation messages now include the caller file/lineno
jsiirola 1182dc2
Fix for generator initializers [segfault in pypy3]
jsiirola b2c406b
Resolving use of generators in Set initialization
jsiirola cc3c924
Merge branch 'master' into set-merge
jsiirola 754c43c
Updating documentation
jsiirola ed07907
Fix calling construct() on a constructed ContinuousSet
jsiirola bf89dae
Don't extract the entire stack to get the caller's frame
jsiirola dc8095f
Merge branch 'master' into set-merge
jsiirola c1ff124
Merge branch 'master' into set-merge
jsiirola 350784c
Fixing _ImplicitAny for new set system
jsiirola 2838805
Addressing typos and review comments
jsiirola a0d54b9
Propagating optimization from is_continuous to is_binary, is_integer
jsiirola 9b5b439
Updating the ContinuousSet docstring to match new behavior of enforci…
blnicho 185cfbf
Removing unnecessary code
jsiirola a47ae0c
Adding AML GlobalSets to pyomo.kernel
jsiirola 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 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 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 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 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 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 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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having the "size" listed twice here is a little confusing for "singleton" sets. I realize that they are referring to two different things but because they are being called the same name it's not obvious which value would get returned if I asked for the length of the set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that it is confusing. I am open to options for renaming the table entry (the header should probably remain the same for consistency with other IndexedComponents)