pypsa.optimization.optimize.OptimizationAccessor.add_load_shedding

pypsa.optimization.optimize.OptimizationAccessor.add_load_shedding#

OptimizationAccessor.add_load_shedding(suffix: str = ' load shedding', buses: Index | None = None, sign: float | Series = 0.001, marginal_cost: float | Series = 100.0, p_nom: float | Series = 1000000000.0) Index#

Add load shedding in form of generators to all or a subset of buses.

For more information on load shedding see http://journal.frontiersin.org/article/10.3389/fenrg.2015.00055/full

Parameters:
  • buses (pandas.Index, optional) – Subset of buses where load shedding should be available. Defaults to all buses.

  • sign (float/Series, optional) – Scaling of the load shedding. This is used to scale the price of the load shedding. The default is 1e-3 which translates to a measure in kW instead of MW.

  • marginal_cost (float/Series, optional) – Price of the load shedding. The default is 1e2.

  • p_nom (float/Series, optional) – Maximal load shedding. The default is 1e9 (kW).