From 069be25e62fae9fd04457156247a6f4c801ff3f3 Mon Sep 17 00:00:00 2001 From: toniseibold Date: Wed, 2 Oct 2024 15:48:16 +0200 Subject: [PATCH] Ensure constraint is still correct with post discretization --- scripts/solve_network.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/solve_network.py b/scripts/solve_network.py index 95cd552a2..3298ca368 100644 --- a/scripts/solve_network.py +++ b/scripts/solve_network.py @@ -259,7 +259,7 @@ def add_solar_potential_constraints(n, config): n.generators.loc[solar_today, "p_nom_max"] .groupby(n.generators.loc[solar_today].index.rename("bus").map(location)) .sum() - - n.generators.loc[solar_hsat, "p_nom_opt"] + - n.generators.loc[solar_hsat, "p_nom"] .groupby(n.generators.loc[solar_hsat].index.rename("bus").map(location)) .sum() * land_use_factors["solar-hsat"] @@ -272,7 +272,7 @@ def add_solar_potential_constraints(n, config): n.generators.loc[solar_today, "p_nom_max"] .groupby(n.generators.loc[solar_today].bus.map(location)) .sum() - - n.generators.loc[solar_hsat, "p_nom_opt"] + - n.generators.loc[solar_hsat, "p_nom"] .groupby(n.generators.loc[solar_hsat].bus.map(location)) .sum() * land_use_factors["solar-hsat"]