Skip to content

Commit

Permalink
Attempt to resolve syntax issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmundt committed Nov 20, 2023
1 parent dcd7cab commit 883c2ab
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pyomo/solver/IPOPT.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,7 @@ def solve(self, model, **kwds):
raise RuntimeError(
f"NL file with the same name {basename + '.nl'} already exists!"
)
with (
open(basename + '.nl', 'w') as nl_file,
open(basename + '.row', 'w') as row_file,
open(basename + '.col', 'w') as col_file,
):
with open(basename + '.nl', 'w') as nl_file, open(basename + '.row', 'w') as row_file, open(basename + '.col', 'w') as col_file:
self.info = nl_writer.write(
model,
nl_file,
Expand Down

0 comments on commit 883c2ab

Please sign in to comment.