pypowsybl.network.scalable.ProportionalScalable.from_injections_and_percentages

classmethod ProportionalScalable.from_injections_and_percentages(injection_ids, percentages, min_value=None, max_value=None)[source]

Create a ProportionalScalable from a list of injection IDs and their corresponding percentage of power repartition.

Parameters:
  • injection_ids (List[str]) – List of injection IDs.

  • percentages (List[float]) – List of percentages corresponding to each injection.

  • min_value (float | None) – Minimum value for the scalable. Defaults to None.

  • max_value (float | None) – Maximum value for the scalable. Defaults to None.

Return type:

ProportionalScalable