Conversation
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>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Please check if the PR fulfills these requirements
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?