Skip to content

fix: Issues in SAS CAS solver interface#3309

Merged
mrmundt merged 3 commits intoPyomo:mainfrom
phchri:sassolvers
Jul 9, 2024
Merged

fix: Issues in SAS CAS solver interface#3309
mrmundt merged 3 commits intoPyomo:mainfrom
phchri:sassolvers

Conversation

@phchri
Copy link
Copy Markdown
Contributor

@phchri phchri commented Jul 8, 2024

Fixes # .

Missing uuid and import MPS variable names with more than 8 characters.

Summary/Motivation:

CAS interface is not working without the uuid change. Variable length seem to exceed 8 characters sometimes, better safe than sorry.

Changes proposed in this PR:

  • Add uuid package to function call
  • Add maxLength for CAS imports (256 should be more than enough)

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.

@phchri phchri changed the title fix: Issues in CAS interface fix: Issues in SAS CAS solver interface Jul 8, 2024
@codecov
Copy link
Copy Markdown

codecov bot commented Jul 8, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 88.46%. Comparing base (53d5cad) to head (c2b0be1).
Report is 912 commits behind head on main.

Files with missing lines Patch % Lines
pyomo/solvers/plugins/solvers/SAS.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3309      +/-   ##
==========================================
+ Coverage   86.46%   88.46%   +1.99%     
==========================================
  Files         801      867      +66     
  Lines       96758    98214    +1456     
==========================================
+ Hits        83661    86881    +3220     
+ Misses      13097    11333    -1764     
Flag Coverage Δ
linux 86.27% <0.00%> (ø)
osx 75.56% <0.00%> (ø)
other 86.46% <0.00%> (ø)
win 83.76% <0.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.

@mrmundt mrmundt merged commit e01e74b into Pyomo:main Jul 9, 2024
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