Skip to content

Commit cb89213

Browse files
committed
Clean changes made in the last commit.
1 parent 1bfe90d commit cb89213

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

modopt/external_libraries/ipopt/ipopt.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,7 @@ def solve(self):
177177
start_time = time.time()
178178
results = solver(x0=x0, **bounds)
179179
stats = solver.stats()
180-
iterations = stats['iterations']
181-
stats = {key: stats[key] for key in stats.keys() if key not in ['iterations']}
180+
iterations = stats.pop('iterations')
182181
self.total_time = time.time() - start_time
183182

184183
self.results = {

0 commit comments

Comments
 (0)