pypsa.statistics.StatisticsAccessor.optimal_capacity

pypsa.statistics.StatisticsAccessor.optimal_capacity#

StatisticsAccessor.optimal_capacity(comps: Sequence[str] | str | None = None, aggregate_groups: Callable | str | bool = 'sum', groupby: Callable | None = None, at_port: Sequence[str] | str | bool | None = None, bus_carrier: Sequence[str] | str | None = None, storage: bool = False, nice_names: bool | None = None) DataFrame#

Calculate the optimal capacity of the network components in MW. Positive capacity values correspond to production capacities and negative values to consumption capacities.

If bus_carrier is given, the capacity is weighted by the output efficiency of bus_carrier.

If storage is set to True, only storage capacities of the component Store and StorageUnit are taken into account.

For information on the list of arguments, see the docs in Network.statistics or pypsa.statistics.StatisticsAccessor.