From c065cad8118584184503cd5578beccc2270980ce Mon Sep 17 00:00:00 2001 From: Jeroen Peters Date: Mon, 17 Jun 2019 16:14:01 +0200 Subject: [PATCH] Fix missing code --- scripts/solve_network.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/solve_network.py b/scripts/solve_network.py index 3fd4aee6..b7352281 100644 --- a/scripts/solve_network.py +++ b/scripts/solve_network.py @@ -161,7 +161,10 @@ def solve_network(n, config=None, solver_log=None, opts=None, callback=None): free_output_series_dataframes(n) pypsa.opf.network_lopf_build_model(n, formulation=solve_opts['formulation']) + + add_country_carrier_generation_constraints(n, opts) add_opts_constraints(n, opts) + if not fix_ext_lines: add_lv_constraint(n) add_lc_constraint(n)