From 35aa9aa52c4349690967101181d01a90b1e496db Mon Sep 17 00:00:00 2001 From: Matthew Pearlson <45362680+matthewpearlson@users.noreply.github.com> Date: Wed, 15 Apr 2020 10:31:44 -0400 Subject: [PATCH] Update ftot_pulp.py --- program/ftot_pulp.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/program/ftot_pulp.py b/program/ftot_pulp.py index efd9888..9ac855a 100644 --- a/program/ftot_pulp.py +++ b/program/ftot_pulp.py @@ -2182,8 +2182,7 @@ def create_opt_problem(logger, the_scenario, unmet_demand_vars, flow_vars, proce # demand_commodity_name = u[2] udp = u[3] unmet_demand_costs.append(udp * unmet_demand_vars[u]) - - len(unmet_demand_costs))) + with sqlite3.connect(the_scenario.main_db) as main_db_con: db_cur = main_db_con.cursor()