Skip to content

Commit

Permalink
Always use pyomo for SCLOPF as long as other options are not implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaraBuettner committed Mar 12, 2024
1 parent 4147b3a commit f3bd4fd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions etrago/execute/sclopf.py
Original file line number Diff line number Diff line change
Expand Up @@ -836,6 +836,13 @@ def iterate_sclopf(
post_lopf=False,
div_ext_lines=False,
):

if etrago.args["method"]["formulation"] != "pyomo":
etrago.args["method"]["formulation"] = "pyomo"
logger.info("""
SCLOPF currently only implemented for pyomo.
Setting etrago.args["method"]["formulation"] = 'pyomo'
""")
network = etrago.network

network = split_parallel_lines(network)
Expand Down

0 comments on commit f3bd4fd

Please sign in to comment.