-
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 adding more verbose output for sensitivity analysis #3525
base: main
Are you sure you want to change the base?
Conversation
@adowling2 @djlaky ready for early feedback |
Next step:
|
pyomo/contrib/doe/doe.py
Outdated
if abs(E_vals.imag[E_ind]) > 1e-8: | ||
self.logger.warning( | ||
"Eigenvalue has imaginary component greater than 1e-6, contact developers if this issue persists." | ||
"Eigenvalue has imaginary component greater than 1e-8, contact developers if this issue persists." |
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.
nit: this is why "embedded constants are evil". An improved solution would be to declare a module-level constant (maybe IMAG_THRESHOLD
) and then use that both in the test and in the message.
@smondal13 See #3532 for an example of what @jsiirola is suggesting |
…alue checking in compute_FIM_full_factorial()
Fixes # .
Summary/Motivation:
Changes proposed in this PR:
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: