From e7b55d034ef942acc7b64b81b3b777f04f68bf05 Mon Sep 17 00:00:00 2001 From: lisazeyen Date: Wed, 23 Jun 2021 14:55:21 +0200 Subject: [PATCH] modify constraint for pipe retrofitting according to H2 backbone strategy --- scripts/solve_network.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/solve_network.py b/scripts/solve_network.py index 3e3462bf..a1e199b4 100644 --- a/scripts/solve_network.py +++ b/scripts/solve_network.py @@ -216,9 +216,11 @@ def add_pipe_retrofit_constraint(n): link_p_nom = get_var(n, "Link", "p_nom") pipe_capacity = n.links.loc[gas_pipes_i, 'p_nom'] - # TODO - lhs = linexpr((3.06, link_p_nom.loc[h2_retrofitted_i].rename(index=lambda x: x.replace("H2 pipeline retrofitted", "Gas pipeline"))), - (-1, link_p_nom.loc[gas_pipes_i])) + # according to hydrogen backbone strategy (April, 2020) p.15 + # https://gasforclimate2050.eu/wp-content/uploads/2020/07/2020_European-Hydrogen-Backbone_Report.pdf + # 60% of original natural gas capacity could be used in cost-optimal case as H2 capacity + lhs = linexpr((1, link_p_nom.loc[h2_retrofitted_i].rename(index=lambda x: x.replace("H2 pipeline retrofitted", "Gas pipeline"))), + (-0.6, link_p_nom.loc[gas_pipes_i])) define_constraints(n, lhs, "=", 0., 'Link', 'pipe_retrofit')