powsybl-open-loadflow
powsybl-open-loadflow copied to clipboard
[WIP] Add a parameter to ignore QPercent for remote voltage control.
Please check if the PR fulfills these requirements
- [X ] The commit message follows our guidelines
- [X] Tests for the changes have been added (for bug fixes / features)
- [ ] Docs have been added / updated (for bug fixes / features)
Does this PR already have an issue describing the problem? For remote voltage control, in case several bus control the same target bus, the amount of reactive power to be provided by each controlling bus can be determined by qPercent. If this data is not provided as input, openLoadFlow falls back to a repartition key based on reactive power range. In some situations, the qPercent data is irrelevant and it is desired to always use the bus reactive power range as repartition key. The new parameter enables to ignore the qPercent input data and use this default repartition key.
What kind of change does this PR introduce? New parameter and associated behaviour.
What is the current behavior? qPercent are used if present.
What is the new behavior (if this is a feature change)? Same as before, unless the parameter remoteVoltageControlIgnoreQPercent is explicitely set to True.
Does this PR introduce a breaking change or deprecate an API?
- [ ] Yes
- [X] No