-
Notifications
You must be signed in to change notification settings - Fork 530
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
Pyomo.DoE version 2 #2794
Pyomo.DoE version 2 #2794
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2794 +/- ##
==========================================
+ Coverage 87.17% 87.32% +0.14%
==========================================
Files 764 767 +3
Lines 88270 90240 +1970
==========================================
+ Hits 76949 78801 +1852
- Misses 11321 11439 +118
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
pyomo/contrib/doe/doe.py
Outdated
design_set_iter | ||
)[i] | ||
for i, names in enumerate(design_dimension_names): | ||
# names = design_dimension_names[i] |
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.
Leftover comment?
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 removed this.
pyomo/contrib/doe/doe.py
Outdated
|
||
Return: | ||
|
||
Return | ||
------- | ||
m: the DOE model |
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.
Outdated: should be mod
But on that note, this is a nitpick: Is there an issue with just calling it model
? Explicit variable names are a general preference.
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 changed these to model.
j: model responses | ||
p: model parameters | ||
t: timepoints | ||
p: parameter |
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.
m
is missing from docstring.
""" | ||
Calculate FIM elements | ||
p: parameter |
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.
m
missing from docstring.
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.
Comment for all examples in general:
It would be nice to either have a README
to explain the different examples or a small comment blurb in each example to explain what each example is showing (or, if the example is from a paper/book, a referencing to that paper/book).
for index_instance in all_variable_indices: | ||
var_name_index_string = var_name + "[" | ||
for i, idx in enumerate(index_instance): | ||
var_name_index_string += str(idx) |
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.
Agreed.
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.
There is a lot going on in this file that is not tested. Highly recommend adding tests.
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.
Added a comment
for index_instance in all_variable_indices: | ||
var_name_index_string = var_name + "[" | ||
for i, idx in enumerate(index_instance): | ||
var_name_index_string += str(idx) |
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.
This is on the todo list here: #2610
@jialuw96 I need you to merge this PR on your fork (jialuw96#16). I made the requested changes from @mrmundt but I do not have permission to write to your fork. Alternately, you can give me permission to write to your fork. @mrmundt @blnicho I made the changes and opened a PR into @jialuw96's branch. The catch is that I did this on a computer that does not have a Pyomo development environment setup. I made the changes in the GitHub web browser. I checked them twice and I am relying on the tests to pass as an extra check. (These changes were to doc strings and renaming @mrmundt The 👍 on your comments means I either addressed them in more fork or added them to our running todo list. |
@adowling2 I have push access and took care of merging your changes. |
@blnicho. Awesome. I also got the tests passing on my fork, so fingers crossed, they should be here too. |
@adowling2 Thank you for taking care of this! I just sent an invitation for you to collaborate on this fork. |
Fixes
Reference #2610
Main fixes include:
block
sipopt
Enum
Summary/Motivation:
Update version 2 for
doe
. This version accomplishes enhancements in issue2610.Tasks to complete before merging:
Legal Acknowledgement
By contributing to this software project, I have read the contribution guide and agree to the following terms and conditions for my contribution: