Using a negative load for laod shedding

59 views
Skip to first unread message

Sebastian Wurm

unread,
Mar 27, 2025, 3:37:15 AMMar 27
to pypsa
I was wondering if I could use a negative, controllable load for load shedding instead of the method using "dummy" generators?

Something like this: 
network.add("Load", "actual_load",
            bus="main_bus",
            p_set=[50]*24)  # Fixed demand of 50 MW

network.add("Load", "load_shedding",
            bus="main_bus",
            p_set=0,  # Starts with zero shedding
            controllable=True,  # Solver can adjust it
            min_pu=-1,  # Can go negative (i.e., reduce demand)
            max_pu=0,  # Cannot increase demand
            marginal_cost=500)  # Lower cost, activated first

Fabian Neumann

unread,
Mar 27, 2025, 8:19:42 AMMar 27
to pypsa
No, by design, the PyPSA load component is not controllable. Load shedding should be modelled with a generator.

Sebastian Wurm

unread,
Mar 27, 2025, 8:25:22 AMMar 27
to pypsa
Thanks for the clarification!
I am new to using PyPSA and just found this forum, so I will probably post some more questions in the future ;)

Fabian Neumann

unread,
Mar 28, 2025, 3:22:37 AMMar 28
to pypsa
We're aiming to phase-out the Google group and migrate discussions to Discord: https://discord.gg/AnuJBk23FU
Reply all
Reply to author
Forward
0 new messages