Skip to content

Improve sensitivity analysis run parameters #3409

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
alicecaron opened this issue Apr 17, 2025 · 0 comments
Open

Improve sensitivity analysis run parameters #3409

alicecaron opened this issue Apr 17, 2025 · 0 comments

Comments

@alicecaron
Copy link
Contributor

alicecaron commented Apr 17, 2025

Describe the current behavior

To run a sensitivity analysis on a Network, a lot of parameters must be set.

Describe the expected behavior

To run a sensitivity analysis on a Network, we can precise the network, sensitivity factors and only the wanted parameters to override (none if need be).

Describe the motivation

For some use cases the use of SensitivityAnalysis::run does not need a lot of parameters. The mandatory parameters should always be the Network on which the analysis is wanted and a list of SensitivityFactor.
The other parameters could be set by default and overridden only if needed:

  • variant: VariantManagerConstants.INITIAL_VARIANT_ID
  • List of SensitivityVariableSet : empty list
  • List of Contingency: empty list
  • parameters of the SensitivityAnalysis: SensitivityAnalysisParameters.load()
  • computation manager: LocalComputationManager.getDefault()
  • report node: ReportNode.NO_OP

For that, we can create for instance an SensitivityAnalysis inner class Runner that sets all the parameters by default and allows them to be overridden, like this following example:

SensitivityAnalysis.newRunner(network, sensitivityFactors)
    .setComputationManager(manager)
    .setReportNode(report)
    .run();

Extra Information

We keep all the current SensitivityAnalysis::run methods for simple cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: TODO
Development

No branches or pull requests

1 participant