Skip to content

Minimal adaptation for sensitivity analysis with operator strategies#1375

Merged
SylvestreSakti merged 2 commits intoci/core-7.2.0-SNAPSHOTfrom
adapt_to_core_3670
Mar 20, 2026
Merged

Minimal adaptation for sensitivity analysis with operator strategies#1375
SylvestreSakti merged 2 commits intoci/core-7.2.0-SNAPSHOTfrom
adapt_to_core_3670

Conversation

@olperr1
Copy link
Copy Markdown
Member

@olperr1 olperr1 commented Mar 20, 2026

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)
  • A PR or issue has been opened in all impacted repositories (if any)

Does this PR already have an issue describing the problem?

No

What kind of change does this PR introduce?

Dependency adaptation

What is the current behavior?

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

Minimal adaptation for sensitivity analysis with operator strategies (powsybl/powsybl-core#3670):

  • The code compiles
  • The unit tests pass
  • But, other operator strategy calculation mode other than NONE are not supported (an exception is thrown)

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:

…(powsybl-core 3670)

Signed-off-by: Olivier Perrin <olivier.perrin@rte-france.com>
Comment on lines +210 to +213
if (sensitivityAnalysisParameters.getOperatorStrategiesCalculationMode() != SensitivityOperatorStrategiesCalculationMode.NONE) {
throw new UnsupportedOperationException("Unsupported operator strategies calculation mode: " + sensitivityAnalysisParameters.getOperatorStrategiesCalculationMode());
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Here is the test throwing an exception when the mode is not NONE.

@olperr1 olperr1 requested a review from SylvestreSakti March 20, 2026 09:33
@SylvestreSakti SylvestreSakti merged commit 21f5fd3 into ci/core-7.2.0-SNAPSHOT Mar 20, 2026
3 of 6 checks passed
@SylvestreSakti SylvestreSakti deleted the adapt_to_core_3670 branch March 20, 2026 11:55
SylvestreSakti added a commit that referenced this pull request Mar 23, 2026
* Bump IIDM version to 1.16 in unit test files (#1343)

* Rename DanglingLine to BoundaryLine (#1364)

* Adapt to core 3669 - Properties on MinMaxReactiveLimits (#1376)

* Minimal adaptation for sensitivity analysis with operator strategies (powsybl-core 3670) (#1375)

* Adaptation for new security analysis API (powsybl-core 3789) (#1377)

* Bump to powsybl-core 7.2.0-RC1

* Fix doc issue : Dangling Line to Boundary Line

---------
Signed-off-by: Sylvestre Prabakaran <sylvestre.prabakaran@rte-france.com>
Co-authored-by: Olivier Perrin <olivier.perrin@rte-france.com>
Co-authored-by: Damien Jeandemange <damien.jeandemange@artelys.com>
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