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

fixed pyomo release compatibility issues #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ddceruti
Copy link

So I tried to install romodel and noticed pyomo version compatibility issues:

  1. pyomo==6.0 does not require pytulib -> added to requirements and setup.py
  2. pyomo==5.7.3. does not support ScalarBlock -> latest commit does not work
  3. pyomo 6.4.2 throws an error in romodel/uncparam.py constructor
    AttributeError: 'IndexedUncParam' object has no attribute '_index'

Therefore I updated setup.py and requirements with pyomo == 6.0 and pyutilib. Works on windows 10 and python 3.10 w_th gurobi.

Additionally updated the version to the latest romodel release v0.1.0

@ddceruti
Copy link
Author

ddceruti commented Nov 11, 2022

Additional info on the ScalarBlock commit: #1 which causes #2 due to pyomo >= 6.0 defaulting to latest 6.4.2 release.

@ddceruti ddceruti changed the title fixed pyomo version compatibility with ScalarBlock fixed pyomo release compatibility issues Nov 11, 2022
@rmisener
Copy link
Member

Thanks a lot for this. I'm going to contact Johannes and see if he has time to review this.

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.

2 participants