Skip to content

Mixed security analysis#3871

Open
RiadBRD wants to merge 3 commits intomainfrom
mixed_security_analysis
Open

Mixed security analysis#3871
RiadBRD wants to merge 3 commits intomainfrom
mixed_security_analysis

Conversation

@RiadBRD
Copy link
Copy Markdown
Collaborator

@RiadBRD RiadBRD commented Apr 13, 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)

What kind of change does this PR introduce?
feature

What is the new behavior (if this is a feature change)?
This PR introduces a new Mixed-Mode Security Analysis feature. It adds a new SecurityAnalysisProvider that orchestrates a two-pass workflow:

1.Static Analysis : It first runs a fast, static analysis (e.g., using OpenLoadFlow) on all specified contingencies.

2.Criteria Evaluation : It then evaluates the results of the static pass against a configurable set of criteria (e.g.,NOT_CONVERGED, SPS_TRIGGERED, LIMIT_VIOLATIONS).

3.Dynamic Analysis Pass : For any contingencies that meet the switch criteria, it automatically triggers a more detailed dynamic analysis (e.g., using DynaFlow).

4.Result Merging : Finally, it merges the results from both passes, prioritizing the results from the dynamic analysis for any contingencies that were re-analyzed.

This allows for a more efficient and targeted security analysis, where computationally expensive dynamic simulations are only used when necessary.

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

  • Yes
  • No

Riad Benradi added 2 commits April 13, 2026 07:45
Adds a new provider that orchestrates a two-pass security analysis.

It first runs a static analysis on all contingencies. Based on configurable criteria (e.g., `NOT_CONVERGED`, `SPS_TRIGGERED`), it can then run a dynamic analysis on a subset of contingencies that require further investigation.

Signed-off-by: Riad Benradi <riad.benradi_externe@rte-france.com>
Signed-off-by: Riad Benradi <riad.benradi_externe@rte-france.com>
Signed-off-by: Riad Benradi <riad.benradi_externe@rte-france.com>
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
1.2% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@RiadBRD RiadBRD requested a review from geofjamg April 13, 2026 07:45
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.

1 participant