Skip to content

Evolution of the sensitivity analysis ResultWriter and Result to support multi-component computation, improve diagnostic and support cancel#3773

Open
snoopfab wants to merge 8 commits intomainfrom
features/sensitivity-analysis-resultwriter-enhancements
Open

Evolution of the sensitivity analysis ResultWriter and Result to support multi-component computation, improve diagnostic and support cancel#3773
snoopfab wants to merge 8 commits intomainfrom
features/sensitivity-analysis-resultwriter-enhancements

Conversation

@snoopfab
Copy link
Contributor

@snoopfab snoopfab commented Feb 11, 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?

Fixes #3626

What kind of change does this PR introduce?

Feature:
Enable to add multi-component support for sensitivity analysis inOpenLoadFlow
Enable to return partial results in case of interruption
Enable a better diagnosis of contingency failure

What is the current behavior?

See #3626

What is the new behavior (if this is a feature change)?
Implemented changes described in #3626

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)

TODO

Other information:

Fabrice Buscaylet added 5 commits February 11, 2026 14:50
- No support of multi-component computation (no way to report if a base simulation succeeds on one component but fails on another)
- No indication of the cause of a failure to compute a contingency, compared to what is reported for a loadflow run. It makes it hard to troubleshoot issues when results are missing for a contingency.
- No indication whether the result is complete or only partial, if the operation has been canceled and the thread interrupted.

- Enable to add multi-component support for sensitivity analysis inOpenLoadFlow
- Enable to return partial results in case of interruption
- Enable a better diagnosis of contingency failure

Signed-off-by: Fabrice Buscaylet <fabrice.buscaylet@artelys.com>
- No support of multi-component computation (no way to report if a base simulation succeeds on one component but fails on another)
- No indication of the cause of a failure to compute a contingency, compared to what is reported for a loadflow run. It makes it hard to troubleshoot issues when results are missing for a contingency.
- No indication whether the result is complete or only partial, if the operation has been canceled and the thread interrupted.

- Enable to add multi-component support for sensitivity analysis inOpenLoadFlow
- Enable to return partial results in case of interruption
- Enable a better diagnosis of contingency failure

Signed-off-by: Fabrice Buscaylet <fabrice.buscaylet@artelys.com>
Signed-off-by: Fabrice Buscaylet <fabrice.buscaylet@artelys.com>
Signed-off-by: Fabrice Buscaylet <fabrice.buscaylet@artelys.com>
Signed-off-by: Fabrice Buscaylet <fabrice.buscaylet@artelys.com>
@snoopfab snoopfab added the Breaking Change API is broken label Feb 11, 2026
@snoopfab snoopfab self-assigned this Feb 11, 2026
@snoopfab snoopfab changed the title features/sensitivity-analysis-resultwriter-enhancements Evolution of the sensitivity analysis ResultWriter and Result to support multi-component computation, improve diagnostic and support cancel Feb 24, 2026
Fabrice Buscaylet added 3 commits February 24, 2026 12:12
…tatus in precontingency case

Signed-off-by: Fabrice Buscaylet <fabrice.buscaylet@artelys.com>
…r herited classes

added tests coverage

Signed-off-by: Fabrice Buscaylet <fabrice.buscaylet@artelys.com>
…rTest testTaskInterruption

Signed-off-by: Fabrice Buscaylet <fabrice.buscaylet@artelys.com>
@sonarqubecloud
Copy link

@alicecaron alicecaron moved this from TODO to Waiting for review in Release 03/2026 Mar 2, 2026
@alicecaron alicecaron requested a review from rolnico March 2, 2026 12:20

@Override
public void computationComplete() {
// WHAT TO DO HERE ??
Copy link
Contributor

Choose a reason for hiding this comment

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

set to computationComplete to true like for the json writer?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hello Alice.

The goal of the writer is to write the information on several csv files (unlike the json one that can handle all information in one single file). I'm a little bit reluctant to create a computation.csv with just a computationComplete column with a true value in one line hence my question. Maybe adding some other global statistics on the computation for the future in the computationComplete( Map<String,Double> computationStats) would have sense in a future PR ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Evolution of the sensitivity analysis ResultWriter and Result to support multi-component computation, improve diagnostic and support cancel

2 participants