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

Add max value for hybrid glsks #126

Merged
merged 5 commits into from
Dec 15, 2023
Merged

Add max value for hybrid glsks #126

merged 5 commits into from
Dec 15, 2023

Conversation

phiedw
Copy link
Collaborator

@phiedw phiedw commented Dec 15, 2023

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)

Does this PR already have an issue describing the problem?

No

What kind of change does this PR introduce?

Feature / bug fix

What is the current behavior?

Currently, we compute a max on each of the generators from the proportional scalable (by multiplying the max value for the whole glsk by the proportion of each generator). This is not quite correct though if we scale while trying to respect the volume asked for a scale, in the case where some generators become saturated (the remainder can not be added to the other generators because of the max value applied to each generator)

What is the new behavior (if this is a feature change)?
With the new API in powsybl core, it is now possible to define a max on a proportional scalable. This replaces the old max we used to put per generator (in this case precisely)

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

…ather than the generators

Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com>
Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com>
correctly use min and max values for hybrid glsks

Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com>
Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com>
… hybrid_scalable_max

Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com>
Copy link

@phiedw phiedw merged commit 0c9b57b into main Dec 15, 2023
6 checks passed
@phiedw phiedw deleted the hybrid_scalable_max branch December 15, 2023 13:13
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