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 configuration of reactive slacks repartition #41

Merged
merged 20 commits into from
Nov 27, 2023

Conversation

p-arvy
Copy link
Member

@p-arvy p-arvy commented Nov 10, 2023

…ode.

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)
  • Docs have been added / updated (for bug fixes / features)

Does this PR already have an issue describing the problem?

#20

What kind of change does this PR introduce?

The high limit on reactive slack variables is removed. Slacks are now at each node of the network.

What is the current behavior?

The reactive slack variables have upper bound = 500 MVar. Only buses without generator, vsc and svc have reactive slacks.

What is the new behavior (if this is a feature change)?

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

  • The Breaking Change or Deprecated label has been added
  • The migration guide has been updated in the github wiki (What changes might users need to make in their application due to this PR?)

Other information:

…ode.

Signed-off-by: parvy <pierre.arvy@artelys.com>
@p-arvy p-arvy requested a review from klorel November 10, 2023 14:01
@p-arvy p-arvy self-assigned this Nov 10, 2023
@p-arvy p-arvy changed the title Add reactive slacks at each node, without high limit [WIP] Add reactive slacks configuration Nov 13, 2023
Signed-off-by: parvy <pierre.arvy@artelys.com>
Signed-off-by: parvy <pierre.arvy@artelys.com>
@p-arvy p-arvy changed the title [WIP] Add reactive slacks configuration Add configuration of reactive slacks repartition Nov 15, 2023
@p-arvy p-arvy requested a review from annetill November 16, 2023 12:40
@p-arvy p-arvy changed the title Add configuration of reactive slacks repartition [WIP] Add configuration of reactive slacks repartition Nov 17, 2023
Signed-off-by: parvy <pierre.arvy@artelys.com>
Signed-off-by: parvy <pierre.arvy@artelys.com>
Signed-off-by: parvy <pierre.arvy@artelys.com>
Signed-off-by: parvy <pierre.arvy@artelys.com>
Signed-off-by: parvy <pierre.arvy@artelys.com>
Signed-off-by: parvy <pierre.arvy@artelys.com>
Signed-off-by: parvy <pierre.arvy@artelys.com>
Signed-off-by: parvy <pierre.arvy@artelys.com>
@p-arvy p-arvy changed the title [WIP] Add configuration of reactive slacks repartition Add configuration of reactive slacks repartition Nov 22, 2023
Copy link
Contributor

@klorel klorel left a comment

Choose a reason for hiding this comment

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

please change the value of buses_with_reactive_slacks to have an explicit description of the behavior

Signed-off-by: parvy <pierre.arvy@artelys.com>
Copy link
Contributor

@klorel klorel left a comment

Choose a reason for hiding this comment

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

AMPL CODE OK

# Conflicts:
#	open-reac/src/main/java/com/powsybl/openreac/parameters/input/OpenReacParameters.java
#	open-reac/src/main/java/com/powsybl/openreac/parameters/input/json/OpenReacParametersDeserializer.java
#	open-reac/src/main/java/com/powsybl/openreac/parameters/input/json/OpenReacParametersSerializer.java
#	open-reac/src/test/java/com/powsybl/openreac/OpenReacParametersTest.java
#	open-reac/src/test/java/com/powsybl/openreac/OpenReacRunnerTest.java
#	open-reac/src/test/java/com/powsybl/openreac/parameters/input/json/OpenReacJsonModuleTest.java
#	open-reac/src/test/resources/expected_inputs/param_algo.txt
#	open-reac/src/test/resources/expected_inputs/param_buses_with_reactive_slack.txt
#	open-reac/src/test/resources/openreac-output-ieee14/reactiveopf_results_indic.txt
#	open-reac/src/test/resources/openreac-output-real-network/reactiveopf_results_generators.csv
#	open-reac/src/test/resources/openreac-output-real-network/reactiveopf_results_indic.txt
#	open-reac/src/test/resources/openreac-output-shunt/reactiveopf_results_indic.txt
#	open-reac/src/test/resources/openreac-output-shunt/reactiveopf_results_shunts.csv
#	open-reac/src/test/resources/openreac-output-svc/reactiveopf_results_indic.txt
#	open-reac/src/test/resources/openreac-output-transfo/reactiveopf_results_generators.csv
#	open-reac/src/test/resources/openreac-output-transfo/reactiveopf_results_indic.txt
#	open-reac/src/test/resources/openreac-output-vsc/reactiveopf_results_indic.txt
#	open-reac/src/test/resources/parameters.json
Signed-off-by: parvy <pierre.arvy@artelys.com>
Signed-off-by: parvy <pierre.arvy@artelys.com>
Signed-off-by: parvy <pierre.arvy@artelys.com>
Signed-off-by: parvy <pierre.arvy@artelys.com>
@@ -0,0 +1,3 @@
#amplId powsyblId
Copy link
Member

Choose a reason for hiding this comment

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

powsyblId :-) everything here is powsybl

Copy link
Member Author

@p-arvy p-arvy Nov 24, 2023

Choose a reason for hiding this comment

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

I agree with this. We have to change the write function of AbstractElementInput class then :)
"#num id" would be consistent with other input/output AMPL files. Do you agree ?

Copy link
Member

Choose a reason for hiding this comment

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

If it is in core, it is too late...

@@ -190,6 +200,15 @@ public OpenReacParameters setMaxPlausibleHighVoltageLimit(double maxPlausibleHig
return this;
}

public OpenReacBusesWithReactiveSlackConfig getBusesWithReactiveSlackConfig() {
Copy link
Member

Choose a reason for hiding this comment

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

Java doc missing.

annetill and others added 2 commits November 24, 2023 16:51
Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
Signed-off-by: parvy <pierre.arvy@artelys.com>
Copy link

sonarcloud bot commented Nov 24, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

97.6% 97.6% Coverage
0.0% 0.0% Duplication

@annetill annetill merged commit a129815 into main Nov 27, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants