-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fix list()
and tabulate()
for existing optimization items with specific run-request
#107
Conversation
list()
and tabulate()
for optimization items with specific run-requestlist()
and tabulate()
for existing optimization items with specific run-request
7a93073
to
35ec82d
Compare
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.
Thanks @glatterf42, good catch! I made a few comments on streamlining the tests for the indexsets, does also apply to the other types...
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.
Two minor suggestions, then good to go as far as can tell!
Also while working on the GAMS transport tutorial, I discovered that all optimization items had inconsistent behavior in the facade layer:
run.optimization.scalar.tabulate()
would list all scalars of all runs, while...list()
would list only those of the run the scalars belong to. The latter is clearly desired, so this PR fixes the inconsistency and adds tests to confirm.Since
Parameter
,Equation
, andVariable
have not yet landed on main, I'll include corresponding changes in their pending PRs.