Skip to content

Commit

Permalink
Merge pull request #427 from ktehranchi/kt/patch_highs
Browse files Browse the repository at this point in the history
Closes #421 - Patch for Highs
  • Loading branch information
ktehranchi authored Sep 30, 2024
2 parents a056649 + cdba228 commit 31b7960
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions workflow/repo_data/config/config.common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions workflow/scripts/cluster_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 31b7960

Please sign in to comment.