From cdba228d0ac812f321adfba78c36ef5a9100b2e3 Mon Sep 17 00:00:00 2001 From: ktehranchi Date: Sun, 29 Sep 2024 19:01:15 -0700 Subject: [PATCH] patch for highs optimizer --- workflow/repo_data/config/config.common.yaml | 12 ++++++++++++ workflow/scripts/cluster_network.py | 3 +++ 2 files changed, 15 insertions(+) diff --git a/workflow/repo_data/config/config.common.yaml b/workflow/repo_data/config/config.common.yaml index e7eee82a..f7bb6cfd 100644 --- a/workflow/repo_data/config/config.common.yaml +++ b/workflow/repo_data/config/config.common.yaml @@ -124,6 +124,18 @@ atlite: dy: 0.3 + +lines: + types: #Temp values, replaced. + 115.: "Al/St 240/40 2-bundle 220.0" + 138.: "Al/St 240/40 2-bundle 220.0" + 161.: "Al/St 240/40 2-bundle 220.0" + 230.: "Al/St 240/40 2-bundle 220.0" + 345.: "Al/St 240/40 4-bundle 380.0" + 500.: "Al/St 560/50 4-bundle 750.0" + 765.: "Al/St 560/50 4-bundle 750.0" + + # docs : offshore_shape: use: eez #options are ca_osw, eez diff --git a/workflow/scripts/cluster_network.py b/workflow/scripts/cluster_network.py index c3f0bd51..02751c4d 100644 --- a/workflow/scripts/cluster_network.py +++ b/workflow/scripts/cluster_network.py @@ -237,6 +237,9 @@ def n_bounds(model, *n_id): sense=po.minimize, ) + if solver_name == "highs": + solver_name = "ipopt" + opt = po.SolverFactory(solver_name) if not opt.has_capability("quadratic_objective"): logger.warning(