powsybl / powsybl-open-loadflow

An open source loadflow based on PowSyBl
Mozilla Public License 2.0
48 stars 7 forks source link

Fast DC security analysis using Woodbury engine #1072

Closed p-arvy closed 1 month ago

p-arvy commented 3 months ago

Please check if the PR fulfills these requirements

Does this PR already have an issue describing the problem?

No.

What kind of change does this PR introduce?

A fast DC SA based on Woodbury equality is added. Please note that for now, no action is supported in this SA, and that contingencies on switches are not yet supported.

To test it, and to check that it is isofunctional with the current DC SA implementation (actions/contingencies on switches aside), the same TUs from the OpenSecurityAnalysisTest class are used. To do so, TUs are parameterized to be run with both DC AS implementations, using the boolean parameter dcFastMode from the OpenSecurityAnalysisParameter class.

When it is necessary, TUs are split so there is no redundancy in what is being tested (e.g. when an AC AS and a DC AS are run in the same TU).

What is the current behavior?

No such SA exists.

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

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

If yes, please check if the following requirements are fulfilled

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

Other information:

sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

Issues
4 New issues
0 Accepted issues

Measures
0 Security Hotspots
95.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
4 New issues
0 Accepted issues

Measures
0 Security Hotspots
95.9% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud