pypowsybl.network.Network.create_minmax_reactive_limits

Network.create_minmax_reactive_limits(df=None, **kwargs)[source]

Creates reactive limits of type min/max.

Parameters:
  • df (DataFrame | None) – Attributes as a dataframe.

  • kwargs (Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str]) – Attributes as keyword arguments.

Return type:

None

Notes

Data may be provided as a dataframe or as keyword arguments. In the latter case, all arguments must have the same length.

Valid attributes are:

  • id: the identifier of the generator

  • min_q: minimum reactive limit, in MVAr

  • max_q: maximum reactive limit, in MVAr

Previously defined limits for a given generator, if present, will be replaced by the new ones.

Examples

Using keyword arguments:

network.create_minmax_reactive_limits(id='GEN-1', min_q=-100, max_q=100)