Skip to content

Pyomo.DoE - Measurement Error Convention Correction#3723

Merged
mrmundt merged 5 commits intoPyomo:mainfrom
djlaky:parmest-doe-bugfixes
Sep 19, 2025
Merged

Pyomo.DoE - Measurement Error Convention Correction#3723
mrmundt merged 5 commits intoPyomo:mainfrom
djlaky:parmest-doe-bugfixes

Conversation

@djlaky
Copy link
Copy Markdown
Contributor

@djlaky djlaky commented Sep 8, 2025

Fixes # .

Fixed measurement error consideration during model construction to be squared.

Summary/Motivation:

The convention for measurement error mathematically is to provide measurement error for each measurement, and then take the square of this value when construction the FIM. The squaring of this error was mistakenly left off. This PR will update the DoE problem construction to use the square of each experimental output's measurement error.

Changes proposed in this PR:

  • Update measurement error to be squared
  • Update test(s) to align with changes

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:

  1. I agree my contributions are submitted under the BSD license.
  2. I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.

Error in the measurement error convention, it should be 1 / (measurement error ^ 2) instead of 1 / (measurement error). Tests were updated. It should be noted that only a small change in values is required because the error was a power of 10.
@blnicho blnicho requested review from adowling2 and blnicho September 9, 2025 18:38
Copy link
Copy Markdown
Member

@adowling2 adowling2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR fixes a bug with the measurement error specification.

Does the document clearly state that the elements of measurement_error are expected to be the standard deviation?

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.31%. Comparing base (56a503b) to head (f851727).
⚠️ Report is 653 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3723   +/-   ##
=======================================
  Coverage   89.31%   89.31%           
=======================================
  Files         896      896           
  Lines      103675   103675           
=======================================
+ Hits        92594    92602    +8     
+ Misses      11081    11073    -8     
Flag Coverage Δ
builders 29.10% <25.00%> (+<0.01%) ⬆️
default 85.92% <100.00%> (?)
expensive 35.86% <25.00%> (?)
linux 86.96% <100.00%> (-2.08%) ⬇️
linux_other 86.96% <100.00%> (+<0.01%) ⬆️
osx 83.10% <100.00%> (ø)
win 85.22% <100.00%> (+<0.01%) ⬆️
win_other 85.22% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mrmundt mrmundt merged commit e173cb5 into Pyomo:main Sep 19, 2025
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants