Skip to content
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

Omnibus testing / platform portability fixes #3335

Merged
merged 27 commits into from
Aug 12, 2024
Merged

Conversation

jsiirola
Copy link
Member

@jsiirola jsiirola commented Aug 6, 2024

Fixes #3294.

Summary/Motivation:

This fixes a number of bugs / issues motivated by #3294 (which was building on a "partially complete" platform:

  • it had (a broken) ipopt, but not libpynumero_ASL
  • creating the cp_optimizer apparently generated an exception

Changes proposed in this PR:

  • added functionality to ipopt interfaces to check for the availability of specific linear solvers
  • numerous added test guards for package / library dependencies
  • platform information for freebsd
  • updated all structured comparison tests to use both absolute and relative tolerances
  • fixed typos (incorrect variable names, missing formatting strings)
  • resolved some tests that would fail if executed in a different order
  • resolved issues with output and robustness of pyomo help -s

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.

Copy link
Contributor

@mrmundt mrmundt left a comment

Choose a reason for hiding this comment

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

Small typo but otherwise it looks good.

pyomo/contrib/doe/tests/test_fim_doe.py Outdated Show resolved Hide resolved
@@ -238,6 +238,21 @@ def version(self, config=None):
self._version_cache = (pth, version)
return self._version_cache[1]

def has_linear_solver(self, linear_solver):
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not thrilled with the repeat code here and in APPSI... But I get it.

Copy link

codecov bot commented Aug 9, 2024

Codecov Report

Attention: Patch coverage is 95.23810% with 4 lines in your changes missing coverage. Please review.

Project coverage is 88.54%. Comparing base (b480497) to head (658dab3).
Report is 2 commits behind head on main.

Files Patch % Lines
pyomo/contrib/appsi/solvers/ipopt.py 87.50% 2 Missing ⚠️
pyomo/contrib/doe/doe.py 80.00% 1 Missing ⚠️
pyomo/scripting/driver_help.py 96.42% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3335      +/-   ##
==========================================
+ Coverage   88.52%   88.54%   +0.01%     
==========================================
  Files         868      868              
  Lines       98436    98495      +59     
==========================================
+ Hits        87144    87208      +64     
+ Misses      11292    11287       -5     
Flag Coverage Δ
linux 86.05% <95.18%> (+0.01%) ⬆️
osx 75.63% <54.21%> (-0.04%) ⬇️
other 86.55% <95.18%> (+0.01%) ⬆️
win 83.86% <93.97%> (+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.

@blnicho blnicho merged commit 404fd6d into Pyomo:main Aug 12, 2024
33 checks passed
@blnicho blnicho mentioned this pull request Aug 12, 2024
@jsiirola jsiirola deleted the freebsd-fixes branch August 20, 2024 17:11
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.

Pyomo tests fail in FreeBSD
3 participants