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 load variable in reserve constraint #451

Merged
merged 2 commits into from
Dec 16, 2022
Merged

Fix load variable in reserve constraint #451

merged 2 commits into from
Dec 16, 2022

Conversation

pz-max
Copy link
Collaborator

@pz-max pz-max commented Dec 16, 2022

Changes proposed in this Pull Request

There is a reserve constraint set which considers the total demand per snapshot.
The total demand per snapshot was assigned as: demand = n.loads_t.p.sum(1)
However, this will always result in 0

My suggestions would be: demand = n.loads_t.p_set.sum(1)

Checklist

  • I tested my contribution locally and it seems to work fine.
  • A note for the release notes doc/release_notes.rst is amended in the format of the previous release notes.

@fneum fneum enabled auto-merge December 16, 2022 11:06
@fneum
Copy link
Member

fneum commented Dec 16, 2022

Good catch !

@fneum fneum merged commit a22dc92 into master Dec 16, 2022
@fneum fneum deleted the pz-max-patch-1 branch December 16, 2022 12:18
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