pypowsybl icon indicating copy to clipboard operation
pypowsybl copied to clipboard

Loadflow provider parameters: use config as default values

Open sylvlecl opened this issue 2 years ago • 0 comments

  • Do you want to request a feature or report a bug?

More like a bug.

  • What is the current behavior?

When the user defines provider_parameters, the values from config.yml of the parameters extension will completely be ignored.

For example, if we have this in config:

open-loadflow-default-parameters:
    voltageRemoteControl: true

Then:

params = lf.Parameters()
lf.run_ac(network, params)  # OK, will simulate remote voltage control

params = lf.Parameters(provider_parameters={'maxIterations': '40'})
lf.run_ac(network, params)  # NOT OK, will not simulate remote voltage control
  • What is the expected behavior?

The values from configuration should be used as base values, and only the ones that are defined in provider_parameters should be overriden.

This will required https://github.com/powsybl/powsybl-core/issues/2115

sylvlecl avatar May 12 '22 11:05 sylvlecl