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

Extract Woodbury engine from DC sensitivity analysis #1064

Merged
merged 37 commits into from
Jul 19, 2024

Conversation

p-arvy
Copy link
Member

@p-arvy p-arvy commented Jul 10, 2024

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?

No.

What kind of change does this PR introduce?

The calculation associated with Woodbury equality in DC sensitivity analysis is extracted into a new class : WoodburyEngine.

What is the current behavior?

The calculations are made in DC sensitivity analysis.

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

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

  • Yes
  • No

If yes, please check if the following requirements are fulfilled

  • The Breaking Change or Deprecated label has been added
  • The migration steps are described in the following section

What changes might users need to make in their application due to this PR? (migration steps)

Other information:

p-arvy and others added 17 commits July 9, 2024 14:41
Signed-off-by: p-arvy <pierre.arvy@artelys.com>
Signed-off-by: p-arvy <pierre.arvy@artelys.com>
Signed-off-by: p-arvy <pierre.arvy@artelys.com>
Signed-off-by: p-arvy <pierre.arvy@artelys.com>
Signed-off-by: p-arvy <pierre.arvy@artelys.com>
Signed-off-by: p-arvy <pierre.arvy@artelys.com>
Signed-off-by: p-arvy <pierre.arvy@artelys.com>
Signed-off-by: p-arvy <pierre.arvy@artelys.com>
Signed-off-by: p-arvy <pierre.arvy@artelys.com>
This reverts commit 4f5fbe3.
Signed-off-by: p-arvy <pierre.arvy@artelys.com>
Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
Signed-off-by: p-arvy <pierre.arvy@artelys.com>
Signed-off-by: p-arvy <pierre.arvy@artelys.com>
Signed-off-by: p-arvy <pierre.arvy@artelys.com>
@p-arvy p-arvy changed the base branch from main to one-sensi-calculation-for-one-contingency July 10, 2024 14:32
Signed-off-by: p-arvy <pierre.arvy@artelys.com>
p-arvy and others added 2 commits July 11, 2024 13:06
Signed-off-by: p-arvy <pierre.arvy@artelys.com>
Signed-off-by: Hadrien <hadrien.godard@artelys.com>
Base automatically changed from one-sensi-calculation-for-one-contingency to main July 12, 2024 14:06
p-arvy and others added 5 commits July 12, 2024 16:50
# Conflicts:
#	src/main/java/com/powsybl/openloadflow/sensi/DcSensitivityAnalysis.java
Signed-off-by: p-arvy <pierre.arvy@artelys.com>
Signed-off-by: p-arvy <pierre.arvy@artelys.com>
Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
Signed-off-by: Hadrien <hadrien.godard@artelys.com>
Hadrien-Godard and others added 7 commits July 15, 2024 12:26
Signed-off-by: Hadrien <hadrien.godard@artelys.com>
Signed-off-by: Hadrien <hadrien.godard@artelys.com>
Signed-off-by: Hadrien <hadrien.godard@artelys.com>
Signed-off-by: Hadrien <hadrien.godard@artelys.com>
Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
Copy link
Member

@annetill annetill left a comment

Choose a reason for hiding this comment

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

Nice work. All tests passing, including our internal cucumber tests. Maybe need a check from @jeandemanged because we create a new engine.

@jeandemanged
Copy link
Member

Nice work. All tests passing, including our internal cucumber tests. Maybe need a check from @jeandemanged because we create a new engine.

will have a look by the end of the day

@jeandemanged jeandemanged self-requested a review July 16, 2024 10:00
Signed-off-by: Hadrien <hadrien.godard@artelys.com>
Signed-off-by: Hadrien <hadrien.godard@artelys.com>
Signed-off-by: Hadrien <hadrien.godard@artelys.com>
Copy link
Member

@jeandemanged jeandemanged left a comment

Choose a reason for hiding this comment

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

commit signoff to be fixed

Copy link

sonarcloud bot commented Jul 19, 2024

Copy link
Member

@annetill annetill left a comment

Choose a reason for hiding this comment

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

Tests are passing: powsybl-open-rao ok and internal tests too. Note that refactoring must continue in another PR because the remaining "weird" design is that the run method of the engine takes as argument a "new flow states", slightly modified from the N states. I think this must be hidden in the engine.

@annetill annetill merged commit 52f1468 into main Jul 19, 2024
7 checks passed
@annetill annetill deleted the extract-woodbury-engine branch July 19, 2024 09:41
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.

None yet

4 participants