fix bug in load shedding constraint

This commit is contained in:
lisazeyen 2023-04-26 18:05:56 +02:00 committed by GitHub
parent 98c4a1e0f0
commit a2e3e91630
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,7 +166,7 @@ def prepare_network(n, solve_opts=None, config=None):
"Generator",
buses_i,
" load",
bus=n.buses.index,
bus=buses_i,
carrier="load",
sign=1e-3, # Adjust sign to measure p and p_nom in kW instead of MW
marginal_cost=load_shedding, # Eur/kWh