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

correct overgeneration consumption for controllable modules #231

Merged
merged 1 commit into from
Mar 2, 2023

Conversation

RoKe2017
Copy link
Contributor

@RoKe2017 RoKe2017 commented Feb 28, 2023

Hi,
while working with your project and analyzing your code, I stumbled accross an misscalculation if the provided energy exceeds the load. I think you have misplaced the relational operator here. First tests show that the miscalculation is resolved with this change.
(-1 * remaining_load) should be greate than (max_consumption) to exceed the modules consumption

Best regards ;)


📚 Documentation preview 📚: https://pymgrid--231.org.readthedocs.build/en/231/

(-1 * remaining_load) should be greate than (max_consumption) to exceed the modules consumption.
@ahalev
Copy link
Collaborator

ahalev commented Feb 28, 2023

Good catch, thanks.

@ahalev ahalev requested review from den-run-ai and ahalev and removed request for ahalev February 28, 2023 17:45
@ahalev ahalev merged commit 74a0c38 into Total-RD:master Mar 2, 2023
@ahalev
Copy link
Collaborator

ahalev commented Mar 2, 2023

Need to add test coverage: #232 (comment)

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