rename constraint

rename constraint to fit to other syntax

Co-authored-by: Fabian Hofmann <fab.hof@gmx.de>
This commit is contained in:
lisazeyen 2023-04-20 09:55:50 +02:00 committed by GitHub
parent 51785524a3
commit 1cd658c03f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -463,7 +463,7 @@ def add_operational_reserve_margin(n, sns, config):
rhs = (p_max_pu[fix_i] * capacity_fixed).reindex(columns=gen_i, fill_value=0)
n.model.add_constraints(lhs <= rhs, name="updated_capacity_constraint")
n.model.add_constraints(lhs <= rhs, name="Generator-p-reserve-upper")
def add_battery_constraints(n):