pypowsybl.network.scalable.ProportionalScalable.from_scalables_and_percentages¶
- classmethod ProportionalScalable.from_scalables_and_percentages(scalables, percentages, min_value=None, max_value=None)[source]¶
Create a ProportionalScalable from a list of Scalable and their corresponding percentage of power repartition.
- Parameters:
scalables (List[Scalable]) – List of underlying Scalable.
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: