-
Notifications
You must be signed in to change notification settings - Fork 8
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
Support of new BalanceType PROPORTIONAL_TO_GENERATION_PARTICIPATION_FACTOR and PROPORTIONAL_TO_GENERATION_REMAINING_MARGIN #702
Conversation
@caioluke be careful your branch seems to be very far from main! You should rebase you dev on main. |
I have rebased it on integration core 5.1.0 snapshot yesterday to be able to use the features I needed from it |
src/main/java/com/powsybl/openloadflow/network/impl/LfGeneratorImpl.java
Show resolved
Hide resolved
99d0354
to
fc28fb8
Compare
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com>
Signed-off-by: Caio Luke <caio.luke@artelys.com>
Signed-off-by: Caio Luke <caio.luke@artelys.com>
Signed-off-by: Caio Luke <caio.luke@artelys.com>
Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
src/main/java/com/powsybl/openloadflow/network/impl/LfBatteryImpl.java
Outdated
Show resolved
Hide resolved
src/main/java/com/powsybl/openloadflow/network/LfGenerator.java
Outdated
Show resolved
Hide resolved
src/main/java/com/powsybl/openloadflow/network/impl/LfBatteryImpl.java
Outdated
Show resolved
Hide resolved
src/main/java/com/powsybl/openloadflow/network/impl/LfGeneratorImpl.java
Outdated
Show resolved
Hide resolved
src/main/java/com/powsybl/openloadflow/network/util/GenerationActivePowerDistributionStep.java
Show resolved
Hide resolved
sonar report lots of duplicate (relative to the modified code) but I am not so sure of the best way to get rid of the code duplicates without compromising code readability ... should we really do something about it ? |
Signed-off-by: Caio Luke <caio.luke@artelys.com>
Signed-off-by: Caio Luke <caio.luke@artelys.com>
Signed-off-by: Damien Jeandemange <damien.jeandemange@artelys.com>
Signed-off-by: Damien Jeandemange <damien.jeandemange@artelys.com>
Signed-off-by: Damien Jeandemange <damien.jeandemange@artelys.com>
Signed-off-by: Damien Jeandemange <damien.jeandemange@artelys.com>
case TARGET: | ||
case REMAINING_MARGIN: | ||
// nothing more to do here | ||
// the check whether TargetP is within Pmin-Pmax range was already included in generator.isParticipating() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the comment here maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was unclear indeed, fixed this way:
// nothing more to do here: the check whether TargetP is within Pmin-Pmax range
// was already made in AbstractLfGenerator#checkActivePowerControl
// whose result is reflected in generator.isParticipating()
Signed-off-by: Damien Jeandemange <damien.jeandemange@artelys.com>
Signed-off-by: Damien Jeandemange <damien.jeandemange@artelys.com>
Signed-off-by: Damien Jeandemange <damien.jeandemange@artelys.com>
SonarCloud Quality Gate failed. |
…ACTOR and PROPORTIONAL_TO_GENERATION_REMAINING_MARGIN (#702) Signed-off-by: Caio Luke <caio.luke@artelys.com> Co-authored-by: Anne Tilloy <anne.tilloy@rte-france.com> Co-authored-by: Damien Jeandemange <damien.jeandemange@artelys.com>
Requires upcoming version of powsybl-core to work
See changes from commit ->
add two new BalanceTypes ...
9df191fOther changes come from integration branch
Please check if the PR fulfills these requirements (please use
'[x]'
to check the checkboxes, or submit the PR and then click the checkboxes)Does this PR already have an issue describing the problem ? If so, link to this issue using
'#XXX'
and skip the restWhat kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Adds support to PROPORTIONAL_TO_GENERATION_PARTICIPATION_FACTOR and PROPORTIONAL_TO_GENERATION_REMAINING_MARGIN in balanceType
What is the current behavior? (You can also link to an open issue here)
What is the new behavior (if this is a feature change)?
Does this PR introduce a breaking change or deprecate an API? If yes, check the following:
Other information:
Relates to
powsybl/powsybl-core#2402
powsybl/powsybl-core#2435
(if any of the questions/checkboxes don't apply, please delete them entirely)