shed_energy#

relsad.energy.shed_energy(power_system: relsad.network.systems.PowerSystem.PowerSystem, dt: relsad.Time.Time, alpha: float = 0.0001)[source]#

Sheds the unsupplied loads of the power system over the time period, dt, using a linear minimization problem solved with linear programming

See /theory/opt for more details.

Parameters
  • power_system (PowerSystem) – The power system that is under consideration

  • dt (Time) – The current time step

  • alpha (float) – Slack variable to cope with numerical noise

  • formulation (Problem) –

  • --------------------

  • sum(P_shed_n) (minimize) –

  • that (such) –

    sum(P_shed_n) - sum(P_line_nl) + sum(P_gen_n) = sum(P_load_n) for all buses n

    0 <= P_shed_n <= P_load_n

    -P_line_nl_max <= P_line_nl <= P_line_nl_max

    P_gen_n_min <= P_gen_n <= P_gen_n_max

  • difficulties (The problem is solved with the following modification to prevent numerical) –

  • that

    sum(P_shed_n) - sum(P_line_nl) + sum(P_gen_n) + alpha = sum(P_load_n) for all buses n

    0 <= P_shed_n <= P_load_n

    -P_line_nl_max <= P_line_nl <= P_line_nl_max
    P_gen_n_min <= P_gen_n <= P_gen_n_max

    alpha_min <= alpha <= alpha_max

Return type

None