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

fix: let cplex handle infs in constraints #369

Closed
wants to merge 1 commit into from

Conversation

lkstrp
Copy link
Member

@lkstrp lkstrp commented Oct 31, 2024

Closes #362
Closes PyPSA/PyPSA#1057

  • cplex can't read inf values from an lp file. But they have been introduced in a new optional constraint in PyPSA 0.31.0
    • Instead they get truncated to 1e20 (see here)
  • This behaviour is now also implemented in here. Existing constraints in the model are modified, the change does not just affect the created problem file.

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.

Issue creating model with CPLEX CPLEX Unable to interpret unconstrained variables
1 participant