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

Hydro Reservoir Levels Check #2513

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

Conversation

nikolaredstork
Copy link
Collaborator

At the moment, minimum reservoir levels can be greater than average reservoir levels and average reservoir levels can be greater than maximum reservoir levels.
This PR introduces new checking logic: 0 <= minLevel <= avgLevel <= maxLevel <= 100
With new checking logic minimum levels cannot be greater than average levels and average levels cannot be greater than maximum levels.
Note: Function where Antares is checking reservoir levels is called checkReservoirLevels, but also in this function Antares is checking inflow patterns (data that is used for TS generator) and credit modulation data. Maybe this function should be renamed or broken down into three separate functions.

@nikolaredstork nikolaredstork added bug Something isn't working RTE-i labels Nov 28, 2024
&& (colMin[day] < 0 || colAvg[day] < 0 || colMin[day] > colMax[day]
|| colAvg[day] > 100 || colMax[day] > 100))
&& (0 > colMin[day] || colMin[day] > colAvg[day] || colAvg[day] > colMax[day]
|| colMax[day] > 100))
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@flomnes Also, variables colMin[day], colMax[day], colAvg[day] contains values between 0-1, so comparing values with 100 is a bug, we need to compare it with 1.
Would you be able to confirm that?

@flomnes flomnes requested a review from guilpier-code December 6, 2024 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working RTE-i size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant